Skip to content

Commit e05610b

Browse files
authored
feat: generate v1p5beta1 (#47)
* feat: generate v1p5beta1 * fix: fix unit tests, imports * docs: fix docs * docs: include v1p5beta1 docs * build: update pip * chore: try newer version of black * Update build.sh
1 parent b337e07 commit e05610b

File tree

21 files changed

+1925
-23
lines changed

21 files changed

+1925
-23
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Client for Cloud Asset API
2+
==========================
3+
4+
.. automodule:: google.cloud.asset_v1p5beta1
5+
:members:
6+
:inherited-members:
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Types for Cloud Asset API Client
2+
================================
3+
4+
.. automodule:: google.cloud.asset_v1p5beta1.types
5+
:members:

packages/google-cloud-asset/docs/index.rst

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ Api Reference
88
This package includes clients for multiple versions of the Cloud Asset API. By default, you will get ``v1``
99
the latest stable version.
1010

11-
v1
11+
v1 <v1>
1212
~~~~~~~~~
1313
.. toctree::
1414
:maxdepth: 2
1515

16-
gapic/v1/api
17-
gapic/v1/types
16+
Client (v1) <gapic/v1/api>
17+
Types (v1) <gapic/v1/types>
1818

1919
Beta releases with additional features over the current stable version. These are expected to move into the stable release soon;
2020
until then, the usual beta admonishment (changes are possible, etc.) applies.
@@ -27,36 +27,44 @@ v1p1beta1
2727
.. toctree::
2828
:maxdepth: 2
2929

30-
gapic/v1p1beta1/api
31-
gapic/v1p1beta1/types
30+
Client (v1p1beta1) <gapic/v1p1beta1/api>
31+
Types (v1p1beta1) <gapic/v1p1beta1/types>
3232

3333

3434
v1p2beta1
3535
~~~~~~~~~
3636
.. toctree::
3737
:maxdepth: 2
3838

39-
gapic/v1p2beta1/api
40-
gapic/v1p2beta1/types
39+
Client (v1p1beta1) <gapic/v1p2beta1/api>
40+
Types (v1p1beta1) <gapic/v1p2beta1/types>
4141

4242

4343
v1p4beta1
4444
~~~~~~~~~
4545
.. toctree::
4646
:maxdepth: 2
4747

48-
gapic/v1p4beta1/api
49-
gapic/v1p4beta1/types
48+
Client (v1p4beta1) <gapic/v1p4beta1/api>
49+
Types (v1p4beta1) <gapic/v1p4beta1/types>
5050

5151

52+
v1p5beta1
53+
~~~~~~~~~
54+
.. toctree::
55+
:maxdepth: 2
56+
57+
Client (v1p5beta1) <gapic/v1p5beta1/api>
58+
Types (v1p5beta1) <gapic/v1p5beta1/types>
59+
5260

5361
v1beta1
5462
~~~~~~~~~
5563
.. toctree::
5664
:maxdepth: 2
5765

58-
gapic/v1beta1/api
59-
gapic/v1beta1/types
66+
Client (v1beta1) <gapic/v1beta1/api>
67+
Types (v1beta1) <gapic/v1beta1/types>
6068

6169

6270
Changelog
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# -*- coding: utf-8 -*-
2+
#
3+
# Copyright 2020 Google LLC
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# https://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
17+
18+
from __future__ import absolute_import
19+
import sys
20+
import warnings
21+
22+
from google.cloud.asset_v1p5beta1 import types
23+
from google.cloud.asset_v1p5beta1.gapic import asset_service_client
24+
from google.cloud.asset_v1p5beta1.gapic import enums
25+
26+
27+
if sys.version_info[:2] == (2, 7):
28+
message = (
29+
"A future version of this library will drop support for Python 2.7. "
30+
"More details about Python 2 support for Google Cloud Client Libraries "
31+
"can be found at https://cloud.google.com/python/docs/python2-sunset/"
32+
)
33+
warnings.warn(message, DeprecationWarning)
34+
35+
36+
class AssetServiceClient(asset_service_client.AssetServiceClient):
37+
__doc__ = asset_service_client.AssetServiceClient.__doc__
38+
enums = enums
39+
40+
41+
__all__ = ("enums", "types", "AssetServiceClient")

packages/google-cloud-asset/google/cloud/asset_v1p5beta1/gapic/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)