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

Commit

Permalink
chore: Update gapic-generator-python to v1.6.1 (#209)
Browse files Browse the repository at this point in the history
* chore: update to gapic-generator-python 1.5.0

feat: add support for `google.cloud.<api>.__version__`
PiperOrigin-RevId: 484665853

Source-Link: googleapis/googleapis@8eb249a

Source-Link: googleapis/googleapis-gen@c8aa327
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYzhhYTMyN2I1ZjQ3ODg2NWZjM2ZkOTFlM2MyNzY4ZTU0ZTI2YWQ0NCJ9

* 🦉 Updates from OwlBot post-processor

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

* update version in gapic_version.py

* add .release-please-manifest.json with correct version

* add release-please-config.json

* chore: Update to gapic-generator-python 1.6.0

feat(python): Add typing to proto.Message based class attributes

feat(python): Snippetgen handling of repeated enum field

PiperOrigin-RevId: 487326846

Source-Link: googleapis/googleapis@da380c7

Source-Link: googleapis/googleapis-gen@61ef576
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjFlZjU3NjJlZTY3MzFhMGNiYmZlYTIyZmQwZWVjZWU1MWFiMWM4ZSJ9

* 🦉 Updates from OwlBot post-processor

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

* feat: new APIs added to reflect updates to the filestore service

- Add ENTERPRISE Tier
- Add snapshot APIs: RevertInstance, ListSnapshots, CreateSnapshot, DeleteSnapshot, UpdateSnapshot
- Add multi-share APIs: ListShares, GetShare, CreateShare, DeleteShare, UpdateShare
- Add ConnectMode to NetworkConfig (for Private Service Access support)
- New status codes (SUSPENDED/SUSPENDING, REVERTING/RESUMING)
- Add SuspensionReason (for KMS related suspension)
- Add new fields to Instance information: max_capacity_gb, capacity_step_size_gb, max_share_count, capacity_gb, multi_share_enabled

PiperOrigin-RevId: 487492758

Source-Link: googleapis/googleapis@5be5981

Source-Link: googleapis/googleapis-gen@ab0e217
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYWIwZTIxN2Y1NjBjYzJjMWFmYzExNDQxYzJlYWI2YjY5NTBlZmQyYiJ9

* 🦉 Updates from OwlBot post-processor

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

* update path to snippet metadata json

* chore: Update gapic-generator-python to v1.6.1

PiperOrigin-RevId: 488036204

Source-Link: googleapis/googleapis@08f275f

Source-Link: googleapis/googleapis-gen@555c094
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNTU1YzA5NDVlNjA2NDllMzg3MzlhZTY0YmM0NTcxOWNkZjcyMTc4ZiJ9

* 🦉 Updates from OwlBot post-processor

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

* use templated owlbot.py and setup.py

* customize docs/index.rst

* configure release-please to use manifest

* customize setup.py

* run nox format session

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
  • Loading branch information
3 people committed Nov 27, 2022
1 parent b70e86b commit cd4e739
Show file tree
Hide file tree
Showing 52 changed files with 1,078 additions and 938 deletions.
2 changes: 1 addition & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ branch = True
[report]
show_missing = True
omit =
google/cloud/gkehub/multiclusteringress/__init__.py
google/cloud/gkehub/__init__.py
exclude_lines =
# Re-enable the standard pragma
pragma: NO COVER
Expand Down
1 change: 1 addition & 0 deletions .github/release-please.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
releaseType: python
handleGHRelease: true
manifest: true
3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "1.5.3"
}
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
# All configuration values have a default; values that are commented out
# serve to show the default.

import sys
import os
import shlex
import sys

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
Expand Down
1 change: 0 additions & 1 deletion docs/gkehub_v1/configmanagement_v1/types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ Types for Google Cloud Gkehub Configmanagement v1 API

.. automodule:: google.cloud.gkehub_v1.configmanagement_v1.types
:members:
:undoc-members:
:show-inheritance:
1 change: 0 additions & 1 deletion docs/gkehub_v1/multiclusteringress_v1/types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ Types for Google Cloud Gkehub Multiclusteringress v1 API

.. automodule:: google.cloud.gkehub_v1.multiclusteringress_v1.types
:members:
:undoc-members:
:show-inheritance:
1 change: 0 additions & 1 deletion docs/gkehub_v1/types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ Types for Google Cloud Gkehub v1 API

.. automodule:: google.cloud.gkehub_v1.types
:members:
:undoc-members:
:show-inheritance:
1 change: 0 additions & 1 deletion docs/gkehub_v1beta1/types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ Types for Google Cloud Gkehub v1beta1 API

.. automodule:: google.cloud.gkehub_v1beta1.types
:members:
:undoc-members:
:show-inheritance:
8 changes: 6 additions & 2 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

.. include:: multiprocessing.rst

This package includes clients for multiple versions of GKE Hub.
By default, you will get version ``gkehub_v1``.


API Reference
-------------
.. toctree::
Expand Down Expand Up @@ -29,6 +33,6 @@ Changelog
For a list of all ``google-cloud-gke-hub`` releases:

.. toctree::
:maxdepth: 2
:maxdepth: 2

changelog
changelog
79 changes: 44 additions & 35 deletions google/cloud/gkehub/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,43 +13,52 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
from google.cloud.gkehub import gapic_version as package_version

from google.cloud.gkehub_v1.services.gke_hub.client import GkeHubClient
from google.cloud.gkehub_v1.services.gke_hub.async_client import GkeHubAsyncClient
__version__ = package_version.__version__

from google.cloud.gkehub_v1.types.feature import CommonFeatureSpec
from google.cloud.gkehub_v1.types.feature import CommonFeatureState
from google.cloud.gkehub_v1.types.feature import Feature
from google.cloud.gkehub_v1.types.feature import FeatureResourceState
from google.cloud.gkehub_v1.types.feature import FeatureState
from google.cloud.gkehub_v1.types.feature import MembershipFeatureSpec
from google.cloud.gkehub_v1.types.feature import MembershipFeatureState
from google.cloud.gkehub_v1.types.membership import Authority
from google.cloud.gkehub_v1.types.membership import GkeCluster
from google.cloud.gkehub_v1.types.membership import KubernetesMetadata
from google.cloud.gkehub_v1.types.membership import KubernetesResource
from google.cloud.gkehub_v1.types.membership import Membership
from google.cloud.gkehub_v1.types.membership import MembershipEndpoint
from google.cloud.gkehub_v1.types.membership import MembershipState
from google.cloud.gkehub_v1.types.membership import ResourceManifest
from google.cloud.gkehub_v1.types.membership import ResourceOptions
from google.cloud.gkehub_v1.types.service import ConnectAgentResource
from google.cloud.gkehub_v1.types.service import CreateFeatureRequest
from google.cloud.gkehub_v1.types.service import CreateMembershipRequest
from google.cloud.gkehub_v1.types.service import DeleteFeatureRequest
from google.cloud.gkehub_v1.types.service import DeleteMembershipRequest
from google.cloud.gkehub_v1.types.service import GenerateConnectManifestRequest
from google.cloud.gkehub_v1.types.service import GenerateConnectManifestResponse
from google.cloud.gkehub_v1.types.service import GetFeatureRequest
from google.cloud.gkehub_v1.types.service import GetMembershipRequest
from google.cloud.gkehub_v1.types.service import ListFeaturesRequest
from google.cloud.gkehub_v1.types.service import ListFeaturesResponse
from google.cloud.gkehub_v1.types.service import ListMembershipsRequest
from google.cloud.gkehub_v1.types.service import ListMembershipsResponse
from google.cloud.gkehub_v1.types.service import OperationMetadata
from google.cloud.gkehub_v1.types.service import TypeMeta
from google.cloud.gkehub_v1.types.service import UpdateFeatureRequest
from google.cloud.gkehub_v1.types.service import UpdateMembershipRequest

from google.cloud.gkehub_v1.services.gke_hub.async_client import GkeHubAsyncClient
from google.cloud.gkehub_v1.services.gke_hub.client import GkeHubClient
from google.cloud.gkehub_v1.types.feature import (
CommonFeatureSpec,
CommonFeatureState,
Feature,
FeatureResourceState,
FeatureState,
MembershipFeatureSpec,
MembershipFeatureState,
)
from google.cloud.gkehub_v1.types.membership import (
Authority,
GkeCluster,
KubernetesMetadata,
KubernetesResource,
Membership,
MembershipEndpoint,
MembershipState,
ResourceManifest,
ResourceOptions,
)
from google.cloud.gkehub_v1.types.service import (
ConnectAgentResource,
CreateFeatureRequest,
CreateMembershipRequest,
DeleteFeatureRequest,
DeleteMembershipRequest,
GenerateConnectManifestRequest,
GenerateConnectManifestResponse,
GetFeatureRequest,
GetMembershipRequest,
ListFeaturesRequest,
ListFeaturesResponse,
ListMembershipsRequest,
ListMembershipsResponse,
OperationMetadata,
TypeMeta,
UpdateFeatureRequest,
UpdateMembershipRequest,
)

__all__ = (
"GkeHubClient",
Expand Down
16 changes: 16 additions & 0 deletions google/cloud/gkehub/gapic_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "1.5.3" # {x-release-please-version}
78 changes: 43 additions & 35 deletions google/cloud/gkehub_v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,43 +13,51 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
from google.cloud.gkehub import gapic_version as package_version

from .services.gke_hub import GkeHubClient
from .services.gke_hub import GkeHubAsyncClient
__version__ = package_version.__version__

from .types.feature import CommonFeatureSpec
from .types.feature import CommonFeatureState
from .types.feature import Feature
from .types.feature import FeatureResourceState
from .types.feature import FeatureState
from .types.feature import MembershipFeatureSpec
from .types.feature import MembershipFeatureState
from .types.membership import Authority
from .types.membership import GkeCluster
from .types.membership import KubernetesMetadata
from .types.membership import KubernetesResource
from .types.membership import Membership
from .types.membership import MembershipEndpoint
from .types.membership import MembershipState
from .types.membership import ResourceManifest
from .types.membership import ResourceOptions
from .types.service import ConnectAgentResource
from .types.service import CreateFeatureRequest
from .types.service import CreateMembershipRequest
from .types.service import DeleteFeatureRequest
from .types.service import DeleteMembershipRequest
from .types.service import GenerateConnectManifestRequest
from .types.service import GenerateConnectManifestResponse
from .types.service import GetFeatureRequest
from .types.service import GetMembershipRequest
from .types.service import ListFeaturesRequest
from .types.service import ListFeaturesResponse
from .types.service import ListMembershipsRequest
from .types.service import ListMembershipsResponse
from .types.service import OperationMetadata
from .types.service import TypeMeta
from .types.service import UpdateFeatureRequest
from .types.service import UpdateMembershipRequest

from .services.gke_hub import GkeHubAsyncClient, GkeHubClient
from .types.feature import (
CommonFeatureSpec,
CommonFeatureState,
Feature,
FeatureResourceState,
FeatureState,
MembershipFeatureSpec,
MembershipFeatureState,
)
from .types.membership import (
Authority,
GkeCluster,
KubernetesMetadata,
KubernetesResource,
Membership,
MembershipEndpoint,
MembershipState,
ResourceManifest,
ResourceOptions,
)
from .types.service import (
ConnectAgentResource,
CreateFeatureRequest,
CreateMembershipRequest,
DeleteFeatureRequest,
DeleteMembershipRequest,
GenerateConnectManifestRequest,
GenerateConnectManifestResponse,
GetFeatureRequest,
GetMembershipRequest,
ListFeaturesRequest,
ListFeaturesResponse,
ListMembershipsRequest,
ListMembershipsResponse,
OperationMetadata,
TypeMeta,
UpdateFeatureRequest,
UpdateMembershipRequest,
)

__all__ = (
"GkeHubAsyncClient",
Expand Down
49 changes: 27 additions & 22 deletions google/cloud/gkehub_v1/configmanagement_v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,30 +13,35 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
from google.cloud.gkehub import gapic_version as package_version

__version__ = package_version.__version__

from .types.configmanagement import ConfigSync
from .types.configmanagement import ConfigSyncDeploymentState
from .types.configmanagement import ConfigSyncState
from .types.configmanagement import ConfigSyncVersion
from .types.configmanagement import ErrorResource
from .types.configmanagement import GatekeeperDeploymentState
from .types.configmanagement import GitConfig
from .types.configmanagement import GroupVersionKind
from .types.configmanagement import HierarchyControllerConfig
from .types.configmanagement import HierarchyControllerDeploymentState
from .types.configmanagement import HierarchyControllerState
from .types.configmanagement import HierarchyControllerVersion
from .types.configmanagement import InstallError
from .types.configmanagement import MembershipSpec
from .types.configmanagement import MembershipState
from .types.configmanagement import OperatorState
from .types.configmanagement import PolicyController
from .types.configmanagement import PolicyControllerState
from .types.configmanagement import PolicyControllerVersion
from .types.configmanagement import SyncError
from .types.configmanagement import SyncState
from .types.configmanagement import DeploymentState

from .types.configmanagement import (
ConfigSync,
ConfigSyncDeploymentState,
ConfigSyncState,
ConfigSyncVersion,
DeploymentState,
ErrorResource,
GatekeeperDeploymentState,
GitConfig,
GroupVersionKind,
HierarchyControllerConfig,
HierarchyControllerDeploymentState,
HierarchyControllerState,
HierarchyControllerVersion,
InstallError,
MembershipSpec,
MembershipState,
OperatorState,
PolicyController,
PolicyControllerState,
PolicyControllerVersion,
SyncError,
SyncState,
)

__all__ = (
"ConfigSync",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
ConfigSyncDeploymentState,
ConfigSyncState,
ConfigSyncVersion,
DeploymentState,
ErrorResource,
GatekeeperDeploymentState,
GitConfig,
Expand All @@ -35,7 +36,6 @@
PolicyControllerVersion,
SyncError,
SyncState,
DeploymentState,
)

__all__ = (
Expand Down
Loading

0 comments on commit cd4e739

Please sign in to comment.