Skip to content

Commit

Permalink
chore: upgrade gapic-generator-python to 0.46.3 (#73)
Browse files Browse the repository at this point in the history
feat: support self-signed JWT flow for service accounts

fix: add async client to %name_%version/init.py

chore: add autogenerated snippets

chore: remove auth, policy, and options from the reserved names list

chore: enable GAPIC metadata generation

chore: sort subpackages in %namespace/%name/init.py
  • Loading branch information
gcf-owl-bot[bot] authored May 20, 2021
1 parent ed2850c commit d73c3fd
Show file tree
Hide file tree
Showing 23 changed files with 723 additions and 465 deletions.
12 changes: 6 additions & 6 deletions packages/google-cloud-os-login/google/cloud/oslogin/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -15,12 +14,13 @@
# limitations under the License.
#

from google.cloud.oslogin_v1.services.os_login_service.async_client import (
OsLoginServiceAsyncClient,
)
from google.cloud.oslogin_v1.services.os_login_service.client import (
OsLoginServiceClient,
)
from google.cloud.oslogin_v1.services.os_login_service.async_client import (
OsLoginServiceAsyncClient,
)

from google.cloud.oslogin_v1.types.oslogin import DeletePosixAccountRequest
from google.cloud.oslogin_v1.types.oslogin import DeleteSshPublicKeyRequest
from google.cloud.oslogin_v1.types.oslogin import GetLoginProfileRequest
Expand All @@ -31,14 +31,14 @@
from google.cloud.oslogin_v1.types.oslogin import UpdateSshPublicKeyRequest

__all__ = (
"OsLoginServiceClient",
"OsLoginServiceAsyncClient",
"DeletePosixAccountRequest",
"DeleteSshPublicKeyRequest",
"GetLoginProfileRequest",
"GetSshPublicKeyRequest",
"ImportSshPublicKeyRequest",
"ImportSshPublicKeyResponse",
"LoginProfile",
"OsLoginServiceAsyncClient",
"OsLoginServiceClient",
"UpdateSshPublicKeyRequest",
)
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -16,6 +15,8 @@
#

from .services.os_login_service import OsLoginServiceClient
from .services.os_login_service import OsLoginServiceAsyncClient

from .types.oslogin import DeletePosixAccountRequest
from .types.oslogin import DeleteSshPublicKeyRequest
from .types.oslogin import GetLoginProfileRequest
Expand All @@ -25,15 +26,15 @@
from .types.oslogin import LoginProfile
from .types.oslogin import UpdateSshPublicKeyRequest


__all__ = (
"OsLoginServiceAsyncClient",
"DeletePosixAccountRequest",
"DeleteSshPublicKeyRequest",
"GetLoginProfileRequest",
"GetSshPublicKeyRequest",
"ImportSshPublicKeyRequest",
"ImportSshPublicKeyResponse",
"LoginProfile",
"UpdateSshPublicKeyRequest",
"OsLoginServiceClient",
"UpdateSshPublicKeyRequest",
)
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -15,13 +14,13 @@
# limitations under the License.
#

from .types.common import OperatingSystemType

from .types.common import PosixAccount
from .types.common import SshPublicKey

from .types.common import OperatingSystemType

__all__ = (
"OperatingSystemType",
"SshPublicKey",
"PosixAccount",
"SshPublicKey",
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
"language": "python",
"libraryPackage": "google.cloud.oslogin.common",
"protoPackage": "google.cloud.oslogin.common",
"schema": "1.0"
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -14,7 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#

from .common import (
PosixAccount,
SshPublicKey,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -14,7 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#

import proto # type: ignore


Expand Down Expand Up @@ -66,29 +64,19 @@ class PosixAccount(proto.Message):
Output only. The canonical resource name.
"""

primary = proto.Field(proto.BOOL, number=1)

username = proto.Field(proto.STRING, number=2)

uid = proto.Field(proto.INT64, number=3)

gid = proto.Field(proto.INT64, number=4)

home_directory = proto.Field(proto.STRING, number=5)

shell = proto.Field(proto.STRING, number=6)

gecos = proto.Field(proto.STRING, number=7)

system_id = proto.Field(proto.STRING, number=8)

account_id = proto.Field(proto.STRING, number=9)

primary = proto.Field(proto.BOOL, number=1,)
username = proto.Field(proto.STRING, number=2,)
uid = proto.Field(proto.INT64, number=3,)
gid = proto.Field(proto.INT64, number=4,)
home_directory = proto.Field(proto.STRING, number=5,)
shell = proto.Field(proto.STRING, number=6,)
gecos = proto.Field(proto.STRING, number=7,)
system_id = proto.Field(proto.STRING, number=8,)
account_id = proto.Field(proto.STRING, number=9,)
operating_system_type = proto.Field(
proto.ENUM, number=10, enum="OperatingSystemType",
)

name = proto.Field(proto.STRING, number=11)
name = proto.Field(proto.STRING, number=11,)


class SshPublicKey(proto.Message):
Expand All @@ -109,13 +97,10 @@ class SshPublicKey(proto.Message):
Output only. The canonical resource name.
"""

key = proto.Field(proto.STRING, number=1)

expiration_time_usec = proto.Field(proto.INT64, number=2)

fingerprint = proto.Field(proto.STRING, number=3)

name = proto.Field(proto.STRING, number=4)
key = proto.Field(proto.STRING, number=1,)
expiration_time_usec = proto.Field(proto.INT64, number=2,)
fingerprint = proto.Field(proto.STRING, number=3,)
name = proto.Field(proto.STRING, number=4,)


__all__ = tuple(sorted(__protobuf__.manifest))
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
{
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
"language": "python",
"libraryPackage": "google.cloud.oslogin_v1",
"protoPackage": "google.cloud.oslogin.v1",
"schema": "1.0",
"services": {
"OsLoginService": {
"clients": {
"grpc": {
"libraryClient": "OsLoginServiceClient",
"rpcs": {
"DeletePosixAccount": {
"methods": [
"delete_posix_account"
]
},
"DeleteSshPublicKey": {
"methods": [
"delete_ssh_public_key"
]
},
"GetLoginProfile": {
"methods": [
"get_login_profile"
]
},
"GetSshPublicKey": {
"methods": [
"get_ssh_public_key"
]
},
"ImportSshPublicKey": {
"methods": [
"import_ssh_public_key"
]
},
"UpdateSshPublicKey": {
"methods": [
"update_ssh_public_key"
]
}
}
},
"grpc-async": {
"libraryClient": "OsLoginServiceAsyncClient",
"rpcs": {
"DeletePosixAccount": {
"methods": [
"delete_posix_account"
]
},
"DeleteSshPublicKey": {
"methods": [
"delete_ssh_public_key"
]
},
"GetLoginProfile": {
"methods": [
"get_login_profile"
]
},
"GetSshPublicKey": {
"methods": [
"get_ssh_public_key"
]
},
"ImportSshPublicKey": {
"methods": [
"import_ssh_public_key"
]
},
"UpdateSshPublicKey": {
"methods": [
"update_ssh_public_key"
]
}
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -14,7 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#

from .client import OsLoginServiceClient
from .async_client import OsLoginServiceAsyncClient

Expand Down
Loading

0 comments on commit d73c3fd

Please sign in to comment.