google-cloud-access_approval-v1 0.2.0 → 0.2.5
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 +40 -9
- 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 +6 -7
- 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: c9a2cfe1ad5688e885f9c88e44cba054af6d8894ddf77d5a926437360df68014
|
4
|
+
data.tar.gz: 98a6f48bd3818ed7134b0d5486580ac7429c5d02186dd0bc466bc82181a24f91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f662b5fe2e3e9b199ec90972ff1070d357e7e9fb3a4f321500986c7fc221aef0df4bc46d889fcfc2a512682ddcccc1a622b8a4c2a383edc4260cb5f27a6b9a0
|
7
|
+
data.tar.gz: 5a61f8017a0250d0c4a846341c6662a8b725f2d23b3f16e5bb4cebbfc1dc1b965b1b694f60c99fd247dc14f29cc039fda2d91b70be6d34cb7c60c44e68786905
|
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?
|
@@ -200,13 +232,12 @@ module Google
|
|
200
232
|
# @param filter [::String]
|
201
233
|
# A filter on the type of approval requests to retrieve. Must be one of the
|
202
234
|
# following values:
|
203
|
-
#
|
204
|
-
#
|
205
|
-
#
|
206
|
-
#
|
207
|
-
#
|
208
|
-
#
|
209
|
-
# </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.
|
210
241
|
# @param page_size [::Integer]
|
211
242
|
# Requested page size.
|
212
243
|
# @param page_token [::String]
|
@@ -770,7 +801,7 @@ module Google
|
|
770
801
|
|
771
802
|
config_attr :endpoint, "accessapproval.googleapis.com", ::String
|
772
803
|
config_attr :credentials, nil do |value|
|
773
|
-
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
804
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
774
805
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
775
806
|
allowed.any? { |klass| klass === value }
|
776
807
|
end
|
@@ -798,7 +829,7 @@ module Google
|
|
798
829
|
def rpcs
|
799
830
|
@rpcs ||= begin
|
800
831
|
parent_rpcs = nil
|
801
|
-
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)
|
802
833
|
Rpcs.new parent_rpcs
|
803
834
|
end
|
804
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.2.
|
4
|
+
version: 0.2.5
|
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-10 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
|
@@ -168,7 +168,6 @@ files:
|
|
168
168
|
- lib/google/cloud/access_approval/v1/version.rb
|
169
169
|
- lib/google/cloud/accessapproval/v1/accessapproval_pb.rb
|
170
170
|
- lib/google/cloud/accessapproval/v1/accessapproval_services_pb.rb
|
171
|
-
- lib/google/cloud/common_resources_pb.rb
|
172
171
|
- proto_docs/README.md
|
173
172
|
- proto_docs/google/api/field_behavior.rb
|
174
173
|
- proto_docs/google/api/resource.rb
|
@@ -195,8 +194,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
195
194
|
- !ruby/object:Gem::Version
|
196
195
|
version: '0'
|
197
196
|
requirements: []
|
198
|
-
rubygems_version: 3.
|
197
|
+
rubygems_version: 3.1.3
|
199
198
|
signing_key:
|
200
199
|
specification_version: 4
|
201
|
-
summary: API Client library for the Access Approval
|
200
|
+
summary: API Client library for the Access Approval V1 API
|
202
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
|