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

Commit f754a3a

Browse files
chore: Update gapic-generator-python to v1.6.1 (#35)
* 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 * add .release-please-manifest.json with correct version * 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 * 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 <partheniou@google.com>
1 parent 4d00d22 commit f754a3a

File tree

83 files changed

+1491
-5891
lines changed

Some content is hidden

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

83 files changed

+1491
-5891
lines changed

.github/release-please.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
releaseType: python
22
handleGHRelease: true
3+
manifest: true

.release-please-manifest.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "0.2.2"
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/gke_backup_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 Gke Backup v1 API
33

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

google/cloud/gke_backup/__init__.py

Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
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+
from google.cloud.gke_backup import gapic_version as package_version
17+
18+
__version__ = package_version.__version__
19+
20+
21+
from google.cloud.gke_backup_v1.services.backup_for_gke.async_client import (
22+
BackupForGKEAsyncClient,
23+
)
24+
from google.cloud.gke_backup_v1.services.backup_for_gke.client import BackupForGKEClient
25+
from google.cloud.gke_backup_v1.types.backup import Backup
26+
from google.cloud.gke_backup_v1.types.backup_plan import BackupPlan
27+
from google.cloud.gke_backup_v1.types.common import (
28+
EncryptionKey,
29+
NamespacedName,
30+
NamespacedNames,
31+
Namespaces,
32+
)
33+
from google.cloud.gke_backup_v1.types.gkebackup import (
34+
CreateBackupPlanRequest,
35+
CreateBackupRequest,
36+
CreateRestorePlanRequest,
37+
CreateRestoreRequest,
38+
DeleteBackupPlanRequest,
39+
DeleteBackupRequest,
40+
DeleteRestorePlanRequest,
41+
DeleteRestoreRequest,
42+
GetBackupPlanRequest,
43+
GetBackupRequest,
44+
GetRestorePlanRequest,
45+
GetRestoreRequest,
46+
GetVolumeBackupRequest,
47+
GetVolumeRestoreRequest,
48+
ListBackupPlansRequest,
49+
ListBackupPlansResponse,
50+
ListBackupsRequest,
51+
ListBackupsResponse,
52+
ListRestorePlansRequest,
53+
ListRestorePlansResponse,
54+
ListRestoresRequest,
55+
ListRestoresResponse,
56+
ListVolumeBackupsRequest,
57+
ListVolumeBackupsResponse,
58+
ListVolumeRestoresRequest,
59+
ListVolumeRestoresResponse,
60+
OperationMetadata,
61+
UpdateBackupPlanRequest,
62+
UpdateBackupRequest,
63+
UpdateRestorePlanRequest,
64+
UpdateRestoreRequest,
65+
)
66+
from google.cloud.gke_backup_v1.types.restore import Restore, RestoreConfig
67+
from google.cloud.gke_backup_v1.types.restore_plan import RestorePlan
68+
from google.cloud.gke_backup_v1.types.volume import VolumeBackup, VolumeRestore
69+
70+
__all__ = (
71+
"BackupForGKEClient",
72+
"BackupForGKEAsyncClient",
73+
"Backup",
74+
"BackupPlan",
75+
"EncryptionKey",
76+
"NamespacedName",
77+
"NamespacedNames",
78+
"Namespaces",
79+
"CreateBackupPlanRequest",
80+
"CreateBackupRequest",
81+
"CreateRestorePlanRequest",
82+
"CreateRestoreRequest",
83+
"DeleteBackupPlanRequest",
84+
"DeleteBackupRequest",
85+
"DeleteRestorePlanRequest",
86+
"DeleteRestoreRequest",
87+
"GetBackupPlanRequest",
88+
"GetBackupRequest",
89+
"GetRestorePlanRequest",
90+
"GetRestoreRequest",
91+
"GetVolumeBackupRequest",
92+
"GetVolumeRestoreRequest",
93+
"ListBackupPlansRequest",
94+
"ListBackupPlansResponse",
95+
"ListBackupsRequest",
96+
"ListBackupsResponse",
97+
"ListRestorePlansRequest",
98+
"ListRestorePlansResponse",
99+
"ListRestoresRequest",
100+
"ListRestoresResponse",
101+
"ListVolumeBackupsRequest",
102+
"ListVolumeBackupsResponse",
103+
"ListVolumeRestoresRequest",
104+
"ListVolumeRestoresResponse",
105+
"OperationMetadata",
106+
"UpdateBackupPlanRequest",
107+
"UpdateBackupRequest",
108+
"UpdateRestorePlanRequest",
109+
"UpdateRestoreRequest",
110+
"Restore",
111+
"RestoreConfig",
112+
"RestorePlan",
113+
"VolumeBackup",
114+
"VolumeRestore",
115+
)
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__ = "0.2.2" # {x-release-please-version}

google/cloud/gke_backup/py.typed

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Marker file for PEP 561.
2+
# The google-cloud-gke-backup package uses inline types.

google/cloud/gke_backup_v1/__init__.py

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

17-
from .services.backup_for_gke import BackupForGKEClient
18-
from .services.backup_for_gke import BackupForGKEAsyncClient
18+
__version__ = package_version.__version__
1919

20+
21+
from .services.backup_for_gke import BackupForGKEAsyncClient, BackupForGKEClient
2022
from .types.backup import Backup
2123
from .types.backup_plan import BackupPlan
22-
from .types.common import EncryptionKey
23-
from .types.common import NamespacedName
24-
from .types.common import NamespacedNames
25-
from .types.common import Namespaces
26-
from .types.gkebackup import CreateBackupPlanRequest
27-
from .types.gkebackup import CreateBackupRequest
28-
from .types.gkebackup import CreateRestorePlanRequest
29-
from .types.gkebackup import CreateRestoreRequest
30-
from .types.gkebackup import DeleteBackupPlanRequest
31-
from .types.gkebackup import DeleteBackupRequest
32-
from .types.gkebackup import DeleteRestorePlanRequest
33-
from .types.gkebackup import DeleteRestoreRequest
34-
from .types.gkebackup import GetBackupPlanRequest
35-
from .types.gkebackup import GetBackupRequest
36-
from .types.gkebackup import GetRestorePlanRequest
37-
from .types.gkebackup import GetRestoreRequest
38-
from .types.gkebackup import GetVolumeBackupRequest
39-
from .types.gkebackup import GetVolumeRestoreRequest
40-
from .types.gkebackup import ListBackupPlansRequest
41-
from .types.gkebackup import ListBackupPlansResponse
42-
from .types.gkebackup import ListBackupsRequest
43-
from .types.gkebackup import ListBackupsResponse
44-
from .types.gkebackup import ListRestorePlansRequest
45-
from .types.gkebackup import ListRestorePlansResponse
46-
from .types.gkebackup import ListRestoresRequest
47-
from .types.gkebackup import ListRestoresResponse
48-
from .types.gkebackup import ListVolumeBackupsRequest
49-
from .types.gkebackup import ListVolumeBackupsResponse
50-
from .types.gkebackup import ListVolumeRestoresRequest
51-
from .types.gkebackup import ListVolumeRestoresResponse
52-
from .types.gkebackup import OperationMetadata
53-
from .types.gkebackup import UpdateBackupPlanRequest
54-
from .types.gkebackup import UpdateBackupRequest
55-
from .types.gkebackup import UpdateRestorePlanRequest
56-
from .types.gkebackup import UpdateRestoreRequest
57-
from .types.restore import Restore
58-
from .types.restore import RestoreConfig
24+
from .types.common import EncryptionKey, NamespacedName, NamespacedNames, Namespaces
25+
from .types.gkebackup import (
26+
CreateBackupPlanRequest,
27+
CreateBackupRequest,
28+
CreateRestorePlanRequest,
29+
CreateRestoreRequest,
30+
DeleteBackupPlanRequest,
31+
DeleteBackupRequest,
32+
DeleteRestorePlanRequest,
33+
DeleteRestoreRequest,
34+
GetBackupPlanRequest,
35+
GetBackupRequest,
36+
GetRestorePlanRequest,
37+
GetRestoreRequest,
38+
GetVolumeBackupRequest,
39+
GetVolumeRestoreRequest,
40+
ListBackupPlansRequest,
41+
ListBackupPlansResponse,
42+
ListBackupsRequest,
43+
ListBackupsResponse,
44+
ListRestorePlansRequest,
45+
ListRestorePlansResponse,
46+
ListRestoresRequest,
47+
ListRestoresResponse,
48+
ListVolumeBackupsRequest,
49+
ListVolumeBackupsResponse,
50+
ListVolumeRestoresRequest,
51+
ListVolumeRestoresResponse,
52+
OperationMetadata,
53+
UpdateBackupPlanRequest,
54+
UpdateBackupRequest,
55+
UpdateRestorePlanRequest,
56+
UpdateRestoreRequest,
57+
)
58+
from .types.restore import Restore, RestoreConfig
5959
from .types.restore_plan import RestorePlan
60-
from .types.volume import VolumeBackup
61-
from .types.volume import VolumeRestore
60+
from .types.volume import VolumeBackup, VolumeRestore
6261

6362
__all__ = (
6463
"BackupForGKEAsyncClient",

google/cloud/gke_backup_v1/services/backup_for_gke/__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 BackupForGKEClient
1716
from .async_client import BackupForGKEAsyncClient
17+
from .client import BackupForGKEClient
1818

1919
__all__ = (
2020
"BackupForGKEClient",

0 commit comments

Comments
 (0)