google-cloud-os_login-v1beta 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 19d734c3c0f55ed9206d34dfae0e92ed1f3e24f978710b2b451a4a75b574c798
4
- data.tar.gz: a17771113618b8d7d4f7265d207809e1cb8669268e1dc7e85e241ad962949994
3
+ metadata.gz: 4eb81780e0b7e07ae097304e54c7520f8dd0e14574280e3e5b98f31f3ccd1a20
4
+ data.tar.gz: 32597a8e409d3fcd5849e456bc2b4c2ac186322d988761f6dac9de95de68511d
5
5
  SHA512:
6
- metadata.gz: 87028c075ac85b26bdae1aadaab9d8761817ae823309d0cfad69c4f58b18f4e54ad2446c070e32485203ac9843c8fd00f6f82d4bea1c509891d450d3e309d7b5
7
- data.tar.gz: 8ae0c205877542166b644650a59510a7851be297da49515a35b3d21d9483f3b68fcfbe0044aacf4c5bfe4089b91c77edb4db4465f3557f560703fa90739d35ec
6
+ metadata.gz: 74c1e1cbb97cb2d9f599b066fa1bf951a728394190ac139f7acaa707a8c34a41e64b6c70bf79d087706be00a32ce204c132cf518f35bfdac6fd5af181635e2bc
7
+ data.tar.gz: 071dd626e19d261afeaf0c29427737b09b55e84f20faae5c66878174ef7889bff06c9facfe01d1beb674aced1557075cd423a83f9bfa90a0a975229994b1d961
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Ruby Client for the Cloud OS Login V1beta API
2
2
 
3
- API Client library for the Cloud OS Login V1beta 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]
@@ -549,9 +549,9 @@ module Google
549
549
  # the default parameter values, pass an empty Hash as a request object (see above).
550
550
  #
551
551
  # @param name [::String]
552
- # Required. The fingerprint of the public key to retrieve. Public keys are identified
553
- # by their SHA-256 fingerprint. The fingerprint of the public key is in
554
- # format `users/{user}/sshPublicKeys/{fingerprint}`.
552
+ # Required. The fingerprint of the public key to retrieve. Public keys are
553
+ # identified by their SHA-256 fingerprint. The fingerprint of the public key
554
+ # is in format `users/{user}/sshPublicKeys/{fingerprint}`.
555
555
  #
556
556
  # @yield [response, operation] Access the result along with the RPC operation
557
557
  # @yieldparam response [::Google::Cloud::OsLogin::Common::SshPublicKey]
@@ -730,9 +730,9 @@ module Google
730
730
  # the default parameter values, pass an empty Hash as a request object (see above).
731
731
  #
732
732
  # @param name [::String]
733
- # Required. The fingerprint of the public key to update. Public keys are identified by
734
- # their SHA-256 fingerprint. The fingerprint of the public key is in format
735
- # `users/{user}/sshPublicKeys/{fingerprint}`.
733
+ # Required. The fingerprint of the public key to update. Public keys are
734
+ # identified by their SHA-256 fingerprint. The fingerprint of the public key
735
+ # is in format `users/{user}/sshPublicKeys/{fingerprint}`.
736
736
  # @param ssh_public_key [::Google::Cloud::OsLogin::Common::SshPublicKey, ::Hash]
737
737
  # Required. The SSH public key and expiration time.
738
738
  # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
@@ -840,9 +840,9 @@ module Google
840
840
  # * (`String`) The path to a service account key file in JSON format
841
841
  # * (`Hash`) A service account key as a Hash
842
842
  # * (`Google::Auth::Credentials`) A googleauth credentials object
843
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
843
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
844
844
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
845
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
845
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
846
846
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
847
847
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
848
848
  # * (`nil`) indicating no credentials
@@ -884,7 +884,9 @@ module Google
884
884
  class Configuration
885
885
  extend ::Gapic::Config
886
886
 
887
- config_attr :endpoint, "oslogin.googleapis.com", ::String
887
+ DEFAULT_ENDPOINT = "oslogin.googleapis.com"
888
+
889
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
888
890
  config_attr :credentials, nil do |value|
889
891
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
890
892
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC