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

Commit a45bd77

Browse files
chore: Update gapic-generator-python to v1.6.1 (#277)
* 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: https://github.com/googleapis/googleapis-gen/commit/c8aa327b5f478865fc3fd91e3c2768e54e26ad44 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 * set manifest to true in .github/release-please.yml * add release-please-config.json * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 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: https://github.com/googleapis/googleapis-gen/commit/61ef5762ee6731a0cbbfea22fd0eecee51ab1c8e 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: https://github.com/googleapis/googleapis-gen/commit/ab0e217f560cc2c1afc11441c2eab6b6950efd2b 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: https://github.com/googleapis/googleapis-gen/commit/555c0945e60649e38739ae64bc45719cdf72178f 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 * run nox format session Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <[email protected]>
1 parent a9e9e06 commit a45bd77

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+505
-387
lines changed

.github/release-please.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
releaseType: python
22
handleGHRelease: true
3+
manifest: true
34
# NOTE: this section is generated by synthtool.languages.python
45
# See https://github.com/googleapis/synthtool/blob/master/synthtool/languages/python.py
56
branches:

.release-please-manifest.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "1.7.3"
3+
}

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
# All configuration values have a default; values that are commented out
2525
# serve to show the default.
2626

27-
import sys
2827
import os
2928
import shlex
29+
import sys
3030

3131
# If extensions (or modules to document with autodoc) are in another directory,
3232
# add these directories to sys.path here. If the directory is relative to the

docs/index.rst

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,25 @@
22

33
.. include:: multiprocessing.rst
44

5-
API Reference
6-
-------------
5+
This package includes clients for multiple versions of Cloud Trace.
6+
By default, you will get version ``trace_v2``.
77

8-
The current version of the API is ``v2``:
98

9+
API Reference
10+
-------------
1011
.. toctree::
11-
:maxdepth: 2
12+
:maxdepth: 2
1213

13-
trace_v2/services
14-
trace_v2/types
15-
16-
Support for the previous API release, ``v1``, is provided for code previously
17-
written against it.
14+
trace_v2/services
15+
trace_v2/types
1816

17+
API Reference
18+
-------------
1919
.. toctree::
20-
:maxdepth: 2
20+
:maxdepth: 2
2121

22-
trace_v1/services
23-
trace_v1/types
22+
trace_v1/services
23+
trace_v1/types
2424

2525

2626
Changelog
@@ -29,6 +29,6 @@ Changelog
2929
For a list of all ``google-cloud-trace`` releases:
3030

3131
.. toctree::
32-
:maxdepth: 2
32+
:maxdepth: 2
3333

34-
changelog
34+
changelog

docs/trace_v1/types.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@ Types for Google Cloud Trace v1 API
33

44
.. automodule:: google.cloud.trace_v1.types
55
:members:
6-
:undoc-members:
76
:show-inheritance:

docs/trace_v2/types.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@ Types for Google Cloud Trace v2 API
33

44
.. automodule:: google.cloud.trace_v2.types
55
:members:
6-
:undoc-members:
76
:show-inheritance:

google/cloud/trace/__init__.py

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,22 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16+
from google.cloud.trace import gapic_version as package_version
17+
18+
__version__ = package_version.__version__
19+
1620

17-
from google.cloud.trace_v2.services.trace_service.client import TraceServiceClient
1821
from google.cloud.trace_v2.services.trace_service.async_client import (
1922
TraceServiceAsyncClient,
2023
)
21-
22-
from google.cloud.trace_v2.types.trace import AttributeValue
23-
from google.cloud.trace_v2.types.trace import Module
24-
from google.cloud.trace_v2.types.trace import Span
25-
from google.cloud.trace_v2.types.trace import StackTrace
26-
from google.cloud.trace_v2.types.trace import TruncatableString
24+
from google.cloud.trace_v2.services.trace_service.client import TraceServiceClient
25+
from google.cloud.trace_v2.types.trace import (
26+
AttributeValue,
27+
Module,
28+
Span,
29+
StackTrace,
30+
TruncatableString,
31+
)
2732
from google.cloud.trace_v2.types.tracing import BatchWriteSpansRequest
2833

2934
__all__ = (
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2022 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
__version__ = "1.7.3" # {x-release-please-version}

google/cloud/trace_v1/__init__.py

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,21 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16+
from google.cloud.trace import gapic_version as package_version
1617

17-
from .services.trace_service import TraceServiceClient
18-
from .services.trace_service import TraceServiceAsyncClient
18+
__version__ = package_version.__version__
1919

20-
from .types.trace import GetTraceRequest
21-
from .types.trace import ListTracesRequest
22-
from .types.trace import ListTracesResponse
23-
from .types.trace import PatchTracesRequest
24-
from .types.trace import Trace
25-
from .types.trace import Traces
26-
from .types.trace import TraceSpan
20+
21+
from .services.trace_service import TraceServiceAsyncClient, TraceServiceClient
22+
from .types.trace import (
23+
GetTraceRequest,
24+
ListTracesRequest,
25+
ListTracesResponse,
26+
PatchTracesRequest,
27+
Trace,
28+
Traces,
29+
TraceSpan,
30+
)
2731

2832
__all__ = (
2933
"TraceServiceAsyncClient",

google/cloud/trace_v1/services/trace_service/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
from .client import TraceServiceClient
1716
from .async_client import TraceServiceAsyncClient
17+
from .client import TraceServiceClient
1818

1919
__all__ = (
2020
"TraceServiceClient",

0 commit comments

Comments
 (0)