diff --git a/docs/_static/custom.css b/docs/_static/custom.css index 9a6f9f8..0abaf22 100644 --- a/docs/_static/custom.css +++ b/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/docs/_templates/layout.html b/docs/_templates/layout.html index de457b2..228529e 100644 --- a/docs/_templates/layout.html +++ b/docs/_templates/layout.html @@ -1,3 +1,4 @@ + {% extends "!layout.html" %} {%- block content %} {%- if theme_fixed_sidebar|lower == 'true' %} diff --git a/google/__init__.py b/google/__init__.py index 8fcc60e..9a1b64a 100644 --- a/google/__init__.py +++ b/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/google/cloud/__init__.py b/google/cloud/__init__.py index 8fcc60e..9a1b64a 100644 --- a/google/cloud/__init__.py +++ b/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/google/cloud/oslogin.py b/google/cloud/oslogin.py index 416aad0..8e9daac 100644 --- a/google/cloud/oslogin.py +++ b/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/google/cloud/oslogin_v1/__init__.py b/google/cloud/oslogin_v1/__init__.py index 83a5ac2..24017b9 100644 --- a/google/cloud/oslogin_v1/__init__.py +++ b/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. @@ -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/google/cloud/oslogin_v1/gapic/enums.py b/google/cloud/oslogin_v1/gapic/enums.py index ab555b0..48c48da 100644 --- a/google/cloud/oslogin_v1/gapic/enums.py +++ b/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/google/cloud/oslogin_v1/gapic/os_login_service_client.py b/google/cloud/oslogin_v1/gapic/os_login_service_client.py index ec496c5..e4abdbd 100644 --- a/google/cloud/oslogin_v1/gapic/os_login_service_client.py +++ b/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/google/cloud/oslogin_v1/gapic/transports/os_login_service_grpc_transport.py b/google/cloud/oslogin_v1/gapic/transports/os_login_service_grpc_transport.py index 2860dfe..ff1db19 100644 --- a/google/cloud/oslogin_v1/gapic/transports/os_login_service_grpc_transport.py +++ b/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/google/cloud/oslogin_v1/proto/common_pb2.py b/google/cloud/oslogin_v1/proto/common_pb2.py index c842ef7..7f53f0b 100644 --- a/google/cloud/oslogin_v1/proto/common_pb2.py +++ b/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/google/cloud/oslogin_v1/proto/oslogin_pb2.py b/google/cloud/oslogin_v1/proto/oslogin_pb2.py index 0feaf4b..685f989 100644 --- a/google/cloud/oslogin_v1/proto/oslogin_pb2.py +++ b/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/google/cloud/oslogin_v1/types.py b/google/cloud/oslogin_v1/types.py index 4477032..7a4c507 100644 --- a/google/cloud/oslogin_v1/types.py +++ b/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/noxfile.py b/noxfile.py index a2eefbb..7949a4e 100644 --- a/noxfile.py +++ b/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/synth.metadata b/synth.metadata index fe8ff68..f2eb391 100644 --- a/synth.metadata +++ b/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-11-07T00:17:37.354583Z", + "updateTime": "2020-01-30T02:35:03.193416Z", "sources": [ { "generator": { "name": "artman", - "version": "0.41.0", - "dockerImage": "googleapis/artman@sha256:75b38a3b073a7b243545f2332463096624c802bb1e56b8cb6f22ba1ecd325fa9" + "version": "0.44.4", + "dockerImage": "googleapis/artman@sha256:19e945954fc960a4bdfee6cb34695898ab21a8cf0bac063ee39b91f00a1faec8" } }, { "git": { "name": "googleapis", - "remote": "https://github.com/googleapis/googleapis.git", - "sha": "2275670a746ab2bc03ebba0d914b45320ea15af4", - "internalRef": "278922329" + "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/synth.py b/synth.py index 9a668a6..792875c 100644 --- a/synth.py +++ b/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/tests/unit/gapic/v1/test_os_login_service_client_v1.py b/tests/unit/gapic/v1/test_os_login_service_client_v1.py index a912a57..66fae90 100644 --- a/tests/unit/gapic/v1/test_os_login_service_client_v1.py +++ b/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.