Skip to content

Commit

Permalink
feat: add support for google.cloud.apigee_registry.__version__ (#46)
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

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

* regenerate code using templated owlbot.py and autogenerated setup.py

* configure release please to use manifest

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <[email protected]>
  • Loading branch information
3 people authored Nov 8, 2022
1 parent a12c260 commit 242ba53
Show file tree
Hide file tree
Showing 116 changed files with 1,529 additions and 8,347 deletions.
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
releaseType: python
manifest: true
handleGHRelease: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "0.3.2"
}
2 changes: 1 addition & 1 deletion packages/google-cloud-apigee-registry/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
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
# -*- 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.
#
from google.cloud.apigee_registry import gapic_version as package_version

__version__ = package_version.__version__


from google.cloud.apigee_registry_v1.services.provisioning.async_client import (
ProvisioningAsyncClient,
)
from google.cloud.apigee_registry_v1.services.provisioning.client import (
ProvisioningClient,
)
from google.cloud.apigee_registry_v1.services.registry.async_client import (
RegistryAsyncClient,
)
from google.cloud.apigee_registry_v1.services.registry.client import RegistryClient
from google.cloud.apigee_registry_v1.types.provisioning_service import (
CreateInstanceRequest,
DeleteInstanceRequest,
GetInstanceRequest,
Instance,
OperationMetadata,
)
from google.cloud.apigee_registry_v1.types.registry_models import (
Api,
ApiDeployment,
ApiSpec,
ApiVersion,
Artifact,
)
from google.cloud.apigee_registry_v1.types.registry_service import (
CreateApiDeploymentRequest,
CreateApiRequest,
CreateApiSpecRequest,
CreateApiVersionRequest,
CreateArtifactRequest,
DeleteApiDeploymentRequest,
DeleteApiDeploymentRevisionRequest,
DeleteApiRequest,
DeleteApiSpecRequest,
DeleteApiSpecRevisionRequest,
DeleteApiVersionRequest,
DeleteArtifactRequest,
GetApiDeploymentRequest,
GetApiRequest,
GetApiSpecContentsRequest,
GetApiSpecRequest,
GetApiVersionRequest,
GetArtifactContentsRequest,
GetArtifactRequest,
ListApiDeploymentRevisionsRequest,
ListApiDeploymentRevisionsResponse,
ListApiDeploymentsRequest,
ListApiDeploymentsResponse,
ListApiSpecRevisionsRequest,
ListApiSpecRevisionsResponse,
ListApiSpecsRequest,
ListApiSpecsResponse,
ListApisRequest,
ListApisResponse,
ListApiVersionsRequest,
ListApiVersionsResponse,
ListArtifactsRequest,
ListArtifactsResponse,
ReplaceArtifactRequest,
RollbackApiDeploymentRequest,
RollbackApiSpecRequest,
TagApiDeploymentRevisionRequest,
TagApiSpecRevisionRequest,
UpdateApiDeploymentRequest,
UpdateApiRequest,
UpdateApiSpecRequest,
UpdateApiVersionRequest,
)

__all__ = (
"ProvisioningClient",
"ProvisioningAsyncClient",
"RegistryClient",
"RegistryAsyncClient",
"CreateInstanceRequest",
"DeleteInstanceRequest",
"GetInstanceRequest",
"Instance",
"OperationMetadata",
"Api",
"ApiDeployment",
"ApiSpec",
"ApiVersion",
"Artifact",
"CreateApiDeploymentRequest",
"CreateApiRequest",
"CreateApiSpecRequest",
"CreateApiVersionRequest",
"CreateArtifactRequest",
"DeleteApiDeploymentRequest",
"DeleteApiDeploymentRevisionRequest",
"DeleteApiRequest",
"DeleteApiSpecRequest",
"DeleteApiSpecRevisionRequest",
"DeleteApiVersionRequest",
"DeleteArtifactRequest",
"GetApiDeploymentRequest",
"GetApiRequest",
"GetApiSpecContentsRequest",
"GetApiSpecRequest",
"GetApiVersionRequest",
"GetArtifactContentsRequest",
"GetArtifactRequest",
"ListApiDeploymentRevisionsRequest",
"ListApiDeploymentRevisionsResponse",
"ListApiDeploymentsRequest",
"ListApiDeploymentsResponse",
"ListApiSpecRevisionsRequest",
"ListApiSpecRevisionsResponse",
"ListApiSpecsRequest",
"ListApiSpecsResponse",
"ListApisRequest",
"ListApisResponse",
"ListApiVersionsRequest",
"ListApiVersionsResponse",
"ListArtifactsRequest",
"ListArtifactsResponse",
"ReplaceArtifactRequest",
"RollbackApiDeploymentRequest",
"RollbackApiSpecRequest",
"TagApiDeploymentRevisionRequest",
"TagApiSpecRevisionRequest",
"UpdateApiDeploymentRequest",
"UpdateApiRequest",
"UpdateApiSpecRequest",
"UpdateApiVersionRequest",
)
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__ = "0.3.2" # {x-release-please-version}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Marker file for PEP 561.
# The google-cloud-apigee-registry package uses inline types.
Original file line number Diff line number Diff line change
Expand Up @@ -13,64 +13,65 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
from google.cloud.apigee_registry import gapic_version as package_version

from .services.provisioning import ProvisioningClient
from .services.provisioning import ProvisioningAsyncClient
from .services.registry import RegistryClient
from .services.registry import RegistryAsyncClient
__version__ = package_version.__version__

from .types.provisioning_service import CreateInstanceRequest
from .types.provisioning_service import DeleteInstanceRequest
from .types.provisioning_service import GetInstanceRequest
from .types.provisioning_service import Instance
from .types.provisioning_service import OperationMetadata
from .types.registry_models import Api
from .types.registry_models import ApiDeployment
from .types.registry_models import ApiSpec
from .types.registry_models import ApiVersion
from .types.registry_models import Artifact
from .types.registry_service import CreateApiDeploymentRequest
from .types.registry_service import CreateApiRequest
from .types.registry_service import CreateApiSpecRequest
from .types.registry_service import CreateApiVersionRequest
from .types.registry_service import CreateArtifactRequest
from .types.registry_service import DeleteApiDeploymentRequest
from .types.registry_service import DeleteApiDeploymentRevisionRequest
from .types.registry_service import DeleteApiRequest
from .types.registry_service import DeleteApiSpecRequest
from .types.registry_service import DeleteApiSpecRevisionRequest
from .types.registry_service import DeleteApiVersionRequest
from .types.registry_service import DeleteArtifactRequest
from .types.registry_service import GetApiDeploymentRequest
from .types.registry_service import GetApiRequest
from .types.registry_service import GetApiSpecContentsRequest
from .types.registry_service import GetApiSpecRequest
from .types.registry_service import GetApiVersionRequest
from .types.registry_service import GetArtifactContentsRequest
from .types.registry_service import GetArtifactRequest
from .types.registry_service import ListApiDeploymentRevisionsRequest
from .types.registry_service import ListApiDeploymentRevisionsResponse
from .types.registry_service import ListApiDeploymentsRequest
from .types.registry_service import ListApiDeploymentsResponse
from .types.registry_service import ListApiSpecRevisionsRequest
from .types.registry_service import ListApiSpecRevisionsResponse
from .types.registry_service import ListApiSpecsRequest
from .types.registry_service import ListApiSpecsResponse
from .types.registry_service import ListApisRequest
from .types.registry_service import ListApisResponse
from .types.registry_service import ListApiVersionsRequest
from .types.registry_service import ListApiVersionsResponse
from .types.registry_service import ListArtifactsRequest
from .types.registry_service import ListArtifactsResponse
from .types.registry_service import ReplaceArtifactRequest
from .types.registry_service import RollbackApiDeploymentRequest
from .types.registry_service import RollbackApiSpecRequest
from .types.registry_service import TagApiDeploymentRevisionRequest
from .types.registry_service import TagApiSpecRevisionRequest
from .types.registry_service import UpdateApiDeploymentRequest
from .types.registry_service import UpdateApiRequest
from .types.registry_service import UpdateApiSpecRequest
from .types.registry_service import UpdateApiVersionRequest

from .services.provisioning import ProvisioningAsyncClient, ProvisioningClient
from .services.registry import RegistryAsyncClient, RegistryClient
from .types.provisioning_service import (
CreateInstanceRequest,
DeleteInstanceRequest,
GetInstanceRequest,
Instance,
OperationMetadata,
)
from .types.registry_models import Api, ApiDeployment, ApiSpec, ApiVersion, Artifact
from .types.registry_service import (
CreateApiDeploymentRequest,
CreateApiRequest,
CreateApiSpecRequest,
CreateApiVersionRequest,
CreateArtifactRequest,
DeleteApiDeploymentRequest,
DeleteApiDeploymentRevisionRequest,
DeleteApiRequest,
DeleteApiSpecRequest,
DeleteApiSpecRevisionRequest,
DeleteApiVersionRequest,
DeleteArtifactRequest,
GetApiDeploymentRequest,
GetApiRequest,
GetApiSpecContentsRequest,
GetApiSpecRequest,
GetApiVersionRequest,
GetArtifactContentsRequest,
GetArtifactRequest,
ListApiDeploymentRevisionsRequest,
ListApiDeploymentRevisionsResponse,
ListApiDeploymentsRequest,
ListApiDeploymentsResponse,
ListApiSpecRevisionsRequest,
ListApiSpecRevisionsResponse,
ListApiSpecsRequest,
ListApiSpecsResponse,
ListApisRequest,
ListApisResponse,
ListApiVersionsRequest,
ListApiVersionsResponse,
ListArtifactsRequest,
ListArtifactsResponse,
ReplaceArtifactRequest,
RollbackApiDeploymentRequest,
RollbackApiSpecRequest,
TagApiDeploymentRevisionRequest,
TagApiSpecRevisionRequest,
UpdateApiDeploymentRequest,
UpdateApiRequest,
UpdateApiSpecRequest,
UpdateApiVersionRequest,
)

__all__ = (
"ProvisioningAsyncClient",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
from .client import ProvisioningClient
from .async_client import ProvisioningAsyncClient
from .client import ProvisioningClient

__all__ = (
"ProvisioningClient",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
import functools
import re
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core.client_options import ClientOptions
from google.api_core import exceptions as core_exceptions
from google.api_core import gapic_v1
from google.api_core import retry as retries
from google.api_core.client_options import ClientOptions
from google.auth import credentials as ga_credentials # type: ignore
from google.oauth2 import service_account # type: ignore
import pkg_resources

try:
OptionalRetry = Union[retries.Retry, gapic_v1.method._MethodDefault]
Expand All @@ -33,16 +33,18 @@

from google.api_core import operation # type: ignore
from google.api_core import operation_async # type: ignore
from google.cloud.apigee_registry_v1.types import provisioning_service
from google.cloud.location import locations_pb2 # type: ignore
from google.iam.v1 import iam_policy_pb2 # type: ignore
from google.iam.v1 import policy_pb2 # type: ignore
from google.longrunning import operations_pb2
from google.protobuf import empty_pb2 # type: ignore
from google.protobuf import timestamp_pb2 # type: ignore
from .transports.base import ProvisioningTransport, DEFAULT_CLIENT_INFO
from .transports.grpc_asyncio import ProvisioningGrpcAsyncIOTransport

from google.cloud.apigee_registry_v1.types import provisioning_service

from .client import ProvisioningClient
from .transports.base import DEFAULT_CLIENT_INFO, ProvisioningTransport
from .transports.grpc_asyncio import ProvisioningGrpcAsyncIOTransport


class ProvisioningAsyncClient:
Expand Down
Loading

0 comments on commit 242ba53

Please sign in to comment.