From e6630d9272eafe11dcc9b8b574d78f1b7b2420f8 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 13 Apr 2020 09:15:04 -0700 Subject: [PATCH] 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" -}