google-cloud-access_approval-v1 0.7.1 → 0.9.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: 2c98c5f42f5e02714a19fb3867b21e0b2978a1ac81ba8d1f65967bbb7d8cdf52
4
- data.tar.gz: 1c474c7dcff8e026b9823ab3eb2a66195ab419f77e8b084c1bd4f8c3be7b07f4
3
+ metadata.gz: 7b21f1c38cdcae3bffe301c7f72ccfb4df27edd894a530c33133558f1b783c6f
4
+ data.tar.gz: 6dd8378f40967a20bf9a2267c8e238060579d856c7ee96eb64e43cb6e267cea2
5
5
  SHA512:
6
- metadata.gz: 5ce07823dd31fcfec545863c19792ba4eb43c164461f7005484ad059ad2bd86e956becf2c04e1e0b823ed544ecd1d66bac6f38c642fb84fc4467c63c3e19e406
7
- data.tar.gz: c837440514fea5998f35ae4238ac34916592878a0d1e8532a352b1a4e245c886742943ab8f10043994465ae44981972f8a39c1afa12f296bdb7c22adc51b2d82
6
+ metadata.gz: b9b7d888e59f9f2c812033d1ebd13d13c534741ff0b982b5991f129616ad32dab9b6a14b62f6cfcaf4aa8d08fe508f119138394e291f83fa84b2318d8f13681f
7
+ data.tar.gz: f84b87a8b4732f097509f3736956f5da622a7c99a66d861e9898328ed7262b517658bfcc571d7b946d6f6fa7c91fb2c535ae1661c862068233831a9a18b5841e
data/AUTHENTICATION.md CHANGED
@@ -114,7 +114,7 @@ credentials are discovered.
114
114
  To configure your system for this, simply:
115
115
 
116
116
  1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
117
- 2. Authenticate using OAuth 2.0 `$ gcloud auth login`
117
+ 2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
118
118
  3. Write code as if already authenticated.
119
119
 
120
120
  **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Ruby Client for the Access Approval V1 API
2
2
 
3
- API Client library for the Access Approval V1 API
3
+ An API for controlling access to data by Google personnel.
4
4
 
5
5
  An API for controlling access to data by Google personnel.
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
 
@@ -180,7 +180,7 @@ module Google
180
180
  credentials = @config.credentials
181
181
  # Use self-signed JWT if the endpoint is unchanged from default,
182
182
  # but only if the default endpoint does not have a region prefix.
183
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
183
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
184
184
  !@config.endpoint.split(".").first.include?("-")
185
185
  credentials ||= Credentials.default scope: @config.scope,
186
186
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -262,13 +262,11 @@ module Google
262
262
  # # Call the list_approval_requests method.
263
263
  # result = client.list_approval_requests request
264
264
  #
265
- # # The returned object is of type Gapic::PagedEnumerable. You can
266
- # # iterate over all elements by calling #each, and the enumerable
267
- # # will lazily make API calls to fetch subsequent pages. Other
268
- # # methods are also available for managing paging directly.
269
- # result.each do |response|
265
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
266
+ # # over elements, and API calls will be issued to fetch pages as needed.
267
+ # result.each do |item|
270
268
  # # Each element is of type ::Google::Cloud::AccessApproval::V1::ApprovalRequest.
271
- # p response
269
+ # p item
272
270
  # end
273
271
  #
274
272
  def list_approval_requests request, options = nil
@@ -1073,9 +1071,9 @@ module Google
1073
1071
  # * (`String`) The path to a service account key file in JSON format
1074
1072
  # * (`Hash`) A service account key as a Hash
1075
1073
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1076
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1074
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1077
1075
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1078
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1076
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1079
1077
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1080
1078
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1081
1079
  # * (`nil`) indicating no credentials
@@ -1117,7 +1115,9 @@ module Google
1117
1115
  class Configuration
1118
1116
  extend ::Gapic::Config
1119
1117
 
1120
- config_attr :endpoint, "accessapproval.googleapis.com", ::String
1118
+ DEFAULT_ENDPOINT = "accessapproval.googleapis.com"
1119
+
1120
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1121
1121
  config_attr :credentials, nil do |value|
1122
1122
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1123
1123
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC