google-cloud-os_login-v1 0.6.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/google/cloud/os_login/v1/os_login_service/client.rb +18 -16
- data/lib/google/cloud/os_login/v1/os_login_service/rest/client.rb +819 -0
- data/lib/google/cloud/os_login/v1/os_login_service/rest/service_stub.rb +464 -0
- data/lib/google/cloud/os_login/v1/os_login_service/rest.rb +55 -0
- data/lib/google/cloud/os_login/v1/os_login_service.rb +7 -1
- data/lib/google/cloud/os_login/v1/rest.rb +37 -0
- data/lib/google/cloud/os_login/v1/version.rb +1 -1
- data/lib/google/cloud/os_login/v1.rb +7 -2
- data/lib/google/cloud/oslogin/common/common_pb.rb +24 -25
- data/lib/google/cloud/oslogin/v1/oslogin_pb.rb +26 -38
- data/proto_docs/google/api/client.rb +67 -4
- data/proto_docs/google/cloud/oslogin/v1/oslogin.rb +12 -12
- metadata +12 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a56f4509057ff0e7d654dad99526e7757e4985e19c9b9f1fb8bbdeab736eab7
|
4
|
+
data.tar.gz: ed9d92990f25bbca739cef384a4cfd85d9ef385144da2b8274cb77f8890ec257
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4dd2093260b10f66896ef969fed92731e575af3b8926ad09281bf54bd72ea0dc6478da1da235aa146a454dbcb113e9a0d05ca41106e0b1d6c95316101a9de1a9
|
7
|
+
data.tar.gz: 045ed49a01eb880711c39e50600c9e70f86d7c79e75097491007e69edcfb9b1ee9a358650f398f41887a65564dc4f5575a9aefaa94a38974e3db13eea77dd09f
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Ruby Client for the Cloud OS Login V1 API
|
2
2
|
|
3
|
-
|
3
|
+
You can use OS Login to manage access to your VM instances using IAM roles.
|
4
4
|
|
5
5
|
Use OS Login to manage SSH access to your instances using IAM without having to create and manage individual SSH keys. OS Login maintains a consistent Linux user identity across VM instances and is the recommended way to manage many users across multiple instances or projects.
|
6
6
|
|
@@ -46,8 +46,8 @@ for general usage information.
|
|
46
46
|
## Enabling Logging
|
47
47
|
|
48
48
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
49
|
-
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/
|
50
|
-
or a [`Google::Cloud::Logging::Logger`](https://
|
49
|
+
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
50
|
+
or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
|
51
51
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
52
52
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
53
53
|
|
@@ -156,7 +156,7 @@ module Google
|
|
156
156
|
credentials = @config.credentials
|
157
157
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
158
158
|
# but only if the default endpoint does not have a region prefix.
|
159
|
-
enable_self_signed_jwt = @config.endpoint ==
|
159
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
160
160
|
!@config.endpoint.split(".").first.include?("-")
|
161
161
|
credentials ||= Credentials.default scope: @config.scope,
|
162
162
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -283,9 +283,9 @@ module Google
|
|
283
283
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
284
284
|
#
|
285
285
|
# @param name [::String]
|
286
|
-
# Required. A reference to the POSIX account to update. POSIX accounts are
|
287
|
-
# by the project ID they are associated with. A reference to the
|
288
|
-
# account is in format `users/{user}/projects/{project}`.
|
286
|
+
# Required. A reference to the POSIX account to update. POSIX accounts are
|
287
|
+
# identified by the project ID they are associated with. A reference to the
|
288
|
+
# POSIX account is in format `users/{user}/projects/{project}`.
|
289
289
|
#
|
290
290
|
# @yield [response, operation] Access the result along with the RPC operation
|
291
291
|
# @yieldparam response [::Google::Protobuf::Empty]
|
@@ -370,9 +370,9 @@ module Google
|
|
370
370
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
371
371
|
#
|
372
372
|
# @param name [::String]
|
373
|
-
# Required. The fingerprint of the public key to update. Public keys are
|
374
|
-
# their SHA-256 fingerprint. The fingerprint of the public key
|
375
|
-
# `users/{user}/sshPublicKeys/{fingerprint}`.
|
373
|
+
# Required. The fingerprint of the public key to update. Public keys are
|
374
|
+
# identified by their SHA-256 fingerprint. The fingerprint of the public key
|
375
|
+
# is in format `users/{user}/sshPublicKeys/{fingerprint}`.
|
376
376
|
#
|
377
377
|
# @yield [response, operation] Access the result along with the RPC operation
|
378
378
|
# @yieldparam response [::Google::Protobuf::Empty]
|
@@ -547,9 +547,9 @@ module Google
|
|
547
547
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
548
548
|
#
|
549
549
|
# @param name [::String]
|
550
|
-
# Required. The fingerprint of the public key to retrieve. Public keys are
|
551
|
-
# by their SHA-256 fingerprint. The fingerprint of the public key
|
552
|
-
# format `users/{user}/sshPublicKeys/{fingerprint}`.
|
550
|
+
# Required. The fingerprint of the public key to retrieve. Public keys are
|
551
|
+
# identified by their SHA-256 fingerprint. The fingerprint of the public key
|
552
|
+
# is in format `users/{user}/sshPublicKeys/{fingerprint}`.
|
553
553
|
#
|
554
554
|
# @yield [response, operation] Access the result along with the RPC operation
|
555
555
|
# @yieldparam response [::Google::Cloud::OsLogin::Common::SshPublicKey]
|
@@ -726,9 +726,9 @@ module Google
|
|
726
726
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
727
727
|
#
|
728
728
|
# @param name [::String]
|
729
|
-
# Required. The fingerprint of the public key to update. Public keys are
|
730
|
-
# their SHA-256 fingerprint. The fingerprint of the public key
|
731
|
-
# `users/{user}/sshPublicKeys/{fingerprint}`.
|
729
|
+
# Required. The fingerprint of the public key to update. Public keys are
|
730
|
+
# identified by their SHA-256 fingerprint. The fingerprint of the public key
|
731
|
+
# is in format `users/{user}/sshPublicKeys/{fingerprint}`.
|
732
732
|
# @param ssh_public_key [::Google::Cloud::OsLogin::Common::SshPublicKey, ::Hash]
|
733
733
|
# Required. The SSH public key and expiration time.
|
734
734
|
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
@@ -836,9 +836,9 @@ module Google
|
|
836
836
|
# * (`String`) The path to a service account key file in JSON format
|
837
837
|
# * (`Hash`) A service account key as a Hash
|
838
838
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
839
|
-
# (see the [googleauth docs](https://
|
839
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
840
840
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
841
|
-
# (see the [signet docs](https://
|
841
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
842
842
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
843
843
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
844
844
|
# * (`nil`) indicating no credentials
|
@@ -880,7 +880,9 @@ module Google
|
|
880
880
|
class Configuration
|
881
881
|
extend ::Gapic::Config
|
882
882
|
|
883
|
-
|
883
|
+
DEFAULT_ENDPOINT = "oslogin.googleapis.com"
|
884
|
+
|
885
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
884
886
|
config_attr :credentials, nil do |value|
|
885
887
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
886
888
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|