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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a3a12886222c8cb9cd6839244a247bcf5e9816b5ee1d55b4bb40f3e8c14f50fc
4
- data.tar.gz: acd4a9d603fa57199de1f83268bfd8fc74aaafb037885d7e60992076c32a82bb
3
+ metadata.gz: ea3a2131f8f12b98f4b97092ae20bf8949e82fe9a69d96cfb1d4ac70849c9408
4
+ data.tar.gz: 5ada78d97efb041c367bb5427e584ae4fb5cc985d45065ffe3a74be8a7651ff1
5
5
  SHA512:
6
- metadata.gz: 93a96f62b278c75d0f033acaa5f8ad69d00813d811ad0e617b38018f73711bfdadb91c6b5afe23cc14d0d2433756a3eeeec5fe6ef73190e52777309e2cdccc76
7
- data.tar.gz: 968f32b144529ede9584f69472d443e370e6517adbb9bf5948bf76c3eece38076b5e47b67e4f018d934274a3fcca0a7ec2141c7f6480d2aee503c258dea2c9db
6
+ metadata.gz: fbb48f2e1d95c86d7688afe1c8a26507b7ad8973c310842523df949e92b0184bef45b995bf998696e50996dbe8003efbe42ed60c0bbc159e5d3bb5bd85ce3428
7
+ data.tar.gz: d6546a2e527c42d285714fcd698d07a00450295a5456bee60b87e7008b804bb3075b79dd0e3f5bf38d430d80ec6ca9c60d271b67f95d56dc6da8dc092d62a4b3
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?
@@ -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 = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
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
- # <ol>
203
- # <li>[not set]: Requests that are pending or have active approvals.</li>
204
- # <li>ALL: All requests.</li>
205
- # <li>PENDING: Only pending requests.</li>
206
- # <li>ACTIVE: Only active (i.e. currently approved) requests.</li>
207
- # <li>DISMISSED: Only dismissed (including expired) requests.</li>
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, "accessapproval.googleapis.com", String
768
- config_attr :credentials, nil do |value|
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, nil, ::String, ::Array, nil
774
- config_attr :lib_name, nil, ::String, nil
775
- config_attr :lib_version, nil, ::String, nil
776
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
777
- config_attr :interceptors, nil, ::Array, nil
778
- config_attr :timeout, nil, ::Numeric, nil
779
- config_attr :metadata, nil, ::Hash, nil
780
- config_attr :retry_policy, nil, ::Hash, Proc, nil
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? :rpcs
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
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module AccessApproval
23
23
  module V1
24
- VERSION = "0.1.3"
24
+ VERSION = "0.2.4"
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.1.3
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-05-05 00:00:00.000000000 Z
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.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
@@ -58,14 +58,42 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '5.10'
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.10'
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.0.6
197
+ rubygems_version: 3.1.3
171
198
  signing_key:
172
199
  specification_version: 4
173
- summary: API Client library for the Access Approval API V1 API
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