Skip to content
This repository has been archived by the owner on Dec 31, 2023. It is now read-only.

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] committed May 20, 2021
1 parent 5fd47d0 commit 857db06
Show file tree
Hide file tree
Showing 23 changed files with 723 additions and 465 deletions.
12 changes: 6 additions & 6 deletions google/cloud/oslogin/__init__.py
@@ -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",
)
7 changes: 4 additions & 3 deletions google/cloud/oslogin_v1/__init__.py
@@ -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",
)
7 changes: 3 additions & 4 deletions google/cloud/oslogin_v1/common/__init__.py
@@ -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",
)
7 changes: 7 additions & 0 deletions google/cloud/oslogin_v1/common/gapic_metadata.json
@@ -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"
}
2 changes: 0 additions & 2 deletions google/cloud/oslogin_v1/common/types/__init__.py
@@ -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
43 changes: 14 additions & 29 deletions google/cloud/oslogin_v1/common/types/common.py
@@ -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))
83 changes: 83 additions & 0 deletions google/cloud/oslogin_v1/gapic_metadata.json
@@ -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"
]
}
}
}
}
}
}
}
1 change: 0 additions & 1 deletion google/cloud/oslogin_v1/services/__init__.py
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
2 changes: 0 additions & 2 deletions google/cloud/oslogin_v1/services/os_login_service/__init__.py
@@ -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

0 comments on commit 857db06

Please sign in to comment.