Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Commit

Permalink
chore: Use gapic-generator-python 0.65.0 (#141)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 440970084

Source-Link: googleapis/googleapis@5e0a3d5

Source-Link: googleapis/googleapis-gen@b0c628a
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYjBjNjI4YTNmYWRlNzY4ZjIyNWQ3Njk5Mjc5MWVhMWJhMmE4ODFiZSJ9

docs: fix type in docstring for map fields
  • Loading branch information
gcf-owl-bot[bot] committed Apr 12, 2022
1 parent 6d13d58 commit d6acb71
Show file tree
Hide file tree
Showing 14 changed files with 162 additions and 66 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
from .multiclusteringress import FeatureSpec
from .multiclusteringress import (
FeatureSpec,
)

__all__ = ("FeatureSpec",)
5 changes: 1 addition & 4 deletions google/cloud/gkehub_v1/services/gke_hub/async_client.py
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

from google.api_core.client_options import ClientOptions
Expand Down Expand Up @@ -636,7 +636,6 @@ async def create_membership(
Cloud**. To register other clusters, follow the instructions at
https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
.. code-block:: python
from google.cloud import gkehub_v1
Expand Down Expand Up @@ -906,7 +905,6 @@ async def delete_membership(
at
https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
.. code-block:: python
from google.cloud import gkehub_v1
Expand Down Expand Up @@ -1417,7 +1415,6 @@ async def generate_connect_manifest(
**This method is used internally by Google-provided libraries.**
Most clients should not need to call this method directly.
.. code-block:: python
from google.cloud import gkehub_v1
Expand Down
5 changes: 1 addition & 4 deletions google/cloud/gkehub_v1/services/gke_hub/client.py
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

from google.api_core import client_options as client_options_lib
Expand Down Expand Up @@ -890,7 +890,6 @@ def create_membership(
Cloud**. To register other clusters, follow the instructions at
https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
.. code-block:: python
from google.cloud import gkehub_v1
Expand Down Expand Up @@ -1160,7 +1159,6 @@ def delete_membership(
at
https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
.. code-block:: python
from google.cloud import gkehub_v1
Expand Down Expand Up @@ -1671,7 +1669,6 @@ def generate_connect_manifest(
**This method is used internally by Google-provided libraries.**
Most clients should not need to call this method directly.
.. code-block:: python
from google.cloud import gkehub_v1
Expand Down
5 changes: 5 additions & 0 deletions google/cloud/gkehub_v1/services/gke_hub/transports/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,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 @@ -298,5 +299,9 @@ def generate_connect_manifest(
]:
raise NotImplementedError()

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


__all__ = ("GkeHubTransport",)
4 changes: 4 additions & 0 deletions google/cloud/gkehub_v1/services/gke_hub/transports/grpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,5 +561,9 @@ def generate_connect_manifest(
def close(self):
self.grpc_channel.close()

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


__all__ = ("GkeHubGrpcTransport",)
6 changes: 3 additions & 3 deletions google/cloud/gkehub_v1/types/feature.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class Feature(proto.Message):
name (str):
Output only. The full, unique name of this Feature resource
in the format ``projects/*/locations/*/features/*``.
labels (Sequence[google.cloud.gkehub_v1.types.Feature.LabelsEntry]):
labels (Mapping[str, str]):
GCP labels for this Feature.
resource_state (google.cloud.gkehub_v1.types.FeatureResourceState):
Output only. State of the Feature resource
Expand All @@ -51,7 +51,7 @@ class Feature(proto.Message):
Optional. Hub-wide Feature configuration. If
this Feature does not support any Hub-wide
configuration, this field may be unused.
membership_specs (Sequence[google.cloud.gkehub_v1.types.Feature.MembershipSpecsEntry]):
membership_specs (Mapping[str, google.cloud.gkehub_v1.types.MembershipFeatureSpec]):
Optional. Membership-specific configuration
for this Feature. If this Feature does not
support any per-Membership configuration, this
Expand All @@ -75,7 +75,7 @@ class Feature(proto.Message):
mutating a Feature.
state (google.cloud.gkehub_v1.types.CommonFeatureState):
Output only. The Hub-wide Feature state.
membership_states (Sequence[google.cloud.gkehub_v1.types.Feature.MembershipStatesEntry]):
membership_states (Mapping[str, google.cloud.gkehub_v1.types.MembershipFeatureState]):
Output only. Membership-specific Feature
status. If this Feature does report any
per-Membership status, this field may be unused.
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/gkehub_v1/types/membership.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class Membership(proto.Message):
Which can be expressed as the regex:
``[a-z0-9]([-a-z0-9]*[a-z0-9])?``, with a maximum length of
63 characters.
labels (Sequence[google.cloud.gkehub_v1.types.Membership.LabelsEntry]):
labels (Mapping[str, str]):
Optional. GCP labels for this membership.
description (str):
Output only. Description of this membership, limited to 63
Expand Down
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

from google.api_core.client_options import ClientOptions
Expand Down Expand Up @@ -445,7 +445,6 @@ async def create_membership(
Cloud**. To register other clusters, follow the instructions at
https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
.. code-block:: python
from google.cloud import gkehub_v1beta1
Expand Down Expand Up @@ -589,7 +588,6 @@ async def delete_membership(
at
https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
.. code-block:: python
from google.cloud import gkehub_v1beta1
Expand Down Expand Up @@ -850,7 +848,6 @@ async def generate_connect_manifest(
**This method is used internally by Google-provided libraries.**
Most clients should not need to call this method directly.
.. code-block:: python
from google.cloud import gkehub_v1beta1
Expand Down Expand Up @@ -928,7 +925,6 @@ async def validate_exclusivity(
exclusivity in the cluster. The validation does not
depend on an existing Hub membership resource.
.. code-block:: python
from google.cloud import gkehub_v1beta1
Expand Down Expand Up @@ -1016,7 +1012,6 @@ async def generate_exclusivity_manifest(
response will be the converted CRD and CR if there are
any differences between the versions.
.. code-block:: python
from google.cloud import gkehub_v1beta1
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

from google.api_core import client_options as client_options_lib
Expand Down Expand Up @@ -664,7 +664,6 @@ def create_membership(
Cloud**. To register other clusters, follow the instructions at
https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
.. code-block:: python
from google.cloud import gkehub_v1beta1
Expand Down Expand Up @@ -808,7 +807,6 @@ def delete_membership(
at
https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
.. code-block:: python
from google.cloud import gkehub_v1beta1
Expand Down Expand Up @@ -1069,7 +1067,6 @@ def generate_connect_manifest(
**This method is used internally by Google-provided libraries.**
Most clients should not need to call this method directly.
.. code-block:: python
from google.cloud import gkehub_v1beta1
Expand Down Expand Up @@ -1150,7 +1147,6 @@ def validate_exclusivity(
exclusivity in the cluster. The validation does not
depend on an existing Hub membership resource.
.. code-block:: python
from google.cloud import gkehub_v1beta1
Expand Down Expand Up @@ -1239,7 +1235,6 @@ def generate_exclusivity_manifest(
response will be the converted CRD and CR if there are
any differences between the versions.
.. code-block:: python
from google.cloud import gkehub_v1beta1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,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 @@ -262,5 +263,9 @@ def generate_exclusivity_manifest(
]:
raise NotImplementedError()

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


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

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


__all__ = ("GkeHubMembershipServiceGrpcTransport",)
2 changes: 1 addition & 1 deletion google/cloud/gkehub_v1beta1/types/membership.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class Membership(proto.Message):
Which can be expressed as the regex:
``[a-z0-9]([-a-z0-9]*[a-z0-9])?``, with a maximum length of
63 characters.
labels (Sequence[google.cloud.gkehub_v1beta1.types.Membership.LabelsEntry]):
labels (Mapping[str, str]):
Optional. GCP labels for this membership.
description (str):
Optional. Description of this membership, limited to 63
Expand Down
Loading

0 comments on commit d6acb71

Please sign in to comment.