Skip to content

Commit

Permalink
chore: use gapic-generator-python 0.65.1 (#228)
Browse files Browse the repository at this point in the history
* chore: use gapic-generator-python 0.65.1

PiperOrigin-RevId: 441524537

Source-Link: googleapis/googleapis@2a27391

Source-Link: googleapis/googleapis-gen@ab6756a
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYWI2NzU2YTQ4Yzg5YjViY2I5ZmI3MzQ0M2NiOGU1NWQ1NzRmNDY0MyJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Apr 14, 2022
1 parent 958c312 commit 70cde29
Show file tree
Hide file tree
Showing 14 changed files with 6,194 additions and 384 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from collections import OrderedDict
import functools
import re
from typing import Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources
import warnings

Expand Down Expand Up @@ -218,7 +218,6 @@ async def list_clusters(
r"""Lists all clusters owned by a project in either the
specified zone or all zones.
.. code-block:: python
from google.cloud import container_v1
Expand Down Expand Up @@ -503,7 +502,6 @@ async def create_cluster(
Finally, an entry is added to the project's global metadata
indicating which CIDR range the cluster is using.
.. code-block:: python
from google.cloud import container_v1
Expand Down Expand Up @@ -777,7 +775,6 @@ async def update_node_pool(
r"""Updates the version and/or image type for the
specified node pool.
.. code-block:: python
from google.cloud import container_v1
Expand Down Expand Up @@ -855,7 +852,6 @@ async def set_node_pool_autoscaling(
r"""Sets the autoscaling settings for the specified node
pool.
.. code-block:: python
from google.cloud import container_v1
Expand Down Expand Up @@ -1402,7 +1398,6 @@ async def set_locations(
`projects.locations.clusters.update <https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/update>`__
instead.
.. code-block:: python
from google.cloud import container_v1
Expand Down Expand Up @@ -1714,7 +1709,6 @@ async def set_master_auth(
either via password generation or explicitly setting the
password.
.. code-block:: python
from google.cloud import container_v1
Expand Down Expand Up @@ -1803,7 +1797,6 @@ async def delete_cluster(
not deleted if they weren't present when the cluster was
initially created.
.. code-block:: python
from google.cloud import container_v1
Expand Down Expand Up @@ -1947,7 +1940,6 @@ async def list_operations(
r"""Lists all operations in a project in a specific zone
or all zones.
.. code-block:: python
from google.cloud import container_v1
Expand Down Expand Up @@ -2332,7 +2324,6 @@ async def get_server_config(
r"""Returns configuration info about the Google
Kubernetes Engine service.
.. code-block:: python
from google.cloud import container_v1
Expand Down Expand Up @@ -2462,7 +2453,6 @@ async def get_json_web_keys(
This API is not yet intended for general use, and is not
available for all clusters.
.. code-block:: python
from google.cloud import container_v1
Expand Down Expand Up @@ -3143,7 +3133,6 @@ async def rollback_node_pool_upgrade(
upgrade. This makes no changes if the last upgrade
successfully completed.
.. code-block:: python
from google.cloud import container_v1
Expand Down Expand Up @@ -3445,7 +3434,6 @@ async def set_legacy_abac(
r"""Enables or disables the ABAC authorization mechanism
on a cluster.
.. code-block:: python
from google.cloud import container_v1
Expand Down Expand Up @@ -3856,7 +3844,6 @@ async def set_node_pool_size(
modifying
[NodePool.locations][google.container.v1.NodePool.locations].
.. code-block:: python
from google.cloud import container_v1
Expand Down Expand Up @@ -4221,7 +4208,6 @@ async def list_usable_subnetworks(
r"""Lists subnetworks that are usable for creating
clusters in a project.
.. code-block:: python
from google.cloud import container_v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from collections import OrderedDict
import os
import re
from typing import Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources
import warnings

Expand Down Expand Up @@ -437,7 +437,6 @@ def list_clusters(
r"""Lists all clusters owned by a project in either the
specified zone or all zones.
.. code-block:: python
from google.cloud import container_v1
Expand Down Expand Up @@ -702,7 +701,6 @@ def create_cluster(
Finally, an entry is added to the project's global metadata
indicating which CIDR range the cluster is using.
.. code-block:: python
from google.cloud import container_v1
Expand Down Expand Up @@ -976,7 +974,6 @@ def update_node_pool(
r"""Updates the version and/or image type for the
specified node pool.
.. code-block:: python
from google.cloud import container_v1
Expand Down Expand Up @@ -1055,7 +1052,6 @@ def set_node_pool_autoscaling(
r"""Sets the autoscaling settings for the specified node
pool.
.. code-block:: python
from google.cloud import container_v1
Expand Down Expand Up @@ -1605,7 +1601,6 @@ def set_locations(
`projects.locations.clusters.update <https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/update>`__
instead.
.. code-block:: python
from google.cloud import container_v1
Expand Down Expand Up @@ -1917,7 +1912,6 @@ def set_master_auth(
either via password generation or explicitly setting the
password.
.. code-block:: python
from google.cloud import container_v1
Expand Down Expand Up @@ -2007,7 +2001,6 @@ def delete_cluster(
not deleted if they weren't present when the cluster was
initially created.
.. code-block:: python
from google.cloud import container_v1
Expand Down Expand Up @@ -2141,7 +2134,6 @@ def list_operations(
r"""Lists all operations in a project in a specific zone
or all zones.
.. code-block:: python
from google.cloud import container_v1
Expand Down Expand Up @@ -2506,7 +2498,6 @@ def get_server_config(
r"""Returns configuration info about the Google
Kubernetes Engine service.
.. code-block:: python
from google.cloud import container_v1
Expand Down Expand Up @@ -2626,7 +2617,6 @@ def get_json_web_keys(
This API is not yet intended for general use, and is not
available for all clusters.
.. code-block:: python
from google.cloud import container_v1
Expand Down Expand Up @@ -3278,7 +3268,6 @@ def rollback_node_pool_upgrade(
upgrade. This makes no changes if the last upgrade
successfully completed.
.. code-block:: python
from google.cloud import container_v1
Expand Down Expand Up @@ -3584,7 +3573,6 @@ def set_legacy_abac(
r"""Enables or disables the ABAC authorization mechanism
on a cluster.
.. code-block:: python
from google.cloud import container_v1
Expand Down Expand Up @@ -3995,7 +3983,6 @@ def set_node_pool_size(
modifying
[NodePool.locations][google.container.v1.NodePool.locations].
.. code-block:: python
from google.cloud import container_v1
Expand Down Expand Up @@ -4361,7 +4348,6 @@ def list_usable_subnetworks(
r"""Lists subnetworks that are usable for creating
clusters in a project.
.. code-block:: python
from google.cloud import container_v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ def __init__(
always_use_jwt_access (Optional[bool]): Whether self signed JWT should
be used for service account credentials.
"""

# Save the hostname. Default to port 443 (HTTPS) if none is specified.
if ":" not in host:
host += ":443"
Expand Down Expand Up @@ -685,5 +686,9 @@ def list_usable_subnetworks(
]:
raise NotImplementedError()

@property
def kind(self) -> str:
raise NotImplementedError()


__all__ = ("ClusterManagerTransport",)
Original file line number Diff line number Diff line change
Expand Up @@ -1131,5 +1131,9 @@ def list_usable_subnetworks(
def close(self):
self.grpc_channel.close()

@property
def kind(self) -> str:
return "grpc"


__all__ = ("ClusterManagerGrpcTransport",)
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ class LinuxNodeConfig(proto.Message):
r"""Parameters that can be configured on Linux nodes.
Attributes:
sysctls (Sequence[google.cloud.container_v1.types.LinuxNodeConfig.SysctlsEntry]):
sysctls (Mapping[str, str]):
The Linux kernel parameters to be applied to the nodes and
all pods running on the nodes.
Expand Down Expand Up @@ -294,7 +294,7 @@ class NodeConfig(proto.Message):
address of the Service Account; otherwise, if no
Service Account is specified, the "default"
service account is used.
metadata (Sequence[google.cloud.container_v1.types.NodeConfig.MetadataEntry]):
metadata (Mapping[str, str]):
The metadata key/value pairs assigned to instances in the
cluster.
Expand Down Expand Up @@ -335,7 +335,7 @@ class NodeConfig(proto.Message):
The image type to use for this node. Note
that for a given image type, the latest version
of it will be used.
labels (Sequence[google.cloud.container_v1.types.NodeConfig.LabelsEntry]):
labels (Mapping[str, str]):
The map of Kubernetes labels (key/value
pairs) to be applied to each node. These will
added in addition to any default label(s) that
Expand Down Expand Up @@ -1634,7 +1634,7 @@ class Cluster(proto.Message):
uptime and master/node upgrades are disabled.
Alpha enabled clusters are automatically deleted
thirty days after creation.
resource_labels (Sequence[google.cloud.container_v1.types.Cluster.ResourceLabelsEntry]):
resource_labels (Mapping[str, str]):
The resource labels for the cluster to use to
annotate any related Google Compute Engine
resources.
Expand Down Expand Up @@ -4217,7 +4217,7 @@ class MaintenanceWindow(proto.Message):
occur at any time.
This field is a member of `oneof`_ ``policy``.
maintenance_exclusions (Sequence[google.cloud.container_v1.types.MaintenanceWindow.MaintenanceExclusionsEntry]):
maintenance_exclusions (Mapping[str, google.cloud.container_v1.types.TimeWindow]):
Exceptions to maintenance window.
Non-emergency maintenance should not occur in
these windows.
Expand Down Expand Up @@ -4812,7 +4812,7 @@ class SetLabelsRequest(proto.Message):
Deprecated. The name of the cluster.
This field has been deprecated and replaced by
the name field.
resource_labels (Sequence[google.cloud.container_v1.types.SetLabelsRequest.ResourceLabelsEntry]):
resource_labels (Mapping[str, str]):
Required. The labels to set for that cluster.
label_fingerprint (str):
Required. The fingerprint of the previous set of labels for
Expand Down
Loading

0 comments on commit 70cde29

Please sign in to comment.