From 97eec3488f90b7e91ca8b9d880696b03248e1c2c Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Wed, 8 Jan 2020 05:26:23 -0800 Subject: [PATCH 1/2] [CHANGE ME] Re-generated oslogin to pick up changes in the API or client library generator. --- oslogin/docs/_static/custom.css | 2 +- oslogin/docs/_templates/layout.html | 1 + oslogin/google/cloud/oslogin_v1/__init__.py | 11 + .../cloud/oslogin_v1/proto/proto/__init__.py | 0 .../oslogin_v1/proto/proto/oslogin_pb2.py | 898 ++++++++++++++++++ .../proto/proto/oslogin_pb2_grpc.py | 148 +++ oslogin/noxfile.py | 2 +- oslogin/synth.metadata | 10 +- 8 files changed, 1065 insertions(+), 7 deletions(-) create mode 100644 oslogin/google/cloud/oslogin_v1/proto/proto/__init__.py create mode 100644 oslogin/google/cloud/oslogin_v1/proto/proto/oslogin_pb2.py create mode 100644 oslogin/google/cloud/oslogin_v1/proto/proto/oslogin_pb2_grpc.py diff --git a/oslogin/docs/_static/custom.css b/oslogin/docs/_static/custom.css index 9a6f9f8ddc3a..0abaf229fce3 100644 --- a/oslogin/docs/_static/custom.css +++ b/oslogin/docs/_static/custom.css @@ -1,4 +1,4 @@ div#python2-eol { border-color: red; border-width: medium; -} \ No newline at end of file +} \ No newline at end of file diff --git a/oslogin/docs/_templates/layout.html b/oslogin/docs/_templates/layout.html index de457b2c2767..228529efe2d2 100644 --- a/oslogin/docs/_templates/layout.html +++ b/oslogin/docs/_templates/layout.html @@ -1,3 +1,4 @@ + {% extends "!layout.html" %} {%- block content %} {%- if theme_fixed_sidebar|lower == 'true' %} diff --git a/oslogin/google/cloud/oslogin_v1/__init__.py b/oslogin/google/cloud/oslogin_v1/__init__.py index 83a5ac263537..6633ae40d853 100644 --- a/oslogin/google/cloud/oslogin_v1/__init__.py +++ b/oslogin/google/cloud/oslogin_v1/__init__.py @@ -16,12 +16,23 @@ from __future__ import absolute_import +import sys +import warnings from google.cloud.oslogin_v1 import types from google.cloud.oslogin_v1.gapic import enums from google.cloud.oslogin_v1.gapic import os_login_service_client +if sys.version_info[:2] == (2, 7): + message = ( + "A future version of this library will drop support for Python 2.7." + "More details about Python 2 support for Google Cloud Client Libraries" + "can be found at https://cloud.google.com/python/docs/python2-sunset/" + ) + warnings.warn(message, DeprecationWarning) + + class OsLoginServiceClient(os_login_service_client.OsLoginServiceClient): __doc__ = os_login_service_client.OsLoginServiceClient.__doc__ enums = enums diff --git a/oslogin/google/cloud/oslogin_v1/proto/proto/__init__.py b/oslogin/google/cloud/oslogin_v1/proto/proto/__init__.py new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/oslogin/google/cloud/oslogin_v1/proto/proto/oslogin_pb2.py b/oslogin/google/cloud/oslogin_v1/proto/proto/oslogin_pb2.py new file mode 100644 index 000000000000..0feaf4be9ae9 --- /dev/null +++ b/oslogin/google/cloud/oslogin_v1/proto/proto/oslogin_pb2.py @@ -0,0 +1,898 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/cloud/oslogin_v1/proto/oslogin.proto + +import sys + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database + +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.api import client_pb2 as google_dot_api_dot_client__pb2 +from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.cloud.oslogin_v1.proto import ( + common_pb2 as google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2, +) +from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 +from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 + + +DESCRIPTOR = _descriptor.FileDescriptor( + name="google/cloud/oslogin_v1/proto/oslogin.proto", + package="google.cloud.oslogin.v1", + syntax="proto3", + serialized_options=_b( + "\n\033com.google.cloud.oslogin.v1B\014OsLoginProtoP\001Z>google.golang.org/genproto/googleapis/cloud/oslogin/v1;oslogin\252\002\027Google.Cloud.OsLogin.V1\312\002\027Google\\Cloud\\OsLogin\\V1" + ), + serialized_pb=_b( + '\n+google/cloud/oslogin_v1/proto/oslogin.proto\x12\x17google.cloud.oslogin.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a(google/cloud/oslogin/common/common.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto"\x98\x02\n\x0cLoginProfile\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x41\n\x0eposix_accounts\x18\x02 \x03(\x0b\x32).google.cloud.oslogin.common.PosixAccount\x12Q\n\x0fssh_public_keys\x18\x03 \x03(\x0b\x32\x38.google.cloud.oslogin.v1.LoginProfile.SshPublicKeysEntry\x1a_\n\x12SshPublicKeysEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x38\n\x05value\x18\x02 \x01(\x0b\x32).google.cloud.oslogin.common.SshPublicKey:\x02\x38\x01"V\n\x19\x44\x65letePosixAccountRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#oslogin.googleapis.com/PosixAccount"V\n\x19\x44\x65leteSshPublicKeyRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#oslogin.googleapis.com/SshPublicKey"z\n\x16GetLoginProfileRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\x12#oslogin.googleapis.com/PosixAccount\x12\x12\n\nproject_id\x18\x02 \x01(\t\x12\x11\n\tsystem_id\x18\x03 \x01(\t"S\n\x16GetSshPublicKeyRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#oslogin.googleapis.com/SshPublicKey"\xb4\x01\n\x19ImportSshPublicKeyRequest\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\x12#oslogin.googleapis.com/SshPublicKey\x12\x46\n\x0essh_public_key\x18\x02 \x01(\x0b\x32).google.cloud.oslogin.common.SshPublicKeyB\x03\xe0\x41\x01\x12\x12\n\nproject_id\x18\x03 \x01(\t"Z\n\x1aImportSshPublicKeyResponse\x12<\n\rlogin_profile\x18\x01 \x01(\x0b\x32%.google.cloud.oslogin.v1.LoginProfile"\xcf\x01\n\x19UpdateSshPublicKeyRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#oslogin.googleapis.com/SshPublicKey\x12\x46\n\x0essh_public_key\x18\x02 \x01(\x0b\x32).google.cloud.oslogin.common.SshPublicKeyB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask2\xd0\t\n\x0eOsLoginService\x12\x8e\x01\n\x12\x44\x65letePosixAccount\x12\x32.google.cloud.oslogin.v1.DeletePosixAccountRequest\x1a\x16.google.protobuf.Empty",\x82\xd3\xe4\x93\x02\x1f*\x1d/v1/{name=users/*/projects/*}\xda\x41\x04name\x12\x93\x01\n\x12\x44\x65leteSshPublicKey\x12\x32.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest\x1a\x16.google.protobuf.Empty"1\x82\xd3\xe4\x93\x02$*"/v1/{name=users/*/sshPublicKeys/*}\xda\x41\x04name\x12\x99\x01\n\x0fGetLoginProfile\x12/.google.cloud.oslogin.v1.GetLoginProfileRequest\x1a%.google.cloud.oslogin.v1.LoginProfile".\x82\xd3\xe4\x93\x02!\x12\x1f/v1/{name=users/*}/loginProfile\xda\x41\x04name\x12\xa0\x01\n\x0fGetSshPublicKey\x12/.google.cloud.oslogin.v1.GetSshPublicKeyRequest\x1a).google.cloud.oslogin.common.SshPublicKey"1\x82\xd3\xe4\x93\x02$\x12"/v1/{name=users/*/sshPublicKeys/*}\xda\x41\x04name\x12\xf9\x01\n\x12ImportSshPublicKey\x12\x32.google.cloud.oslogin.v1.ImportSshPublicKeyRequest\x1a\x33.google.cloud.oslogin.v1.ImportSshPublicKeyResponse"z\x82\xd3\xe4\x93\x02\x39"\'/v1/{parent=users/*}:importSshPublicKey:\x0essh_public_key\xda\x41\x15parent,ssh_public_key\xda\x41 parent,ssh_public_key,project_id\x12\xe7\x01\n\x12UpdateSshPublicKey\x12\x32.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest\x1a).google.cloud.oslogin.common.SshPublicKey"r\x82\xd3\xe4\x93\x02\x34\x32"/v1/{name=users/*/sshPublicKeys/*}:\x0essh_public_key\xda\x41\x13name,ssh_public_key\xda\x41\x1fname,ssh_public_key,update_mask\x1ar\xca\x41\x16oslogin.googleapis.com\xd2\x41Vhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/computeB\xa1\x01\n\x1b\x63om.google.cloud.oslogin.v1B\x0cOsLoginProtoP\x01Z>google.golang.org/genproto/googleapis/cloud/oslogin/v1;oslogin\xaa\x02\x17Google.Cloud.OsLogin.V1\xca\x02\x17Google\\Cloud\\OsLogin\\V1b\x06proto3' + ), + dependencies=[ + google_dot_api_dot_annotations__pb2.DESCRIPTOR, + google_dot_api_dot_client__pb2.DESCRIPTOR, + google_dot_api_dot_field__behavior__pb2.DESCRIPTOR, + google_dot_api_dot_resource__pb2.DESCRIPTOR, + google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2.DESCRIPTOR, + google_dot_protobuf_dot_empty__pb2.DESCRIPTOR, + google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR, + ], +) + + +_LOGINPROFILE_SSHPUBLICKEYSENTRY = _descriptor.Descriptor( + name="SshPublicKeysEntry", + full_name="google.cloud.oslogin.v1.LoginProfile.SshPublicKeysEntry", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="key", + full_name="google.cloud.oslogin.v1.LoginProfile.SshPublicKeysEntry.key", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="value", + full_name="google.cloud.oslogin.v1.LoginProfile.SshPublicKeysEntry.value", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=_b("8\001"), + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=478, + serialized_end=573, +) + +_LOGINPROFILE = _descriptor.Descriptor( + name="LoginProfile", + full_name="google.cloud.oslogin.v1.LoginProfile", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.oslogin.v1.LoginProfile.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=_b("\340A\002"), + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="posix_accounts", + full_name="google.cloud.oslogin.v1.LoginProfile.posix_accounts", + index=1, + number=2, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="ssh_public_keys", + full_name="google.cloud.oslogin.v1.LoginProfile.ssh_public_keys", + index=2, + number=3, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[_LOGINPROFILE_SSHPUBLICKEYSENTRY], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=293, + serialized_end=573, +) + + +_DELETEPOSIXACCOUNTREQUEST = _descriptor.Descriptor( + name="DeletePosixAccountRequest", + full_name="google.cloud.oslogin.v1.DeletePosixAccountRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.oslogin.v1.DeletePosixAccountRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=_b( + "\340A\002\372A%\n#oslogin.googleapis.com/PosixAccount" + ), + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=575, + serialized_end=661, +) + + +_DELETESSHPUBLICKEYREQUEST = _descriptor.Descriptor( + name="DeleteSshPublicKeyRequest", + full_name="google.cloud.oslogin.v1.DeleteSshPublicKeyRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.oslogin.v1.DeleteSshPublicKeyRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=_b( + "\340A\002\372A%\n#oslogin.googleapis.com/SshPublicKey" + ), + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=663, + serialized_end=749, +) + + +_GETLOGINPROFILEREQUEST = _descriptor.Descriptor( + name="GetLoginProfileRequest", + full_name="google.cloud.oslogin.v1.GetLoginProfileRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.oslogin.v1.GetLoginProfileRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=_b( + "\340A\002\372A%\022#oslogin.googleapis.com/PosixAccount" + ), + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="project_id", + full_name="google.cloud.oslogin.v1.GetLoginProfileRequest.project_id", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="system_id", + full_name="google.cloud.oslogin.v1.GetLoginProfileRequest.system_id", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=751, + serialized_end=873, +) + + +_GETSSHPUBLICKEYREQUEST = _descriptor.Descriptor( + name="GetSshPublicKeyRequest", + full_name="google.cloud.oslogin.v1.GetSshPublicKeyRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.oslogin.v1.GetSshPublicKeyRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=_b( + "\340A\002\372A%\n#oslogin.googleapis.com/SshPublicKey" + ), + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=875, + serialized_end=958, +) + + +_IMPORTSSHPUBLICKEYREQUEST = _descriptor.Descriptor( + name="ImportSshPublicKeyRequest", + full_name="google.cloud.oslogin.v1.ImportSshPublicKeyRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.oslogin.v1.ImportSshPublicKeyRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=_b( + "\340A\002\372A%\022#oslogin.googleapis.com/SshPublicKey" + ), + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="ssh_public_key", + full_name="google.cloud.oslogin.v1.ImportSshPublicKeyRequest.ssh_public_key", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=_b("\340A\001"), + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="project_id", + full_name="google.cloud.oslogin.v1.ImportSshPublicKeyRequest.project_id", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=961, + serialized_end=1141, +) + + +_IMPORTSSHPUBLICKEYRESPONSE = _descriptor.Descriptor( + name="ImportSshPublicKeyResponse", + full_name="google.cloud.oslogin.v1.ImportSshPublicKeyResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="login_profile", + full_name="google.cloud.oslogin.v1.ImportSshPublicKeyResponse.login_profile", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ) + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1143, + serialized_end=1233, +) + + +_UPDATESSHPUBLICKEYREQUEST = _descriptor.Descriptor( + name="UpdateSshPublicKeyRequest", + full_name="google.cloud.oslogin.v1.UpdateSshPublicKeyRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.oslogin.v1.UpdateSshPublicKeyRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=_b( + "\340A\002\372A%\n#oslogin.googleapis.com/SshPublicKey" + ), + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="ssh_public_key", + full_name="google.cloud.oslogin.v1.UpdateSshPublicKeyRequest.ssh_public_key", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=_b("\340A\002"), + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="update_mask", + full_name="google.cloud.oslogin.v1.UpdateSshPublicKeyRequest.update_mask", + index=2, + number=3, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1236, + serialized_end=1443, +) + +_LOGINPROFILE_SSHPUBLICKEYSENTRY.fields_by_name[ + "value" +].message_type = google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2._SSHPUBLICKEY +_LOGINPROFILE_SSHPUBLICKEYSENTRY.containing_type = _LOGINPROFILE +_LOGINPROFILE.fields_by_name[ + "posix_accounts" +].message_type = google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2._POSIXACCOUNT +_LOGINPROFILE.fields_by_name[ + "ssh_public_keys" +].message_type = _LOGINPROFILE_SSHPUBLICKEYSENTRY +_IMPORTSSHPUBLICKEYREQUEST.fields_by_name[ + "ssh_public_key" +].message_type = google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2._SSHPUBLICKEY +_IMPORTSSHPUBLICKEYRESPONSE.fields_by_name["login_profile"].message_type = _LOGINPROFILE +_UPDATESSHPUBLICKEYREQUEST.fields_by_name[ + "ssh_public_key" +].message_type = google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2._SSHPUBLICKEY +_UPDATESSHPUBLICKEYREQUEST.fields_by_name[ + "update_mask" +].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +DESCRIPTOR.message_types_by_name["LoginProfile"] = _LOGINPROFILE +DESCRIPTOR.message_types_by_name[ + "DeletePosixAccountRequest" +] = _DELETEPOSIXACCOUNTREQUEST +DESCRIPTOR.message_types_by_name[ + "DeleteSshPublicKeyRequest" +] = _DELETESSHPUBLICKEYREQUEST +DESCRIPTOR.message_types_by_name["GetLoginProfileRequest"] = _GETLOGINPROFILEREQUEST +DESCRIPTOR.message_types_by_name["GetSshPublicKeyRequest"] = _GETSSHPUBLICKEYREQUEST +DESCRIPTOR.message_types_by_name[ + "ImportSshPublicKeyRequest" +] = _IMPORTSSHPUBLICKEYREQUEST +DESCRIPTOR.message_types_by_name[ + "ImportSshPublicKeyResponse" +] = _IMPORTSSHPUBLICKEYRESPONSE +DESCRIPTOR.message_types_by_name[ + "UpdateSshPublicKeyRequest" +] = _UPDATESSHPUBLICKEYREQUEST +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +LoginProfile = _reflection.GeneratedProtocolMessageType( + "LoginProfile", + (_message.Message,), + dict( + SshPublicKeysEntry=_reflection.GeneratedProtocolMessageType( + "SshPublicKeysEntry", + (_message.Message,), + dict( + DESCRIPTOR=_LOGINPROFILE_SSHPUBLICKEYSENTRY, + __module__="google.cloud.oslogin_v1.proto.oslogin_pb2" + # @@protoc_insertion_point(class_scope:google.cloud.oslogin.v1.LoginProfile.SshPublicKeysEntry) + ), + ), + DESCRIPTOR=_LOGINPROFILE, + __module__="google.cloud.oslogin_v1.proto.oslogin_pb2", + __doc__="""The user profile information used for logging in to a virtual machine on + Google Compute Engine. + + + Attributes: + name: + Required. A unique user ID. + posix_accounts: + The list of POSIX accounts associated with the user. + ssh_public_keys: + A map from SSH public key fingerprint to the associated key + object. + """, + # @@protoc_insertion_point(class_scope:google.cloud.oslogin.v1.LoginProfile) + ), +) +_sym_db.RegisterMessage(LoginProfile) +_sym_db.RegisterMessage(LoginProfile.SshPublicKeysEntry) + +DeletePosixAccountRequest = _reflection.GeneratedProtocolMessageType( + "DeletePosixAccountRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DELETEPOSIXACCOUNTREQUEST, + __module__="google.cloud.oslogin_v1.proto.oslogin_pb2", + __doc__="""A request message for deleting a POSIX account entry. + + + Attributes: + name: + Required. A reference to the POSIX account to update. POSIX + accounts are identified by the project ID they are associated + with. A reference to the POSIX account is in format + ``users/{user}/projects/{project}``. + """, + # @@protoc_insertion_point(class_scope:google.cloud.oslogin.v1.DeletePosixAccountRequest) + ), +) +_sym_db.RegisterMessage(DeletePosixAccountRequest) + +DeleteSshPublicKeyRequest = _reflection.GeneratedProtocolMessageType( + "DeleteSshPublicKeyRequest", + (_message.Message,), + dict( + DESCRIPTOR=_DELETESSHPUBLICKEYREQUEST, + __module__="google.cloud.oslogin_v1.proto.oslogin_pb2", + __doc__="""A request message for deleting an SSH public key. + + + Attributes: + name: + Required. The fingerprint of the public key to update. Public + keys are identified by their SHA-256 fingerprint. The + fingerprint of the public key is in format + ``users/{user}/sshPublicKeys/{fingerprint}``. + """, + # @@protoc_insertion_point(class_scope:google.cloud.oslogin.v1.DeleteSshPublicKeyRequest) + ), +) +_sym_db.RegisterMessage(DeleteSshPublicKeyRequest) + +GetLoginProfileRequest = _reflection.GeneratedProtocolMessageType( + "GetLoginProfileRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETLOGINPROFILEREQUEST, + __module__="google.cloud.oslogin_v1.proto.oslogin_pb2", + __doc__="""A request message for retrieving the login profile information for a + user. + + + Attributes: + name: + Required. The unique ID for the user in format + ``users/{user}``. + project_id: + The project ID of the Google Cloud Platform project. + system_id: + A system ID for filtering the results of the request. + """, + # @@protoc_insertion_point(class_scope:google.cloud.oslogin.v1.GetLoginProfileRequest) + ), +) +_sym_db.RegisterMessage(GetLoginProfileRequest) + +GetSshPublicKeyRequest = _reflection.GeneratedProtocolMessageType( + "GetSshPublicKeyRequest", + (_message.Message,), + dict( + DESCRIPTOR=_GETSSHPUBLICKEYREQUEST, + __module__="google.cloud.oslogin_v1.proto.oslogin_pb2", + __doc__="""A request message for retrieving an SSH public key. + + + Attributes: + name: + Required. The fingerprint of the public key to retrieve. + Public keys are identified by their SHA-256 fingerprint. The + fingerprint of the public key is in format + ``users/{user}/sshPublicKeys/{fingerprint}``. + """, + # @@protoc_insertion_point(class_scope:google.cloud.oslogin.v1.GetSshPublicKeyRequest) + ), +) +_sym_db.RegisterMessage(GetSshPublicKeyRequest) + +ImportSshPublicKeyRequest = _reflection.GeneratedProtocolMessageType( + "ImportSshPublicKeyRequest", + (_message.Message,), + dict( + DESCRIPTOR=_IMPORTSSHPUBLICKEYREQUEST, + __module__="google.cloud.oslogin_v1.proto.oslogin_pb2", + __doc__="""A request message for importing an SSH public key. + + + Attributes: + parent: + Required. The unique ID for the user in format + ``users/{user}``. + ssh_public_key: + Optional. The SSH public key and expiration time. + project_id: + The project ID of the Google Cloud Platform project. + """, + # @@protoc_insertion_point(class_scope:google.cloud.oslogin.v1.ImportSshPublicKeyRequest) + ), +) +_sym_db.RegisterMessage(ImportSshPublicKeyRequest) + +ImportSshPublicKeyResponse = _reflection.GeneratedProtocolMessageType( + "ImportSshPublicKeyResponse", + (_message.Message,), + dict( + DESCRIPTOR=_IMPORTSSHPUBLICKEYRESPONSE, + __module__="google.cloud.oslogin_v1.proto.oslogin_pb2", + __doc__="""A response message for importing an SSH public key. + + + Attributes: + login_profile: + The login profile information for the user. + """, + # @@protoc_insertion_point(class_scope:google.cloud.oslogin.v1.ImportSshPublicKeyResponse) + ), +) +_sym_db.RegisterMessage(ImportSshPublicKeyResponse) + +UpdateSshPublicKeyRequest = _reflection.GeneratedProtocolMessageType( + "UpdateSshPublicKeyRequest", + (_message.Message,), + dict( + DESCRIPTOR=_UPDATESSHPUBLICKEYREQUEST, + __module__="google.cloud.oslogin_v1.proto.oslogin_pb2", + __doc__="""A request message for updating an SSH public key. + + + Attributes: + name: + Required. The fingerprint of the public key to update. Public + keys are identified by their SHA-256 fingerprint. The + fingerprint of the public key is in format + ``users/{user}/sshPublicKeys/{fingerprint}``. + ssh_public_key: + Required. The SSH public key and expiration time. + update_mask: + Mask to control which fields get updated. Updates all if not + present. + """, + # @@protoc_insertion_point(class_scope:google.cloud.oslogin.v1.UpdateSshPublicKeyRequest) + ), +) +_sym_db.RegisterMessage(UpdateSshPublicKeyRequest) + + +DESCRIPTOR._options = None +_LOGINPROFILE_SSHPUBLICKEYSENTRY._options = None +_LOGINPROFILE.fields_by_name["name"]._options = None +_DELETEPOSIXACCOUNTREQUEST.fields_by_name["name"]._options = None +_DELETESSHPUBLICKEYREQUEST.fields_by_name["name"]._options = None +_GETLOGINPROFILEREQUEST.fields_by_name["name"]._options = None +_GETSSHPUBLICKEYREQUEST.fields_by_name["name"]._options = None +_IMPORTSSHPUBLICKEYREQUEST.fields_by_name["parent"]._options = None +_IMPORTSSHPUBLICKEYREQUEST.fields_by_name["ssh_public_key"]._options = None +_UPDATESSHPUBLICKEYREQUEST.fields_by_name["name"]._options = None +_UPDATESSHPUBLICKEYREQUEST.fields_by_name["ssh_public_key"]._options = None + +_OSLOGINSERVICE = _descriptor.ServiceDescriptor( + name="OsLoginService", + full_name="google.cloud.oslogin.v1.OsLoginService", + file=DESCRIPTOR, + index=0, + serialized_options=_b( + "\312A\026oslogin.googleapis.com\322AVhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/compute" + ), + serialized_start=1446, + serialized_end=2678, + methods=[ + _descriptor.MethodDescriptor( + name="DeletePosixAccount", + full_name="google.cloud.oslogin.v1.OsLoginService.DeletePosixAccount", + index=0, + containing_service=None, + input_type=_DELETEPOSIXACCOUNTREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + serialized_options=_b( + "\202\323\344\223\002\037*\035/v1/{name=users/*/projects/*}\332A\004name" + ), + ), + _descriptor.MethodDescriptor( + name="DeleteSshPublicKey", + full_name="google.cloud.oslogin.v1.OsLoginService.DeleteSshPublicKey", + index=1, + containing_service=None, + input_type=_DELETESSHPUBLICKEYREQUEST, + output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, + serialized_options=_b( + '\202\323\344\223\002$*"/v1/{name=users/*/sshPublicKeys/*}\332A\004name' + ), + ), + _descriptor.MethodDescriptor( + name="GetLoginProfile", + full_name="google.cloud.oslogin.v1.OsLoginService.GetLoginProfile", + index=2, + containing_service=None, + input_type=_GETLOGINPROFILEREQUEST, + output_type=_LOGINPROFILE, + serialized_options=_b( + "\202\323\344\223\002!\022\037/v1/{name=users/*}/loginProfile\332A\004name" + ), + ), + _descriptor.MethodDescriptor( + name="GetSshPublicKey", + full_name="google.cloud.oslogin.v1.OsLoginService.GetSshPublicKey", + index=3, + containing_service=None, + input_type=_GETSSHPUBLICKEYREQUEST, + output_type=google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2._SSHPUBLICKEY, + serialized_options=_b( + '\202\323\344\223\002$\022"/v1/{name=users/*/sshPublicKeys/*}\332A\004name' + ), + ), + _descriptor.MethodDescriptor( + name="ImportSshPublicKey", + full_name="google.cloud.oslogin.v1.OsLoginService.ImportSshPublicKey", + index=4, + containing_service=None, + input_type=_IMPORTSSHPUBLICKEYREQUEST, + output_type=_IMPORTSSHPUBLICKEYRESPONSE, + serialized_options=_b( + "\202\323\344\223\0029\"'/v1/{parent=users/*}:importSshPublicKey:\016ssh_public_key\332A\025parent,ssh_public_key\332A parent,ssh_public_key,project_id" + ), + ), + _descriptor.MethodDescriptor( + name="UpdateSshPublicKey", + full_name="google.cloud.oslogin.v1.OsLoginService.UpdateSshPublicKey", + index=5, + containing_service=None, + input_type=_UPDATESSHPUBLICKEYREQUEST, + output_type=google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2._SSHPUBLICKEY, + serialized_options=_b( + '\202\323\344\223\00242"/v1/{name=users/*/sshPublicKeys/*}:\016ssh_public_key\332A\023name,ssh_public_key\332A\037name,ssh_public_key,update_mask' + ), + ), + ], +) +_sym_db.RegisterServiceDescriptor(_OSLOGINSERVICE) + +DESCRIPTOR.services_by_name["OsLoginService"] = _OSLOGINSERVICE + +# @@protoc_insertion_point(module_scope) diff --git a/oslogin/google/cloud/oslogin_v1/proto/proto/oslogin_pb2_grpc.py b/oslogin/google/cloud/oslogin_v1/proto/proto/oslogin_pb2_grpc.py new file mode 100644 index 000000000000..6b002666a67b --- /dev/null +++ b/oslogin/google/cloud/oslogin_v1/proto/proto/oslogin_pb2_grpc.py @@ -0,0 +1,148 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc + +from google.cloud.oslogin_v1.proto import ( + common_pb2 as google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2, +) +from google.cloud.oslogin_v1.proto import ( + oslogin_pb2 as google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2, +) +from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 + + +class OsLoginServiceStub(object): + """Cloud OS Login API + + The Cloud OS Login API allows you to manage users and their associated SSH + public keys for logging into virtual machines on Google Cloud Platform. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.DeletePosixAccount = channel.unary_unary( + "/google.cloud.oslogin.v1.OsLoginService/DeletePosixAccount", + request_serializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.DeletePosixAccountRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + ) + self.DeleteSshPublicKey = channel.unary_unary( + "/google.cloud.oslogin.v1.OsLoginService/DeleteSshPublicKey", + request_serializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.DeleteSshPublicKeyRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + ) + self.GetLoginProfile = channel.unary_unary( + "/google.cloud.oslogin.v1.OsLoginService/GetLoginProfile", + request_serializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.GetLoginProfileRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.LoginProfile.FromString, + ) + self.GetSshPublicKey = channel.unary_unary( + "/google.cloud.oslogin.v1.OsLoginService/GetSshPublicKey", + request_serializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.GetSshPublicKeyRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2.SshPublicKey.FromString, + ) + self.ImportSshPublicKey = channel.unary_unary( + "/google.cloud.oslogin.v1.OsLoginService/ImportSshPublicKey", + request_serializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.ImportSshPublicKeyRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.ImportSshPublicKeyResponse.FromString, + ) + self.UpdateSshPublicKey = channel.unary_unary( + "/google.cloud.oslogin.v1.OsLoginService/UpdateSshPublicKey", + request_serializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.UpdateSshPublicKeyRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2.SshPublicKey.FromString, + ) + + +class OsLoginServiceServicer(object): + """Cloud OS Login API + + The Cloud OS Login API allows you to manage users and their associated SSH + public keys for logging into virtual machines on Google Cloud Platform. + """ + + def DeletePosixAccount(self, request, context): + """Deletes a POSIX account. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") + + def DeleteSshPublicKey(self, request, context): + """Deletes an SSH public key. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") + + def GetLoginProfile(self, request, context): + """Retrieves the profile information used for logging in to a virtual machine + on Google Compute Engine. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") + + def GetSshPublicKey(self, request, context): + """Retrieves an SSH public key. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") + + def ImportSshPublicKey(self, request, context): + """Adds an SSH public key and returns the profile information. Default POSIX + account information is set when no username and UID exist as part of the + login profile. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") + + def UpdateSshPublicKey(self, request, context): + """Updates an SSH public key and returns the profile information. This method + supports patch semantics. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") + + +def add_OsLoginServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + "DeletePosixAccount": grpc.unary_unary_rpc_method_handler( + servicer.DeletePosixAccount, + request_deserializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.DeletePosixAccountRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + "DeleteSshPublicKey": grpc.unary_unary_rpc_method_handler( + servicer.DeleteSshPublicKey, + request_deserializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.DeleteSshPublicKeyRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + "GetLoginProfile": grpc.unary_unary_rpc_method_handler( + servicer.GetLoginProfile, + request_deserializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.GetLoginProfileRequest.FromString, + response_serializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.LoginProfile.SerializeToString, + ), + "GetSshPublicKey": grpc.unary_unary_rpc_method_handler( + servicer.GetSshPublicKey, + request_deserializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.GetSshPublicKeyRequest.FromString, + response_serializer=google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2.SshPublicKey.SerializeToString, + ), + "ImportSshPublicKey": grpc.unary_unary_rpc_method_handler( + servicer.ImportSshPublicKey, + request_deserializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.ImportSshPublicKeyRequest.FromString, + response_serializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.ImportSshPublicKeyResponse.SerializeToString, + ), + "UpdateSshPublicKey": grpc.unary_unary_rpc_method_handler( + servicer.UpdateSshPublicKey, + request_deserializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.UpdateSshPublicKeyRequest.FromString, + response_serializer=google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2.SshPublicKey.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + "google.cloud.oslogin.v1.OsLoginService", rpc_method_handlers + ) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/oslogin/noxfile.py b/oslogin/noxfile.py index a2eefbb6765f..7949a4e3925a 100644 --- a/oslogin/noxfile.py +++ b/oslogin/noxfile.py @@ -86,7 +86,7 @@ def default(session): ) -@nox.session(python=["2.7", "3.5", "3.6", "3.7"]) +@nox.session(python=["2.7", "3.5", "3.6", "3.7", "3.8"]) def unit(session): """Run the unit test suite.""" default(session) diff --git a/oslogin/synth.metadata b/oslogin/synth.metadata index fe8ff68182ff..e5f1d02045ca 100644 --- a/oslogin/synth.metadata +++ b/oslogin/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-11-07T00:17:37.354583Z", + "updateTime": "2020-01-08T13:26:22.968839Z", "sources": [ { "generator": { "name": "artman", - "version": "0.41.0", - "dockerImage": "googleapis/artman@sha256:75b38a3b073a7b243545f2332463096624c802bb1e56b8cb6f22ba1ecd325fa9" + "version": "0.43.0", + "dockerImage": "googleapis/artman@sha256:264654a37596a44b0668b8ce6ac41082d713f6ee150b3fc6425fa78cc64e4f20" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "2275670a746ab2bc03ebba0d914b45320ea15af4", - "internalRef": "278922329" + "sha": "08b488e0660c59842a7dee0e3e2b65d9e3a514a9", + "internalRef": "288625007" } }, { From dcfa8411373dbd8ac790402bca95c77a9429625e Mon Sep 17 00:00:00 2001 From: Bu Sun Kim Date: Wed, 29 Jan 2020 18:35:33 -0800 Subject: [PATCH 2/2] chore: regen --- oslogin/google/__init__.py | 2 +- oslogin/google/cloud/__init__.py | 2 +- oslogin/google/cloud/oslogin.py | 2 +- oslogin/google/cloud/oslogin_v1/__init__.py | 2 +- .../google/cloud/oslogin_v1/gapic/enums.py | 2 +- .../gapic/os_login_service_client.py | 2 +- .../os_login_service_grpc_transport.py | 2 +- .../cloud/oslogin_v1/proto/common_pb2.py | 6 +- .../cloud/oslogin_v1/proto/oslogin_pb2.py | 8 +- .../cloud/oslogin_v1/proto/proto/__init__.py | 0 .../oslogin_v1/proto/proto/oslogin_pb2.py | 898 ------------------ .../proto/proto/oslogin_pb2_grpc.py | 148 --- oslogin/google/cloud/oslogin_v1/types.py | 2 +- oslogin/synth.metadata | 101 +- oslogin/synth.py | 2 +- .../v1/test_os_login_service_client_v1.py | 2 +- 16 files changed, 113 insertions(+), 1068 deletions(-) delete mode 100644 oslogin/google/cloud/oslogin_v1/proto/proto/__init__.py delete mode 100644 oslogin/google/cloud/oslogin_v1/proto/proto/oslogin_pb2.py delete mode 100644 oslogin/google/cloud/oslogin_v1/proto/proto/oslogin_pb2_grpc.py diff --git a/oslogin/google/__init__.py b/oslogin/google/__init__.py index 8fcc60e2b9c6..9a1b64a6d586 100644 --- a/oslogin/google/__init__.py +++ b/oslogin/google/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/oslogin/google/cloud/__init__.py b/oslogin/google/cloud/__init__.py index 8fcc60e2b9c6..9a1b64a6d586 100644 --- a/oslogin/google/cloud/__init__.py +++ b/oslogin/google/cloud/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/oslogin/google/cloud/oslogin.py b/oslogin/google/cloud/oslogin.py index 416aad010a9b..8e9daac48e16 100644 --- a/oslogin/google/cloud/oslogin.py +++ b/oslogin/google/cloud/oslogin.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/oslogin/google/cloud/oslogin_v1/__init__.py b/oslogin/google/cloud/oslogin_v1/__init__.py index 6633ae40d853..24017b9784ca 100644 --- a/oslogin/google/cloud/oslogin_v1/__init__.py +++ b/oslogin/google/cloud/oslogin_v1/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/oslogin/google/cloud/oslogin_v1/gapic/enums.py b/oslogin/google/cloud/oslogin_v1/gapic/enums.py index ab555b005071..48c48da09224 100644 --- a/oslogin/google/cloud/oslogin_v1/gapic/enums.py +++ b/oslogin/google/cloud/oslogin_v1/gapic/enums.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/oslogin/google/cloud/oslogin_v1/gapic/os_login_service_client.py b/oslogin/google/cloud/oslogin_v1/gapic/os_login_service_client.py index ec496c53a918..e4abdbd8acec 100644 --- a/oslogin/google/cloud/oslogin_v1/gapic/os_login_service_client.py +++ b/oslogin/google/cloud/oslogin_v1/gapic/os_login_service_client.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/oslogin/google/cloud/oslogin_v1/gapic/transports/os_login_service_grpc_transport.py b/oslogin/google/cloud/oslogin_v1/gapic/transports/os_login_service_grpc_transport.py index 2860dfe42952..ff1db19048e2 100644 --- a/oslogin/google/cloud/oslogin_v1/gapic/transports/os_login_service_grpc_transport.py +++ b/oslogin/google/cloud/oslogin_v1/gapic/transports/os_login_service_grpc_transport.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/oslogin/google/cloud/oslogin_v1/proto/common_pb2.py b/oslogin/google/cloud/oslogin_v1/proto/common_pb2.py index c842ef79bc1d..7f53f0bd3099 100644 --- a/oslogin/google/cloud/oslogin_v1/proto/common_pb2.py +++ b/oslogin/google/cloud/oslogin_v1/proto/common_pb2.py @@ -396,7 +396,8 @@ dict( DESCRIPTOR=_POSIXACCOUNT, __module__="google.cloud.oslogin.common.common_pb2", - __doc__="""The POSIX account information associated with a Google account. + __doc__="""The POSIX account information associated with a Google + account. Attributes: @@ -435,7 +436,8 @@ dict( DESCRIPTOR=_SSHPUBLICKEY, __module__="google.cloud.oslogin.common.common_pb2", - __doc__="""The SSH public key information associated with a Google account. + __doc__="""The SSH public key information associated with a Google + account. Attributes: diff --git a/oslogin/google/cloud/oslogin_v1/proto/oslogin_pb2.py b/oslogin/google/cloud/oslogin_v1/proto/oslogin_pb2.py index 0feaf4be9ae9..685f9891dc7a 100644 --- a/oslogin/google/cloud/oslogin_v1/proto/oslogin_pb2.py +++ b/oslogin/google/cloud/oslogin_v1/proto/oslogin_pb2.py @@ -626,8 +626,8 @@ ), DESCRIPTOR=_LOGINPROFILE, __module__="google.cloud.oslogin_v1.proto.oslogin_pb2", - __doc__="""The user profile information used for logging in to a virtual machine on - Google Compute Engine. + __doc__="""The user profile information used for logging in to a + virtual machine on Google Compute Engine. Attributes: @@ -693,8 +693,8 @@ dict( DESCRIPTOR=_GETLOGINPROFILEREQUEST, __module__="google.cloud.oslogin_v1.proto.oslogin_pb2", - __doc__="""A request message for retrieving the login profile information for a - user. + __doc__="""A request message for retrieving the login profile + information for a user. Attributes: diff --git a/oslogin/google/cloud/oslogin_v1/proto/proto/__init__.py b/oslogin/google/cloud/oslogin_v1/proto/proto/__init__.py deleted file mode 100644 index e69de29bb2d1..000000000000 diff --git a/oslogin/google/cloud/oslogin_v1/proto/proto/oslogin_pb2.py b/oslogin/google/cloud/oslogin_v1/proto/proto/oslogin_pb2.py deleted file mode 100644 index 0feaf4be9ae9..000000000000 --- a/oslogin/google/cloud/oslogin_v1/proto/proto/oslogin_pb2.py +++ /dev/null @@ -1,898 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/cloud/oslogin_v1/proto/oslogin.proto - -import sys - -_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from google.protobuf import reflection as _reflection -from google.protobuf import symbol_database as _symbol_database - -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.api import client_pb2 as google_dot_api_dot_client__pb2 -from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 -from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 -from google.cloud.oslogin_v1.proto import ( - common_pb2 as google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2, -) -from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 -from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 - - -DESCRIPTOR = _descriptor.FileDescriptor( - name="google/cloud/oslogin_v1/proto/oslogin.proto", - package="google.cloud.oslogin.v1", - syntax="proto3", - serialized_options=_b( - "\n\033com.google.cloud.oslogin.v1B\014OsLoginProtoP\001Z>google.golang.org/genproto/googleapis/cloud/oslogin/v1;oslogin\252\002\027Google.Cloud.OsLogin.V1\312\002\027Google\\Cloud\\OsLogin\\V1" - ), - serialized_pb=_b( - '\n+google/cloud/oslogin_v1/proto/oslogin.proto\x12\x17google.cloud.oslogin.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a(google/cloud/oslogin/common/common.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto"\x98\x02\n\x0cLoginProfile\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x41\n\x0eposix_accounts\x18\x02 \x03(\x0b\x32).google.cloud.oslogin.common.PosixAccount\x12Q\n\x0fssh_public_keys\x18\x03 \x03(\x0b\x32\x38.google.cloud.oslogin.v1.LoginProfile.SshPublicKeysEntry\x1a_\n\x12SshPublicKeysEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x38\n\x05value\x18\x02 \x01(\x0b\x32).google.cloud.oslogin.common.SshPublicKey:\x02\x38\x01"V\n\x19\x44\x65letePosixAccountRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#oslogin.googleapis.com/PosixAccount"V\n\x19\x44\x65leteSshPublicKeyRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#oslogin.googleapis.com/SshPublicKey"z\n\x16GetLoginProfileRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\x12#oslogin.googleapis.com/PosixAccount\x12\x12\n\nproject_id\x18\x02 \x01(\t\x12\x11\n\tsystem_id\x18\x03 \x01(\t"S\n\x16GetSshPublicKeyRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#oslogin.googleapis.com/SshPublicKey"\xb4\x01\n\x19ImportSshPublicKeyRequest\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\x12#oslogin.googleapis.com/SshPublicKey\x12\x46\n\x0essh_public_key\x18\x02 \x01(\x0b\x32).google.cloud.oslogin.common.SshPublicKeyB\x03\xe0\x41\x01\x12\x12\n\nproject_id\x18\x03 \x01(\t"Z\n\x1aImportSshPublicKeyResponse\x12<\n\rlogin_profile\x18\x01 \x01(\x0b\x32%.google.cloud.oslogin.v1.LoginProfile"\xcf\x01\n\x19UpdateSshPublicKeyRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#oslogin.googleapis.com/SshPublicKey\x12\x46\n\x0essh_public_key\x18\x02 \x01(\x0b\x32).google.cloud.oslogin.common.SshPublicKeyB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask2\xd0\t\n\x0eOsLoginService\x12\x8e\x01\n\x12\x44\x65letePosixAccount\x12\x32.google.cloud.oslogin.v1.DeletePosixAccountRequest\x1a\x16.google.protobuf.Empty",\x82\xd3\xe4\x93\x02\x1f*\x1d/v1/{name=users/*/projects/*}\xda\x41\x04name\x12\x93\x01\n\x12\x44\x65leteSshPublicKey\x12\x32.google.cloud.oslogin.v1.DeleteSshPublicKeyRequest\x1a\x16.google.protobuf.Empty"1\x82\xd3\xe4\x93\x02$*"/v1/{name=users/*/sshPublicKeys/*}\xda\x41\x04name\x12\x99\x01\n\x0fGetLoginProfile\x12/.google.cloud.oslogin.v1.GetLoginProfileRequest\x1a%.google.cloud.oslogin.v1.LoginProfile".\x82\xd3\xe4\x93\x02!\x12\x1f/v1/{name=users/*}/loginProfile\xda\x41\x04name\x12\xa0\x01\n\x0fGetSshPublicKey\x12/.google.cloud.oslogin.v1.GetSshPublicKeyRequest\x1a).google.cloud.oslogin.common.SshPublicKey"1\x82\xd3\xe4\x93\x02$\x12"/v1/{name=users/*/sshPublicKeys/*}\xda\x41\x04name\x12\xf9\x01\n\x12ImportSshPublicKey\x12\x32.google.cloud.oslogin.v1.ImportSshPublicKeyRequest\x1a\x33.google.cloud.oslogin.v1.ImportSshPublicKeyResponse"z\x82\xd3\xe4\x93\x02\x39"\'/v1/{parent=users/*}:importSshPublicKey:\x0essh_public_key\xda\x41\x15parent,ssh_public_key\xda\x41 parent,ssh_public_key,project_id\x12\xe7\x01\n\x12UpdateSshPublicKey\x12\x32.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest\x1a).google.cloud.oslogin.common.SshPublicKey"r\x82\xd3\xe4\x93\x02\x34\x32"/v1/{name=users/*/sshPublicKeys/*}:\x0essh_public_key\xda\x41\x13name,ssh_public_key\xda\x41\x1fname,ssh_public_key,update_mask\x1ar\xca\x41\x16oslogin.googleapis.com\xd2\x41Vhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/computeB\xa1\x01\n\x1b\x63om.google.cloud.oslogin.v1B\x0cOsLoginProtoP\x01Z>google.golang.org/genproto/googleapis/cloud/oslogin/v1;oslogin\xaa\x02\x17Google.Cloud.OsLogin.V1\xca\x02\x17Google\\Cloud\\OsLogin\\V1b\x06proto3' - ), - dependencies=[ - google_dot_api_dot_annotations__pb2.DESCRIPTOR, - google_dot_api_dot_client__pb2.DESCRIPTOR, - google_dot_api_dot_field__behavior__pb2.DESCRIPTOR, - google_dot_api_dot_resource__pb2.DESCRIPTOR, - google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2.DESCRIPTOR, - google_dot_protobuf_dot_empty__pb2.DESCRIPTOR, - google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR, - ], -) - - -_LOGINPROFILE_SSHPUBLICKEYSENTRY = _descriptor.Descriptor( - name="SshPublicKeysEntry", - full_name="google.cloud.oslogin.v1.LoginProfile.SshPublicKeysEntry", - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name="key", - full_name="google.cloud.oslogin.v1.LoginProfile.SshPublicKeysEntry.key", - index=0, - number=1, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=_b("").decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - ), - _descriptor.FieldDescriptor( - name="value", - full_name="google.cloud.oslogin.v1.LoginProfile.SshPublicKeysEntry.value", - index=1, - number=2, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=_b("8\001"), - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=478, - serialized_end=573, -) - -_LOGINPROFILE = _descriptor.Descriptor( - name="LoginProfile", - full_name="google.cloud.oslogin.v1.LoginProfile", - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name="name", - full_name="google.cloud.oslogin.v1.LoginProfile.name", - index=0, - number=1, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=_b("").decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=_b("\340A\002"), - file=DESCRIPTOR, - ), - _descriptor.FieldDescriptor( - name="posix_accounts", - full_name="google.cloud.oslogin.v1.LoginProfile.posix_accounts", - index=1, - number=2, - type=11, - cpp_type=10, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - ), - _descriptor.FieldDescriptor( - name="ssh_public_keys", - full_name="google.cloud.oslogin.v1.LoginProfile.ssh_public_keys", - index=2, - number=3, - type=11, - cpp_type=10, - label=3, - has_default_value=False, - default_value=[], - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - ), - ], - extensions=[], - nested_types=[_LOGINPROFILE_SSHPUBLICKEYSENTRY], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=293, - serialized_end=573, -) - - -_DELETEPOSIXACCOUNTREQUEST = _descriptor.Descriptor( - name="DeletePosixAccountRequest", - full_name="google.cloud.oslogin.v1.DeletePosixAccountRequest", - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name="name", - full_name="google.cloud.oslogin.v1.DeletePosixAccountRequest.name", - index=0, - number=1, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=_b("").decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=_b( - "\340A\002\372A%\n#oslogin.googleapis.com/PosixAccount" - ), - file=DESCRIPTOR, - ) - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=575, - serialized_end=661, -) - - -_DELETESSHPUBLICKEYREQUEST = _descriptor.Descriptor( - name="DeleteSshPublicKeyRequest", - full_name="google.cloud.oslogin.v1.DeleteSshPublicKeyRequest", - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name="name", - full_name="google.cloud.oslogin.v1.DeleteSshPublicKeyRequest.name", - index=0, - number=1, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=_b("").decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=_b( - "\340A\002\372A%\n#oslogin.googleapis.com/SshPublicKey" - ), - file=DESCRIPTOR, - ) - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=663, - serialized_end=749, -) - - -_GETLOGINPROFILEREQUEST = _descriptor.Descriptor( - name="GetLoginProfileRequest", - full_name="google.cloud.oslogin.v1.GetLoginProfileRequest", - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name="name", - full_name="google.cloud.oslogin.v1.GetLoginProfileRequest.name", - index=0, - number=1, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=_b("").decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=_b( - "\340A\002\372A%\022#oslogin.googleapis.com/PosixAccount" - ), - file=DESCRIPTOR, - ), - _descriptor.FieldDescriptor( - name="project_id", - full_name="google.cloud.oslogin.v1.GetLoginProfileRequest.project_id", - index=1, - number=2, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=_b("").decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - ), - _descriptor.FieldDescriptor( - name="system_id", - full_name="google.cloud.oslogin.v1.GetLoginProfileRequest.system_id", - index=2, - number=3, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=_b("").decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=751, - serialized_end=873, -) - - -_GETSSHPUBLICKEYREQUEST = _descriptor.Descriptor( - name="GetSshPublicKeyRequest", - full_name="google.cloud.oslogin.v1.GetSshPublicKeyRequest", - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name="name", - full_name="google.cloud.oslogin.v1.GetSshPublicKeyRequest.name", - index=0, - number=1, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=_b("").decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=_b( - "\340A\002\372A%\n#oslogin.googleapis.com/SshPublicKey" - ), - file=DESCRIPTOR, - ) - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=875, - serialized_end=958, -) - - -_IMPORTSSHPUBLICKEYREQUEST = _descriptor.Descriptor( - name="ImportSshPublicKeyRequest", - full_name="google.cloud.oslogin.v1.ImportSshPublicKeyRequest", - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name="parent", - full_name="google.cloud.oslogin.v1.ImportSshPublicKeyRequest.parent", - index=0, - number=1, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=_b("").decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=_b( - "\340A\002\372A%\022#oslogin.googleapis.com/SshPublicKey" - ), - file=DESCRIPTOR, - ), - _descriptor.FieldDescriptor( - name="ssh_public_key", - full_name="google.cloud.oslogin.v1.ImportSshPublicKeyRequest.ssh_public_key", - index=1, - number=2, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=_b("\340A\001"), - file=DESCRIPTOR, - ), - _descriptor.FieldDescriptor( - name="project_id", - full_name="google.cloud.oslogin.v1.ImportSshPublicKeyRequest.project_id", - index=2, - number=3, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=_b("").decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=961, - serialized_end=1141, -) - - -_IMPORTSSHPUBLICKEYRESPONSE = _descriptor.Descriptor( - name="ImportSshPublicKeyResponse", - full_name="google.cloud.oslogin.v1.ImportSshPublicKeyResponse", - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name="login_profile", - full_name="google.cloud.oslogin.v1.ImportSshPublicKeyResponse.login_profile", - index=0, - number=1, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - ) - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=1143, - serialized_end=1233, -) - - -_UPDATESSHPUBLICKEYREQUEST = _descriptor.Descriptor( - name="UpdateSshPublicKeyRequest", - full_name="google.cloud.oslogin.v1.UpdateSshPublicKeyRequest", - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name="name", - full_name="google.cloud.oslogin.v1.UpdateSshPublicKeyRequest.name", - index=0, - number=1, - type=9, - cpp_type=9, - label=1, - has_default_value=False, - default_value=_b("").decode("utf-8"), - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=_b( - "\340A\002\372A%\n#oslogin.googleapis.com/SshPublicKey" - ), - file=DESCRIPTOR, - ), - _descriptor.FieldDescriptor( - name="ssh_public_key", - full_name="google.cloud.oslogin.v1.UpdateSshPublicKeyRequest.ssh_public_key", - index=1, - number=2, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=_b("\340A\002"), - file=DESCRIPTOR, - ), - _descriptor.FieldDescriptor( - name="update_mask", - full_name="google.cloud.oslogin.v1.UpdateSshPublicKeyRequest.update_mask", - index=2, - number=3, - type=11, - cpp_type=10, - label=1, - has_default_value=False, - default_value=None, - message_type=None, - enum_type=None, - containing_type=None, - is_extension=False, - extension_scope=None, - serialized_options=None, - file=DESCRIPTOR, - ), - ], - extensions=[], - nested_types=[], - enum_types=[], - serialized_options=None, - is_extendable=False, - syntax="proto3", - extension_ranges=[], - oneofs=[], - serialized_start=1236, - serialized_end=1443, -) - -_LOGINPROFILE_SSHPUBLICKEYSENTRY.fields_by_name[ - "value" -].message_type = google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2._SSHPUBLICKEY -_LOGINPROFILE_SSHPUBLICKEYSENTRY.containing_type = _LOGINPROFILE -_LOGINPROFILE.fields_by_name[ - "posix_accounts" -].message_type = google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2._POSIXACCOUNT -_LOGINPROFILE.fields_by_name[ - "ssh_public_keys" -].message_type = _LOGINPROFILE_SSHPUBLICKEYSENTRY -_IMPORTSSHPUBLICKEYREQUEST.fields_by_name[ - "ssh_public_key" -].message_type = google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2._SSHPUBLICKEY -_IMPORTSSHPUBLICKEYRESPONSE.fields_by_name["login_profile"].message_type = _LOGINPROFILE -_UPDATESSHPUBLICKEYREQUEST.fields_by_name[ - "ssh_public_key" -].message_type = google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2._SSHPUBLICKEY -_UPDATESSHPUBLICKEYREQUEST.fields_by_name[ - "update_mask" -].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK -DESCRIPTOR.message_types_by_name["LoginProfile"] = _LOGINPROFILE -DESCRIPTOR.message_types_by_name[ - "DeletePosixAccountRequest" -] = _DELETEPOSIXACCOUNTREQUEST -DESCRIPTOR.message_types_by_name[ - "DeleteSshPublicKeyRequest" -] = _DELETESSHPUBLICKEYREQUEST -DESCRIPTOR.message_types_by_name["GetLoginProfileRequest"] = _GETLOGINPROFILEREQUEST -DESCRIPTOR.message_types_by_name["GetSshPublicKeyRequest"] = _GETSSHPUBLICKEYREQUEST -DESCRIPTOR.message_types_by_name[ - "ImportSshPublicKeyRequest" -] = _IMPORTSSHPUBLICKEYREQUEST -DESCRIPTOR.message_types_by_name[ - "ImportSshPublicKeyResponse" -] = _IMPORTSSHPUBLICKEYRESPONSE -DESCRIPTOR.message_types_by_name[ - "UpdateSshPublicKeyRequest" -] = _UPDATESSHPUBLICKEYREQUEST -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -LoginProfile = _reflection.GeneratedProtocolMessageType( - "LoginProfile", - (_message.Message,), - dict( - SshPublicKeysEntry=_reflection.GeneratedProtocolMessageType( - "SshPublicKeysEntry", - (_message.Message,), - dict( - DESCRIPTOR=_LOGINPROFILE_SSHPUBLICKEYSENTRY, - __module__="google.cloud.oslogin_v1.proto.oslogin_pb2" - # @@protoc_insertion_point(class_scope:google.cloud.oslogin.v1.LoginProfile.SshPublicKeysEntry) - ), - ), - DESCRIPTOR=_LOGINPROFILE, - __module__="google.cloud.oslogin_v1.proto.oslogin_pb2", - __doc__="""The user profile information used for logging in to a virtual machine on - Google Compute Engine. - - - Attributes: - name: - Required. A unique user ID. - posix_accounts: - The list of POSIX accounts associated with the user. - ssh_public_keys: - A map from SSH public key fingerprint to the associated key - object. - """, - # @@protoc_insertion_point(class_scope:google.cloud.oslogin.v1.LoginProfile) - ), -) -_sym_db.RegisterMessage(LoginProfile) -_sym_db.RegisterMessage(LoginProfile.SshPublicKeysEntry) - -DeletePosixAccountRequest = _reflection.GeneratedProtocolMessageType( - "DeletePosixAccountRequest", - (_message.Message,), - dict( - DESCRIPTOR=_DELETEPOSIXACCOUNTREQUEST, - __module__="google.cloud.oslogin_v1.proto.oslogin_pb2", - __doc__="""A request message for deleting a POSIX account entry. - - - Attributes: - name: - Required. A reference to the POSIX account to update. POSIX - accounts are identified by the project ID they are associated - with. A reference to the POSIX account is in format - ``users/{user}/projects/{project}``. - """, - # @@protoc_insertion_point(class_scope:google.cloud.oslogin.v1.DeletePosixAccountRequest) - ), -) -_sym_db.RegisterMessage(DeletePosixAccountRequest) - -DeleteSshPublicKeyRequest = _reflection.GeneratedProtocolMessageType( - "DeleteSshPublicKeyRequest", - (_message.Message,), - dict( - DESCRIPTOR=_DELETESSHPUBLICKEYREQUEST, - __module__="google.cloud.oslogin_v1.proto.oslogin_pb2", - __doc__="""A request message for deleting an SSH public key. - - - Attributes: - name: - Required. The fingerprint of the public key to update. Public - keys are identified by their SHA-256 fingerprint. The - fingerprint of the public key is in format - ``users/{user}/sshPublicKeys/{fingerprint}``. - """, - # @@protoc_insertion_point(class_scope:google.cloud.oslogin.v1.DeleteSshPublicKeyRequest) - ), -) -_sym_db.RegisterMessage(DeleteSshPublicKeyRequest) - -GetLoginProfileRequest = _reflection.GeneratedProtocolMessageType( - "GetLoginProfileRequest", - (_message.Message,), - dict( - DESCRIPTOR=_GETLOGINPROFILEREQUEST, - __module__="google.cloud.oslogin_v1.proto.oslogin_pb2", - __doc__="""A request message for retrieving the login profile information for a - user. - - - Attributes: - name: - Required. The unique ID for the user in format - ``users/{user}``. - project_id: - The project ID of the Google Cloud Platform project. - system_id: - A system ID for filtering the results of the request. - """, - # @@protoc_insertion_point(class_scope:google.cloud.oslogin.v1.GetLoginProfileRequest) - ), -) -_sym_db.RegisterMessage(GetLoginProfileRequest) - -GetSshPublicKeyRequest = _reflection.GeneratedProtocolMessageType( - "GetSshPublicKeyRequest", - (_message.Message,), - dict( - DESCRIPTOR=_GETSSHPUBLICKEYREQUEST, - __module__="google.cloud.oslogin_v1.proto.oslogin_pb2", - __doc__="""A request message for retrieving an SSH public key. - - - Attributes: - name: - Required. The fingerprint of the public key to retrieve. - Public keys are identified by their SHA-256 fingerprint. The - fingerprint of the public key is in format - ``users/{user}/sshPublicKeys/{fingerprint}``. - """, - # @@protoc_insertion_point(class_scope:google.cloud.oslogin.v1.GetSshPublicKeyRequest) - ), -) -_sym_db.RegisterMessage(GetSshPublicKeyRequest) - -ImportSshPublicKeyRequest = _reflection.GeneratedProtocolMessageType( - "ImportSshPublicKeyRequest", - (_message.Message,), - dict( - DESCRIPTOR=_IMPORTSSHPUBLICKEYREQUEST, - __module__="google.cloud.oslogin_v1.proto.oslogin_pb2", - __doc__="""A request message for importing an SSH public key. - - - Attributes: - parent: - Required. The unique ID for the user in format - ``users/{user}``. - ssh_public_key: - Optional. The SSH public key and expiration time. - project_id: - The project ID of the Google Cloud Platform project. - """, - # @@protoc_insertion_point(class_scope:google.cloud.oslogin.v1.ImportSshPublicKeyRequest) - ), -) -_sym_db.RegisterMessage(ImportSshPublicKeyRequest) - -ImportSshPublicKeyResponse = _reflection.GeneratedProtocolMessageType( - "ImportSshPublicKeyResponse", - (_message.Message,), - dict( - DESCRIPTOR=_IMPORTSSHPUBLICKEYRESPONSE, - __module__="google.cloud.oslogin_v1.proto.oslogin_pb2", - __doc__="""A response message for importing an SSH public key. - - - Attributes: - login_profile: - The login profile information for the user. - """, - # @@protoc_insertion_point(class_scope:google.cloud.oslogin.v1.ImportSshPublicKeyResponse) - ), -) -_sym_db.RegisterMessage(ImportSshPublicKeyResponse) - -UpdateSshPublicKeyRequest = _reflection.GeneratedProtocolMessageType( - "UpdateSshPublicKeyRequest", - (_message.Message,), - dict( - DESCRIPTOR=_UPDATESSHPUBLICKEYREQUEST, - __module__="google.cloud.oslogin_v1.proto.oslogin_pb2", - __doc__="""A request message for updating an SSH public key. - - - Attributes: - name: - Required. The fingerprint of the public key to update. Public - keys are identified by their SHA-256 fingerprint. The - fingerprint of the public key is in format - ``users/{user}/sshPublicKeys/{fingerprint}``. - ssh_public_key: - Required. The SSH public key and expiration time. - update_mask: - Mask to control which fields get updated. Updates all if not - present. - """, - # @@protoc_insertion_point(class_scope:google.cloud.oslogin.v1.UpdateSshPublicKeyRequest) - ), -) -_sym_db.RegisterMessage(UpdateSshPublicKeyRequest) - - -DESCRIPTOR._options = None -_LOGINPROFILE_SSHPUBLICKEYSENTRY._options = None -_LOGINPROFILE.fields_by_name["name"]._options = None -_DELETEPOSIXACCOUNTREQUEST.fields_by_name["name"]._options = None -_DELETESSHPUBLICKEYREQUEST.fields_by_name["name"]._options = None -_GETLOGINPROFILEREQUEST.fields_by_name["name"]._options = None -_GETSSHPUBLICKEYREQUEST.fields_by_name["name"]._options = None -_IMPORTSSHPUBLICKEYREQUEST.fields_by_name["parent"]._options = None -_IMPORTSSHPUBLICKEYREQUEST.fields_by_name["ssh_public_key"]._options = None -_UPDATESSHPUBLICKEYREQUEST.fields_by_name["name"]._options = None -_UPDATESSHPUBLICKEYREQUEST.fields_by_name["ssh_public_key"]._options = None - -_OSLOGINSERVICE = _descriptor.ServiceDescriptor( - name="OsLoginService", - full_name="google.cloud.oslogin.v1.OsLoginService", - file=DESCRIPTOR, - index=0, - serialized_options=_b( - "\312A\026oslogin.googleapis.com\322AVhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/compute" - ), - serialized_start=1446, - serialized_end=2678, - methods=[ - _descriptor.MethodDescriptor( - name="DeletePosixAccount", - full_name="google.cloud.oslogin.v1.OsLoginService.DeletePosixAccount", - index=0, - containing_service=None, - input_type=_DELETEPOSIXACCOUNTREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=_b( - "\202\323\344\223\002\037*\035/v1/{name=users/*/projects/*}\332A\004name" - ), - ), - _descriptor.MethodDescriptor( - name="DeleteSshPublicKey", - full_name="google.cloud.oslogin.v1.OsLoginService.DeleteSshPublicKey", - index=1, - containing_service=None, - input_type=_DELETESSHPUBLICKEYREQUEST, - output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, - serialized_options=_b( - '\202\323\344\223\002$*"/v1/{name=users/*/sshPublicKeys/*}\332A\004name' - ), - ), - _descriptor.MethodDescriptor( - name="GetLoginProfile", - full_name="google.cloud.oslogin.v1.OsLoginService.GetLoginProfile", - index=2, - containing_service=None, - input_type=_GETLOGINPROFILEREQUEST, - output_type=_LOGINPROFILE, - serialized_options=_b( - "\202\323\344\223\002!\022\037/v1/{name=users/*}/loginProfile\332A\004name" - ), - ), - _descriptor.MethodDescriptor( - name="GetSshPublicKey", - full_name="google.cloud.oslogin.v1.OsLoginService.GetSshPublicKey", - index=3, - containing_service=None, - input_type=_GETSSHPUBLICKEYREQUEST, - output_type=google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2._SSHPUBLICKEY, - serialized_options=_b( - '\202\323\344\223\002$\022"/v1/{name=users/*/sshPublicKeys/*}\332A\004name' - ), - ), - _descriptor.MethodDescriptor( - name="ImportSshPublicKey", - full_name="google.cloud.oslogin.v1.OsLoginService.ImportSshPublicKey", - index=4, - containing_service=None, - input_type=_IMPORTSSHPUBLICKEYREQUEST, - output_type=_IMPORTSSHPUBLICKEYRESPONSE, - serialized_options=_b( - "\202\323\344\223\0029\"'/v1/{parent=users/*}:importSshPublicKey:\016ssh_public_key\332A\025parent,ssh_public_key\332A parent,ssh_public_key,project_id" - ), - ), - _descriptor.MethodDescriptor( - name="UpdateSshPublicKey", - full_name="google.cloud.oslogin.v1.OsLoginService.UpdateSshPublicKey", - index=5, - containing_service=None, - input_type=_UPDATESSHPUBLICKEYREQUEST, - output_type=google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2._SSHPUBLICKEY, - serialized_options=_b( - '\202\323\344\223\00242"/v1/{name=users/*/sshPublicKeys/*}:\016ssh_public_key\332A\023name,ssh_public_key\332A\037name,ssh_public_key,update_mask' - ), - ), - ], -) -_sym_db.RegisterServiceDescriptor(_OSLOGINSERVICE) - -DESCRIPTOR.services_by_name["OsLoginService"] = _OSLOGINSERVICE - -# @@protoc_insertion_point(module_scope) diff --git a/oslogin/google/cloud/oslogin_v1/proto/proto/oslogin_pb2_grpc.py b/oslogin/google/cloud/oslogin_v1/proto/proto/oslogin_pb2_grpc.py deleted file mode 100644 index 6b002666a67b..000000000000 --- a/oslogin/google/cloud/oslogin_v1/proto/proto/oslogin_pb2_grpc.py +++ /dev/null @@ -1,148 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -import grpc - -from google.cloud.oslogin_v1.proto import ( - common_pb2 as google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2, -) -from google.cloud.oslogin_v1.proto import ( - oslogin_pb2 as google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2, -) -from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 - - -class OsLoginServiceStub(object): - """Cloud OS Login API - - The Cloud OS Login API allows you to manage users and their associated SSH - public keys for logging into virtual machines on Google Cloud Platform. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.DeletePosixAccount = channel.unary_unary( - "/google.cloud.oslogin.v1.OsLoginService/DeletePosixAccount", - request_serializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.DeletePosixAccountRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.DeleteSshPublicKey = channel.unary_unary( - "/google.cloud.oslogin.v1.OsLoginService/DeleteSshPublicKey", - request_serializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.DeleteSshPublicKeyRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) - self.GetLoginProfile = channel.unary_unary( - "/google.cloud.oslogin.v1.OsLoginService/GetLoginProfile", - request_serializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.GetLoginProfileRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.LoginProfile.FromString, - ) - self.GetSshPublicKey = channel.unary_unary( - "/google.cloud.oslogin.v1.OsLoginService/GetSshPublicKey", - request_serializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.GetSshPublicKeyRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2.SshPublicKey.FromString, - ) - self.ImportSshPublicKey = channel.unary_unary( - "/google.cloud.oslogin.v1.OsLoginService/ImportSshPublicKey", - request_serializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.ImportSshPublicKeyRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.ImportSshPublicKeyResponse.FromString, - ) - self.UpdateSshPublicKey = channel.unary_unary( - "/google.cloud.oslogin.v1.OsLoginService/UpdateSshPublicKey", - request_serializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.UpdateSshPublicKeyRequest.SerializeToString, - response_deserializer=google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2.SshPublicKey.FromString, - ) - - -class OsLoginServiceServicer(object): - """Cloud OS Login API - - The Cloud OS Login API allows you to manage users and their associated SSH - public keys for logging into virtual machines on Google Cloud Platform. - """ - - def DeletePosixAccount(self, request, context): - """Deletes a POSIX account. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details("Method not implemented!") - raise NotImplementedError("Method not implemented!") - - def DeleteSshPublicKey(self, request, context): - """Deletes an SSH public key. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details("Method not implemented!") - raise NotImplementedError("Method not implemented!") - - def GetLoginProfile(self, request, context): - """Retrieves the profile information used for logging in to a virtual machine - on Google Compute Engine. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details("Method not implemented!") - raise NotImplementedError("Method not implemented!") - - def GetSshPublicKey(self, request, context): - """Retrieves an SSH public key. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details("Method not implemented!") - raise NotImplementedError("Method not implemented!") - - def ImportSshPublicKey(self, request, context): - """Adds an SSH public key and returns the profile information. Default POSIX - account information is set when no username and UID exist as part of the - login profile. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details("Method not implemented!") - raise NotImplementedError("Method not implemented!") - - def UpdateSshPublicKey(self, request, context): - """Updates an SSH public key and returns the profile information. This method - supports patch semantics. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details("Method not implemented!") - raise NotImplementedError("Method not implemented!") - - -def add_OsLoginServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - "DeletePosixAccount": grpc.unary_unary_rpc_method_handler( - servicer.DeletePosixAccount, - request_deserializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.DeletePosixAccountRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - "DeleteSshPublicKey": grpc.unary_unary_rpc_method_handler( - servicer.DeleteSshPublicKey, - request_deserializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.DeleteSshPublicKeyRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), - "GetLoginProfile": grpc.unary_unary_rpc_method_handler( - servicer.GetLoginProfile, - request_deserializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.GetLoginProfileRequest.FromString, - response_serializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.LoginProfile.SerializeToString, - ), - "GetSshPublicKey": grpc.unary_unary_rpc_method_handler( - servicer.GetSshPublicKey, - request_deserializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.GetSshPublicKeyRequest.FromString, - response_serializer=google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2.SshPublicKey.SerializeToString, - ), - "ImportSshPublicKey": grpc.unary_unary_rpc_method_handler( - servicer.ImportSshPublicKey, - request_deserializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.ImportSshPublicKeyRequest.FromString, - response_serializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.ImportSshPublicKeyResponse.SerializeToString, - ), - "UpdateSshPublicKey": grpc.unary_unary_rpc_method_handler( - servicer.UpdateSshPublicKey, - request_deserializer=google_dot_cloud_dot_oslogin__v1_dot_proto_dot_oslogin__pb2.UpdateSshPublicKeyRequest.FromString, - response_serializer=google_dot_cloud_dot_oslogin_dot_common_dot_common__pb2.SshPublicKey.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - "google.cloud.oslogin.v1.OsLoginService", rpc_method_handlers - ) - server.add_generic_rpc_handlers((generic_handler,)) diff --git a/oslogin/google/cloud/oslogin_v1/types.py b/oslogin/google/cloud/oslogin_v1/types.py index 44770325b204..7a4c50766e11 100644 --- a/oslogin/google/cloud/oslogin_v1/types.py +++ b/oslogin/google/cloud/oslogin_v1/types.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/oslogin/synth.metadata b/oslogin/synth.metadata index e5f1d02045ca..f2eb39123f06 100644 --- a/oslogin/synth.metadata +++ b/oslogin/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2020-01-08T13:26:22.968839Z", + "updateTime": "2020-01-30T02:35:03.193416Z", "sources": [ { "generator": { "name": "artman", - "version": "0.43.0", - "dockerImage": "googleapis/artman@sha256:264654a37596a44b0668b8ce6ac41082d713f6ee150b3fc6425fa78cc64e4f20" + "version": "0.44.4", + "dockerImage": "googleapis/artman@sha256:19e945954fc960a4bdfee6cb34695898ab21a8cf0bac063ee39b91f00a1faec8" } }, { "git": { "name": "googleapis", - "remote": "https://github.com/googleapis/googleapis.git", - "sha": "08b488e0660c59842a7dee0e3e2b65d9e3a514a9", - "internalRef": "288625007" + "remote": "git@github.com:googleapis/googleapis.git", + "sha": "b491d07cadaae7cde5608321f913e5ca1459b32d", + "internalRef": "292245373" } }, { @@ -35,5 +35,94 @@ "config": "google/cloud/oslogin/artman_oslogin_v1.yaml" } } + ], + "newFiles": [ + { + "path": "MANIFEST.in" + }, + { + "path": ".flake8" + }, + { + "path": "noxfile.py" + }, + { + "path": ".coveragerc" + }, + { + "path": "setup.cfg" + }, + { + "path": "LICENSE" + }, + { + "path": "docs/conf.py" + }, + { + "path": "docs/_static/custom.css" + }, + { + "path": "docs/gapic/v1/api.rst" + }, + { + "path": "docs/gapic/v1/types.rst" + }, + { + "path": "docs/_templates/layout.html" + }, + { + "path": "google/__init__.py" + }, + { + "path": "google/cloud/__init__.py" + }, + { + "path": "google/cloud/oslogin.py" + }, + { + "path": "google/cloud/oslogin_v1/types.py" + }, + { + "path": "google/cloud/oslogin_v1/__init__.py" + }, + { + "path": "google/cloud/oslogin_v1/gapic/__init__.py" + }, + { + "path": "google/cloud/oslogin_v1/gapic/os_login_service_client.py" + }, + { + "path": "google/cloud/oslogin_v1/gapic/os_login_service_client_config.py" + }, + { + "path": "google/cloud/oslogin_v1/gapic/enums.py" + }, + { + "path": "google/cloud/oslogin_v1/gapic/transports/__init__.py" + }, + { + "path": "google/cloud/oslogin_v1/gapic/transports/os_login_service_grpc_transport.py" + }, + { + "path": "google/cloud/oslogin_v1/proto/oslogin.proto" + }, + { + "path": "google/cloud/oslogin_v1/proto/oslogin_pb2_grpc.py" + }, + { + "path": "google/cloud/oslogin_v1/proto/__init__.py" + }, + { + "path": "google/cloud/oslogin_v1/proto/common_pb2.py" + }, + { + "path": "google/cloud/oslogin_v1/proto/common_pb2_grpc.py" + }, + { + "path": "google/cloud/oslogin_v1/proto/oslogin_pb2.py" + }, + { + "path": "tests/unit/gapic/v1/test_os_login_service_client_v1.py" + } ] } \ No newline at end of file diff --git a/oslogin/synth.py b/oslogin/synth.py index 9a668a6c1066..792875c2c5a7 100644 --- a/oslogin/synth.py +++ b/oslogin/synth.py @@ -41,7 +41,7 @@ library / "google/cloud/oslogin_v1/proto/oslogin_v1/**", ], ) -s.move(library / "google/cloud/oslogin_v1/proto/**/*", "google/cloud/oslogin_v1/proto") +s.move(library / "google/cloud/oslogin_v1/proto/**/*.py", "google/cloud/oslogin_v1/proto") # Fix up imports diff --git a/oslogin/tests/unit/gapic/v1/test_os_login_service_client_v1.py b/oslogin/tests/unit/gapic/v1/test_os_login_service_client_v1.py index a912a5780d3a..66fae902ae7d 100644 --- a/oslogin/tests/unit/gapic/v1/test_os_login_service_client_v1.py +++ b/oslogin/tests/unit/gapic/v1/test_os_login_service_client_v1.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2019 Google LLC +# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License.