google-cloud-os_login-v1 0.6.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4acd9facd54de9e6aa6c765e649da941c7e929e984155f3000786d346530192a
4
- data.tar.gz: e02ba9791bf52f459c78b054a6cc77da89355993ac270c4b2ac428bcef1856ed
3
+ metadata.gz: 2a56f4509057ff0e7d654dad99526e7757e4985e19c9b9f1fb8bbdeab736eab7
4
+ data.tar.gz: ed9d92990f25bbca739cef384a4cfd85d9ef385144da2b8274cb77f8890ec257
5
5
  SHA512:
6
- metadata.gz: ce3bdee502944086e337218970e8b48519ad08f45a22d8aa62f0a419be06dced67382633ceb9d25331b1d6283f1ea28510eaf47c1224106708862029d0aaedde
7
- data.tar.gz: aca6cd85796e939ca9e7b208e7bb647465393b61ebaa150177a9baf893791899cd695720fb6c4fb869da91ce73f1dfcc806e5abcbbf89bcf89d7efd276ec6a04
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
- API Client library for the Cloud OS Login V1 API
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/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
50
- or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
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 == Client.configure.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 identified
287
- # by the project ID they are associated with. A reference to the POSIX
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 identified by
374
- # their SHA-256 fingerprint. The fingerprint of the public key is in format
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 identified
551
- # by their SHA-256 fingerprint. The fingerprint of the public key is in
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 identified by
730
- # their SHA-256 fingerprint. The fingerprint of the public key is in format
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://googleapis.dev/ruby/googleauth/latest/index.html))
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://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
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
- config_attr :endpoint, "oslogin.googleapis.com", ::String
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