google-cloud-access_approval-v1 0.2.0 → 0.2.5

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: 3b2b51238685a419fe71990ae781c6c17e609f2fcd92fdec94dbf732f6135ee6
4
- data.tar.gz: 1be6a33c8efdb84527144d4902a057d738df874e28e69e6ec8128a0375af72ce
3
+ metadata.gz: c9a2cfe1ad5688e885f9c88e44cba054af6d8894ddf77d5a926437360df68014
4
+ data.tar.gz: 98a6f48bd3818ed7134b0d5486580ac7429c5d02186dd0bc466bc82181a24f91
5
5
  SHA512:
6
- metadata.gz: 8a5cdd402c5c1796ae1c914f6e105e995d44726c75e7f202ce0c8c406375272a852c1041d9b7b2b98cb6e41a36a45872e6f7d60d697e8c49889f037157a29d30
7
- data.tar.gz: 0ee92205ff40359612cca6a73dacd955ddfe84c50ca4236230d6e1d8d5b709ec7007cdde50ec604fdd400186885b71f09958f353865f7c05f7a5db109cc13841
6
+ metadata.gz: 7f662b5fe2e3e9b199ec90972ff1070d357e7e9fb3a4f321500986c7fc221aef0df4bc46d889fcfc2a512682ddcccc1a622b8a4c2a383edc4260cb5f27a6b9a0
7
+ data.tar.gz: 5a61f8017a0250d0c4a846341c6662a8b725f2d23b3f16e5bb4cebbfc1dc1b965b1b694f60c99fd247dc14f29cc039fda2d91b70be6d34cb7c60c44e68786905
data/.yardopts CHANGED
@@ -1,5 +1,5 @@
1
1
  --no-private
2
- --title=Access Approval API V1 API
2
+ --title=Access Approval V1 API
3
3
  --exclude _pb\.rb$
4
4
  --markup markdown
5
5
  --markup-provider redcarpet
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
- # Ruby Client for the Access Approval API V1 API
1
+ # Ruby Client for the Access Approval V1 API
2
2
 
3
- API Client library for the Access Approval API V1 API
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
- # <ol>
204
- # <li>[not set]: Requests that are pending or have active approvals.</li>
205
- # <li>ALL: All requests.</li>
206
- # <li>PENDING: Only pending requests.</li>
207
- # <li>ACTIVE: Only active (i.e. currently approved) requests.</li>
208
- # <li>DISMISSED: Only dismissed (including expired) requests.</li>
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? :rpcs
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
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module AccessApproval
23
23
  module V1
24
- VERSION = "0.2.0"
24
+ VERSION = "0.2.5"
25
25
  end
26
26
  end
27
27
  end
@@ -1,4 +1,4 @@
1
- # Access Approval API V1 Protocol Buffer Documentation
1
+ # Access Approval V1 Protocol Buffer Documentation
2
2
 
3
3
  These files are for the YARD documentation of the generated protobuf files.
4
4
  They are not intended to be required or loaded at runtime.
@@ -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
- # <ol>
33
- # <li>ASI: Asia</li>
34
- # <li>EUR: Europe</li>
35
- # <li>OCE: Oceania</li>
36
- # <li>AFR: Africa</li>
37
- # <li>NAM: North America</li>
38
- # <li>SAM: South America</li>
39
- # <li>ANT: Antarctica</li>
40
- # <li>ANY: Any location</li>
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
- # <ol>
50
- # <li>ASI: Asia</li>
51
- # <li>EUR: Europe</li>
52
- # <li>OCE: Oceania</li>
53
- # <li>AFR: Africa</li>
54
- # <li>NAM: North America</li>
55
- # <li>SAM: South America</li>
56
- # <li>ANT: Antarctica</li>
57
- # <li>ANY: Any location</li>
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
- # <ol>
82
- # <li>"Feedback Report: #####"</li>
83
- # <li>"Case Number: #####"</li>
84
- # <li>"Case ID: #####"</li>
85
- # <li>"E-PIN Reference: #####"</li>
86
- # <li>"Google-#####"</li>
87
- # <li>"T-#####"</li>
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
- # <ol>
181
- # <li>all</li>
182
- # <li>appengine.googleapis.com</li>
183
- # <li>bigquery.googleapis.com</li>
184
- # <li>bigtable.googleapis.com</li>
185
- # <li>cloudkms.googleapis.com</li>
186
- # <li>compute.googleapis.com</li>
187
- # <li>dataflow.googleapis.com</li>
188
- # <li>iam.googleapis.com</li>
189
- # <li>pubsub.googleapis.com</li>
190
- # <li>storage.googleapis.com</li>
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
- # <ol>
205
- # <li>"projects/\\{project_id}/accessApprovalSettings"</li>
206
- # <li>"folders/\\{folder_id}/accessApprovalSettings"</li>
207
- # <li>"organizations/\\{organization_id}/accessApprovalSettings"</li>
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
- # <ol>
250
- # <li>[not set]: Requests that are pending or have active approvals.</li>
251
- # <li>ALL: All requests.</li>
252
- # <li>PENDING: Only pending requests.</li>
253
- # <li>ACTIVE: Only active (i.e. currently approved) requests.</li>
254
- # <li>DISMISSED: Only dismissed (including expired) requests.</li>
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.0
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-05-20 00:00:00.000000000 Z
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.2'
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.2'
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.0.6
197
+ rubygems_version: 3.1.3
199
198
  signing_key:
200
199
  specification_version: 4
201
- summary: API Client library for the Access Approval API V1 API
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