google-cloud-access_approval-v1 0.7.1 → 0.9.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 +4 -4
- data/AUTHENTICATION.md +1 -1
- data/README.md +3 -3
- data/lib/google/cloud/access_approval/v1/access_approval/client.rb +10 -10
- data/lib/google/cloud/access_approval/v1/access_approval/rest/client.rb +1018 -0
- data/lib/google/cloud/access_approval/v1/access_approval/rest/service_stub.rb +717 -0
- data/lib/google/cloud/access_approval/v1/access_approval/rest.rb +84 -0
- data/lib/google/cloud/access_approval/v1/access_approval.rb +7 -1
- data/lib/google/cloud/access_approval/v1/rest.rb +37 -0
- data/lib/google/cloud/access_approval/v1/version.rb +1 -1
- data/lib/google/cloud/access_approval/v1.rb +7 -2
- data/lib/google/cloud/accessapproval/v1/accessapproval_pb.rb +26 -108
- data/proto_docs/google/api/client.rb +381 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- metadata +15 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b21f1c38cdcae3bffe301c7f72ccfb4df27edd894a530c33133558f1b783c6f
|
4
|
+
data.tar.gz: 6dd8378f40967a20bf9a2267c8e238060579d856c7ee96eb64e43cb6e267cea2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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/
|
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
|
|
@@ -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 ==
|
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
|
-
# #
|
267
|
-
#
|
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
|
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://
|
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://
|
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
|
-
|
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
|