Skip to content

Commit db642bd

Browse files
chore(python): fix warehouse-package-name for oslogin v1 (#231)
* 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 * 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: googleapis/googleapis-gen@61ef576 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: googleapis/googleapis-gen@ab0e217 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: googleapis/googleapis-gen@555c094 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNTU1YzA5NDVlNjA2NDllMzg3MzlhZTY0YmM0NTcxOWNkZjcyMTc4ZiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: added CreateSshPublicKey RPC PiperOrigin-RevId: 488460648 Source-Link: googleapis/googleapis@2360559 Source-Link: googleapis/googleapis-gen@5957675 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNTk1NzY3NTI3ODVlNDFkNDk1OTBjMWVkMDAwNDI4Mjc2MTFmMzQzOCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore(python): fix warehouse-package-name for oslogin v1 PiperOrigin-RevId: 491014627 Source-Link: googleapis/googleapis@5e43841 Source-Link: googleapis/googleapis-gen@aae7ce8 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYWFlN2NlODhjYzBkMzYyZjA3YjY1MjQyMzM4M2I0ZWY1NDk3M2Y2MCJ9 * 🦉 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 * move replacement in owlbot.py * fix replacement in owlbot.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 14829ed commit db642bd

53 files changed

Lines changed: 1315 additions & 301 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,10 @@
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-
# Generated by synthtool. DO NOT EDIT!
181
[run]
192
branch = True
203

214
[report]
22-
fail_under = 100
235
show_missing = True
24-
omit = google/cloud/oslogin/__init__.py
6+
omit =
7+
google/cloud/oslogin/__init__.py
258
exclude_lines =
269
# Re-enable the standard pragma
2710
pragma: NO COVER
@@ -31,4 +14,4 @@ exclude_lines =
3114
# This is added at the module level as a safeguard for if someone
3215
# generates the code and tries to run it without pip installing. This
3316
# makes it virtually impossible to test properly.
34-
except pkg_resources.DistributionNotFound
17+
except pkg_resources.DistributionNotFound

packages/google-cloud-os-login/.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:
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "2.7.4"
3+
}

packages/google-cloud-os-login/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

packages/google-cloud-os-login/docs/oslogin_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 Oslogin v1 API
33

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

packages/google-cloud-os-login/google/cloud/oslogin/__init__.py

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

18+
__version__ = package_version.__version__
19+
20+
21+
from google.cloud.oslogin_v1.services.os_login_service.async_client import (
22+
OsLoginServiceAsyncClient,
23+
)
1724
from google.cloud.oslogin_v1.services.os_login_service.client import (
1825
OsLoginServiceClient,
1926
)
20-
from google.cloud.oslogin_v1.services.os_login_service.async_client import (
21-
OsLoginServiceAsyncClient,
27+
from google.cloud.oslogin_v1.types.oslogin import (
28+
CreateSshPublicKeyRequest,
29+
DeletePosixAccountRequest,
30+
DeleteSshPublicKeyRequest,
31+
GetLoginProfileRequest,
32+
GetSshPublicKeyRequest,
33+
ImportSshPublicKeyRequest,
34+
ImportSshPublicKeyResponse,
35+
LoginProfile,
36+
UpdateSshPublicKeyRequest,
2237
)
2338

24-
from google.cloud.oslogin_v1.types.oslogin import DeletePosixAccountRequest
25-
from google.cloud.oslogin_v1.types.oslogin import DeleteSshPublicKeyRequest
26-
from google.cloud.oslogin_v1.types.oslogin import GetLoginProfileRequest
27-
from google.cloud.oslogin_v1.types.oslogin import GetSshPublicKeyRequest
28-
from google.cloud.oslogin_v1.types.oslogin import ImportSshPublicKeyRequest
29-
from google.cloud.oslogin_v1.types.oslogin import ImportSshPublicKeyResponse
30-
from google.cloud.oslogin_v1.types.oslogin import LoginProfile
31-
from google.cloud.oslogin_v1.types.oslogin import UpdateSshPublicKeyRequest
32-
3339
__all__ = (
3440
"OsLoginServiceClient",
3541
"OsLoginServiceAsyncClient",
42+
"CreateSshPublicKeyRequest",
3643
"DeletePosixAccountRequest",
3744
"DeleteSshPublicKeyRequest",
3845
"GetLoginProfileRequest",
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__ = "2.7.4" # {x-release-please-version}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# Marker file for PEP 561.
2-
# The google-cloud-oslogin package uses inline types.
2+
# The google-cloud-os-login package uses inline types.

packages/google-cloud-os-login/google/cloud/oslogin_v1/__init__.py

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

17-
from .services.os_login_service import OsLoginServiceClient
18-
from .services.os_login_service import OsLoginServiceAsyncClient
18+
__version__ = package_version.__version__
1919

20-
from .types.oslogin import DeletePosixAccountRequest
21-
from .types.oslogin import DeleteSshPublicKeyRequest
22-
from .types.oslogin import GetLoginProfileRequest
23-
from .types.oslogin import GetSshPublicKeyRequest
24-
from .types.oslogin import ImportSshPublicKeyRequest
25-
from .types.oslogin import ImportSshPublicKeyResponse
26-
from .types.oslogin import LoginProfile
27-
from .types.oslogin import UpdateSshPublicKeyRequest
20+
21+
from .services.os_login_service import OsLoginServiceAsyncClient, OsLoginServiceClient
22+
from .types.oslogin import (
23+
CreateSshPublicKeyRequest,
24+
DeletePosixAccountRequest,
25+
DeleteSshPublicKeyRequest,
26+
GetLoginProfileRequest,
27+
GetSshPublicKeyRequest,
28+
ImportSshPublicKeyRequest,
29+
ImportSshPublicKeyResponse,
30+
LoginProfile,
31+
UpdateSshPublicKeyRequest,
32+
)
2833

2934
__all__ = (
3035
"OsLoginServiceAsyncClient",
36+
"CreateSshPublicKeyRequest",
3137
"DeletePosixAccountRequest",
3238
"DeleteSshPublicKeyRequest",
3339
"GetLoginProfileRequest",

packages/google-cloud-os-login/google/cloud/oslogin_v1/common/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@
1515
#
1616

1717

18-
from .types.common import PosixAccount
19-
from .types.common import SshPublicKey
20-
from .types.common import OperatingSystemType
18+
from .types.common import OperatingSystemType, PosixAccount, SshPublicKey
2119

2220
__all__ = (
2321
"OperatingSystemType",

0 commit comments

Comments
 (0)