Skip to content

Commit befa9fa

Browse files
authored
feat(asset): add v1p1beta1, promote library to beta (#10202)
* feat: add v1p1beta1, promote library to beta
1 parent 01b7fb9 commit befa9fa

22 files changed

+2756
-3392
lines changed

README.rst

+5-5
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,17 @@ against beta libraries are addressed with a higher priority.
103103

104104
The following client libraries have **beta** support:
105105

106+
- `Google Cloud Asset`_ (`Asset README`_, `Asset Documentation`_)
106107
- `Google Cloud Billing Budgets`_ (`Billing Budgets README`_, `Billing Budgets Documentation`_)
107108
- `Google Cloud Data Catalog`_ (`Data Catalog README`_, `Data Catalog Documentation`_)
108109
- `Google Cloud Firestore`_ (`Firestore README`_, `Firestore Documentation`_)
109110
- `Google Cloud Video Intelligence`_ (`Video Intelligence README`_, `Video Intelligence Documentation`_)
110111
- `Google Cloud Vision`_ (`Vision README`_, `Vision Documentation`_)
111112

113+
.. _Google Cloud Asset: https://pypi.org/project/google-cloud-asset/
114+
.. _Asset README: https://github.com/googleapis/google-cloud-python/blob/master/asset
115+
.. _Asset Documentation: https://googleapis.dev/python/cloudasset/latest
116+
112117
.. _Google Cloud Billing Budgets: https://pypi.org/project/google-cloud-billing-budgets/
113118
.. _Billing Budgets README: https://github.com/googleapis/google-cloud-python/tree/master/billingbudgets
114119
.. _Billing Budgets Documentation: https://googleapis.dev/python/billingbudgets/latest
@@ -139,7 +144,6 @@ updates. See `versioning`_ for more details.
139144

140145
The following client libraries have **alpha** support:
141146

142-
- `Google Cloud Asset`_ (`Asset README`_, `Asset Documentation`_)
143147
- `Google Cloud AutoML`_ (`AutoML README`_, `AutoML Documentation`_)
144148
- `Google BigQuery Data Transfer`_ (`BigQuery Data Transfer README`_, `BigQuery Documentation`_)
145149
- `Google Cloud Bigtable - HappyBase`_ (`HappyBase README`_, `HappyBase Documentation`_)
@@ -161,10 +165,6 @@ The following client libraries have **alpha** support:
161165
- `Stackdriver Error Reporting`_ (`Error Reporting README`_, `Error Reporting Documentation`_)
162166
- `Stackdriver Monitoring`_ (`Monitoring README`_, `Monitoring Documentation`_)
163167

164-
.. _Google Cloud Asset: https://pypi.org/project/google-cloud-asset/
165-
.. _Asset README: https://github.com/googleapis/google-cloud-python/blob/master/asset
166-
.. _Asset Documentation: https://googleapis.dev/python/cloudasset/latest
167-
168168
.. _Google Cloud AutoML: https://pypi.org/project/google-cloud-automl/
169169
.. _AutoML README: https://github.com/googleapis/google-cloud-python/blob/master/automl
170170
.. _AutoML Documentation: https://googleapis.dev/python/automl/latest

asset/.repo-metadata.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"product_documentation": "https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview",
55
"client_documentation": "https://googleapis.dev/python/cloudasset/latest",
66
"issue_tracker": "https://issuetracker.google.com/savedsearches/559757",
7-
"release_level": "alpha",
7+
"release_level": "beta",
88
"language": "python",
99
"repo": "googleapis/google-cloud-python",
1010
"distribution_name": "google-cloud-asset",

asset/README.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
Python Client for Cloud Asset API
22
=================================
33

4-
|alpha| |pypi| |versions|
4+
|beta| |pypi| |versions|
55

66
`Cloud Asset API`_: The cloud asset API manages the history and inventory of cloud resources.
77

88
- `Client Library Documentation`_
99
- `Product Documentation`_
1010

11-
.. |alpha| image:: https://img.shields.io/badge/support-alpha-orange.svg
12-
:target: https://github.com/googleapis/google-cloud-python/blob/master/README.rst#alpha-support
11+
.. |beta| image:: https://img.shields.io/badge/support-beta-orange.svg
12+
:target: https://github.com/googleapis/google-cloud-python/blob/master/README.rst#beta-support
1313
.. |pypi| image:: https://img.shields.io/pypi/v/google-cloud-asset.svg
1414
:target: https://pypi.org/project/google-cloud-asset/
1515
.. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-asset.svg

asset/docs/gapic/v1p1beta1/api.rst

+6
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_v1p1beta1
5+
:members:
6+
:inherited-members:

asset/docs/gapic/v1p1beta1/types.rst

+5
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_v1p1beta1.types
5+
:members:

asset/docs/index.rst

+19-4
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,43 @@ Api Reference
66
This package includes clients for multiple versions of the Cloud Asset API. By default, you will get ``v1``
77
the latest stable version.
88

9+
v1
10+
~~~~~~~~~
911
.. toctree::
1012
:maxdepth: 2
1113

1214
gapic/v1/api
1315
gapic/v1/types
1416

15-
A new beta release with additional features over the current stable version, spelled ``v1p2beta1``, is provided
16-
to allow you to use these new features. These are expected to move into the stable release soon; until
17-
then, the usual beta admonishment (changes are possible, etc.) applies.
17+
Beta releases with additional features over the current stable version, spelled ``v1p1beta1`` and ``v1p2beta1``,
18+
are provided to allow you to use these new features. These are expected to move into the stable release soon;
19+
until then, the usual beta admonishment (changes are possible, etc.) applies.
1820

1921
An API and type reference is provided for this beta:
2022

23+
v1p1beta1
24+
~~~~~~~~~
25+
.. toctree::
26+
:maxdepth: 2
27+
28+
gapic/v1p1beta1/api
29+
gapic/v1p1beta1/types
30+
31+
32+
v1p2beta1
33+
~~~~~~~~~
2134
.. toctree::
2235
:maxdepth: 2
2336

2437
gapic/v1p2beta1/api
2538
gapic/v1p2beta1/types
2639

27-
The previous beta release, spelled ``v1p2beta1`` is also provided to continue to support code
40+
The previous beta release, spelled ``v1beta1`` is also provided to continue to support code
2841
previously written against it. In order to use it, you will want to import from
2942
``google.cloud.asset_v1beta1`` in lieu of ``google.cloud.asset_v1``.
3043

44+
v1beta1
45+
~~~~~~~~~
3146
.. toctree::
3247
:maxdepth: 2
3348

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# -*- coding: utf-8 -*-
2+
#
3+
# Copyright 2019 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+
20+
from google.cloud.asset_v1p1beta1 import types
21+
from google.cloud.asset_v1p1beta1.gapic import asset_service_client
22+
23+
24+
class AssetServiceClient(asset_service_client.AssetServiceClient):
25+
__doc__ = asset_service_client.AssetServiceClient.__doc__
26+
27+
28+
__all__ = ("types", "AssetServiceClient")

asset/google/cloud/asset_v1p1beta1/gapic/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)