google-cloud-access_approval-v1 0.1.3 → 0.2.4
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/.yardopts +1 -1
- data/README.md +6 -2
- data/lib/google/cloud/access_approval/v1/access_approval/client.rb +55 -19
- data/lib/google/cloud/access_approval/v1/version.rb +1 -1
- data/proto_docs/README.md +1 -1
- data/proto_docs/google/cloud/accessapproval/v1/accessapproval.rb +46 -52
- metadata +36 -9
- data/lib/google/cloud/common_resources_pb.rb +0 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea3a2131f8f12b98f4b97092ae20bf8949e82fe9a69d96cfb1d4ac70849c9408
|
4
|
+
data.tar.gz: 5ada78d97efb041c367bb5427e584ae4fb5cc985d45065ffe3a74be8a7651ff1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fbb48f2e1d95c86d7688afe1c8a26507b7ad8973c310842523df949e92b0184bef45b995bf998696e50996dbe8003efbe42ed60c0bbc159e5d3bb5bd85ce3428
|
7
|
+
data.tar.gz: d6546a2e527c42d285714fcd698d07a00450295a5456bee60b87e7008b804bb3075b79dd0e3f5bf38d430d80ec6ca9c60d271b67f95d56dc6da8dc092d62a4b3
|
data/.yardopts
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
# Ruby Client for the Access Approval
|
1
|
+
# Ruby Client for the Access Approval V1 API
|
2
2
|
|
3
|
-
API Client library for the Access Approval
|
3
|
+
API Client library for the Access Approval V1 API
|
4
4
|
|
5
5
|
An API for controlling access to data by Google personnel.
|
6
6
|
|
@@ -18,6 +18,7 @@ In order to use this library, you first need to go through the following steps:
|
|
18
18
|
|
19
19
|
1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
|
20
20
|
1. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
|
21
|
+
1. [Enable the API.](https://console.cloud.google.com/apis/library/accessapproval.googleapis.com)
|
21
22
|
1. {file:AUTHENTICATION.md Set up authentication.}
|
22
23
|
|
23
24
|
## Quick Start
|
@@ -33,6 +34,9 @@ response = client.list_approval_requests request
|
|
33
34
|
View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-access_approval-v1/latest)
|
34
35
|
for class and method documentation.
|
35
36
|
|
37
|
+
See also the [Product Documentation](https://cloud.google.com/access-approval/)
|
38
|
+
for general usage information.
|
39
|
+
|
36
40
|
## Enabling Logging
|
37
41
|
|
38
42
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
@@ -95,6 +95,38 @@ module Google
|
|
95
95
|
end
|
96
96
|
default_config = Client::Configuration.new parent_config
|
97
97
|
|
98
|
+
default_config.rpcs.list_approval_requests.timeout = 600.0
|
99
|
+
default_config.rpcs.list_approval_requests.retry_policy = {
|
100
|
+
initial_delay: 0.1,
|
101
|
+
max_delay: 60.0,
|
102
|
+
multiplier: 1.3,
|
103
|
+
retry_codes: [14]
|
104
|
+
}
|
105
|
+
|
106
|
+
default_config.rpcs.get_approval_request.timeout = 600.0
|
107
|
+
default_config.rpcs.get_approval_request.retry_policy = {
|
108
|
+
initial_delay: 0.1,
|
109
|
+
max_delay: 60.0,
|
110
|
+
multiplier: 1.3,
|
111
|
+
retry_codes: [14]
|
112
|
+
}
|
113
|
+
|
114
|
+
default_config.rpcs.approve_approval_request.timeout = 600.0
|
115
|
+
|
116
|
+
default_config.rpcs.dismiss_approval_request.timeout = 600.0
|
117
|
+
|
118
|
+
default_config.rpcs.get_access_approval_settings.timeout = 600.0
|
119
|
+
default_config.rpcs.get_access_approval_settings.retry_policy = {
|
120
|
+
initial_delay: 0.1,
|
121
|
+
max_delay: 60.0,
|
122
|
+
multiplier: 1.3,
|
123
|
+
retry_codes: [14]
|
124
|
+
}
|
125
|
+
|
126
|
+
default_config.rpcs.update_access_approval_settings.timeout = 600.0
|
127
|
+
|
128
|
+
default_config.rpcs.delete_access_approval_settings.timeout = 600.0
|
129
|
+
|
98
130
|
default_config
|
99
131
|
end
|
100
132
|
yield @configure if block_given?
|
@@ -160,7 +192,8 @@ module Google
|
|
160
192
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
161
193
|
credentials = Credentials.new credentials, scope: @config.scope
|
162
194
|
end
|
163
|
-
@quota_project_id =
|
195
|
+
@quota_project_id = @config.quota_project
|
196
|
+
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
164
197
|
|
165
198
|
@access_approval_stub = ::Gapic::ServiceStub.new(
|
166
199
|
::Google::Cloud::AccessApproval::V1::AccessApproval::Stub,
|
@@ -199,13 +232,12 @@ module Google
|
|
199
232
|
# @param filter [::String]
|
200
233
|
# A filter on the type of approval requests to retrieve. Must be one of the
|
201
234
|
# following values:
|
202
|
-
#
|
203
|
-
#
|
204
|
-
#
|
205
|
-
#
|
206
|
-
#
|
207
|
-
#
|
208
|
-
# </ol>
|
235
|
+
#
|
236
|
+
# - [not set]: Requests that are pending or have active approvals.
|
237
|
+
# - ALL: All requests.
|
238
|
+
# - PENDING: Only pending requests.
|
239
|
+
# - ACTIVE: Only active (i.e. currently approved) requests.
|
240
|
+
# - DISMISSED: Only dismissed (including expired) requests.
|
209
241
|
# @param page_size [::Integer]
|
210
242
|
# Requested page size.
|
211
243
|
# @param page_token [::String]
|
@@ -760,24 +792,28 @@ module Google
|
|
760
792
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
761
793
|
# trigger a retry.
|
762
794
|
# @return [::Hash]
|
795
|
+
# @!attribute [rw] quota_project
|
796
|
+
# A separate project against which to charge quota.
|
797
|
+
# @return [::String]
|
763
798
|
#
|
764
799
|
class Configuration
|
765
800
|
extend ::Gapic::Config
|
766
801
|
|
767
|
-
config_attr :endpoint,
|
768
|
-
config_attr :credentials,
|
802
|
+
config_attr :endpoint, "accessapproval.googleapis.com", ::String
|
803
|
+
config_attr :credentials, nil do |value|
|
769
804
|
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
770
805
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
771
806
|
allowed.any? { |klass| klass === value }
|
772
807
|
end
|
773
|
-
config_attr :scope,
|
774
|
-
config_attr :lib_name,
|
775
|
-
config_attr :lib_version,
|
776
|
-
config_attr(:channel_args,
|
777
|
-
config_attr :interceptors,
|
778
|
-
config_attr :timeout,
|
779
|
-
config_attr :metadata,
|
780
|
-
config_attr :retry_policy,
|
808
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
809
|
+
config_attr :lib_name, nil, ::String, nil
|
810
|
+
config_attr :lib_version, nil, ::String, nil
|
811
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
812
|
+
config_attr :interceptors, nil, ::Array, nil
|
813
|
+
config_attr :timeout, nil, ::Numeric, nil
|
814
|
+
config_attr :metadata, nil, ::Hash, nil
|
815
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
816
|
+
config_attr :quota_project, nil, ::String, nil
|
781
817
|
|
782
818
|
# @private
|
783
819
|
def initialize parent_config = nil
|
@@ -793,7 +829,7 @@ module Google
|
|
793
829
|
def rpcs
|
794
830
|
@rpcs ||= begin
|
795
831
|
parent_rpcs = nil
|
796
|
-
parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to?
|
832
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
|
797
833
|
Rpcs.new parent_rpcs
|
798
834
|
end
|
799
835
|
end
|
data/proto_docs/README.md
CHANGED
@@ -29,16 +29,15 @@ module Google
|
|
29
29
|
# limited situations Google systems may refer refer to a region code instead
|
30
30
|
# of a country code.
|
31
31
|
# Possible Region Codes:
|
32
|
-
#
|
33
|
-
#
|
34
|
-
#
|
35
|
-
#
|
36
|
-
#
|
37
|
-
#
|
38
|
-
#
|
39
|
-
#
|
40
|
-
#
|
41
|
-
# </ol>
|
32
|
+
#
|
33
|
+
# - ASI: Asia
|
34
|
+
# - EUR: Europe
|
35
|
+
# - OCE: Oceania
|
36
|
+
# - AFR: Africa
|
37
|
+
# - NAM: North America
|
38
|
+
# - SAM: South America
|
39
|
+
# - ANT: Antarctica
|
40
|
+
# - ANY: Any location
|
42
41
|
# @!attribute [rw] principal_physical_location_country
|
43
42
|
# @return [::String]
|
44
43
|
# Physical location of the principal at the time of the access. A
|
@@ -46,16 +45,15 @@ module Google
|
|
46
45
|
# a region code. In some limited situations Google systems may refer refer to
|
47
46
|
# a region code instead of a country code.
|
48
47
|
# Possible Region Codes:
|
49
|
-
#
|
50
|
-
#
|
51
|
-
#
|
52
|
-
#
|
53
|
-
#
|
54
|
-
#
|
55
|
-
#
|
56
|
-
#
|
57
|
-
#
|
58
|
-
# </ol>
|
48
|
+
#
|
49
|
+
# - ASI: Asia
|
50
|
+
# - EUR: Europe
|
51
|
+
# - OCE: Oceania
|
52
|
+
# - AFR: Africa
|
53
|
+
# - NAM: North America
|
54
|
+
# - SAM: South America
|
55
|
+
# - ANT: Antarctica
|
56
|
+
# - ANY: Any location
|
59
57
|
class AccessLocations
|
60
58
|
include ::Google::Protobuf::MessageExts
|
61
59
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -78,14 +76,13 @@ module Google
|
|
78
76
|
|
79
77
|
# Customer made a request or raised an issue that required the principal to
|
80
78
|
# access customer data. `detail` is of the form ("#####" is the issue ID):
|
81
|
-
#
|
82
|
-
#
|
83
|
-
#
|
84
|
-
#
|
85
|
-
#
|
86
|
-
#
|
87
|
-
#
|
88
|
-
# </ol>
|
79
|
+
#
|
80
|
+
# - "Feedback Report: #####"
|
81
|
+
# - "Case Number: #####"
|
82
|
+
# - "Case ID: #####"
|
83
|
+
# - "E-PIN Reference: #####"
|
84
|
+
# - "Google-#####"
|
85
|
+
# - "T-#####"
|
89
86
|
CUSTOMER_INITIATED_SUPPORT = 1
|
90
87
|
|
91
88
|
# The principal accessed customer data in order to diagnose or resolve a
|
@@ -177,18 +174,17 @@ module Google
|
|
177
174
|
# @return [::String]
|
178
175
|
# The product for which Access Approval will be enrolled. Allowed values are
|
179
176
|
# listed below (case-sensitive):
|
180
|
-
#
|
181
|
-
#
|
182
|
-
#
|
183
|
-
#
|
184
|
-
#
|
185
|
-
#
|
186
|
-
#
|
187
|
-
#
|
188
|
-
#
|
189
|
-
#
|
190
|
-
#
|
191
|
-
# <ol>
|
177
|
+
#
|
178
|
+
# - all
|
179
|
+
# - appengine.googleapis.com
|
180
|
+
# - bigquery.googleapis.com
|
181
|
+
# - bigtable.googleapis.com
|
182
|
+
# - cloudkms.googleapis.com
|
183
|
+
# - compute.googleapis.com
|
184
|
+
# - dataflow.googleapis.com
|
185
|
+
# - iam.googleapis.com
|
186
|
+
# - pubsub.googleapis.com
|
187
|
+
# - storage.googleapis.com
|
192
188
|
# @!attribute [rw] enrollment_level
|
193
189
|
# @return [::Google::Cloud::AccessApproval::V1::EnrollmentLevel]
|
194
190
|
# The enrollment level of the service.
|
@@ -201,11 +197,10 @@ module Google
|
|
201
197
|
# @!attribute [rw] name
|
202
198
|
# @return [::String]
|
203
199
|
# The resource name of the settings. Format is one of:
|
204
|
-
#
|
205
|
-
#
|
206
|
-
#
|
207
|
-
#
|
208
|
-
# <ol>
|
200
|
+
#
|
201
|
+
# - "projects/\\{project_id}/accessApprovalSettings"
|
202
|
+
# - "folders/\\{folder_id}/accessApprovalSettings"
|
203
|
+
# - "organizations/\\{organization_id}/accessApprovalSettings"
|
209
204
|
# @!attribute [rw] notification_emails
|
210
205
|
# @return [::Array<::String>]
|
211
206
|
# A list of email addresses to which notifications relating to approval
|
@@ -246,13 +241,12 @@ module Google
|
|
246
241
|
# @return [::String]
|
247
242
|
# A filter on the type of approval requests to retrieve. Must be one of the
|
248
243
|
# following values:
|
249
|
-
#
|
250
|
-
#
|
251
|
-
#
|
252
|
-
#
|
253
|
-
#
|
254
|
-
#
|
255
|
-
# </ol>
|
244
|
+
#
|
245
|
+
# - [not set]: Requests that are pending or have active approvals.
|
246
|
+
# - ALL: All requests.
|
247
|
+
# - PENDING: Only pending requests.
|
248
|
+
# - ACTIVE: Only active (i.e. currently approved) requests.
|
249
|
+
# - DISMISSED: Only dismissed (including expired) requests.
|
256
250
|
# @!attribute [rw] page_size
|
257
251
|
# @return [::Integer]
|
258
252
|
# Requested page size.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-access_approval-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.3'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0.
|
26
|
+
version: '0.3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: google-cloud-errors
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,14 +58,42 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '5.
|
61
|
+
version: '5.14'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '5.
|
68
|
+
version: '5.14'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: minitest-focus
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '1.1'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1.1'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: minitest-rg
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '5.2'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '5.2'
|
69
97
|
- !ruby/object:Gem::Dependency
|
70
98
|
name: rake
|
71
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -140,7 +168,6 @@ files:
|
|
140
168
|
- lib/google/cloud/access_approval/v1/version.rb
|
141
169
|
- lib/google/cloud/accessapproval/v1/accessapproval_pb.rb
|
142
170
|
- lib/google/cloud/accessapproval/v1/accessapproval_services_pb.rb
|
143
|
-
- lib/google/cloud/common_resources_pb.rb
|
144
171
|
- proto_docs/README.md
|
145
172
|
- proto_docs/google/api/field_behavior.rb
|
146
173
|
- proto_docs/google/api/resource.rb
|
@@ -167,8 +194,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
167
194
|
- !ruby/object:Gem::Version
|
168
195
|
version: '0'
|
169
196
|
requirements: []
|
170
|
-
rubygems_version: 3.
|
197
|
+
rubygems_version: 3.1.3
|
171
198
|
signing_key:
|
172
199
|
specification_version: 4
|
173
|
-
summary: API Client library for the Access Approval
|
200
|
+
summary: API Client library for the Access Approval V1 API
|
174
201
|
test_files: []
|
@@ -1,15 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: google/cloud/common_resources.proto
|
3
|
-
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
|
-
require 'google/api/resource_pb'
|
7
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
|
-
add_file("google/cloud/common_resources.proto", :syntax => :proto3) do
|
9
|
-
end
|
10
|
-
end
|
11
|
-
|
12
|
-
module Google
|
13
|
-
module Cloud
|
14
|
-
end
|
15
|
-
end
|