diff --git a/google/cloud/container_v1/gapic/cluster_manager_client.py b/google/cloud/container_v1/gapic/cluster_manager_client.py index 6afc8265..c0acbdd8 100644 --- a/google/cloud/container_v1/gapic/cluster_manager_client.py +++ b/google/cloud/container_v1/gapic/cluster_manager_client.py @@ -37,7 +37,7 @@ class ClusterManagerClient(object): - """Google Container Engine Cluster Manager v1""" + """Google Kubernetes Engine Cluster Manager v1""" SERVICE_ADDRESS = 'container.googleapis.com:443' """The default address of the service.""" @@ -71,7 +71,7 @@ def __init__(self, transport=None, channel=None, credentials=None, - client_config=cluster_manager_client_config.config, + client_config=None, client_info=None): """Constructor. @@ -104,13 +104,20 @@ def __init__(self, your own client library. """ # Raise deprecation warnings for things we want to go away. - if client_config: - warnings.warn('The `client_config` argument is deprecated.', - PendingDeprecationWarning) + if client_config is not None: + warnings.warn( + 'The `client_config` argument is deprecated.', + PendingDeprecationWarning, + stacklevel=2) + else: + client_config = cluster_manager_client_config.config + if channel: warnings.warn( 'The `channel` argument is deprecated; use ' - '`transport` instead.', PendingDeprecationWarning) + '`transport` instead.', + PendingDeprecationWarning, + stacklevel=2) # Instantiate the transport. # The transport is responsible for handling serialization and @@ -159,6 +166,7 @@ def __init__(self, def list_clusters(self, project_id, zone, + parent=None, retry=google.api_core.gapic_v1.method.DEFAULT, timeout=google.api_core.gapic_v1.method.DEFAULT, metadata=None): @@ -180,11 +188,16 @@ def list_clusters(self, >>> response = client.list_clusters(project_id, zone) Args: - project_id (str): The Google Developers Console `project ID or project - number `__. - zone (str): The name of the Google Compute Engine + project_id (str): Deprecated. The Google Developers Console `project ID or project + number `__. This field + has been deprecated and replaced by the parent field. + zone (str): Deprecated. The name of the Google Compute Engine `zone `__ in - which the cluster resides, or "-" for all zones. + which the cluster resides, or "-" for all zones. This field has been + deprecated and replaced by the parent field. + parent (str): The parent (project and location) where the clusters will be listed. + Specified in the format 'projects/*/locations/*'. Location "-" matches + all zones and all regions. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -218,6 +231,7 @@ def list_clusters(self, request = cluster_service_pb2.ListClustersRequest( project_id=project_id, zone=zone, + parent=parent, ) return self._inner_api_calls['list_clusters']( request, retry=retry, timeout=timeout, metadata=metadata) @@ -226,6 +240,7 @@ def get_cluster(self, project_id, zone, cluster_id, + name=None, retry=google.api_core.gapic_v1.method.DEFAULT, timeout=google.api_core.gapic_v1.method.DEFAULT, metadata=None): @@ -249,12 +264,17 @@ def get_cluster(self, >>> response = client.get_cluster(project_id, zone, cluster_id) Args: - project_id (str): The Google Developers Console `project ID or project - number `__. - zone (str): The name of the Google Compute Engine + project_id (str): Deprecated. The Google Developers Console `project ID or project + number `__. This field + has been deprecated and replaced by the name field. + zone (str): Deprecated. The name of the Google Compute Engine `zone `__ in - which the cluster resides. - cluster_id (str): The name of the cluster to retrieve. + which the cluster resides. This field has been deprecated and replaced + by the name field. + cluster_id (str): Deprecated. The name of the cluster to retrieve. + This field has been deprecated and replaced by the name field. + name (str): The name (project, location, cluster) of the cluster to retrieve. + Specified in the format 'projects/*/locations/*/clusters/\*'. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -288,6 +308,7 @@ def get_cluster(self, project_id=project_id, zone=zone, cluster_id=cluster_id, + name=name, ) return self._inner_api_calls['get_cluster']( request, retry=retry, timeout=timeout, metadata=metadata) @@ -296,6 +317,7 @@ def create_cluster(self, project_id, zone, cluster, + parent=None, retry=google.api_core.gapic_v1.method.DEFAULT, timeout=google.api_core.gapic_v1.method.DEFAULT, metadata=None): @@ -330,16 +352,20 @@ def create_cluster(self, >>> response = client.create_cluster(project_id, zone, cluster) Args: - project_id (str): The Google Developers Console `project ID or project - number `__. - zone (str): The name of the Google Compute Engine + project_id (str): Deprecated. The Google Developers Console `project ID or project + number `__. This field + has been deprecated and replaced by the parent field. + zone (str): Deprecated. The name of the Google Compute Engine `zone `__ in - which the cluster resides. + which the cluster resides. This field has been deprecated and replaced + by the parent field. cluster (Union[dict, ~google.cloud.container_v1.types.Cluster]): A `cluster resource `__ If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.container_v1.types.Cluster` + parent (str): The parent (project and location) where the cluster will be created. + Specified in the format 'projects/*/locations/*'. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -374,6 +400,7 @@ def create_cluster(self, project_id=project_id, zone=zone, cluster=cluster, + parent=parent, ) return self._inner_api_calls['create_cluster']( request, retry=retry, timeout=timeout, metadata=metadata) @@ -383,6 +410,7 @@ def update_cluster(self, zone, cluster_id, update, + name=None, retry=google.api_core.gapic_v1.method.DEFAULT, timeout=google.api_core.gapic_v1.method.DEFAULT, metadata=None): @@ -409,16 +437,21 @@ def update_cluster(self, >>> response = client.update_cluster(project_id, zone, cluster_id, update) Args: - project_id (str): The Google Developers Console `project ID or project - number `__. - zone (str): The name of the Google Compute Engine + project_id (str): Deprecated. The Google Developers Console `project ID or project + number `__. This field + has been deprecated and replaced by the name field. + zone (str): Deprecated. The name of the Google Compute Engine `zone `__ in - which the cluster resides. - cluster_id (str): The name of the cluster to upgrade. + which the cluster resides. This field has been deprecated and replaced + by the name field. + cluster_id (str): Deprecated. The name of the cluster to upgrade. + This field has been deprecated and replaced by the name field. update (Union[dict, ~google.cloud.container_v1.types.ClusterUpdate]): A description of the update. If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.container_v1.types.ClusterUpdate` + name (str): The name (project, location, cluster) of the cluster to update. + Specified in the format 'projects/*/locations/*/clusters/\*'. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -454,6 +487,7 @@ def update_cluster(self, zone=zone, cluster_id=cluster_id, update=update, + name=name, ) return self._inner_api_calls['update_cluster']( request, retry=retry, timeout=timeout, metadata=metadata) @@ -465,11 +499,12 @@ def update_node_pool(self, node_pool_id, node_version, image_type, + name=None, retry=google.api_core.gapic_v1.method.DEFAULT, timeout=google.api_core.gapic_v1.method.DEFAULT, metadata=None): """ - Updates the version and/or image type of a specific node pool. + Updates the version and/or image type for a specific node pool. Example: >>> from google.cloud import container_v1 @@ -497,16 +532,32 @@ def update_node_pool(self, >>> response = client.update_node_pool(project_id, zone, cluster_id, node_pool_id, node_version, image_type) Args: - project_id (str): The Google Developers Console `project ID or project - number `__. - zone (str): The name of the Google Compute Engine + project_id (str): Deprecated. The Google Developers Console `project ID or project + number `__. This field + has been deprecated and replaced by the name field. + zone (str): Deprecated. The name of the Google Compute Engine `zone `__ in - which the cluster resides. - cluster_id (str): The name of the cluster to upgrade. - node_pool_id (str): The name of the node pool to upgrade. - node_version (str): The Kubernetes version to change the nodes to (typically an upgrade). - Use ``-`` to upgrade to the latest version supported by the server. + which the cluster resides. This field has been deprecated and replaced + by the name field. + cluster_id (str): Deprecated. The name of the cluster to upgrade. + This field has been deprecated and replaced by the name field. + node_pool_id (str): Deprecated. The name of the node pool to upgrade. + This field has been deprecated and replaced by the name field. + node_version (str): 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 image_type (str): The desired image type for the node pool. + name (str): The name (project, location, cluster, node pool) of the node pool to + update. Specified in the format + 'projects/*/locations/*/clusters/*/nodePools/*'. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -544,6 +595,7 @@ def update_node_pool(self, node_pool_id=node_pool_id, node_version=node_version, image_type=image_type, + name=name, ) return self._inner_api_calls['update_node_pool']( request, retry=retry, timeout=timeout, metadata=metadata) @@ -555,11 +607,12 @@ def set_node_pool_autoscaling( cluster_id, node_pool_id, autoscaling, + name=None, retry=google.api_core.gapic_v1.method.DEFAULT, timeout=google.api_core.gapic_v1.method.DEFAULT, metadata=None): """ - Sets the autoscaling settings of a specific node pool. + Sets the autoscaling settings for a specific node pool. Example: >>> from google.cloud import container_v1 @@ -584,17 +637,24 @@ def set_node_pool_autoscaling( >>> response = client.set_node_pool_autoscaling(project_id, zone, cluster_id, node_pool_id, autoscaling) Args: - project_id (str): The Google Developers Console `project ID or project - number `__. - zone (str): The name of the Google Compute Engine + project_id (str): Deprecated. The Google Developers Console `project ID or project + number `__. This field + has been deprecated and replaced by the name field. + zone (str): Deprecated. The name of the Google Compute Engine `zone `__ in - which the cluster resides. - cluster_id (str): The name of the cluster to upgrade. - node_pool_id (str): The name of the node pool to upgrade. + which the cluster resides. This field has been deprecated and replaced + by the name field. + cluster_id (str): Deprecated. The name of the cluster to upgrade. + This field has been deprecated and replaced by the name field. + node_pool_id (str): Deprecated. The name of the node pool to upgrade. + This field has been deprecated and replaced by the name field. autoscaling (Union[dict, ~google.cloud.container_v1.types.NodePoolAutoscaling]): Autoscaling configuration for the node pool. If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.container_v1.types.NodePoolAutoscaling` + name (str): The name (project, location, cluster, node pool) of the node pool to set + autoscaler settings. Specified in the format + 'projects/*/locations/*/clusters/*/nodePools/*'. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -632,6 +692,7 @@ def set_node_pool_autoscaling( cluster_id=cluster_id, node_pool_id=node_pool_id, autoscaling=autoscaling, + name=name, ) return self._inner_api_calls['set_node_pool_autoscaling']( request, retry=retry, timeout=timeout, metadata=metadata) @@ -641,11 +702,12 @@ def set_logging_service(self, zone, cluster_id, logging_service, + name=None, retry=google.api_core.gapic_v1.method.DEFAULT, timeout=google.api_core.gapic_v1.method.DEFAULT, metadata=None): """ - Sets the logging service of a specific cluster. + Sets the logging service for a specific cluster. Example: >>> from google.cloud import container_v1 @@ -667,17 +729,22 @@ def set_logging_service(self, >>> response = client.set_logging_service(project_id, zone, cluster_id, logging_service) Args: - project_id (str): The Google Developers Console `project ID or project - number `__. - zone (str): The name of the Google Compute Engine + project_id (str): Deprecated. The Google Developers Console `project ID or project + number `__. This field + has been deprecated and replaced by the name field. + zone (str): Deprecated. The name of the Google Compute Engine `zone `__ in - which the cluster resides. - cluster_id (str): The name of the cluster to upgrade. + which the cluster resides. This field has been deprecated and replaced + by the name field. + cluster_id (str): Deprecated. The name of the cluster to upgrade. + This field has been deprecated and replaced by the name field. logging_service (str): 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 + name (str): The name (project, location, cluster) of the cluster to set logging. + Specified in the format 'projects/*/locations/*/clusters/\*'. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -714,6 +781,7 @@ def set_logging_service(self, zone=zone, cluster_id=cluster_id, logging_service=logging_service, + name=name, ) return self._inner_api_calls['set_logging_service']( request, retry=retry, timeout=timeout, metadata=metadata) @@ -723,11 +791,12 @@ def set_monitoring_service(self, zone, cluster_id, monitoring_service, + name=None, retry=google.api_core.gapic_v1.method.DEFAULT, timeout=google.api_core.gapic_v1.method.DEFAULT, metadata=None): """ - Sets the monitoring service of a specific cluster. + Sets the monitoring service for a specific cluster. Example: >>> from google.cloud import container_v1 @@ -749,17 +818,22 @@ def set_monitoring_service(self, >>> response = client.set_monitoring_service(project_id, zone, cluster_id, monitoring_service) Args: - project_id (str): The Google Developers Console `project ID or project - number `__. - zone (str): The name of the Google Compute Engine + project_id (str): Deprecated. The Google Developers Console `project ID or project + number `__. This field + has been deprecated and replaced by the name field. + zone (str): Deprecated. The name of the Google Compute Engine `zone `__ in - which the cluster resides. - cluster_id (str): The name of the cluster to upgrade. + which the cluster resides. This field has been deprecated and replaced + by the name field. + cluster_id (str): Deprecated. The name of the cluster to upgrade. + This field has been deprecated and replaced by the name field. monitoring_service (str): 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 + name (str): The name (project, location, cluster) of the cluster to set monitoring. + Specified in the format 'projects/*/locations/*/clusters/\*'. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -796,6 +870,7 @@ def set_monitoring_service(self, zone=zone, cluster_id=cluster_id, monitoring_service=monitoring_service, + name=name, ) return self._inner_api_calls['set_monitoring_service']( request, retry=retry, timeout=timeout, metadata=metadata) @@ -805,11 +880,12 @@ def set_addons_config(self, zone, cluster_id, addons_config, + name=None, retry=google.api_core.gapic_v1.method.DEFAULT, timeout=google.api_core.gapic_v1.method.DEFAULT, metadata=None): """ - Sets the addons of a specific cluster. + Sets the addons for a specific cluster. Example: >>> from google.cloud import container_v1 @@ -831,17 +907,22 @@ def set_addons_config(self, >>> response = client.set_addons_config(project_id, zone, cluster_id, addons_config) Args: - project_id (str): The Google Developers Console `project ID or project - number `__. - zone (str): The name of the Google Compute Engine + project_id (str): Deprecated. The Google Developers Console `project ID or project + number `__. This field + has been deprecated and replaced by the name field. + zone (str): Deprecated. The name of the Google Compute Engine `zone `__ in - which the cluster resides. - cluster_id (str): The name of the cluster to upgrade. + which the cluster resides. This field has been deprecated and replaced + by the name field. + cluster_id (str): Deprecated. The name of the cluster to upgrade. + This field has been deprecated and replaced by the name field. addons_config (Union[dict, ~google.cloud.container_v1.types.AddonsConfig]): The desired configurations for the various addons available to run in the cluster. If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.container_v1.types.AddonsConfig` + name (str): The name (project, location, cluster) of the cluster to set addons. + Specified in the format 'projects/*/locations/*/clusters/\*'. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -878,6 +959,7 @@ def set_addons_config(self, zone=zone, cluster_id=cluster_id, addons_config=addons_config, + name=name, ) return self._inner_api_calls['set_addons_config']( request, retry=retry, timeout=timeout, metadata=metadata) @@ -887,11 +969,12 @@ def set_locations(self, zone, cluster_id, locations, + name=None, retry=google.api_core.gapic_v1.method.DEFAULT, timeout=google.api_core.gapic_v1.method.DEFAULT, metadata=None): """ - Sets the locations of a specific cluster. + Sets the locations for a specific cluster. Example: >>> from google.cloud import container_v1 @@ -913,12 +996,15 @@ def set_locations(self, >>> response = client.set_locations(project_id, zone, cluster_id, locations) Args: - project_id (str): The Google Developers Console `project ID or project - number `__. - zone (str): The name of the Google Compute Engine + project_id (str): Deprecated. The Google Developers Console `project ID or project + number `__. This field + has been deprecated and replaced by the name field. + zone (str): Deprecated. The name of the Google Compute Engine `zone `__ in - which the cluster resides. - cluster_id (str): The name of the cluster to upgrade. + which the cluster resides. This field has been deprecated and replaced + by the name field. + cluster_id (str): Deprecated. The name of the cluster to upgrade. + This field has been deprecated and replaced by the name field. locations (list[str]): The desired list of Google Compute Engine `locations `__ in which the cluster's nodes should be located. Changing the locations a @@ -926,6 +1012,8 @@ def set_locations(self, the cluster, depending on whether locations are being added or removed. This list must always include the cluster's primary zone. + name (str): The name (project, location, cluster) of the cluster to set locations. + Specified in the format 'projects/*/locations/*/clusters/\*'. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -961,6 +1049,7 @@ def set_locations(self, zone=zone, cluster_id=cluster_id, locations=locations, + name=name, ) return self._inner_api_calls['set_locations']( request, retry=retry, timeout=timeout, metadata=metadata) @@ -970,11 +1059,12 @@ def update_master(self, zone, cluster_id, master_version, + name=None, retry=google.api_core.gapic_v1.method.DEFAULT, timeout=google.api_core.gapic_v1.method.DEFAULT, metadata=None): """ - Updates the master of a specific cluster. + Updates the master for a specific cluster. Example: >>> from google.cloud import container_v1 @@ -996,15 +1086,27 @@ def update_master(self, >>> response = client.update_master(project_id, zone, cluster_id, master_version) Args: - project_id (str): The Google Developers Console `project ID or project - number `__. - zone (str): The name of the Google Compute Engine + project_id (str): Deprecated. The Google Developers Console `project ID or project + number `__. This field + has been deprecated and replaced by the name field. + zone (str): Deprecated. The name of the Google Compute Engine `zone `__ in - which the cluster resides. - cluster_id (str): The name of the cluster to upgrade. - master_version (str): 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. + which the cluster resides. This field has been deprecated and replaced + by the name field. + cluster_id (str): Deprecated. The name of the cluster to upgrade. + This field has been deprecated and replaced by the name field. + master_version (str): 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 + name (str): The name (project, location, cluster) of the cluster to update. + Specified in the format 'projects/*/locations/*/clusters/\*'. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -1040,6 +1142,7 @@ def update_master(self, zone=zone, cluster_id=cluster_id, master_version=master_version, + name=name, ) return self._inner_api_calls['update_master']( request, retry=retry, timeout=timeout, metadata=metadata) @@ -1050,12 +1153,13 @@ def set_master_auth(self, cluster_id, action, update, + name=None, retry=google.api_core.gapic_v1.method.DEFAULT, timeout=google.api_core.gapic_v1.method.DEFAULT, metadata=None): """ 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. Example: @@ -1082,17 +1186,22 @@ def set_master_auth(self, >>> response = client.set_master_auth(project_id, zone, cluster_id, action, update) Args: - project_id (str): The Google Developers Console `project ID or project - number `__. - zone (str): The name of the Google Compute Engine + project_id (str): Deprecated. The Google Developers Console `project ID or project + number `__. This field + has been deprecated and replaced by the name field. + zone (str): Deprecated. The name of the Google Compute Engine `zone `__ in - which the cluster resides. - cluster_id (str): The name of the cluster to upgrade. + which the cluster resides. This field has been deprecated and replaced + by the name field. + cluster_id (str): Deprecated. The name of the cluster to upgrade. + This field has been deprecated and replaced by the name field. action (~google.cloud.container_v1.types.Action): The exact form of action to be taken on the master auth. update (Union[dict, ~google.cloud.container_v1.types.MasterAuth]): A description of the update. If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.container_v1.types.MasterAuth` + name (str): The name (project, location, cluster) of the cluster to set auth. + Specified in the format 'projects/*/locations/*/clusters/\*'. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -1129,6 +1238,7 @@ def set_master_auth(self, cluster_id=cluster_id, action=action, update=update, + name=name, ) return self._inner_api_calls['set_master_auth']( request, retry=retry, timeout=timeout, metadata=metadata) @@ -1137,6 +1247,7 @@ def delete_cluster(self, project_id, zone, cluster_id, + name=None, retry=google.api_core.gapic_v1.method.DEFAULT, timeout=google.api_core.gapic_v1.method.DEFAULT, metadata=None): @@ -1168,12 +1279,17 @@ def delete_cluster(self, >>> response = client.delete_cluster(project_id, zone, cluster_id) Args: - project_id (str): The Google Developers Console `project ID or project - number `__. - zone (str): The name of the Google Compute Engine + project_id (str): Deprecated. The Google Developers Console `project ID or project + number `__. This field + has been deprecated and replaced by the name field. + zone (str): Deprecated. The name of the Google Compute Engine `zone `__ in - which the cluster resides. - cluster_id (str): The name of the cluster to delete. + which the cluster resides. This field has been deprecated and replaced + by the name field. + cluster_id (str): Deprecated. The name of the cluster to delete. + This field has been deprecated and replaced by the name field. + name (str): The name (project, location, cluster) of the cluster to delete. + Specified in the format 'projects/*/locations/*/clusters/\*'. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -1208,6 +1324,7 @@ def delete_cluster(self, project_id=project_id, zone=zone, cluster_id=cluster_id, + name=name, ) return self._inner_api_calls['delete_cluster']( request, retry=retry, timeout=timeout, metadata=metadata) @@ -1215,6 +1332,7 @@ def delete_cluster(self, def list_operations(self, project_id, zone, + parent=None, retry=google.api_core.gapic_v1.method.DEFAULT, timeout=google.api_core.gapic_v1.method.DEFAULT, metadata=None): @@ -1235,11 +1353,16 @@ def list_operations(self, >>> response = client.list_operations(project_id, zone) Args: - project_id (str): The Google Developers Console `project ID or project - number `__. - zone (str): The name of the Google Compute Engine + project_id (str): Deprecated. The Google Developers Console `project ID or project + number `__. This field + has been deprecated and replaced by the parent field. + zone (str): Deprecated. The name of the Google Compute Engine `zone `__ to - return operations for, or ``-`` for all zones. + return operations for, or ``-`` for all zones. This field has been + deprecated and replaced by the parent field. + parent (str): The parent (project and location) where the operations will be listed. + Specified in the format 'projects/*/locations/*'. Location "-" matches + all zones and all regions. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -1273,6 +1396,7 @@ def list_operations(self, request = cluster_service_pb2.ListOperationsRequest( project_id=project_id, zone=zone, + parent=parent, ) return self._inner_api_calls['list_operations']( request, retry=retry, timeout=timeout, metadata=metadata) @@ -1281,6 +1405,7 @@ def get_operation(self, project_id, zone, operation_id, + name=None, retry=google.api_core.gapic_v1.method.DEFAULT, timeout=google.api_core.gapic_v1.method.DEFAULT, metadata=None): @@ -1304,12 +1429,17 @@ def get_operation(self, >>> response = client.get_operation(project_id, zone, operation_id) Args: - project_id (str): The Google Developers Console `project ID or project - number `__. - zone (str): The name of the Google Compute Engine + project_id (str): Deprecated. The Google Developers Console `project ID or project + number `__. This field + has been deprecated and replaced by the name field. + zone (str): Deprecated. The name of the Google Compute Engine `zone `__ in - which the cluster resides. - operation_id (str): The server-assigned ``name`` of the operation. + which the cluster resides. This field has been deprecated and replaced + by the name field. + operation_id (str): Deprecated. The server-assigned ``name`` of the operation. This field + has been deprecated and replaced by the name field. + name (str): The name (project, location, operation id) of the operation to get. + Specified in the format 'projects/*/locations/*/operations/\*'. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -1344,6 +1474,7 @@ def get_operation(self, project_id=project_id, zone=zone, operation_id=operation_id, + name=name, ) return self._inner_api_calls['get_operation']( request, retry=retry, timeout=timeout, metadata=metadata) @@ -1352,6 +1483,7 @@ def cancel_operation(self, project_id, zone, operation_id, + name=None, retry=google.api_core.gapic_v1.method.DEFAULT, timeout=google.api_core.gapic_v1.method.DEFAULT, metadata=None): @@ -1375,12 +1507,17 @@ def cancel_operation(self, >>> client.cancel_operation(project_id, zone, operation_id) Args: - project_id (str): The Google Developers Console `project ID or project - number `__. - zone (str): The name of the Google Compute Engine + project_id (str): Deprecated. The Google Developers Console `project ID or project + number `__. This field + has been deprecated and replaced by the name field. + zone (str): Deprecated. The name of the Google Compute Engine `zone `__ in - which the operation resides. - operation_id (str): The server-assigned ``name`` of the operation. + which the operation resides. This field has been deprecated and replaced + by the name field. + operation_id (str): Deprecated. The server-assigned ``name`` of the operation. This field + has been deprecated and replaced by the name field. + name (str): The name (project, location, operation id) of the operation to cancel. + Specified in the format 'projects/*/locations/*/operations/\*'. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -1413,6 +1550,7 @@ def cancel_operation(self, project_id=project_id, zone=zone, operation_id=operation_id, + name=name, ) self._inner_api_calls['cancel_operation']( request, retry=retry, timeout=timeout, metadata=metadata) @@ -1420,11 +1558,12 @@ def cancel_operation(self, def get_server_config(self, project_id, zone, + name=None, retry=google.api_core.gapic_v1.method.DEFAULT, timeout=google.api_core.gapic_v1.method.DEFAULT, metadata=None): """ - Returns configuration info about the Container Engine service. + Returns configuration info about the Kubernetes Engine service. Example: >>> from google.cloud import container_v1 @@ -1440,11 +1579,15 @@ def get_server_config(self, >>> response = client.get_server_config(project_id, zone) Args: - project_id (str): The Google Developers Console `project ID or project - number `__. - zone (str): The name of the Google Compute Engine + project_id (str): Deprecated. The Google Developers Console `project ID or project + number `__. This field + has been deprecated and replaced by the name field. + zone (str): Deprecated. The name of the Google Compute Engine `zone `__ to - return operations for. + return operations for. This field has been deprecated and replaced by + the name field. + name (str): The name (project and location) of the server config to get Specified in + the format 'projects/*/locations/*'. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -1479,6 +1622,7 @@ def get_server_config(self, request = cluster_service_pb2.GetServerConfigRequest( project_id=project_id, zone=zone, + name=name, ) return self._inner_api_calls['get_server_config']( request, retry=retry, timeout=timeout, metadata=metadata) @@ -1487,6 +1631,7 @@ def list_node_pools(self, project_id, zone, cluster_id, + parent=None, retry=google.api_core.gapic_v1.method.DEFAULT, timeout=google.api_core.gapic_v1.method.DEFAULT, metadata=None): @@ -1510,12 +1655,17 @@ def list_node_pools(self, >>> response = client.list_node_pools(project_id, zone, cluster_id) Args: - project_id (str): The Google Developers Console `project ID or project + project_id (str): Deprecated. The Google Developers Console `project ID or project number `__. - zone (str): The name of the Google Compute Engine + This field has been deprecated and replaced by the parent field. + zone (str): Deprecated. The name of the Google Compute Engine `zone `__ in - which the cluster resides. - cluster_id (str): The name of the cluster. + which the cluster resides. This field has been deprecated and replaced + by the parent field. + cluster_id (str): Deprecated. The name of the cluster. + This field has been deprecated and replaced by the parent field. + parent (str): The parent (project, location, cluster id) where the node pools will be + listed. Specified in the format 'projects/*/locations/*/clusters/\*'. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -1550,6 +1700,7 @@ def list_node_pools(self, project_id=project_id, zone=zone, cluster_id=cluster_id, + parent=parent, ) return self._inner_api_calls['list_node_pools']( request, retry=retry, timeout=timeout, metadata=metadata) @@ -1559,6 +1710,7 @@ def get_node_pool(self, zone, cluster_id, node_pool_id, + name=None, retry=google.api_core.gapic_v1.method.DEFAULT, timeout=google.api_core.gapic_v1.method.DEFAULT, metadata=None): @@ -1585,13 +1737,20 @@ def get_node_pool(self, >>> response = client.get_node_pool(project_id, zone, cluster_id, node_pool_id) Args: - project_id (str): The Google Developers Console `project ID or project + project_id (str): Deprecated. The Google Developers Console `project ID or project number `__. - zone (str): The name of the Google Compute Engine + This field has been deprecated and replaced by the name field. + zone (str): Deprecated. The name of the Google Compute Engine `zone `__ in - which the cluster resides. - cluster_id (str): The name of the cluster. - node_pool_id (str): The name of the node pool. + which the cluster resides. This field has been deprecated and replaced + by the name field. + cluster_id (str): Deprecated. The name of the cluster. + This field has been deprecated and replaced by the name field. + node_pool_id (str): Deprecated. The name of the node pool. + This field has been deprecated and replaced by the name field. + name (str): The name (project, location, cluster, node pool id) of the node pool to + get. Specified in the format + 'projects/*/locations/*/clusters/*/nodePools/*'. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -1627,6 +1786,7 @@ def get_node_pool(self, zone=zone, cluster_id=cluster_id, node_pool_id=node_pool_id, + name=name, ) return self._inner_api_calls['get_node_pool']( request, retry=retry, timeout=timeout, metadata=metadata) @@ -1636,6 +1796,7 @@ def create_node_pool(self, zone, cluster_id, node_pool, + parent=None, retry=google.api_core.gapic_v1.method.DEFAULT, timeout=google.api_core.gapic_v1.method.DEFAULT, metadata=None): @@ -1662,16 +1823,21 @@ def create_node_pool(self, >>> response = client.create_node_pool(project_id, zone, cluster_id, node_pool) Args: - project_id (str): The Google Developers Console `project ID or project + project_id (str): Deprecated. The Google Developers Console `project ID or project number `__. - zone (str): The name of the Google Compute Engine + This field has been deprecated and replaced by the parent field. + zone (str): Deprecated. The name of the Google Compute Engine `zone `__ in - which the cluster resides. - cluster_id (str): The name of the cluster. + which the cluster resides. This field has been deprecated and replaced + by the parent field. + cluster_id (str): Deprecated. The name of the cluster. + This field has been deprecated and replaced by the parent field. node_pool (Union[dict, ~google.cloud.container_v1.types.NodePool]): The node pool to create. If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.container_v1.types.NodePool` + parent (str): The parent (project, location, cluster id) where the node pool will be + created. Specified in the format 'projects/*/locations/*/clusters/\*'. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -1707,6 +1873,7 @@ def create_node_pool(self, zone=zone, cluster_id=cluster_id, node_pool=node_pool, + parent=parent, ) return self._inner_api_calls['create_node_pool']( request, retry=retry, timeout=timeout, metadata=metadata) @@ -1716,6 +1883,7 @@ def delete_node_pool(self, zone, cluster_id, node_pool_id, + name=None, retry=google.api_core.gapic_v1.method.DEFAULT, timeout=google.api_core.gapic_v1.method.DEFAULT, metadata=None): @@ -1742,13 +1910,20 @@ def delete_node_pool(self, >>> response = client.delete_node_pool(project_id, zone, cluster_id, node_pool_id) Args: - project_id (str): The Google Developers Console `project ID or project + project_id (str): Deprecated. The Google Developers Console `project ID or project number `__. - zone (str): The name of the Google Compute Engine + This field has been deprecated and replaced by the name field. + zone (str): Deprecated. The name of the Google Compute Engine `zone `__ in - which the cluster resides. - cluster_id (str): The name of the cluster. - node_pool_id (str): The name of the node pool to delete. + which the cluster resides. This field has been deprecated and replaced + by the name field. + cluster_id (str): Deprecated. The name of the cluster. + This field has been deprecated and replaced by the name field. + node_pool_id (str): Deprecated. The name of the node pool to delete. + This field has been deprecated and replaced by the name field. + name (str): The name (project, location, cluster, node pool id) of the node pool to + delete. Specified in the format + 'projects/*/locations/*/clusters/*/nodePools/*'. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -1784,6 +1959,7 @@ def delete_node_pool(self, zone=zone, cluster_id=cluster_id, node_pool_id=node_pool_id, + name=name, ) return self._inner_api_calls['delete_node_pool']( request, retry=retry, timeout=timeout, metadata=metadata) @@ -1794,6 +1970,7 @@ def rollback_node_pool_upgrade( zone, cluster_id, node_pool_id, + name=None, retry=google.api_core.gapic_v1.method.DEFAULT, timeout=google.api_core.gapic_v1.method.DEFAULT, metadata=None): @@ -1821,13 +1998,20 @@ def rollback_node_pool_upgrade( >>> response = client.rollback_node_pool_upgrade(project_id, zone, cluster_id, node_pool_id) Args: - project_id (str): The Google Developers Console `project ID or project - number `__. - zone (str): The name of the Google Compute Engine + project_id (str): Deprecated. The Google Developers Console `project ID or project + number `__. This field + has been deprecated and replaced by the name field. + zone (str): Deprecated. The name of the Google Compute Engine `zone `__ in - which the cluster resides. - cluster_id (str): The name of the cluster to rollback. - node_pool_id (str): The name of the node pool to rollback. + which the cluster resides. This field has been deprecated and replaced + by the name field. + cluster_id (str): Deprecated. The name of the cluster to rollback. + This field has been deprecated and replaced by the name field. + node_pool_id (str): Deprecated. The name of the node pool to rollback. + This field has been deprecated and replaced by the name field. + name (str): The name (project, location, cluster, node pool id) of the node poll to + rollback upgrade. Specified in the format + 'projects/*/locations/*/clusters/*/nodePools/*'. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -1864,6 +2048,7 @@ def rollback_node_pool_upgrade( zone=zone, cluster_id=cluster_id, node_pool_id=node_pool_id, + name=name, ) return self._inner_api_calls['rollback_node_pool_upgrade']( request, retry=retry, timeout=timeout, metadata=metadata) @@ -1875,6 +2060,7 @@ def set_node_pool_management( cluster_id, node_pool_id, management, + name=None, retry=google.api_core.gapic_v1.method.DEFAULT, timeout=google.api_core.gapic_v1.method.DEFAULT, metadata=None): @@ -1904,17 +2090,24 @@ def set_node_pool_management( >>> response = client.set_node_pool_management(project_id, zone, cluster_id, node_pool_id, management) Args: - project_id (str): The Google Developers Console `project ID or project - number `__. - zone (str): The name of the Google Compute Engine + project_id (str): Deprecated. The Google Developers Console `project ID or project + number `__. This field + has been deprecated and replaced by the name field. + zone (str): Deprecated. The name of the Google Compute Engine `zone `__ in - which the cluster resides. - cluster_id (str): The name of the cluster to update. - node_pool_id (str): The name of the node pool to update. + which the cluster resides. This field has been deprecated and replaced + by the name field. + cluster_id (str): Deprecated. The name of the cluster to update. + This field has been deprecated and replaced by the name field. + node_pool_id (str): Deprecated. The name of the node pool to update. + This field has been deprecated and replaced by the name field. management (Union[dict, ~google.cloud.container_v1.types.NodeManagement]): NodeManagement configuration for the node pool. If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.container_v1.types.NodeManagement` + name (str): The name (project, location, cluster, node pool id) of the node pool to + set management properties. Specified in the format + 'projects/*/locations/*/clusters/*/nodePools/*'. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -1952,6 +2145,7 @@ def set_node_pool_management( cluster_id=cluster_id, node_pool_id=node_pool_id, management=management, + name=name, ) return self._inner_api_calls['set_node_pool_management']( request, retry=retry, timeout=timeout, metadata=metadata) @@ -1962,6 +2156,7 @@ def set_labels(self, cluster_id, resource_labels, label_fingerprint, + name=None, retry=google.api_core.gapic_v1.method.DEFAULT, timeout=google.api_core.gapic_v1.method.DEFAULT, metadata=None): @@ -1991,19 +2186,24 @@ def set_labels(self, >>> response = client.set_labels(project_id, zone, cluster_id, resource_labels, label_fingerprint) Args: - project_id (str): The Google Developers Console `project ID or project + project_id (str): Deprecated. The Google Developers Console `project ID or project number `__. - zone (str): The name of the Google Compute Engine + This field has been deprecated and replaced by the name field. + zone (str): Deprecated. The name of the Google Compute Engine `zone `__ in - which the cluster resides. - cluster_id (str): The name of the cluster. + which the cluster resides. This field has been deprecated and replaced + by the name field. + cluster_id (str): Deprecated. The name of the cluster. + This field has been deprecated and replaced by the name field. resource_labels (dict[str -> str]): The labels to set for that cluster. label_fingerprint (str): 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. + name (str): The name (project, location, cluster id) of the cluster to set labels. + Specified in the format 'projects/*/locations/*/clusters/\*'. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -2039,6 +2239,7 @@ def set_labels(self, cluster_id=cluster_id, resource_labels=resource_labels, label_fingerprint=label_fingerprint, + name=name, ) return self._inner_api_calls['set_labels']( request, retry=retry, timeout=timeout, metadata=metadata) @@ -2048,6 +2249,7 @@ def set_legacy_abac(self, zone, cluster_id, enabled, + name=None, retry=google.api_core.gapic_v1.method.DEFAULT, timeout=google.api_core.gapic_v1.method.DEFAULT, metadata=None): @@ -2074,13 +2276,18 @@ def set_legacy_abac(self, >>> response = client.set_legacy_abac(project_id, zone, cluster_id, enabled) Args: - project_id (str): The Google Developers Console `project ID or project - number `__. - zone (str): The name of the Google Compute Engine + project_id (str): Deprecated. The Google Developers Console `project ID or project + number `__. This field + has been deprecated and replaced by the name field. + zone (str): Deprecated. The name of the Google Compute Engine `zone `__ in - which the cluster resides. - cluster_id (str): The name of the cluster to update. + which the cluster resides. This field has been deprecated and replaced + by the name field. + cluster_id (str): Deprecated. The name of the cluster to update. + This field has been deprecated and replaced by the name field. enabled (bool): Whether ABAC authorization will be enabled in the cluster. + name (str): The name (project, location, cluster id) of the cluster to set legacy + abac. Specified in the format 'projects/*/locations/*/clusters/\*'. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -2116,6 +2323,7 @@ def set_legacy_abac(self, zone=zone, cluster_id=cluster_id, enabled=enabled, + name=name, ) return self._inner_api_calls['set_legacy_abac']( request, retry=retry, timeout=timeout, metadata=metadata) @@ -2124,6 +2332,8 @@ def start_i_p_rotation(self, project_id, zone, cluster_id, + name=None, + rotate_credentials=None, retry=google.api_core.gapic_v1.method.DEFAULT, timeout=google.api_core.gapic_v1.method.DEFAULT, metadata=None): @@ -2147,12 +2357,18 @@ def start_i_p_rotation(self, >>> response = client.start_i_p_rotation(project_id, zone, cluster_id) Args: - project_id (str): The Google Developers Console `project ID or project + project_id (str): Deprecated. The Google Developers Console `project ID or project number `__. - zone (str): The name of the Google Compute Engine + This field has been deprecated and replaced by the name field. + zone (str): Deprecated. The name of the Google Compute Engine `zone `__ in - which the cluster resides. - cluster_id (str): The name of the cluster. + which the cluster resides. This field has been deprecated and replaced + by the name field. + cluster_id (str): Deprecated. The name of the cluster. + This field has been deprecated and replaced by the name field. + name (str): The name (project, location, cluster id) of the cluster to start IP + rotation. Specified in the format 'projects/*/locations/*/clusters/\*'. + rotate_credentials (bool): Whether to rotate credentials during IP rotation. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -2188,6 +2404,8 @@ def start_i_p_rotation(self, project_id=project_id, zone=zone, cluster_id=cluster_id, + name=name, + rotate_credentials=rotate_credentials, ) return self._inner_api_calls['start_i_p_rotation']( request, retry=retry, timeout=timeout, metadata=metadata) @@ -2196,6 +2414,7 @@ def complete_i_p_rotation(self, project_id, zone, cluster_id, + name=None, retry=google.api_core.gapic_v1.method.DEFAULT, timeout=google.api_core.gapic_v1.method.DEFAULT, metadata=None): @@ -2219,12 +2438,17 @@ def complete_i_p_rotation(self, >>> response = client.complete_i_p_rotation(project_id, zone, cluster_id) Args: - project_id (str): The Google Developers Console `project ID or project + project_id (str): Deprecated. The Google Developers Console `project ID or project number `__. - zone (str): The name of the Google Compute Engine + This field has been deprecated and replaced by the name field. + zone (str): Deprecated. The name of the Google Compute Engine `zone `__ in - which the cluster resides. - cluster_id (str): The name of the cluster. + which the cluster resides. This field has been deprecated and replaced + by the name field. + cluster_id (str): Deprecated. The name of the cluster. + This field has been deprecated and replaced by the name field. + name (str): The name (project, location, cluster id) of the cluster to complete IP + rotation. Specified in the format 'projects/*/locations/*/clusters/\*'. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -2260,6 +2484,7 @@ def complete_i_p_rotation(self, project_id=project_id, zone=zone, cluster_id=cluster_id, + name=name, ) return self._inner_api_calls['complete_i_p_rotation']( request, retry=retry, timeout=timeout, metadata=metadata) @@ -2270,11 +2495,12 @@ def set_node_pool_size(self, cluster_id, node_pool_id, node_count, + name=None, retry=google.api_core.gapic_v1.method.DEFAULT, timeout=google.api_core.gapic_v1.method.DEFAULT, metadata=None): """ - Sets the size of a specific node pool. + Sets the size for a specific node pool. Example: >>> from google.cloud import container_v1 @@ -2299,14 +2525,21 @@ def set_node_pool_size(self, >>> response = client.set_node_pool_size(project_id, zone, cluster_id, node_pool_id, node_count) Args: - project_id (str): The Google Developers Console `project ID or project - number `__. - zone (str): The name of the Google Compute Engine + project_id (str): Deprecated. The Google Developers Console `project ID or project + number `__. This field + has been deprecated and replaced by the name field. + zone (str): Deprecated. The name of the Google Compute Engine `zone `__ in - which the cluster resides. - cluster_id (str): The name of the cluster to update. - node_pool_id (str): The name of the node pool to update. + which the cluster resides. This field has been deprecated and replaced + by the name field. + cluster_id (str): Deprecated. The name of the cluster to update. + This field has been deprecated and replaced by the name field. + node_pool_id (str): Deprecated. The name of the node pool to update. + This field has been deprecated and replaced by the name field. node_count (int): The desired node count for the pool. + name (str): The name (project, location, cluster, node pool id) of the node pool to + set size. Specified in the format + 'projects/*/locations/*/clusters/*/nodePools/*'. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -2344,6 +2577,7 @@ def set_node_pool_size(self, cluster_id=cluster_id, node_pool_id=node_pool_id, node_count=node_count, + name=name, ) return self._inner_api_calls['set_node_pool_size']( request, retry=retry, timeout=timeout, metadata=metadata) @@ -2353,6 +2587,7 @@ def set_network_policy(self, zone, cluster_id, network_policy, + name=None, retry=google.api_core.gapic_v1.method.DEFAULT, timeout=google.api_core.gapic_v1.method.DEFAULT, metadata=None): @@ -2379,16 +2614,22 @@ def set_network_policy(self, >>> response = client.set_network_policy(project_id, zone, cluster_id, network_policy) Args: - project_id (str): The Google Developers Console `project ID or project + project_id (str): Deprecated. The Google Developers Console `project ID or project number `__. - zone (str): The name of the Google Compute Engine + This field has been deprecated and replaced by the name field. + zone (str): Deprecated. The name of the Google Compute Engine `zone `__ in - which the cluster resides. - cluster_id (str): The name of the cluster. + which the cluster resides. This field has been deprecated and replaced + by the name field. + cluster_id (str): Deprecated. The name of the cluster. + This field has been deprecated and replaced by the name field. network_policy (Union[dict, ~google.cloud.container_v1.types.NetworkPolicy]): Configuration options for the NetworkPolicy feature. If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.container_v1.types.NetworkPolicy` + name (str): The name (project, location, cluster id) of the cluster to set + networking policy. Specified in the format + 'projects/*/locations/*/clusters/\*'. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -2425,6 +2666,7 @@ def set_network_policy(self, zone=zone, cluster_id=cluster_id, network_policy=network_policy, + name=name, ) return self._inner_api_calls['set_network_policy']( request, retry=retry, timeout=timeout, metadata=metadata) @@ -2434,6 +2676,7 @@ def set_maintenance_policy(self, zone, cluster_id, maintenance_policy, + name=None, retry=google.api_core.gapic_v1.method.DEFAULT, timeout=google.api_core.gapic_v1.method.DEFAULT, metadata=None): @@ -2471,6 +2714,9 @@ def set_maintenance_policy(self, If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.container_v1.types.MaintenancePolicy` + name (str): The name (project, location, cluster id) of the cluster to set + maintenance policy. Specified in the format + 'projects/*/locations/*/clusters/\*'. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. @@ -2507,6 +2753,7 @@ def set_maintenance_policy(self, zone=zone, cluster_id=cluster_id, maintenance_policy=maintenance_policy, + name=name, ) return self._inner_api_calls['set_maintenance_policy']( request, retry=retry, timeout=timeout, metadata=metadata) diff --git a/google/cloud/container_v1/gapic/cluster_manager_client_config.py b/google/cloud/container_v1/gapic/cluster_manager_client_config.py index dc5fcaf0..c48f8bc2 100644 --- a/google/cloud/container_v1/gapic/cluster_manager_client_config.py +++ b/google/cloud/container_v1/gapic/cluster_manager_client_config.py @@ -18,152 +18,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/google/cloud/container_v1/gapic/enums.py b/google/cloud/container_v1/gapic/enums.py index 7027fba1..19032540 100644 --- a/google/cloud/container_v1/gapic/enums.py +++ b/google/cloud/container_v1/gapic/enums.py @@ -47,6 +47,8 @@ class Status(enum.IntEnum): STOPPING (int): The STOPPING state indicates the cluster is being deleted. ERROR (int): The ERROR state indicates the cluster may be unusable. Details can be found in the ``statusMessage`` field. + DEGRADED (int): The DEGRADED state indicates the cluster requires user action to restore + full functionality. Details can be found in the ``statusMessage`` field. """ STATUS_UNSPECIFIED = 0 PROVISIONING = 1 @@ -54,6 +56,7 @@ class Status(enum.IntEnum): RECONCILING = 3 STOPPING = 4 ERROR = 5 + DEGRADED = 6 class Operation(object): diff --git a/google/cloud/container_v1/gapic/transports/cluster_manager_grpc_transport.py b/google/cloud/container_v1/gapic/transports/cluster_manager_grpc_transport.py index 823ac493..62e1c4c9 100644 --- a/google/cloud/container_v1/gapic/transports/cluster_manager_grpc_transport.py +++ b/google/cloud/container_v1/gapic/transports/cluster_manager_grpc_transport.py @@ -62,6 +62,8 @@ def __init__(self, credentials=credentials, ) + self._channel = channel + # gRPC uses objects called "stubs" that are bound to the # channel and provide a basic method for each RPC. self._stubs = { @@ -92,6 +94,15 @@ def create_channel(cls, scopes=cls._OAUTH_SCOPES, ) + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + @property def list_clusters(self): """Return the gRPC stub for {$apiMethod.name}. @@ -160,7 +171,7 @@ def update_cluster(self): def update_node_pool(self): """Return the gRPC stub for {$apiMethod.name}. - Updates the version and/or image type of a specific node pool. + Updates the version and/or image type for a specific node pool. Returns: Callable: A callable which accepts the appropriate @@ -173,7 +184,7 @@ def update_node_pool(self): def set_node_pool_autoscaling(self): """Return the gRPC stub for {$apiMethod.name}. - Sets the autoscaling settings of a specific node pool. + Sets the autoscaling settings for a specific node pool. Returns: Callable: A callable which accepts the appropriate @@ -186,7 +197,7 @@ def set_node_pool_autoscaling(self): def set_logging_service(self): """Return the gRPC stub for {$apiMethod.name}. - Sets the logging service of a specific cluster. + Sets the logging service for a specific cluster. Returns: Callable: A callable which accepts the appropriate @@ -199,7 +210,7 @@ def set_logging_service(self): def set_monitoring_service(self): """Return the gRPC stub for {$apiMethod.name}. - Sets the monitoring service of a specific cluster. + Sets the monitoring service for a specific cluster. Returns: Callable: A callable which accepts the appropriate @@ -212,7 +223,7 @@ def set_monitoring_service(self): def set_addons_config(self): """Return the gRPC stub for {$apiMethod.name}. - Sets the addons of a specific cluster. + Sets the addons for a specific cluster. Returns: Callable: A callable which accepts the appropriate @@ -225,7 +236,7 @@ def set_addons_config(self): def set_locations(self): """Return the gRPC stub for {$apiMethod.name}. - Sets the locations of a specific cluster. + Sets the locations for a specific cluster. Returns: Callable: A callable which accepts the appropriate @@ -238,7 +249,7 @@ def set_locations(self): def update_master(self): """Return the gRPC stub for {$apiMethod.name}. - Updates the master of a specific cluster. + Updates the master for a specific cluster. Returns: Callable: A callable which accepts the appropriate @@ -252,7 +263,7 @@ def set_master_auth(self): """Return the gRPC stub for {$apiMethod.name}. 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. Returns: @@ -326,7 +337,7 @@ def cancel_operation(self): def get_server_config(self): """Return the gRPC stub for {$apiMethod.name}. - Returns configuration info about the Container Engine service. + Returns configuration info about the Kubernetes Engine service. Returns: Callable: A callable which accepts the appropriate @@ -470,7 +481,7 @@ def complete_i_p_rotation(self): def set_node_pool_size(self): """Return the gRPC stub for {$apiMethod.name}. - Sets the size of a specific node pool. + Sets the size for a specific node pool. Returns: Callable: A callable which accepts the appropriate diff --git a/google/cloud/container_v1/proto/cluster_service_pb2.py b/google/cloud/container_v1/proto/cluster_service_pb2.py index 699425b4..8d70ca9f 100644 --- a/google/cloud/container_v1/proto/cluster_service_pb2.py +++ b/google/cloud/container_v1/proto/cluster_service_pb2.py @@ -22,7 +22,7 @@ name='google/cloud/container_v1/proto/cluster_service.proto', package='google.container.v1', syntax='proto3', - serialized_pb=_b('\n5google/cloud/container_v1/proto/cluster_service.proto\x12\x13google.container.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1bgoogle/protobuf/empty.proto\"\xed\x03\n\nNodeConfig\x12\x14\n\x0cmachine_type\x18\x01 \x01(\t\x12\x14\n\x0c\x64isk_size_gb\x18\x02 \x01(\x05\x12\x14\n\x0coauth_scopes\x18\x03 \x03(\t\x12\x17\n\x0fservice_account\x18\t \x01(\t\x12?\n\x08metadata\x18\x04 \x03(\x0b\x32-.google.container.v1.NodeConfig.MetadataEntry\x12\x12\n\nimage_type\x18\x05 \x01(\t\x12;\n\x06labels\x18\x06 \x03(\x0b\x32+.google.container.v1.NodeConfig.LabelsEntry\x12\x17\n\x0flocal_ssd_count\x18\x07 \x01(\x05\x12\x0c\n\x04tags\x18\x08 \x03(\t\x12\x13\n\x0bpreemptible\x18\n \x01(\x08\x12<\n\x0c\x61\x63\x63\x65lerators\x18\x0b \x03(\x0b\x32&.google.container.v1.AcceleratorConfig\x12\x18\n\x10min_cpu_platform\x18\r \x01(\t\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xd1\x01\n\nMasterAuth\x12\x10\n\x08username\x18\x01 \x01(\t\x12\x10\n\x08password\x18\x02 \x01(\t\x12O\n\x19\x63lient_certificate_config\x18\x03 \x01(\x0b\x32,.google.container.v1.ClientCertificateConfig\x12\x1e\n\x16\x63luster_ca_certificate\x18\x64 \x01(\t\x12\x1a\n\x12\x63lient_certificate\x18\x65 \x01(\t\x12\x12\n\nclient_key\x18\x66 \x01(\t\";\n\x17\x43lientCertificateConfig\x12 \n\x18issue_client_certificate\x18\x01 \x01(\x08\"\xb7\x02\n\x0c\x41\x64\x64onsConfig\x12\x43\n\x13http_load_balancing\x18\x01 \x01(\x0b\x32&.google.container.v1.HttpLoadBalancing\x12Q\n\x1ahorizontal_pod_autoscaling\x18\x02 \x01(\x0b\x32-.google.container.v1.HorizontalPodAutoscaling\x12\x46\n\x14kubernetes_dashboard\x18\x03 \x01(\x0b\x32(.google.container.v1.KubernetesDashboard\x12G\n\x15network_policy_config\x18\x04 \x01(\x0b\x32(.google.container.v1.NetworkPolicyConfig\"%\n\x11HttpLoadBalancing\x12\x10\n\x08\x64isabled\x18\x01 \x01(\x08\",\n\x18HorizontalPodAutoscaling\x12\x10\n\x08\x64isabled\x18\x01 \x01(\x08\"\'\n\x13KubernetesDashboard\x12\x10\n\x08\x64isabled\x18\x01 \x01(\x08\"\'\n\x13NetworkPolicyConfig\x12\x10\n\x08\x64isabled\x18\x01 \x01(\x08\"\xbc\x01\n\x1eMasterAuthorizedNetworksConfig\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12R\n\x0b\x63idr_blocks\x18\x02 \x03(\x0b\x32=.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock\x1a\x35\n\tCidrBlock\x12\x14\n\x0c\x64isplay_name\x18\x01 \x01(\t\x12\x12\n\ncidr_block\x18\x02 \x01(\t\"\x1d\n\nLegacyAbac\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\"\x91\x01\n\rNetworkPolicy\x12=\n\x08provider\x18\x01 \x01(\x0e\x32+.google.container.v1.NetworkPolicy.Provider\x12\x0f\n\x07\x65nabled\x18\x02 \x01(\x08\"0\n\x08Provider\x12\x18\n\x14PROVIDER_UNSPECIFIED\x10\x00\x12\n\n\x06\x43\x41LICO\x10\x01\"\xdd\x02\n\x12IPAllocationPolicy\x12\x16\n\x0euse_ip_aliases\x18\x01 \x01(\x08\x12\x19\n\x11\x63reate_subnetwork\x18\x02 \x01(\x08\x12\x17\n\x0fsubnetwork_name\x18\x03 \x01(\t\x12\x19\n\x11\x63luster_ipv4_cidr\x18\x04 \x01(\t\x12\x16\n\x0enode_ipv4_cidr\x18\x05 \x01(\t\x12\x1a\n\x12services_ipv4_cidr\x18\x06 \x01(\t\x12$\n\x1c\x63luster_secondary_range_name\x18\x07 \x01(\t\x12%\n\x1dservices_secondary_range_name\x18\x08 \x01(\t\x12\x1f\n\x17\x63luster_ipv4_cidr_block\x18\t \x01(\t\x12\x1c\n\x14node_ipv4_cidr_block\x18\n \x01(\t\x12 \n\x18services_ipv4_cidr_block\x18\x0b \x01(\t\"\xaa\x0b\n\x07\x43luster\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x1a\n\x12initial_node_count\x18\x03 \x01(\x05\x12\x34\n\x0bnode_config\x18\x04 \x01(\x0b\x32\x1f.google.container.v1.NodeConfig\x12\x34\n\x0bmaster_auth\x18\x05 \x01(\x0b\x32\x1f.google.container.v1.MasterAuth\x12\x17\n\x0flogging_service\x18\x06 \x01(\t\x12\x1a\n\x12monitoring_service\x18\x07 \x01(\t\x12\x0f\n\x07network\x18\x08 \x01(\t\x12\x19\n\x11\x63luster_ipv4_cidr\x18\t \x01(\t\x12\x38\n\raddons_config\x18\n \x01(\x0b\x32!.google.container.v1.AddonsConfig\x12\x12\n\nsubnetwork\x18\x0b \x01(\t\x12\x31\n\nnode_pools\x18\x0c \x03(\x0b\x32\x1d.google.container.v1.NodePool\x12\x11\n\tlocations\x18\r \x03(\t\x12\x1f\n\x17\x65nable_kubernetes_alpha\x18\x0e \x01(\x08\x12I\n\x0fresource_labels\x18\x0f \x03(\x0b\x32\x30.google.container.v1.Cluster.ResourceLabelsEntry\x12\x19\n\x11label_fingerprint\x18\x10 \x01(\t\x12\x34\n\x0blegacy_abac\x18\x12 \x01(\x0b\x32\x1f.google.container.v1.LegacyAbac\x12:\n\x0enetwork_policy\x18\x13 \x01(\x0b\x32\".google.container.v1.NetworkPolicy\x12\x45\n\x14ip_allocation_policy\x18\x14 \x01(\x0b\x32\'.google.container.v1.IPAllocationPolicy\x12^\n!master_authorized_networks_config\x18\x16 \x01(\x0b\x32\x33.google.container.v1.MasterAuthorizedNetworksConfig\x12\x42\n\x12maintenance_policy\x18\x17 \x01(\x0b\x32&.google.container.v1.MaintenancePolicy\x12\x11\n\tself_link\x18\x64 \x01(\t\x12\x0c\n\x04zone\x18\x65 \x01(\t\x12\x10\n\x08\x65ndpoint\x18\x66 \x01(\t\x12\x1f\n\x17initial_cluster_version\x18g \x01(\t\x12\x1e\n\x16\x63urrent_master_version\x18h \x01(\t\x12\x1c\n\x14\x63urrent_node_version\x18i \x01(\t\x12\x13\n\x0b\x63reate_time\x18j \x01(\t\x12\x33\n\x06status\x18k \x01(\x0e\x32#.google.container.v1.Cluster.Status\x12\x16\n\x0estatus_message\x18l \x01(\t\x12\x1b\n\x13node_ipv4_cidr_size\x18m \x01(\x05\x12\x1a\n\x12services_ipv4_cidr\x18n \x01(\t\x12\x1b\n\x13instance_group_urls\x18o \x03(\t\x12\x1a\n\x12\x63urrent_node_count\x18p \x01(\x05\x12\x13\n\x0b\x65xpire_time\x18q \x01(\t\x1a\x35\n\x13ResourceLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"i\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x10\n\x0cPROVISIONING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x0f\n\x0bRECONCILING\x10\x03\x12\x0c\n\x08STOPPING\x10\x04\x12\t\n\x05\x45RROR\x10\x05\"\xc1\x03\n\rClusterUpdate\x12\x1c\n\x14\x64\x65sired_node_version\x18\x04 \x01(\t\x12\"\n\x1a\x64\x65sired_monitoring_service\x18\x05 \x01(\t\x12@\n\x15\x64\x65sired_addons_config\x18\x06 \x01(\x0b\x32!.google.container.v1.AddonsConfig\x12\x1c\n\x14\x64\x65sired_node_pool_id\x18\x07 \x01(\t\x12\x1a\n\x12\x64\x65sired_image_type\x18\x08 \x01(\t\x12O\n\x1d\x64\x65sired_node_pool_autoscaling\x18\t \x01(\x0b\x32(.google.container.v1.NodePoolAutoscaling\x12\x19\n\x11\x64\x65sired_locations\x18\n \x03(\t\x12\x66\n)desired_master_authorized_networks_config\x18\x0c \x01(\x0b\x32\x33.google.container.v1.MasterAuthorizedNetworksConfig\x12\x1e\n\x16\x64\x65sired_master_version\x18\x64 \x01(\t\"\xe5\x05\n\tOperation\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04zone\x18\x02 \x01(\t\x12;\n\x0eoperation_type\x18\x03 \x01(\x0e\x32#.google.container.v1.Operation.Type\x12\x35\n\x06status\x18\x04 \x01(\x0e\x32%.google.container.v1.Operation.Status\x12\x0e\n\x06\x64\x65tail\x18\x08 \x01(\t\x12\x16\n\x0estatus_message\x18\x05 \x01(\t\x12\x11\n\tself_link\x18\x06 \x01(\t\x12\x13\n\x0btarget_link\x18\x07 \x01(\t\x12\x12\n\nstart_time\x18\n \x01(\t\x12\x10\n\x08\x65nd_time\x18\x0b \x01(\t\"R\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x08\n\x04\x44ONE\x10\x03\x12\x0c\n\x08\x41\x42ORTING\x10\x04\"\xfd\x02\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x12\n\x0e\x43REATE_CLUSTER\x10\x01\x12\x12\n\x0e\x44\x45LETE_CLUSTER\x10\x02\x12\x12\n\x0eUPGRADE_MASTER\x10\x03\x12\x11\n\rUPGRADE_NODES\x10\x04\x12\x12\n\x0eREPAIR_CLUSTER\x10\x05\x12\x12\n\x0eUPDATE_CLUSTER\x10\x06\x12\x14\n\x10\x43REATE_NODE_POOL\x10\x07\x12\x14\n\x10\x44\x45LETE_NODE_POOL\x10\x08\x12\x1c\n\x18SET_NODE_POOL_MANAGEMENT\x10\t\x12\x15\n\x11\x41UTO_REPAIR_NODES\x10\n\x12\x16\n\x12\x41UTO_UPGRADE_NODES\x10\x0b\x12\x0e\n\nSET_LABELS\x10\x0c\x12\x13\n\x0fSET_MASTER_AUTH\x10\r\x12\x16\n\x12SET_NODE_POOL_SIZE\x10\x0e\x12\x16\n\x12SET_NETWORK_POLICY\x10\x0f\x12\x1a\n\x16SET_MAINTENANCE_POLICY\x10\x10\"g\n\x14\x43reateClusterRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0c\n\x04zone\x18\x02 \x01(\t\x12-\n\x07\x63luster\x18\x03 \x01(\x0b\x32\x1c.google.container.v1.Cluster\"I\n\x11GetClusterRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0c\n\x04zone\x18\x02 \x01(\t\x12\x12\n\ncluster_id\x18\x03 \x01(\t\"\x80\x01\n\x14UpdateClusterRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0c\n\x04zone\x18\x02 \x01(\t\x12\x12\n\ncluster_id\x18\x03 \x01(\t\x12\x32\n\x06update\x18\x04 \x01(\x0b\x32\".google.container.v1.ClusterUpdate\"\x8d\x01\n\x15UpdateNodePoolRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0c\n\x04zone\x18\x02 \x01(\t\x12\x12\n\ncluster_id\x18\x03 \x01(\t\x12\x14\n\x0cnode_pool_id\x18\x04 \x01(\t\x12\x14\n\x0cnode_version\x18\x05 \x01(\t\x12\x12\n\nimage_type\x18\x06 \x01(\t\"\xaa\x01\n\x1dSetNodePoolAutoscalingRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0c\n\x04zone\x18\x02 \x01(\t\x12\x12\n\ncluster_id\x18\x03 \x01(\t\x12\x14\n\x0cnode_pool_id\x18\x04 \x01(\t\x12=\n\x0b\x61utoscaling\x18\x05 \x01(\x0b\x32(.google.container.v1.NodePoolAutoscaling\"i\n\x18SetLoggingServiceRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0c\n\x04zone\x18\x02 \x01(\t\x12\x12\n\ncluster_id\x18\x03 \x01(\t\x12\x17\n\x0flogging_service\x18\x04 \x01(\t\"o\n\x1bSetMonitoringServiceRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0c\n\x04zone\x18\x02 \x01(\t\x12\x12\n\ncluster_id\x18\x03 \x01(\t\x12\x1a\n\x12monitoring_service\x18\x04 \x01(\t\"\x88\x01\n\x16SetAddonsConfigRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0c\n\x04zone\x18\x02 \x01(\t\x12\x12\n\ncluster_id\x18\x03 \x01(\t\x12\x38\n\raddons_config\x18\x04 \x01(\x0b\x32!.google.container.v1.AddonsConfig\"^\n\x13SetLocationsRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0c\n\x04zone\x18\x02 \x01(\t\x12\x12\n\ncluster_id\x18\x03 \x01(\t\x12\x11\n\tlocations\x18\x04 \x03(\t\"c\n\x13UpdateMasterRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0c\n\x04zone\x18\x02 \x01(\t\x12\x12\n\ncluster_id\x18\x03 \x01(\t\x12\x16\n\x0emaster_version\x18\x04 \x01(\t\"\x91\x02\n\x14SetMasterAuthRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0c\n\x04zone\x18\x02 \x01(\t\x12\x12\n\ncluster_id\x18\x03 \x01(\t\x12@\n\x06\x61\x63tion\x18\x04 \x01(\x0e\x32\x30.google.container.v1.SetMasterAuthRequest.Action\x12/\n\x06update\x18\x05 \x01(\x0b\x32\x1f.google.container.v1.MasterAuth\"P\n\x06\x41\x63tion\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x10\n\x0cSET_PASSWORD\x10\x01\x12\x15\n\x11GENERATE_PASSWORD\x10\x02\x12\x10\n\x0cSET_USERNAME\x10\x03\"L\n\x14\x44\x65leteClusterRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0c\n\x04zone\x18\x02 \x01(\t\x12\x12\n\ncluster_id\x18\x03 \x01(\t\"7\n\x13ListClustersRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0c\n\x04zone\x18\x02 \x01(\t\"]\n\x14ListClustersResponse\x12.\n\x08\x63lusters\x18\x01 \x03(\x0b\x32\x1c.google.container.v1.Cluster\x12\x15\n\rmissing_zones\x18\x02 \x03(\t\"M\n\x13GetOperationRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0c\n\x04zone\x18\x02 \x01(\t\x12\x14\n\x0coperation_id\x18\x03 \x01(\t\"9\n\x15ListOperationsRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0c\n\x04zone\x18\x02 \x01(\t\"P\n\x16\x43\x61ncelOperationRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0c\n\x04zone\x18\x02 \x01(\t\x12\x14\n\x0coperation_id\x18\x03 \x01(\t\"c\n\x16ListOperationsResponse\x12\x32\n\noperations\x18\x01 \x03(\x0b\x32\x1e.google.container.v1.Operation\x12\x15\n\rmissing_zones\x18\x02 \x03(\t\":\n\x16GetServerConfigRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0c\n\x04zone\x18\x02 \x01(\t\"\xa2\x01\n\x0cServerConfig\x12\x1f\n\x17\x64\x65\x66\x61ult_cluster_version\x18\x01 \x01(\t\x12\x1b\n\x13valid_node_versions\x18\x03 \x03(\t\x12\x1a\n\x12\x64\x65\x66\x61ult_image_type\x18\x04 \x01(\t\x12\x19\n\x11valid_image_types\x18\x05 \x03(\t\x12\x1d\n\x15valid_master_versions\x18\x06 \x03(\t\"\x7f\n\x15\x43reateNodePoolRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0c\n\x04zone\x18\x02 \x01(\t\x12\x12\n\ncluster_id\x18\x03 \x01(\t\x12\x30\n\tnode_pool\x18\x04 \x01(\x0b\x32\x1d.google.container.v1.NodePool\"c\n\x15\x44\x65leteNodePoolRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0c\n\x04zone\x18\x02 \x01(\t\x12\x12\n\ncluster_id\x18\x03 \x01(\t\x12\x14\n\x0cnode_pool_id\x18\x04 \x01(\t\"L\n\x14ListNodePoolsRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0c\n\x04zone\x18\x02 \x01(\t\x12\x12\n\ncluster_id\x18\x03 \x01(\t\"`\n\x12GetNodePoolRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0c\n\x04zone\x18\x02 \x01(\t\x12\x12\n\ncluster_id\x18\x03 \x01(\t\x12\x14\n\x0cnode_pool_id\x18\x04 \x01(\t\"\xf0\x03\n\x08NodePool\x12\x0c\n\x04name\x18\x01 \x01(\t\x12/\n\x06\x63onfig\x18\x02 \x01(\x0b\x32\x1f.google.container.v1.NodeConfig\x12\x1a\n\x12initial_node_count\x18\x03 \x01(\x05\x12\x11\n\tself_link\x18\x64 \x01(\t\x12\x0f\n\x07version\x18\x65 \x01(\t\x12\x1b\n\x13instance_group_urls\x18\x66 \x03(\t\x12\x34\n\x06status\x18g \x01(\x0e\x32$.google.container.v1.NodePool.Status\x12\x16\n\x0estatus_message\x18h \x01(\t\x12=\n\x0b\x61utoscaling\x18\x04 \x01(\x0b\x32(.google.container.v1.NodePoolAutoscaling\x12\x37\n\nmanagement\x18\x05 \x01(\x0b\x32#.google.container.v1.NodeManagement\"\x81\x01\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x10\n\x0cPROVISIONING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x16\n\x12RUNNING_WITH_ERROR\x10\x03\x12\x0f\n\x0bRECONCILING\x10\x04\x12\x0c\n\x08STOPPING\x10\x05\x12\t\n\x05\x45RROR\x10\x06\"}\n\x0eNodeManagement\x12\x14\n\x0c\x61uto_upgrade\x18\x01 \x01(\x08\x12\x13\n\x0b\x61uto_repair\x18\x02 \x01(\x08\x12@\n\x0fupgrade_options\x18\n \x01(\x0b\x32\'.google.container.v1.AutoUpgradeOptions\"J\n\x12\x41utoUpgradeOptions\x12\x1f\n\x17\x61uto_upgrade_start_time\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\"K\n\x11MaintenancePolicy\x12\x36\n\x06window\x18\x01 \x01(\x0b\x32&.google.container.v1.MaintenanceWindow\"n\n\x11MaintenanceWindow\x12O\n\x18\x64\x61ily_maintenance_window\x18\x02 \x01(\x0b\x32+.google.container.v1.DailyMaintenanceWindowH\x00\x42\x08\n\x06policy\">\n\x16\x44\x61ilyMaintenanceWindow\x12\x12\n\nstart_time\x18\x02 \x01(\t\x12\x10\n\x08\x64uration\x18\x03 \x01(\t\"\xa3\x01\n\x1cSetNodePoolManagementRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0c\n\x04zone\x18\x02 \x01(\t\x12\x12\n\ncluster_id\x18\x03 \x01(\t\x12\x14\n\x0cnode_pool_id\x18\x04 \x01(\t\x12\x37\n\nmanagement\x18\x05 \x01(\x0b\x32#.google.container.v1.NodeManagement\"x\n\x16SetNodePoolSizeRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0c\n\x04zone\x18\x02 \x01(\t\x12\x12\n\ncluster_id\x18\x03 \x01(\t\x12\x14\n\x0cnode_pool_id\x18\x04 \x01(\t\x12\x12\n\nnode_count\x18\x05 \x01(\x05\"l\n\x1eRollbackNodePoolUpgradeRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0c\n\x04zone\x18\x02 \x01(\t\x12\x12\n\ncluster_id\x18\x03 \x01(\t\x12\x14\n\x0cnode_pool_id\x18\x04 \x01(\t\"J\n\x15ListNodePoolsResponse\x12\x31\n\nnode_pools\x18\x01 \x03(\x0b\x32\x1d.google.container.v1.NodePool\"V\n\x13NodePoolAutoscaling\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x16\n\x0emin_node_count\x18\x02 \x01(\x05\x12\x16\n\x0emax_node_count\x18\x03 \x01(\x05\"\xee\x01\n\x10SetLabelsRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0c\n\x04zone\x18\x02 \x01(\t\x12\x12\n\ncluster_id\x18\x03 \x01(\t\x12R\n\x0fresource_labels\x18\x04 \x03(\x0b\x32\x39.google.container.v1.SetLabelsRequest.ResourceLabelsEntry\x12\x19\n\x11label_fingerprint\x18\x05 \x01(\t\x1a\x35\n\x13ResourceLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"]\n\x14SetLegacyAbacRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0c\n\x04zone\x18\x02 \x01(\t\x12\x12\n\ncluster_id\x18\x03 \x01(\t\x12\x0f\n\x07\x65nabled\x18\x04 \x01(\x08\"N\n\x16StartIPRotationRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0c\n\x04zone\x18\x02 \x01(\t\x12\x12\n\ncluster_id\x18\x03 \x01(\t\"Q\n\x19\x43ompleteIPRotationRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0c\n\x04zone\x18\x02 \x01(\t\x12\x12\n\ncluster_id\x18\x03 \x01(\t\"H\n\x11\x41\x63\x63\x65leratorConfig\x12\x19\n\x11\x61\x63\x63\x65lerator_count\x18\x01 \x01(\x03\x12\x18\n\x10\x61\x63\x63\x65lerator_type\x18\x02 \x01(\t\"\x8b\x01\n\x17SetNetworkPolicyRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0c\n\x04zone\x18\x02 \x01(\t\x12\x12\n\ncluster_id\x18\x03 \x01(\t\x12:\n\x0enetwork_policy\x18\x04 \x01(\x0b\x32\".google.container.v1.NetworkPolicy\"\x97\x01\n\x1bSetMaintenancePolicyRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0c\n\x04zone\x18\x02 \x01(\t\x12\x12\n\ncluster_id\x18\x03 \x01(\t\x12\x42\n\x12maintenance_policy\x18\x04 \x01(\x0b\x32&.google.container.v1.MaintenancePolicy2\xe3*\n\x0e\x43lusterManager\x12\x9c\x01\n\x0cListClusters\x12(.google.container.v1.ListClustersRequest\x1a).google.container.v1.ListClustersResponse\"7\x82\xd3\xe4\x93\x02\x31\x12//v1/projects/{project_id}/zones/{zone}/clusters\x12\x98\x01\n\nGetCluster\x12&.google.container.v1.GetClusterRequest\x1a\x1c.google.container.v1.Cluster\"D\x82\xd3\xe4\x93\x02>\x12*\n\x16\x44\x61ilyMaintenanceWindow\x12\x12\n\nstart_time\x18\x02 \x01(\t\x12\x10\n\x08\x64uration\x18\x03 \x01(\t\"\xc1\x01\n\x1cSetNodePoolManagementRequest\x12\x16\n\nproject_id\x18\x01 \x01(\tB\x02\x18\x01\x12\x10\n\x04zone\x18\x02 \x01(\tB\x02\x18\x01\x12\x16\n\ncluster_id\x18\x03 \x01(\tB\x02\x18\x01\x12\x18\n\x0cnode_pool_id\x18\x04 \x01(\tB\x02\x18\x01\x12\x37\n\nmanagement\x18\x05 \x01(\x0b\x32#.google.container.v1.NodeManagement\x12\x0c\n\x04name\x18\x07 \x01(\t\"\x96\x01\n\x16SetNodePoolSizeRequest\x12\x16\n\nproject_id\x18\x01 \x01(\tB\x02\x18\x01\x12\x10\n\x04zone\x18\x02 \x01(\tB\x02\x18\x01\x12\x16\n\ncluster_id\x18\x03 \x01(\tB\x02\x18\x01\x12\x18\n\x0cnode_pool_id\x18\x04 \x01(\tB\x02\x18\x01\x12\x12\n\nnode_count\x18\x05 \x01(\x05\x12\x0c\n\x04name\x18\x07 \x01(\t\"\x8a\x01\n\x1eRollbackNodePoolUpgradeRequest\x12\x16\n\nproject_id\x18\x01 \x01(\tB\x02\x18\x01\x12\x10\n\x04zone\x18\x02 \x01(\tB\x02\x18\x01\x12\x16\n\ncluster_id\x18\x03 \x01(\tB\x02\x18\x01\x12\x18\n\x0cnode_pool_id\x18\x04 \x01(\tB\x02\x18\x01\x12\x0c\n\x04name\x18\x06 \x01(\t\"J\n\x15ListNodePoolsResponse\x12\x31\n\nnode_pools\x18\x01 \x03(\x0b\x32\x1d.google.container.v1.NodePool\"V\n\x13NodePoolAutoscaling\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x16\n\x0emin_node_count\x18\x02 \x01(\x05\x12\x16\n\x0emax_node_count\x18\x03 \x01(\x05\"\x88\x02\n\x10SetLabelsRequest\x12\x16\n\nproject_id\x18\x01 \x01(\tB\x02\x18\x01\x12\x10\n\x04zone\x18\x02 \x01(\tB\x02\x18\x01\x12\x16\n\ncluster_id\x18\x03 \x01(\tB\x02\x18\x01\x12R\n\x0fresource_labels\x18\x04 \x03(\x0b\x32\x39.google.container.v1.SetLabelsRequest.ResourceLabelsEntry\x12\x19\n\x11label_fingerprint\x18\x05 \x01(\t\x12\x0c\n\x04name\x18\x07 \x01(\t\x1a\x35\n\x13ResourceLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"w\n\x14SetLegacyAbacRequest\x12\x16\n\nproject_id\x18\x01 \x01(\tB\x02\x18\x01\x12\x10\n\x04zone\x18\x02 \x01(\tB\x02\x18\x01\x12\x16\n\ncluster_id\x18\x03 \x01(\tB\x02\x18\x01\x12\x0f\n\x07\x65nabled\x18\x04 \x01(\x08\x12\x0c\n\x04name\x18\x06 \x01(\t\"\x84\x01\n\x16StartIPRotationRequest\x12\x16\n\nproject_id\x18\x01 \x01(\tB\x02\x18\x01\x12\x10\n\x04zone\x18\x02 \x01(\tB\x02\x18\x01\x12\x16\n\ncluster_id\x18\x03 \x01(\tB\x02\x18\x01\x12\x0c\n\x04name\x18\x06 \x01(\t\x12\x1a\n\x12rotate_credentials\x18\x07 \x01(\x08\"k\n\x19\x43ompleteIPRotationRequest\x12\x16\n\nproject_id\x18\x01 \x01(\tB\x02\x18\x01\x12\x10\n\x04zone\x18\x02 \x01(\tB\x02\x18\x01\x12\x16\n\ncluster_id\x18\x03 \x01(\tB\x02\x18\x01\x12\x0c\n\x04name\x18\x07 \x01(\t\"H\n\x11\x41\x63\x63\x65leratorConfig\x12\x19\n\x11\x61\x63\x63\x65lerator_count\x18\x01 \x01(\x03\x12\x18\n\x10\x61\x63\x63\x65lerator_type\x18\x02 \x01(\t\"\xa5\x01\n\x17SetNetworkPolicyRequest\x12\x16\n\nproject_id\x18\x01 \x01(\tB\x02\x18\x01\x12\x10\n\x04zone\x18\x02 \x01(\tB\x02\x18\x01\x12\x16\n\ncluster_id\x18\x03 \x01(\tB\x02\x18\x01\x12:\n\x0enetwork_policy\x18\x04 \x01(\x0b\x32\".google.container.v1.NetworkPolicy\x12\x0c\n\x04name\x18\x06 \x01(\t\"\xa5\x01\n\x1bSetMaintenancePolicyRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0c\n\x04zone\x18\x02 \x01(\t\x12\x12\n\ncluster_id\x18\x03 \x01(\t\x12\x42\n\x12maintenance_policy\x18\x04 \x01(\x0b\x32&.google.container.v1.MaintenancePolicy\x12\x0c\n\x04name\x18\x05 \x01(\t\"4\n\rNetworkConfig\x12\x0f\n\x07network\x18\x01 \x01(\t\x12\x12\n\nsubnetwork\x18\x02 \x01(\t2\xcb\x39\n\x0e\x43lusterManager\x12\xcc\x01\n\x0cListClusters\x12(.google.container.v1.ListClustersRequest\x1a).google.container.v1.ListClustersResponse\"g\x82\xd3\xe4\x93\x02\x61\x12,/v1/{parent=projects/*/locations/*}/clustersZ1\x12//v1/projects/{project_id}/zones/{zone}/clusters\x12\xc8\x01\n\nGetCluster\x12&.google.container.v1.GetClusterRequest\x1a\x1c.google.container.v1.Cluster\"t\x82\xd3\xe4\x93\x02n\x12,/v1/{name=projects/*/locations/*/clusters/*}Z>\x12*/v1/{name=projects/*/locations/*/clusters/*}:setResourceLabels:\x01*ZP\"K/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/resourceLabels:\x01*\x12\xf1\x01\n\rSetLegacyAbac\x12).google.container.v1.SetLegacyAbacRequest\x1a\x1e.google.container.v1.Operation\"\x94\x01\x82\xd3\xe4\x93\x02\x8d\x01\":/v1/{name=projects/*/locations/*/clusters/*}:setLegacyAbac:\x01*ZL\"G/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/legacyAbac:\x01*\x12\xfc\x01\n\x0fStartIPRotation\x12+.google.container.v1.StartIPRotationRequest\x1a\x1e.google.container.v1.Operation\"\x9b\x01\x82\xd3\xe4\x93\x02\x94\x01\"`__ in which the cluster - resides. + resides. This field is deprecated, use location instead. endpoint: [Output only] The IP address of this cluster's master endpoint. The endpoint can be accessed from the internet at @@ -4207,12 +4605,21 @@ versions are those found in validMasterVersions returned by getServerConfig. The version can be upgraded over time; such upgrades are reflected in currentMasterVersion and - currentNodeVersion. + 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 current_master_version: [Output only] The current software version of the master endpoint. current_node_version: - [Output only] The current version of the node software + [Output only] Deprecated, use `NodePool.version `__ + 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. @@ -4243,6 +4650,11 @@ [Output only] The time the cluster will be automatically deleted in `RFC3339 `__ text format. + location: + [Output only] The name of the Google Compute Engine `zone + `__ or + `region `__ in which the cluster resides. """, # @@protoc_insertion_point(class_scope:google.container.v1.Cluster) )) @@ -4261,8 +4673,14 @@ Attributes: desired_node_version: 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 desired_monitoring_service: The monitoring service the cluster should use to write metrics. Currently available options: - @@ -4294,12 +4712,17 @@ removed. This list must always include the cluster's primary zone. desired_master_authorized_networks_config: - Master authorized networks is a Beta feature. The desired - configuration options for master authorized networks feature. + The desired configuration options for master authorized + networks feature. desired_master_version: - 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 """, # @@protoc_insertion_point(class_scope:google.container.v1.ClusterUpdate) )) @@ -4319,7 +4742,7 @@ zone: The name of the Google Compute Engine `zone `__ in which the operation is - taking place. + taking place. This field is deprecated, use location instead. operation_type: The operation type. status: @@ -4332,6 +4755,11 @@ Server-defined URL for the resource. target_link: Server-defined URL for the target of the operation. + location: + [Output only] The name of the Google Compute Engine `zone + `__ or + `region `__ in which the cluster resides. start_time: [Output only] The time the operation started, in `RFC3339 `__ text format. @@ -4352,15 +4780,21 @@ Attributes: project_id: - The Google Developers Console `project ID or project number - `__. + Deprecated. The Google Developers Console `project ID or + project number + `__. This + field has been deprecated and replaced by the parent field. zone: - The name of the Google Compute Engine `zone + Deprecated. The name of the Google Compute Engine `zone `__ in which the cluster - resides. + resides. This field has been deprecated and replaced by the + parent field. cluster: A `cluster resource `__ + parent: + The parent (project and location) where the cluster will be + created. Specified in the format 'projects/*/locations/*'. """, # @@protoc_insertion_point(class_scope:google.container.v1.CreateClusterRequest) )) @@ -4375,14 +4809,22 @@ Attributes: project_id: - The Google Developers Console `project ID or project number - `__. + Deprecated. The Google Developers Console `project ID or + project number + `__. This + field has been deprecated and replaced by the name field. zone: - The name of the Google Compute Engine `zone + Deprecated. The name of the Google Compute Engine `zone `__ in which the cluster - resides. + resides. This field has been deprecated and replaced by the + name field. cluster_id: - 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. + name: + The name (project, location, cluster) of the cluster to + retrieve. Specified in the format + 'projects/*/locations/*/clusters/\*'. """, # @@protoc_insertion_point(class_scope:google.container.v1.GetClusterRequest) )) @@ -4397,16 +4839,24 @@ Attributes: project_id: - The Google Developers Console `project ID or project number - `__. + Deprecated. The Google Developers Console `project ID or + project number + `__. This + field has been deprecated and replaced by the name field. zone: - The name of the Google Compute Engine `zone + Deprecated. The name of the Google Compute Engine `zone `__ in which the cluster - resides. + resides. This field has been deprecated and replaced by the + name field. cluster_id: - 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. update: A description of the update. + name: + The name (project, location, cluster) of the cluster to + update. Specified in the format + 'projects/*/locations/*/clusters/\*'. """, # @@protoc_insertion_point(class_scope:google.container.v1.UpdateClusterRequest) )) @@ -4421,22 +4871,37 @@ Attributes: project_id: - The Google Developers Console `project ID or project number - `__. + Deprecated. The Google Developers Console `project ID or + project number + `__. This + field has been deprecated and replaced by the name field. zone: - The name of the Google Compute Engine `zone + Deprecated. The name of the Google Compute Engine `zone `__ in which the cluster - resides. + resides. This field has been deprecated and replaced by the + name field. cluster_id: - 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. node_pool_id: - 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. node_version: 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 image_type: The desired image type for the node pool. + name: + The name (project, location, cluster, node pool) of the node + pool to update. Specified in the format + 'projects/*/locations/*/clusters/*/nodePools/*'. """, # @@protoc_insertion_point(class_scope:google.container.v1.UpdateNodePoolRequest) )) @@ -4452,18 +4917,27 @@ Attributes: project_id: - The Google Developers Console `project ID or project number - `__. + Deprecated. The Google Developers Console `project ID or + project number + `__. This + field has been deprecated and replaced by the name field. zone: - The name of the Google Compute Engine `zone + Deprecated. The name of the Google Compute Engine `zone `__ in which the cluster - resides. + resides. This field has been deprecated and replaced by the + name field. cluster_id: - 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. node_pool_id: - 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. autoscaling: Autoscaling configuration for the node pool. + name: + The name (project, location, cluster, node pool) of the node + pool to set autoscaler settings. Specified in the format + 'projects/*/locations/*/clusters/*/nodePools/*'. """, # @@protoc_insertion_point(class_scope:google.container.v1.SetNodePoolAutoscalingRequest) )) @@ -4478,19 +4952,27 @@ Attributes: project_id: - The Google Developers Console `project ID or project number - `__. + Deprecated. The Google Developers Console `project ID or + project number + `__. This + field has been deprecated and replaced by the name field. zone: - The name of the Google Compute Engine `zone + Deprecated. The name of the Google Compute Engine `zone `__ in which the cluster - resides. + resides. This field has been deprecated and replaced by the + name field. cluster_id: - 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. logging_service: 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 + name: + The name (project, location, cluster) of the cluster to set + logging. Specified in the format + 'projects/*/locations/*/clusters/\*'. """, # @@protoc_insertion_point(class_scope:google.container.v1.SetLoggingServiceRequest) )) @@ -4505,20 +4987,28 @@ Attributes: project_id: - The Google Developers Console `project ID or project number - `__. + Deprecated. The Google Developers Console `project ID or + project number + `__. This + field has been deprecated and replaced by the name field. zone: - The name of the Google Compute Engine `zone + Deprecated. The name of the Google Compute Engine `zone `__ in which the cluster - resides. + resides. This field has been deprecated and replaced by the + name field. cluster_id: - 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. monitoring_service: 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 + name: + The name (project, location, cluster) of the cluster to set + monitoring. Specified in the format + 'projects/*/locations/*/clusters/\*'. """, # @@protoc_insertion_point(class_scope:google.container.v1.SetMonitoringServiceRequest) )) @@ -4533,17 +5023,25 @@ Attributes: project_id: - The Google Developers Console `project ID or project number - `__. + Deprecated. The Google Developers Console `project ID or + project number + `__. This + field has been deprecated and replaced by the name field. zone: - The name of the Google Compute Engine `zone + Deprecated. The name of the Google Compute Engine `zone `__ in which the cluster - resides. + resides. This field has been deprecated and replaced by the + name field. cluster_id: - 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. addons_config: The desired configurations for the various addons available to run in the cluster. + name: + The name (project, location, cluster) of the cluster to set + addons. Specified in the format + 'projects/*/locations/*/clusters/\*'. """, # @@protoc_insertion_point(class_scope:google.container.v1.SetAddonsConfigRequest) )) @@ -4558,14 +5056,18 @@ Attributes: project_id: - The Google Developers Console `project ID or project number - `__. + Deprecated. The Google Developers Console `project ID or + project number + `__. This + field has been deprecated and replaced by the name field. zone: - The name of the Google Compute Engine `zone + Deprecated. The name of the Google Compute Engine `zone `__ in which the cluster - resides. + resides. This field has been deprecated and replaced by the + name field. cluster_id: - 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. locations: The desired list of Google Compute Engine `locations `__ in which the cluster's @@ -4574,6 +5076,10 @@ the cluster, depending on whether locations are being added or removed. This list must always include the cluster's primary zone. + name: + The name (project, location, cluster) of the cluster to set + locations. Specified in the format + 'projects/*/locations/*/clusters/\*'. """, # @@protoc_insertion_point(class_scope:google.container.v1.SetLocationsRequest) )) @@ -4588,18 +5094,31 @@ Attributes: project_id: - The Google Developers Console `project ID or project number - `__. + Deprecated. The Google Developers Console `project ID or + project number + `__. This + field has been deprecated and replaced by the name field. zone: - The name of the Google Compute Engine `zone + Deprecated. The name of the Google Compute Engine `zone `__ in which the cluster - resides. + resides. This field has been deprecated and replaced by the + name field. cluster_id: - 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. master_version: - 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 + name: + The name (project, location, cluster) of the cluster to + update. Specified in the format + 'projects/*/locations/*/clusters/\*'. """, # @@protoc_insertion_point(class_scope:google.container.v1.UpdateMasterRequest) )) @@ -4614,18 +5133,26 @@ Attributes: project_id: - The Google Developers Console `project ID or project number - `__. + Deprecated. The Google Developers Console `project ID or + project number + `__. This + field has been deprecated and replaced by the name field. zone: - The name of the Google Compute Engine `zone + Deprecated. The name of the Google Compute Engine `zone `__ in which the cluster - resides. + resides. This field has been deprecated and replaced by the + name field. cluster_id: - 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. action: The exact form of action to be taken on the master auth. update: A description of the update. + name: + The name (project, location, cluster) of the cluster to set + auth. Specified in the format + 'projects/*/locations/*/clusters/\*'. """, # @@protoc_insertion_point(class_scope:google.container.v1.SetMasterAuthRequest) )) @@ -4640,14 +5167,22 @@ Attributes: project_id: - The Google Developers Console `project ID or project number - `__. + Deprecated. The Google Developers Console `project ID or + project number + `__. This + field has been deprecated and replaced by the name field. zone: - The name of the Google Compute Engine `zone + Deprecated. The name of the Google Compute Engine `zone `__ in which the cluster - resides. + resides. This field has been deprecated and replaced by the + name field. cluster_id: - 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. + name: + The name (project, location, cluster) of the cluster to + delete. Specified in the format + 'projects/*/locations/*/clusters/\*'. """, # @@protoc_insertion_point(class_scope:google.container.v1.DeleteClusterRequest) )) @@ -4662,12 +5197,19 @@ Attributes: project_id: - The Google Developers Console `project ID or project number - `__. + Deprecated. The Google Developers Console `project ID or + project number + `__. This + field has been deprecated and replaced by the parent field. zone: - The name of the Google Compute Engine `zone + Deprecated. The name of the Google Compute Engine `zone `__ in which the cluster - resides, or "-" for all zones. + resides, or "-" for all zones. This field has been deprecated + and replaced by the parent field. + 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. """, # @@protoc_insertion_point(class_scope:google.container.v1.ListClustersRequest) )) @@ -4701,14 +5243,22 @@ Attributes: project_id: - The Google Developers Console `project ID or project number - `__. + Deprecated. The Google Developers Console `project ID or + project number + `__. This + field has been deprecated and replaced by the name field. zone: - The name of the Google Compute Engine `zone + Deprecated. The name of the Google Compute Engine `zone `__ in which the cluster - resides. + resides. This field has been deprecated and replaced by the + name field. operation_id: - 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. + name: + The name (project, location, operation id) of the operation to + get. Specified in the format + 'projects/*/locations/*/operations/\*'. """, # @@protoc_insertion_point(class_scope:google.container.v1.GetOperationRequest) )) @@ -4723,12 +5273,19 @@ Attributes: project_id: - The Google Developers Console `project ID or project number - `__. + Deprecated. The Google Developers Console `project ID or + project number + `__. This + field has been deprecated and replaced by the parent field. zone: - The name of the Google Compute Engine `zone + Deprecated. The name of the Google Compute Engine `zone `__ to return operations for, - or ``-`` for all zones. + or ``-`` for all zones. This field has been deprecated and + replaced by the parent field. + 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. """, # @@protoc_insertion_point(class_scope:google.container.v1.ListOperationsRequest) )) @@ -4743,14 +5300,22 @@ Attributes: project_id: - The Google Developers Console `project ID or project number - `__. + Deprecated. The Google Developers Console `project ID or + project number + `__. This + field has been deprecated and replaced by the name field. zone: - The name of the Google Compute Engine `zone + Deprecated. The name of the Google Compute Engine `zone `__ in which the operation - resides. + resides. This field has been deprecated and replaced by the + name field. operation_id: - 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. + name: + The name (project, location, operation id) of the operation to + cancel. Specified in the format + 'projects/*/locations/*/operations/\*'. """, # @@protoc_insertion_point(class_scope:google.container.v1.CancelOperationRequest) )) @@ -4778,16 +5343,22 @@ DESCRIPTOR = _GETSERVERCONFIGREQUEST, __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' , - __doc__ = """Gets the current Container Engine service configuration. + __doc__ = """Gets the current Kubernetes Engine service configuration. Attributes: project_id: - The Google Developers Console `project ID or project number - `__. + Deprecated. The Google Developers Console `project ID or + project number + `__. This + field has been deprecated and replaced by the name field. zone: - The name of the Google Compute Engine `zone + Deprecated. The name of the Google Compute Engine `zone `__ to return operations for. + This field has been deprecated and replaced by the name field. + name: + The name (project and location) of the server config to get + Specified in the format 'projects/*/locations/*'. """, # @@protoc_insertion_point(class_scope:google.container.v1.GetServerConfigRequest) )) @@ -4797,7 +5368,7 @@ DESCRIPTOR = _SERVERCONFIG, __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' , - __doc__ = """Container Engine service configuration. + __doc__ = """Kubernetes Engine service configuration. Attributes: @@ -4825,17 +5396,24 @@ Attributes: project_id: - The Google Developers Console `project ID or project number ` - __. + Deprecated. The Google Developers Console `project ID or + project number `__. This field has been deprecated and + replaced by the parent field. zone: - The name of the Google Compute Engine `zone + Deprecated. The name of the Google Compute Engine `zone `__ in which the cluster - resides. + resides. This field has been deprecated and replaced by the + parent field. cluster_id: - The name of the cluster. + Deprecated. The name of the cluster. This field has been + deprecated and replaced by the parent field. node_pool: The node pool to create. + parent: + The parent (project, location, cluster id) where the node pool + will be created. Specified in the format + 'projects/*/locations/*/clusters/\*'. """, # @@protoc_insertion_point(class_scope:google.container.v1.CreateNodePoolRequest) )) @@ -4850,17 +5428,25 @@ Attributes: project_id: - The Google Developers Console `project ID or project number ` - __. + Deprecated. The Google Developers Console `project ID or + project number `__. This field has been deprecated and + replaced by the name field. zone: - The name of the Google Compute Engine `zone + Deprecated. The name of the Google Compute Engine `zone `__ in which the cluster - resides. + resides. This field has been deprecated and replaced by the + name field. cluster_id: - The name of the cluster. + Deprecated. The name of the cluster. This field has been + deprecated and replaced by the name field. node_pool_id: - 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. + name: + The name (project, location, cluster, node pool id) of the + node pool to delete. Specified in the format + 'projects/*/locations/*/clusters/*/nodePools/*'. """, # @@protoc_insertion_point(class_scope:google.container.v1.DeleteNodePoolRequest) )) @@ -4875,15 +5461,22 @@ Attributes: project_id: - The Google Developers Console `project ID or project number ` - __. + Deprecated. The Google Developers Console `project ID or + project number `__. This field has been deprecated and + replaced by the parent field. zone: - The name of the Google Compute Engine `zone + Deprecated. The name of the Google Compute Engine `zone `__ in which the cluster - resides. + resides. This field has been deprecated and replaced by the + parent field. cluster_id: - The name of the cluster. + Deprecated. The name of the cluster. This field has been + deprecated and replaced by the parent field. + parent: + The parent (project, location, cluster id) where the node + pools will be listed. Specified in the format + 'projects/*/locations/*/clusters/\*'. """, # @@protoc_insertion_point(class_scope:google.container.v1.ListNodePoolsRequest) )) @@ -4898,17 +5491,25 @@ Attributes: project_id: - The Google Developers Console `project ID or project number ` - __. + Deprecated. The Google Developers Console `project ID or + project number `__. This field has been deprecated and + replaced by the name field. zone: - The name of the Google Compute Engine `zone + Deprecated. The name of the Google Compute Engine `zone `__ in which the cluster - resides. + resides. This field has been deprecated and replaced by the + name field. cluster_id: - The name of the cluster. + Deprecated. The name of the cluster. This field has been + deprecated and replaced by the name field. node_pool_id: - The name of the node pool. + Deprecated. The name of the node pool. This field has been + deprecated and replaced by the name field. + name: + The name (project, location, cluster, node pool id) of the + node pool to get. Specified in the format + 'projects/*/locations/*/clusters/*/nodePools/*'. """, # @@protoc_insertion_point(class_scope:google.container.v1.GetNodePoolRequest) )) @@ -5074,18 +5675,27 @@ Attributes: project_id: - The Google Developers Console `project ID or project number - `__. + Deprecated. The Google Developers Console `project ID or + project number + `__. This + field has been deprecated and replaced by the name field. zone: - The name of the Google Compute Engine `zone + Deprecated. The name of the Google Compute Engine `zone `__ in which the cluster - resides. + resides. This field has been deprecated and replaced by the + name field. cluster_id: - 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. node_pool_id: - 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. management: NodeManagement configuration for the node pool. + 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/*'. """, # @@protoc_insertion_point(class_scope:google.container.v1.SetNodePoolManagementRequest) )) @@ -5100,18 +5710,27 @@ Attributes: project_id: - The Google Developers Console `project ID or project number - `__. + Deprecated. The Google Developers Console `project ID or + project number + `__. This + field has been deprecated and replaced by the name field. zone: - The name of the Google Compute Engine `zone + Deprecated. The name of the Google Compute Engine `zone `__ in which the cluster - resides. + resides. This field has been deprecated and replaced by the + name field. cluster_id: - 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. node_pool_id: - 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. node_count: The desired node count for the pool. + name: + The name (project, location, cluster, node pool id) of the + node pool to set size. Specified in the format + 'projects/*/locations/*/clusters/*/nodePools/*'. """, # @@protoc_insertion_point(class_scope:google.container.v1.SetNodePoolSizeRequest) )) @@ -5128,16 +5747,25 @@ Attributes: project_id: - The Google Developers Console `project ID or project number - `__. + Deprecated. The Google Developers Console `project ID or + project number + `__. This + field has been deprecated and replaced by the name field. zone: - The name of the Google Compute Engine `zone + Deprecated. The name of the Google Compute Engine `zone `__ in which the cluster - resides. + resides. This field has been deprecated and replaced by the + name field. cluster_id: - 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. node_pool_id: - 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. + name: + The name (project, location, cluster, node pool id) of the + node poll to rollback upgrade. Specified in the format + 'projects/*/locations/*/clusters/*/nodePools/*'. """, # @@protoc_insertion_point(class_scope:google.container.v1.RollbackNodePoolUpgradeRequest) )) @@ -5199,25 +5827,32 @@ Attributes: project_id: - The Google Developers Console `project ID or project number ` - __. + Deprecated. The Google Developers Console `project ID or + project number `__. This field has been deprecated and + replaced by the name field. zone: - The name of the Google Compute Engine `zone + Deprecated. The name of the Google Compute Engine `zone `__ in which the cluster - resides. + resides. This field has been deprecated and replaced by the + name field. cluster_id: - The name of the cluster. + Deprecated. The name of the cluster. This field has been + deprecated and replaced by the name field. resource_labels: The labels to set for that cluster. label_fingerprint: 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 + 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. + name: + The name (project, location, cluster id) of the cluster to set + labels. Specified in the format + 'projects/*/locations/*/clusters/\*'. """, # @@protoc_insertion_point(class_scope:google.container.v1.SetLabelsRequest) )) @@ -5234,16 +5869,24 @@ Attributes: project_id: - The Google Developers Console `project ID or project number - `__. + Deprecated. The Google Developers Console `project ID or + project number + `__. This + field has been deprecated and replaced by the name field. zone: - The name of the Google Compute Engine `zone + Deprecated. The name of the Google Compute Engine `zone `__ in which the cluster - resides. + resides. This field has been deprecated and replaced by the + name field. cluster_id: - 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. enabled: Whether ABAC authorization will be enabled in the cluster. + name: + The name (project, location, cluster id) of the cluster to set + legacy abac. Specified in the format + 'projects/*/locations/*/clusters/\*'. """, # @@protoc_insertion_point(class_scope:google.container.v1.SetLegacyAbacRequest) )) @@ -5259,15 +5902,24 @@ Attributes: project_id: - The Google Developers Console `project ID or project number ` - __. + Deprecated. The Google Developers Console `project ID or + project number `__. This field has been deprecated and + replaced by the name field. zone: - The name of the Google Compute Engine `zone + Deprecated. The name of the Google Compute Engine `zone `__ in which the cluster - resides. + resides. This field has been deprecated and replaced by the + name field. cluster_id: - The name of the cluster. + Deprecated. The name of the cluster. This field has been + deprecated and replaced by the name field. + name: + The name (project, location, cluster id) of the cluster to + start IP rotation. Specified in the format + 'projects/*/locations/*/clusters/\*'. + rotate_credentials: + Whether to rotate credentials during IP rotation. """, # @@protoc_insertion_point(class_scope:google.container.v1.StartIPRotationRequest) )) @@ -5283,15 +5935,22 @@ Attributes: project_id: - The Google Developers Console `project ID or project number ` - __. + Deprecated. The Google Developers Console `project ID or + project number `__. This field has been deprecated and + replaced by the name field. zone: - The name of the Google Compute Engine `zone + Deprecated. The name of the Google Compute Engine `zone `__ in which the cluster - resides. + resides. This field has been deprecated and replaced by the + name field. cluster_id: - The name of the cluster. + Deprecated. The name of the cluster. This field has been + deprecated and replaced by the name field. + name: + The name (project, location, cluster id) of the cluster to + complete IP rotation. Specified in the format + 'projects/*/locations/*/clusters/\*'. """, # @@protoc_insertion_point(class_scope:google.container.v1.CompleteIPRotationRequest) )) @@ -5324,17 +5983,24 @@ Attributes: project_id: - The Google Developers Console `project ID or project number ` - __. + Deprecated. The Google Developers Console `project ID or + project number `__. This field has been deprecated and + replaced by the name field. zone: - The name of the Google Compute Engine `zone + Deprecated. The name of the Google Compute Engine `zone `__ in which the cluster - resides. + resides. This field has been deprecated and replaced by the + name field. cluster_id: - The name of the cluster. + Deprecated. The name of the cluster. This field has been + deprecated and replaced by the name field. network_policy: Configuration options for the NetworkPolicy feature. + name: + The name (project, location, cluster id) of the cluster to set + networking policy. Specified in the format + 'projects/*/locations/*/clusters/\*'. """, # @@protoc_insertion_point(class_scope:google.container.v1.SetNetworkPolicyRequest) )) @@ -5360,11 +6026,39 @@ maintenance_policy: The maintenance policy to be set for the cluster. An empty field clears the existing maintenance policy. + name: + The name (project, location, cluster id) of the cluster to set + maintenance policy. Specified in the format + 'projects/*/locations/*/clusters/\*'. """, # @@protoc_insertion_point(class_scope:google.container.v1.SetMaintenancePolicyRequest) )) _sym_db.RegisterMessage(SetMaintenancePolicyRequest) +NetworkConfig = _reflection.GeneratedProtocolMessageType('NetworkConfig', (_message.Message,), dict( + DESCRIPTOR = _NETWORKCONFIG, + __module__ = 'google.cloud.container_v1.proto.cluster_service_pb2' + , + __doc__ = """NetworkConfig reports the relative names of network & subnetwork. + + + Attributes: + network: + Output only. The relative name of the Google Compute Engine [n + etwork][google.container.v1.NetworkConfig.network](/compute/do + cs/networks-and-firewalls#networks) to which the cluster is + connected. Example: projects/my-project/global/networks/my- + network + subnetwork: + Output only. The relative name of the Google Compute Engine + `subnetwork `__ to which the cluster is + connected. Example: projects/my-project/regions/us- + central1/subnetworks/my-subnet + """, + # @@protoc_insertion_point(class_scope:google.container.v1.NetworkConfig) + )) +_sym_db.RegisterMessage(NetworkConfig) + DESCRIPTOR.has_options = True DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\027com.google.container.v1B\023ClusterServiceProtoP\001Z\022\022**/v1/{name=projects/*/locations/*/clusters/*}:setResourceLabels:\001*ZP\"K/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/resourceLabels:\001*')), ), _descriptor.MethodDescriptor( name='SetLegacyAbac', @@ -5609,7 +6495,7 @@ containing_service=None, input_type=_SETLEGACYABACREQUEST, output_type=_OPERATION, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002L\"G/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/legacyAbac:\001*')), + options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\215\001\":/v1/{name=projects/*/locations/*/clusters/*}:setLegacyAbac:\001*ZL\"G/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/legacyAbac:\001*')), ), _descriptor.MethodDescriptor( name='StartIPRotation', @@ -5618,7 +6504,7 @@ containing_service=None, input_type=_STARTIPROTATIONREQUEST, output_type=_OPERATION, - options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002Q\"L/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:startIpRotation:\001*')), + options=_descriptor._ParseOptions(descriptor_pb2.MethodOptions(), _b('\202\323\344\223\002\224\001\"") + + +# Workaround https://github.com/googleapis/gapic-generator/issues/2449 +s.replace( + 'google/cloud/container_v1/proto/cluster_service_pb2.py', + r'nodePool>\n', + r'nodePool>`__\n', +) +s.replace( + 'google/cloud/container_v1/proto/cluster_service_pb2.py', + r'(\s+)`__ instead', + r'\g<1>instead', +) diff --git a/tests/unit/gapic/v1/test_cluster_manager_client_v1.py b/tests/unit/gapic/v1/test_cluster_manager_client_v1.py index 19035ac9..17ded8c9 100644 --- a/tests/unit/gapic/v1/test_cluster_manager_client_v1.py +++ b/tests/unit/gapic/v1/test_cluster_manager_client_v1.py @@ -1,10 +1,12 @@ -# Copyright 2017, Google LLC All rights reserved. +# -*- coding: utf-8 -*- +# +# 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, @@ -13,6 +15,7 @@ # limitations under the License. """Unit tests.""" +import mock import pytest from google.cloud import container_v1 @@ -69,7 +72,10 @@ def test_list_clusters(self): # Mock the API response channel = ChannelStub(responses=[expected_response]) - client = container_v1.ClusterManagerClient(channel=channel) + patch = mock.patch('google.api_core.grpc_helpers.create_channel') + with patch as create_channel: + create_channel.return_value = channel + client = container_v1.ClusterManagerClient() # Setup Request project_id = 'projectId-1969970175' @@ -87,7 +93,10 @@ def test_list_clusters(self): def test_list_clusters_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - client = container_v1.ClusterManagerClient(channel=channel) + patch = mock.patch('google.api_core.grpc_helpers.create_channel') + with patch as create_channel: + create_channel.return_value = channel + client = container_v1.ClusterManagerClient() # Setup request project_id = 'projectId-1969970175' @@ -120,6 +129,7 @@ def test_get_cluster(self): services_ipv4_cidr = 'servicesIpv4Cidr1966438125' current_node_count = 178977560 expire_time = 'expireTime-96179731' + location = 'location1901043637' expected_response = { 'name': name, 'description': description, @@ -142,13 +152,17 @@ def test_get_cluster(self): 'node_ipv4_cidr_size': node_ipv4_cidr_size, 'services_ipv4_cidr': services_ipv4_cidr, 'current_node_count': current_node_count, - 'expire_time': expire_time + 'expire_time': expire_time, + 'location': location } expected_response = cluster_service_pb2.Cluster(**expected_response) # Mock the API response channel = ChannelStub(responses=[expected_response]) - client = container_v1.ClusterManagerClient(channel=channel) + patch = mock.patch('google.api_core.grpc_helpers.create_channel') + with patch as create_channel: + create_channel.return_value = channel + client = container_v1.ClusterManagerClient() # Setup Request project_id = 'projectId-1969970175' @@ -167,7 +181,10 @@ def test_get_cluster(self): def test_get_cluster_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - client = container_v1.ClusterManagerClient(channel=channel) + patch = mock.patch('google.api_core.grpc_helpers.create_channel') + with patch as create_channel: + create_channel.return_value = channel + client = container_v1.ClusterManagerClient() # Setup request project_id = 'projectId-1969970175' @@ -185,6 +202,7 @@ def test_create_cluster(self): status_message = 'statusMessage-239442758' self_link = 'selfLink-1691268851' target_link = 'targetLink-2084812312' + location = 'location1901043637' start_time = 'startTime-1573145462' end_time = 'endTime1725551537' expected_response = { @@ -194,6 +212,7 @@ def test_create_cluster(self): 'status_message': status_message, 'self_link': self_link, 'target_link': target_link, + 'location': location, 'start_time': start_time, 'end_time': end_time } @@ -201,7 +220,10 @@ def test_create_cluster(self): # Mock the API response channel = ChannelStub(responses=[expected_response]) - client = container_v1.ClusterManagerClient(channel=channel) + patch = mock.patch('google.api_core.grpc_helpers.create_channel') + with patch as create_channel: + create_channel.return_value = channel + client = container_v1.ClusterManagerClient() # Setup Request project_id = 'projectId-1969970175' @@ -220,7 +242,10 @@ def test_create_cluster(self): def test_create_cluster_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - client = container_v1.ClusterManagerClient(channel=channel) + patch = mock.patch('google.api_core.grpc_helpers.create_channel') + with patch as create_channel: + create_channel.return_value = channel + client = container_v1.ClusterManagerClient() # Setup request project_id = 'projectId-1969970175' @@ -238,6 +263,7 @@ def test_update_cluster(self): status_message = 'statusMessage-239442758' self_link = 'selfLink-1691268851' target_link = 'targetLink-2084812312' + location = 'location1901043637' start_time = 'startTime-1573145462' end_time = 'endTime1725551537' expected_response = { @@ -247,6 +273,7 @@ def test_update_cluster(self): 'status_message': status_message, 'self_link': self_link, 'target_link': target_link, + 'location': location, 'start_time': start_time, 'end_time': end_time } @@ -254,7 +281,10 @@ def test_update_cluster(self): # Mock the API response channel = ChannelStub(responses=[expected_response]) - client = container_v1.ClusterManagerClient(channel=channel) + patch = mock.patch('google.api_core.grpc_helpers.create_channel') + with patch as create_channel: + create_channel.return_value = channel + client = container_v1.ClusterManagerClient() # Setup Request project_id = 'projectId-1969970175' @@ -277,7 +307,10 @@ def test_update_cluster(self): def test_update_cluster_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - client = container_v1.ClusterManagerClient(channel=channel) + patch = mock.patch('google.api_core.grpc_helpers.create_channel') + with patch as create_channel: + create_channel.return_value = channel + client = container_v1.ClusterManagerClient() # Setup request project_id = 'projectId-1969970175' @@ -296,6 +329,7 @@ def test_update_node_pool(self): status_message = 'statusMessage-239442758' self_link = 'selfLink-1691268851' target_link = 'targetLink-2084812312' + location = 'location1901043637' start_time = 'startTime-1573145462' end_time = 'endTime1725551537' expected_response = { @@ -305,6 +339,7 @@ def test_update_node_pool(self): 'status_message': status_message, 'self_link': self_link, 'target_link': target_link, + 'location': location, 'start_time': start_time, 'end_time': end_time } @@ -312,7 +347,10 @@ def test_update_node_pool(self): # Mock the API response channel = ChannelStub(responses=[expected_response]) - client = container_v1.ClusterManagerClient(channel=channel) + patch = mock.patch('google.api_core.grpc_helpers.create_channel') + with patch as create_channel: + create_channel.return_value = channel + client = container_v1.ClusterManagerClient() # Setup Request project_id = 'projectId-1969970175' @@ -341,7 +379,10 @@ def test_update_node_pool(self): def test_update_node_pool_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - client = container_v1.ClusterManagerClient(channel=channel) + patch = mock.patch('google.api_core.grpc_helpers.create_channel') + with patch as create_channel: + create_channel.return_value = channel + client = container_v1.ClusterManagerClient() # Setup request project_id = 'projectId-1969970175' @@ -363,6 +404,7 @@ def test_set_node_pool_autoscaling(self): status_message = 'statusMessage-239442758' self_link = 'selfLink-1691268851' target_link = 'targetLink-2084812312' + location = 'location1901043637' start_time = 'startTime-1573145462' end_time = 'endTime1725551537' expected_response = { @@ -372,6 +414,7 @@ def test_set_node_pool_autoscaling(self): 'status_message': status_message, 'self_link': self_link, 'target_link': target_link, + 'location': location, 'start_time': start_time, 'end_time': end_time } @@ -379,7 +422,10 @@ def test_set_node_pool_autoscaling(self): # Mock the API response channel = ChannelStub(responses=[expected_response]) - client = container_v1.ClusterManagerClient(channel=channel) + patch = mock.patch('google.api_core.grpc_helpers.create_channel') + with patch as create_channel: + create_channel.return_value = channel + client = container_v1.ClusterManagerClient() # Setup Request project_id = 'projectId-1969970175' @@ -405,7 +451,10 @@ def test_set_node_pool_autoscaling(self): def test_set_node_pool_autoscaling_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - client = container_v1.ClusterManagerClient(channel=channel) + patch = mock.patch('google.api_core.grpc_helpers.create_channel') + with patch as create_channel: + create_channel.return_value = channel + client = container_v1.ClusterManagerClient() # Setup request project_id = 'projectId-1969970175' @@ -426,6 +475,7 @@ def test_set_logging_service(self): status_message = 'statusMessage-239442758' self_link = 'selfLink-1691268851' target_link = 'targetLink-2084812312' + location = 'location1901043637' start_time = 'startTime-1573145462' end_time = 'endTime1725551537' expected_response = { @@ -435,6 +485,7 @@ def test_set_logging_service(self): 'status_message': status_message, 'self_link': self_link, 'target_link': target_link, + 'location': location, 'start_time': start_time, 'end_time': end_time } @@ -442,7 +493,10 @@ def test_set_logging_service(self): # Mock the API response channel = ChannelStub(responses=[expected_response]) - client = container_v1.ClusterManagerClient(channel=channel) + patch = mock.patch('google.api_core.grpc_helpers.create_channel') + with patch as create_channel: + create_channel.return_value = channel + client = container_v1.ClusterManagerClient() # Setup Request project_id = 'projectId-1969970175' @@ -466,7 +520,10 @@ def test_set_logging_service(self): def test_set_logging_service_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - client = container_v1.ClusterManagerClient(channel=channel) + patch = mock.patch('google.api_core.grpc_helpers.create_channel') + with patch as create_channel: + create_channel.return_value = channel + client = container_v1.ClusterManagerClient() # Setup request project_id = 'projectId-1969970175' @@ -486,6 +543,7 @@ def test_set_monitoring_service(self): status_message = 'statusMessage-239442758' self_link = 'selfLink-1691268851' target_link = 'targetLink-2084812312' + location = 'location1901043637' start_time = 'startTime-1573145462' end_time = 'endTime1725551537' expected_response = { @@ -495,6 +553,7 @@ def test_set_monitoring_service(self): 'status_message': status_message, 'self_link': self_link, 'target_link': target_link, + 'location': location, 'start_time': start_time, 'end_time': end_time } @@ -502,7 +561,10 @@ def test_set_monitoring_service(self): # Mock the API response channel = ChannelStub(responses=[expected_response]) - client = container_v1.ClusterManagerClient(channel=channel) + patch = mock.patch('google.api_core.grpc_helpers.create_channel') + with patch as create_channel: + create_channel.return_value = channel + client = container_v1.ClusterManagerClient() # Setup Request project_id = 'projectId-1969970175' @@ -526,7 +588,10 @@ def test_set_monitoring_service(self): def test_set_monitoring_service_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - client = container_v1.ClusterManagerClient(channel=channel) + patch = mock.patch('google.api_core.grpc_helpers.create_channel') + with patch as create_channel: + create_channel.return_value = channel + client = container_v1.ClusterManagerClient() # Setup request project_id = 'projectId-1969970175' @@ -546,6 +611,7 @@ def test_set_addons_config(self): status_message = 'statusMessage-239442758' self_link = 'selfLink-1691268851' target_link = 'targetLink-2084812312' + location = 'location1901043637' start_time = 'startTime-1573145462' end_time = 'endTime1725551537' expected_response = { @@ -555,6 +621,7 @@ def test_set_addons_config(self): 'status_message': status_message, 'self_link': self_link, 'target_link': target_link, + 'location': location, 'start_time': start_time, 'end_time': end_time } @@ -562,7 +629,10 @@ def test_set_addons_config(self): # Mock the API response channel = ChannelStub(responses=[expected_response]) - client = container_v1.ClusterManagerClient(channel=channel) + patch = mock.patch('google.api_core.grpc_helpers.create_channel') + with patch as create_channel: + create_channel.return_value = channel + client = container_v1.ClusterManagerClient() # Setup Request project_id = 'projectId-1969970175' @@ -586,7 +656,10 @@ def test_set_addons_config(self): def test_set_addons_config_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - client = container_v1.ClusterManagerClient(channel=channel) + patch = mock.patch('google.api_core.grpc_helpers.create_channel') + with patch as create_channel: + create_channel.return_value = channel + client = container_v1.ClusterManagerClient() # Setup request project_id = 'projectId-1969970175' @@ -606,6 +679,7 @@ def test_set_locations(self): status_message = 'statusMessage-239442758' self_link = 'selfLink-1691268851' target_link = 'targetLink-2084812312' + location = 'location1901043637' start_time = 'startTime-1573145462' end_time = 'endTime1725551537' expected_response = { @@ -615,6 +689,7 @@ def test_set_locations(self): 'status_message': status_message, 'self_link': self_link, 'target_link': target_link, + 'location': location, 'start_time': start_time, 'end_time': end_time } @@ -622,7 +697,10 @@ def test_set_locations(self): # Mock the API response channel = ChannelStub(responses=[expected_response]) - client = container_v1.ClusterManagerClient(channel=channel) + patch = mock.patch('google.api_core.grpc_helpers.create_channel') + with patch as create_channel: + create_channel.return_value = channel + client = container_v1.ClusterManagerClient() # Setup Request project_id = 'projectId-1969970175' @@ -646,7 +724,10 @@ def test_set_locations(self): def test_set_locations_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - client = container_v1.ClusterManagerClient(channel=channel) + patch = mock.patch('google.api_core.grpc_helpers.create_channel') + with patch as create_channel: + create_channel.return_value = channel + client = container_v1.ClusterManagerClient() # Setup request project_id = 'projectId-1969970175' @@ -665,6 +746,7 @@ def test_update_master(self): status_message = 'statusMessage-239442758' self_link = 'selfLink-1691268851' target_link = 'targetLink-2084812312' + location = 'location1901043637' start_time = 'startTime-1573145462' end_time = 'endTime1725551537' expected_response = { @@ -674,6 +756,7 @@ def test_update_master(self): 'status_message': status_message, 'self_link': self_link, 'target_link': target_link, + 'location': location, 'start_time': start_time, 'end_time': end_time } @@ -681,7 +764,10 @@ def test_update_master(self): # Mock the API response channel = ChannelStub(responses=[expected_response]) - client = container_v1.ClusterManagerClient(channel=channel) + patch = mock.patch('google.api_core.grpc_helpers.create_channel') + with patch as create_channel: + create_channel.return_value = channel + client = container_v1.ClusterManagerClient() # Setup Request project_id = 'projectId-1969970175' @@ -705,7 +791,10 @@ def test_update_master(self): def test_update_master_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - client = container_v1.ClusterManagerClient(channel=channel) + patch = mock.patch('google.api_core.grpc_helpers.create_channel') + with patch as create_channel: + create_channel.return_value = channel + client = container_v1.ClusterManagerClient() # Setup request project_id = 'projectId-1969970175' @@ -724,6 +813,7 @@ def test_set_master_auth(self): status_message = 'statusMessage-239442758' self_link = 'selfLink-1691268851' target_link = 'targetLink-2084812312' + location = 'location1901043637' start_time = 'startTime-1573145462' end_time = 'endTime1725551537' expected_response = { @@ -733,6 +823,7 @@ def test_set_master_auth(self): 'status_message': status_message, 'self_link': self_link, 'target_link': target_link, + 'location': location, 'start_time': start_time, 'end_time': end_time } @@ -740,7 +831,10 @@ def test_set_master_auth(self): # Mock the API response channel = ChannelStub(responses=[expected_response]) - client = container_v1.ClusterManagerClient(channel=channel) + patch = mock.patch('google.api_core.grpc_helpers.create_channel') + with patch as create_channel: + create_channel.return_value = channel + client = container_v1.ClusterManagerClient() # Setup Request project_id = 'projectId-1969970175' @@ -766,7 +860,10 @@ def test_set_master_auth(self): def test_set_master_auth_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - client = container_v1.ClusterManagerClient(channel=channel) + patch = mock.patch('google.api_core.grpc_helpers.create_channel') + with patch as create_channel: + create_channel.return_value = channel + client = container_v1.ClusterManagerClient() # Setup request project_id = 'projectId-1969970175' @@ -787,6 +884,7 @@ def test_delete_cluster(self): status_message = 'statusMessage-239442758' self_link = 'selfLink-1691268851' target_link = 'targetLink-2084812312' + location = 'location1901043637' start_time = 'startTime-1573145462' end_time = 'endTime1725551537' expected_response = { @@ -796,6 +894,7 @@ def test_delete_cluster(self): 'status_message': status_message, 'self_link': self_link, 'target_link': target_link, + 'location': location, 'start_time': start_time, 'end_time': end_time } @@ -803,7 +902,10 @@ def test_delete_cluster(self): # Mock the API response channel = ChannelStub(responses=[expected_response]) - client = container_v1.ClusterManagerClient(channel=channel) + patch = mock.patch('google.api_core.grpc_helpers.create_channel') + with patch as create_channel: + create_channel.return_value = channel + client = container_v1.ClusterManagerClient() # Setup Request project_id = 'projectId-1969970175' @@ -822,7 +924,10 @@ def test_delete_cluster(self): def test_delete_cluster_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - client = container_v1.ClusterManagerClient(channel=channel) + patch = mock.patch('google.api_core.grpc_helpers.create_channel') + with patch as create_channel: + create_channel.return_value = channel + client = container_v1.ClusterManagerClient() # Setup request project_id = 'projectId-1969970175' @@ -840,7 +945,10 @@ def test_list_operations(self): # Mock the API response channel = ChannelStub(responses=[expected_response]) - client = container_v1.ClusterManagerClient(channel=channel) + patch = mock.patch('google.api_core.grpc_helpers.create_channel') + with patch as create_channel: + create_channel.return_value = channel + client = container_v1.ClusterManagerClient() # Setup Request project_id = 'projectId-1969970175' @@ -858,7 +966,10 @@ def test_list_operations(self): def test_list_operations_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - client = container_v1.ClusterManagerClient(channel=channel) + patch = mock.patch('google.api_core.grpc_helpers.create_channel') + with patch as create_channel: + create_channel.return_value = channel + client = container_v1.ClusterManagerClient() # Setup request project_id = 'projectId-1969970175' @@ -875,6 +986,7 @@ def test_get_operation(self): status_message = 'statusMessage-239442758' self_link = 'selfLink-1691268851' target_link = 'targetLink-2084812312' + location = 'location1901043637' start_time = 'startTime-1573145462' end_time = 'endTime1725551537' expected_response = { @@ -884,6 +996,7 @@ def test_get_operation(self): 'status_message': status_message, 'self_link': self_link, 'target_link': target_link, + 'location': location, 'start_time': start_time, 'end_time': end_time } @@ -891,7 +1004,10 @@ def test_get_operation(self): # Mock the API response channel = ChannelStub(responses=[expected_response]) - client = container_v1.ClusterManagerClient(channel=channel) + patch = mock.patch('google.api_core.grpc_helpers.create_channel') + with patch as create_channel: + create_channel.return_value = channel + client = container_v1.ClusterManagerClient() # Setup Request project_id = 'projectId-1969970175' @@ -910,7 +1026,10 @@ def test_get_operation(self): def test_get_operation_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - client = container_v1.ClusterManagerClient(channel=channel) + patch = mock.patch('google.api_core.grpc_helpers.create_channel') + with patch as create_channel: + create_channel.return_value = channel + client = container_v1.ClusterManagerClient() # Setup request project_id = 'projectId-1969970175' @@ -922,7 +1041,10 @@ def test_get_operation_exception(self): def test_cancel_operation(self): channel = ChannelStub() - client = container_v1.ClusterManagerClient(channel=channel) + patch = mock.patch('google.api_core.grpc_helpers.create_channel') + with patch as create_channel: + create_channel.return_value = channel + client = container_v1.ClusterManagerClient() # Setup Request project_id = 'projectId-1969970175' @@ -940,7 +1062,10 @@ def test_cancel_operation(self): def test_cancel_operation_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - client = container_v1.ClusterManagerClient(channel=channel) + patch = mock.patch('google.api_core.grpc_helpers.create_channel') + with patch as create_channel: + create_channel.return_value = channel + client = container_v1.ClusterManagerClient() # Setup request project_id = 'projectId-1969970175' @@ -963,7 +1088,10 @@ def test_get_server_config(self): # Mock the API response channel = ChannelStub(responses=[expected_response]) - client = container_v1.ClusterManagerClient(channel=channel) + patch = mock.patch('google.api_core.grpc_helpers.create_channel') + with patch as create_channel: + create_channel.return_value = channel + client = container_v1.ClusterManagerClient() # Setup Request project_id = 'projectId-1969970175' @@ -981,7 +1109,10 @@ def test_get_server_config(self): def test_get_server_config_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - client = container_v1.ClusterManagerClient(channel=channel) + patch = mock.patch('google.api_core.grpc_helpers.create_channel') + with patch as create_channel: + create_channel.return_value = channel + client = container_v1.ClusterManagerClient() # Setup request project_id = 'projectId-1969970175' @@ -998,7 +1129,10 @@ def test_list_node_pools(self): # Mock the API response channel = ChannelStub(responses=[expected_response]) - client = container_v1.ClusterManagerClient(channel=channel) + patch = mock.patch('google.api_core.grpc_helpers.create_channel') + with patch as create_channel: + create_channel.return_value = channel + client = container_v1.ClusterManagerClient() # Setup Request project_id = 'projectId-1969970175' @@ -1017,7 +1151,10 @@ def test_list_node_pools(self): def test_list_node_pools_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - client = container_v1.ClusterManagerClient(channel=channel) + patch = mock.patch('google.api_core.grpc_helpers.create_channel') + with patch as create_channel: + create_channel.return_value = channel + client = container_v1.ClusterManagerClient() # Setup request project_id = 'projectId-1969970175' @@ -1045,7 +1182,10 @@ def test_get_node_pool(self): # Mock the API response channel = ChannelStub(responses=[expected_response]) - client = container_v1.ClusterManagerClient(channel=channel) + patch = mock.patch('google.api_core.grpc_helpers.create_channel') + with patch as create_channel: + create_channel.return_value = channel + client = container_v1.ClusterManagerClient() # Setup Request project_id = 'projectId-1969970175' @@ -1069,7 +1209,10 @@ def test_get_node_pool(self): def test_get_node_pool_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - client = container_v1.ClusterManagerClient(channel=channel) + patch = mock.patch('google.api_core.grpc_helpers.create_channel') + with patch as create_channel: + create_channel.return_value = channel + client = container_v1.ClusterManagerClient() # Setup request project_id = 'projectId-1969970175' @@ -1088,6 +1231,7 @@ def test_create_node_pool(self): status_message = 'statusMessage-239442758' self_link = 'selfLink-1691268851' target_link = 'targetLink-2084812312' + location = 'location1901043637' start_time = 'startTime-1573145462' end_time = 'endTime1725551537' expected_response = { @@ -1097,6 +1241,7 @@ def test_create_node_pool(self): 'status_message': status_message, 'self_link': self_link, 'target_link': target_link, + 'location': location, 'start_time': start_time, 'end_time': end_time } @@ -1104,7 +1249,10 @@ def test_create_node_pool(self): # Mock the API response channel = ChannelStub(responses=[expected_response]) - client = container_v1.ClusterManagerClient(channel=channel) + patch = mock.patch('google.api_core.grpc_helpers.create_channel') + with patch as create_channel: + create_channel.return_value = channel + client = container_v1.ClusterManagerClient() # Setup Request project_id = 'projectId-1969970175' @@ -1128,7 +1276,10 @@ def test_create_node_pool(self): def test_create_node_pool_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - client = container_v1.ClusterManagerClient(channel=channel) + patch = mock.patch('google.api_core.grpc_helpers.create_channel') + with patch as create_channel: + create_channel.return_value = channel + client = container_v1.ClusterManagerClient() # Setup request project_id = 'projectId-1969970175' @@ -1147,6 +1298,7 @@ def test_delete_node_pool(self): status_message = 'statusMessage-239442758' self_link = 'selfLink-1691268851' target_link = 'targetLink-2084812312' + location = 'location1901043637' start_time = 'startTime-1573145462' end_time = 'endTime1725551537' expected_response = { @@ -1156,6 +1308,7 @@ def test_delete_node_pool(self): 'status_message': status_message, 'self_link': self_link, 'target_link': target_link, + 'location': location, 'start_time': start_time, 'end_time': end_time } @@ -1163,7 +1316,10 @@ def test_delete_node_pool(self): # Mock the API response channel = ChannelStub(responses=[expected_response]) - client = container_v1.ClusterManagerClient(channel=channel) + patch = mock.patch('google.api_core.grpc_helpers.create_channel') + with patch as create_channel: + create_channel.return_value = channel + client = container_v1.ClusterManagerClient() # Setup Request project_id = 'projectId-1969970175' @@ -1187,7 +1343,10 @@ def test_delete_node_pool(self): def test_delete_node_pool_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - client = container_v1.ClusterManagerClient(channel=channel) + patch = mock.patch('google.api_core.grpc_helpers.create_channel') + with patch as create_channel: + create_channel.return_value = channel + client = container_v1.ClusterManagerClient() # Setup request project_id = 'projectId-1969970175' @@ -1206,6 +1365,7 @@ def test_rollback_node_pool_upgrade(self): status_message = 'statusMessage-239442758' self_link = 'selfLink-1691268851' target_link = 'targetLink-2084812312' + location = 'location1901043637' start_time = 'startTime-1573145462' end_time = 'endTime1725551537' expected_response = { @@ -1215,6 +1375,7 @@ def test_rollback_node_pool_upgrade(self): 'status_message': status_message, 'self_link': self_link, 'target_link': target_link, + 'location': location, 'start_time': start_time, 'end_time': end_time } @@ -1222,7 +1383,10 @@ def test_rollback_node_pool_upgrade(self): # Mock the API response channel = ChannelStub(responses=[expected_response]) - client = container_v1.ClusterManagerClient(channel=channel) + patch = mock.patch('google.api_core.grpc_helpers.create_channel') + with patch as create_channel: + create_channel.return_value = channel + client = container_v1.ClusterManagerClient() # Setup Request project_id = 'projectId-1969970175' @@ -1246,7 +1410,10 @@ def test_rollback_node_pool_upgrade(self): def test_rollback_node_pool_upgrade_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - client = container_v1.ClusterManagerClient(channel=channel) + patch = mock.patch('google.api_core.grpc_helpers.create_channel') + with patch as create_channel: + create_channel.return_value = channel + client = container_v1.ClusterManagerClient() # Setup request project_id = 'projectId-1969970175' @@ -1266,6 +1433,7 @@ def test_set_node_pool_management(self): status_message = 'statusMessage-239442758' self_link = 'selfLink-1691268851' target_link = 'targetLink-2084812312' + location = 'location1901043637' start_time = 'startTime-1573145462' end_time = 'endTime1725551537' expected_response = { @@ -1275,6 +1443,7 @@ def test_set_node_pool_management(self): 'status_message': status_message, 'self_link': self_link, 'target_link': target_link, + 'location': location, 'start_time': start_time, 'end_time': end_time } @@ -1282,7 +1451,10 @@ def test_set_node_pool_management(self): # Mock the API response channel = ChannelStub(responses=[expected_response]) - client = container_v1.ClusterManagerClient(channel=channel) + patch = mock.patch('google.api_core.grpc_helpers.create_channel') + with patch as create_channel: + create_channel.return_value = channel + client = container_v1.ClusterManagerClient() # Setup Request project_id = 'projectId-1969970175' @@ -1308,7 +1480,10 @@ def test_set_node_pool_management(self): def test_set_node_pool_management_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - client = container_v1.ClusterManagerClient(channel=channel) + patch = mock.patch('google.api_core.grpc_helpers.create_channel') + with patch as create_channel: + create_channel.return_value = channel + client = container_v1.ClusterManagerClient() # Setup request project_id = 'projectId-1969970175' @@ -1329,6 +1504,7 @@ def test_set_labels(self): status_message = 'statusMessage-239442758' self_link = 'selfLink-1691268851' target_link = 'targetLink-2084812312' + location = 'location1901043637' start_time = 'startTime-1573145462' end_time = 'endTime1725551537' expected_response = { @@ -1338,6 +1514,7 @@ def test_set_labels(self): 'status_message': status_message, 'self_link': self_link, 'target_link': target_link, + 'location': location, 'start_time': start_time, 'end_time': end_time } @@ -1345,7 +1522,10 @@ def test_set_labels(self): # Mock the API response channel = ChannelStub(responses=[expected_response]) - client = container_v1.ClusterManagerClient(channel=channel) + patch = mock.patch('google.api_core.grpc_helpers.create_channel') + with patch as create_channel: + create_channel.return_value = channel + client = container_v1.ClusterManagerClient() # Setup Request project_id = 'projectId-1969970175' @@ -1371,7 +1551,10 @@ def test_set_labels(self): def test_set_labels_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - client = container_v1.ClusterManagerClient(channel=channel) + patch = mock.patch('google.api_core.grpc_helpers.create_channel') + with patch as create_channel: + create_channel.return_value = channel + client = container_v1.ClusterManagerClient() # Setup request project_id = 'projectId-1969970175' @@ -1392,6 +1575,7 @@ def test_set_legacy_abac(self): status_message = 'statusMessage-239442758' self_link = 'selfLink-1691268851' target_link = 'targetLink-2084812312' + location = 'location1901043637' start_time = 'startTime-1573145462' end_time = 'endTime1725551537' expected_response = { @@ -1401,6 +1585,7 @@ def test_set_legacy_abac(self): 'status_message': status_message, 'self_link': self_link, 'target_link': target_link, + 'location': location, 'start_time': start_time, 'end_time': end_time } @@ -1408,7 +1593,10 @@ def test_set_legacy_abac(self): # Mock the API response channel = ChannelStub(responses=[expected_response]) - client = container_v1.ClusterManagerClient(channel=channel) + patch = mock.patch('google.api_core.grpc_helpers.create_channel') + with patch as create_channel: + create_channel.return_value = channel + client = container_v1.ClusterManagerClient() # Setup Request project_id = 'projectId-1969970175' @@ -1432,7 +1620,10 @@ def test_set_legacy_abac(self): def test_set_legacy_abac_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - client = container_v1.ClusterManagerClient(channel=channel) + patch = mock.patch('google.api_core.grpc_helpers.create_channel') + with patch as create_channel: + create_channel.return_value = channel + client = container_v1.ClusterManagerClient() # Setup request project_id = 'projectId-1969970175' @@ -1451,6 +1642,7 @@ def test_start_i_p_rotation(self): status_message = 'statusMessage-239442758' self_link = 'selfLink-1691268851' target_link = 'targetLink-2084812312' + location = 'location1901043637' start_time = 'startTime-1573145462' end_time = 'endTime1725551537' expected_response = { @@ -1460,6 +1652,7 @@ def test_start_i_p_rotation(self): 'status_message': status_message, 'self_link': self_link, 'target_link': target_link, + 'location': location, 'start_time': start_time, 'end_time': end_time } @@ -1467,7 +1660,10 @@ def test_start_i_p_rotation(self): # Mock the API response channel = ChannelStub(responses=[expected_response]) - client = container_v1.ClusterManagerClient(channel=channel) + patch = mock.patch('google.api_core.grpc_helpers.create_channel') + with patch as create_channel: + create_channel.return_value = channel + client = container_v1.ClusterManagerClient() # Setup Request project_id = 'projectId-1969970175' @@ -1486,7 +1682,10 @@ def test_start_i_p_rotation(self): def test_start_i_p_rotation_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - client = container_v1.ClusterManagerClient(channel=channel) + patch = mock.patch('google.api_core.grpc_helpers.create_channel') + with patch as create_channel: + create_channel.return_value = channel + client = container_v1.ClusterManagerClient() # Setup request project_id = 'projectId-1969970175' @@ -1504,6 +1703,7 @@ def test_complete_i_p_rotation(self): status_message = 'statusMessage-239442758' self_link = 'selfLink-1691268851' target_link = 'targetLink-2084812312' + location = 'location1901043637' start_time = 'startTime-1573145462' end_time = 'endTime1725551537' expected_response = { @@ -1513,6 +1713,7 @@ def test_complete_i_p_rotation(self): 'status_message': status_message, 'self_link': self_link, 'target_link': target_link, + 'location': location, 'start_time': start_time, 'end_time': end_time } @@ -1520,7 +1721,10 @@ def test_complete_i_p_rotation(self): # Mock the API response channel = ChannelStub(responses=[expected_response]) - client = container_v1.ClusterManagerClient(channel=channel) + patch = mock.patch('google.api_core.grpc_helpers.create_channel') + with patch as create_channel: + create_channel.return_value = channel + client = container_v1.ClusterManagerClient() # Setup Request project_id = 'projectId-1969970175' @@ -1539,7 +1743,10 @@ def test_complete_i_p_rotation(self): def test_complete_i_p_rotation_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - client = container_v1.ClusterManagerClient(channel=channel) + patch = mock.patch('google.api_core.grpc_helpers.create_channel') + with patch as create_channel: + create_channel.return_value = channel + client = container_v1.ClusterManagerClient() # Setup request project_id = 'projectId-1969970175' @@ -1557,6 +1764,7 @@ def test_set_node_pool_size(self): status_message = 'statusMessage-239442758' self_link = 'selfLink-1691268851' target_link = 'targetLink-2084812312' + location = 'location1901043637' start_time = 'startTime-1573145462' end_time = 'endTime1725551537' expected_response = { @@ -1566,6 +1774,7 @@ def test_set_node_pool_size(self): 'status_message': status_message, 'self_link': self_link, 'target_link': target_link, + 'location': location, 'start_time': start_time, 'end_time': end_time } @@ -1573,7 +1782,10 @@ def test_set_node_pool_size(self): # Mock the API response channel = ChannelStub(responses=[expected_response]) - client = container_v1.ClusterManagerClient(channel=channel) + patch = mock.patch('google.api_core.grpc_helpers.create_channel') + with patch as create_channel: + create_channel.return_value = channel + client = container_v1.ClusterManagerClient() # Setup Request project_id = 'projectId-1969970175' @@ -1599,7 +1811,10 @@ def test_set_node_pool_size(self): def test_set_node_pool_size_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - client = container_v1.ClusterManagerClient(channel=channel) + patch = mock.patch('google.api_core.grpc_helpers.create_channel') + with patch as create_channel: + create_channel.return_value = channel + client = container_v1.ClusterManagerClient() # Setup request project_id = 'projectId-1969970175' @@ -1620,6 +1835,7 @@ def test_set_network_policy(self): status_message = 'statusMessage-239442758' self_link = 'selfLink-1691268851' target_link = 'targetLink-2084812312' + location = 'location1901043637' start_time = 'startTime-1573145462' end_time = 'endTime1725551537' expected_response = { @@ -1629,6 +1845,7 @@ def test_set_network_policy(self): 'status_message': status_message, 'self_link': self_link, 'target_link': target_link, + 'location': location, 'start_time': start_time, 'end_time': end_time } @@ -1636,7 +1853,10 @@ def test_set_network_policy(self): # Mock the API response channel = ChannelStub(responses=[expected_response]) - client = container_v1.ClusterManagerClient(channel=channel) + patch = mock.patch('google.api_core.grpc_helpers.create_channel') + with patch as create_channel: + create_channel.return_value = channel + client = container_v1.ClusterManagerClient() # Setup Request project_id = 'projectId-1969970175' @@ -1660,7 +1880,10 @@ def test_set_network_policy(self): def test_set_network_policy_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - client = container_v1.ClusterManagerClient(channel=channel) + patch = mock.patch('google.api_core.grpc_helpers.create_channel') + with patch as create_channel: + create_channel.return_value = channel + client = container_v1.ClusterManagerClient() # Setup request project_id = 'projectId-1969970175' @@ -1680,6 +1903,7 @@ def test_set_maintenance_policy(self): status_message = 'statusMessage-239442758' self_link = 'selfLink-1691268851' target_link = 'targetLink-2084812312' + location = 'location1901043637' start_time = 'startTime-1573145462' end_time = 'endTime1725551537' expected_response = { @@ -1689,6 +1913,7 @@ def test_set_maintenance_policy(self): 'status_message': status_message, 'self_link': self_link, 'target_link': target_link, + 'location': location, 'start_time': start_time, 'end_time': end_time } @@ -1696,7 +1921,10 @@ def test_set_maintenance_policy(self): # Mock the API response channel = ChannelStub(responses=[expected_response]) - client = container_v1.ClusterManagerClient(channel=channel) + patch = mock.patch('google.api_core.grpc_helpers.create_channel') + with patch as create_channel: + create_channel.return_value = channel + client = container_v1.ClusterManagerClient() # Setup Request project_id = 'projectId-1969970175' @@ -1720,7 +1948,10 @@ def test_set_maintenance_policy(self): def test_set_maintenance_policy_exception(self): # Mock the API response channel = ChannelStub(responses=[CustomException()]) - client = container_v1.ClusterManagerClient(channel=channel) + patch = mock.patch('google.api_core.grpc_helpers.create_channel') + with patch as create_channel: + create_channel.return_value = channel + client = container_v1.ClusterManagerClient() # Setup request project_id = 'projectId-1969970175'