google-cloud-security_center-v1p1beta1 0.1.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +6 -6
  3. data/README.md +1 -1
  4. data/lib/google/cloud/security_center/v1p1beta1.rb +1 -1
  5. data/lib/google/cloud/security_center/v1p1beta1/security_center.rb +1 -1
  6. data/lib/google/cloud/security_center/v1p1beta1/security_center/client.rb +554 -529
  7. data/lib/google/cloud/security_center/v1p1beta1/security_center/credentials.rb +1 -1
  8. data/lib/google/cloud/security_center/v1p1beta1/security_center/operations.rb +109 -103
  9. data/lib/google/cloud/security_center/v1p1beta1/security_center/paths.rb +16 -16
  10. data/lib/google/cloud/security_center/v1p1beta1/version.rb +1 -1
  11. data/lib/google/cloud/securitycenter/v1p1beta1/notification_message_pb.rb +2 -0
  12. data/lib/google/cloud/securitycenter/v1p1beta1/resource_pb.rb +27 -0
  13. data/lib/google/cloud/securitycenter/v1p1beta1/securitycenter_service_pb.rb +0 -4
  14. data/lib/google/cloud/securitycenter/v1p1beta1/securitycenter_service_services_pb.rb +1 -3
  15. data/proto_docs/google/api/resource.rb +12 -12
  16. data/proto_docs/google/cloud/securitycenter/v1p1beta1/asset.rb +51 -48
  17. data/proto_docs/google/cloud/securitycenter/v1p1beta1/finding.rb +29 -29
  18. data/proto_docs/google/cloud/securitycenter/v1p1beta1/notification_config.rb +17 -16
  19. data/proto_docs/google/cloud/securitycenter/v1p1beta1/notification_message.rb +8 -5
  20. data/proto_docs/google/cloud/securitycenter/v1p1beta1/organization_settings.rb +11 -11
  21. data/proto_docs/google/cloud/securitycenter/v1p1beta1/resource.rb +48 -0
  22. data/proto_docs/google/cloud/securitycenter/v1p1beta1/run_asset_discovery_response.rb +4 -4
  23. data/proto_docs/google/cloud/securitycenter/v1p1beta1/security_marks.rb +11 -11
  24. data/proto_docs/google/cloud/securitycenter/v1p1beta1/securitycenter_service.rb +220 -204
  25. data/proto_docs/google/cloud/securitycenter/v1p1beta1/source.rb +7 -7
  26. data/proto_docs/google/iam/v1/iam_policy.rb +15 -15
  27. data/proto_docs/google/iam/v1/options.rb +3 -3
  28. data/proto_docs/google/iam/v1/policy.rb +26 -26
  29. data/proto_docs/google/longrunning/operations.rb +30 -30
  30. data/proto_docs/google/protobuf/any.rb +4 -4
  31. data/proto_docs/google/protobuf/duration.rb +4 -4
  32. data/proto_docs/google/protobuf/empty.rb +2 -2
  33. data/proto_docs/google/protobuf/field_mask.rb +3 -3
  34. data/proto_docs/google/protobuf/struct.rb +18 -18
  35. data/proto_docs/google/protobuf/timestamp.rb +4 -4
  36. data/proto_docs/google/rpc/status.rb +6 -6
  37. data/proto_docs/google/type/expr.rb +6 -6
  38. metadata +35 -6
  39. 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: c2041d8d626adf734ac61dbcc9e2001b6607cfa0541dadc394c84005a7cc8710
4
- data.tar.gz: 69fb42cbd3b432d36340e8f08b917a7c5987021848a335d1fac2a610933e1a43
3
+ metadata.gz: 289087e19f0be9249971aa7fe5d2bf215436da5b07043084d9c00a9568d03102
4
+ data.tar.gz: faf1035595797c8de5706797d04e2b7f18e4d619843ef73a91666dc5dc659518
5
5
  SHA512:
6
- metadata.gz: edabc333554658baad787778fe16663463dc4ace45585268003d03c808df3c2cd9c98336384060f14bae8c1a3239382dee8e31ec2d1972d399cb7b1650409a44
7
- data.tar.gz: 31bbc03b62aadaa65bb9517d0ba15da723ed24e91f43325ff0d92e85ea8bd444a461277db11bec30247fe97208e942df67a30573e0039813696eb03a8979db2d
6
+ metadata.gz: 26f603a8056d889f742bd327e647075d91fccd4b0a98f84499c7517b280c24e893504a61252178c1ef24e5c7b51a79e4557da8112bec508ec063d1804612bc8b
7
+ data.tar.gz: 8f75e7c0176ecb18c84e81c8df38dd106f59d26f727f420840a4ee398f055cf7b7bbadf44f8810a6831d899d49ca97030946405d7feff4f7381817561ed74254
@@ -27,7 +27,7 @@ export SECURITY_CENTER_CREDENTIALS=path/to/keyfile.json
27
27
  ```ruby
28
28
  require "google/cloud/security_center/v1p1beta1"
29
29
 
30
- client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new
30
+ client = ::Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new
31
31
  ```
32
32
 
33
33
  ## Credential Lookup
@@ -64,7 +64,7 @@ containers where writing files is difficult or not encouraged.
64
64
 
65
65
  The environment variables that google-cloud-security_center-v1p1beta1
66
66
  checks for credentials are configured on the service Credentials class (such as
67
- {Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Credentials}):
67
+ {::Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Credentials}):
68
68
 
69
69
  1. `SECURITY_CENTER_CREDENTIALS` - Path to JSON file, or JSON contents
70
70
  2. `SECURITY_CENTER_KEYFILE` - Path to JSON file, or JSON contents
@@ -77,7 +77,7 @@ require "google/cloud/security_center/v1p1beta1"
77
77
 
78
78
  ENV["SECURITY_CENTER_CREDENTIALS"] = "path/to/keyfile.json"
79
79
 
80
- client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new
80
+ client = ::Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new
81
81
  ```
82
82
 
83
83
  ### Configuration
@@ -88,7 +88,7 @@ environment variables. Either on an individual client initialization:
88
88
  ```ruby
89
89
  require "google/cloud/security_center/v1p1beta1"
90
90
 
91
- client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new do |config|
91
+ client = ::Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new do |config|
92
92
  config.credentials = "path/to/keyfile.json"
93
93
  end
94
94
  ```
@@ -98,11 +98,11 @@ Or configured globally for all clients:
98
98
  ```ruby
99
99
  require "google/cloud/security_center/v1p1beta1"
100
100
 
101
- Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.configure do |config|
101
+ ::Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.configure do |config|
102
102
  config.credentials = "path/to/keyfile.json"
103
103
  end
104
104
 
105
- client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new
105
+ client = ::Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new
106
106
  ```
107
107
 
108
108
  ### Cloud SDK
data/README.md CHANGED
@@ -25,7 +25,7 @@ In order to use this library, you first need to go through the following steps:
25
25
  ```ruby
26
26
  require "google/cloud/security_center/v1p1beta1"
27
27
 
28
- client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new
28
+ client = ::Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new
29
29
  request = my_create_request
30
30
  response = client.create_source request
31
31
  ```
@@ -26,7 +26,7 @@ module Google
26
26
  # To load this package, including all its services, and instantiate a client:
27
27
  #
28
28
  # require "google/cloud/security_center/v1p1beta1"
29
- # client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new
29
+ # client = ::Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new
30
30
  #
31
31
  module V1p1beta1
32
32
  end
@@ -37,7 +37,7 @@ module Google
37
37
  # To load this service and instantiate a client:
38
38
  #
39
39
  # require "google/cloud/security_center/v1p1beta1/security_center"
40
- # client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new
40
+ # client = ::Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new
41
41
  #
42
42
  module SecurityCenter
43
43
  end
@@ -38,15 +38,15 @@ module Google
38
38
  ##
39
39
  # Configure the SecurityCenter Client class.
40
40
  #
41
- # See {Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client::Configuration}
41
+ # See {::Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client::Configuration}
42
42
  # for a description of the configuration fields.
43
43
  #
44
44
  # ## Example
45
45
  #
46
46
  # To modify the configuration for all SecurityCenter clients:
47
47
  #
48
- # Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.configure do |config|
49
- # config.timeout = 10_000
48
+ # ::Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.configure do |config|
49
+ # config.timeout = 10.0
50
50
  # end
51
51
  #
52
52
  # @yield [config] Configure the Client client.
@@ -65,15 +65,15 @@ module Google
65
65
  end
66
66
  default_config = Client::Configuration.new parent_config
67
67
 
68
- default_config.rpcs.create_source.timeout = 60.0
68
+ default_config.rpcs.create_source.timeout = 600.0
69
69
 
70
- default_config.rpcs.create_finding.timeout = 60.0
70
+ default_config.rpcs.create_finding.timeout = 600.0
71
71
 
72
- default_config.rpcs.create_notification_config.timeout = 60.0
72
+ default_config.rpcs.create_notification_config.timeout = 600.0
73
73
 
74
- default_config.rpcs.delete_notification_config.timeout = 60.0
74
+ default_config.rpcs.delete_notification_config.timeout = 600.0
75
75
 
76
- default_config.rpcs.get_iam_policy.timeout = 60.0
76
+ default_config.rpcs.get_iam_policy.timeout = 600.0
77
77
  default_config.rpcs.get_iam_policy.retry_policy = {
78
78
  initial_delay: 0.1,
79
79
  max_delay: 60.0,
@@ -81,7 +81,7 @@ module Google
81
81
  retry_codes: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
82
82
  }
83
83
 
84
- default_config.rpcs.get_notification_config.timeout = 60.0
84
+ default_config.rpcs.get_notification_config.timeout = 600.0
85
85
  default_config.rpcs.get_notification_config.retry_policy = {
86
86
  initial_delay: 0.1,
87
87
  max_delay: 60.0,
@@ -89,7 +89,7 @@ module Google
89
89
  retry_codes: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
90
90
  }
91
91
 
92
- default_config.rpcs.get_organization_settings.timeout = 60.0
92
+ default_config.rpcs.get_organization_settings.timeout = 600.0
93
93
  default_config.rpcs.get_organization_settings.retry_policy = {
94
94
  initial_delay: 0.1,
95
95
  max_delay: 60.0,
@@ -97,7 +97,7 @@ module Google
97
97
  retry_codes: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
98
98
  }
99
99
 
100
- default_config.rpcs.get_source.timeout = 60.0
100
+ default_config.rpcs.get_source.timeout = 600.0
101
101
  default_config.rpcs.get_source.retry_policy = {
102
102
  initial_delay: 0.1,
103
103
  max_delay: 60.0,
@@ -105,7 +105,7 @@ module Google
105
105
  retry_codes: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
106
106
  }
107
107
 
108
- default_config.rpcs.group_assets.timeout = 60.0
108
+ default_config.rpcs.group_assets.timeout = 600.0
109
109
  default_config.rpcs.group_assets.retry_policy = {
110
110
  initial_delay: 0.1,
111
111
  max_delay: 60.0,
@@ -113,7 +113,7 @@ module Google
113
113
  retry_codes: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
114
114
  }
115
115
 
116
- default_config.rpcs.group_findings.timeout = 60.0
116
+ default_config.rpcs.group_findings.timeout = 600.0
117
117
  default_config.rpcs.group_findings.retry_policy = {
118
118
  initial_delay: 0.1,
119
119
  max_delay: 60.0,
@@ -121,7 +121,7 @@ module Google
121
121
  retry_codes: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
122
122
  }
123
123
 
124
- default_config.rpcs.list_assets.timeout = 60.0
124
+ default_config.rpcs.list_assets.timeout = 600.0
125
125
  default_config.rpcs.list_assets.retry_policy = {
126
126
  initial_delay: 0.1,
127
127
  max_delay: 60.0,
@@ -129,7 +129,7 @@ module Google
129
129
  retry_codes: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
130
130
  }
131
131
 
132
- default_config.rpcs.list_findings.timeout = 60.0
132
+ default_config.rpcs.list_findings.timeout = 600.0
133
133
  default_config.rpcs.list_findings.retry_policy = {
134
134
  initial_delay: 0.1,
135
135
  max_delay: 60.0,
@@ -137,7 +137,7 @@ module Google
137
137
  retry_codes: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
138
138
  }
139
139
 
140
- default_config.rpcs.list_notification_configs.timeout = 60.0
140
+ default_config.rpcs.list_notification_configs.timeout = 600.0
141
141
  default_config.rpcs.list_notification_configs.retry_policy = {
142
142
  initial_delay: 0.1,
143
143
  max_delay: 60.0,
@@ -145,7 +145,7 @@ module Google
145
145
  retry_codes: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
146
146
  }
147
147
 
148
- default_config.rpcs.list_sources.timeout = 60.0
148
+ default_config.rpcs.list_sources.timeout = 600.0
149
149
  default_config.rpcs.list_sources.retry_policy = {
150
150
  initial_delay: 0.1,
151
151
  max_delay: 60.0,
@@ -153,13 +153,13 @@ module Google
153
153
  retry_codes: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
154
154
  }
155
155
 
156
- default_config.rpcs.run_asset_discovery.timeout = 60.0
156
+ default_config.rpcs.run_asset_discovery.timeout = 600.0
157
157
 
158
- default_config.rpcs.set_finding_state.timeout = 60.0
158
+ default_config.rpcs.set_finding_state.timeout = 600.0
159
159
 
160
- default_config.rpcs.set_iam_policy.timeout = 60.0
160
+ default_config.rpcs.set_iam_policy.timeout = 600.0
161
161
 
162
- default_config.rpcs.test_iam_permissions.timeout = 60.0
162
+ default_config.rpcs.test_iam_permissions.timeout = 600.0
163
163
  default_config.rpcs.test_iam_permissions.retry_policy = {
164
164
  initial_delay: 0.1,
165
165
  max_delay: 60.0,
@@ -167,15 +167,15 @@ module Google
167
167
  retry_codes: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
168
168
  }
169
169
 
170
- default_config.rpcs.update_finding.timeout = 60.0
170
+ default_config.rpcs.update_finding.timeout = 600.0
171
171
 
172
- default_config.rpcs.update_notification_config.timeout = 60.0
172
+ default_config.rpcs.update_notification_config.timeout = 600.0
173
173
 
174
- default_config.rpcs.update_organization_settings.timeout = 60.0
174
+ default_config.rpcs.update_organization_settings.timeout = 600.0
175
175
 
176
- default_config.rpcs.update_source.timeout = 60.0
176
+ default_config.rpcs.update_source.timeout = 600.0
177
177
 
178
- default_config.rpcs.update_security_marks.timeout = 60.0
178
+ default_config.rpcs.update_security_marks.timeout = 600.0
179
179
 
180
180
  default_config
181
181
  end
@@ -190,7 +190,7 @@ module Google
190
190
  # but structural changes (adding new fields, etc.) are not allowed. Structural changes
191
191
  # should be made on {Client.configure}.
192
192
  #
193
- # See {Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client::Configuration}
193
+ # See {::Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client::Configuration}
194
194
  # for a description of the configuration fields.
195
195
  #
196
196
  # @yield [config] Configure the Client client.
@@ -211,13 +211,13 @@ module Google
211
211
  # To create a new SecurityCenter client with the default
212
212
  # configuration:
213
213
  #
214
- # client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new
214
+ # client = ::Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new
215
215
  #
216
216
  # To create a new SecurityCenter client with a custom
217
217
  # configuration:
218
218
  #
219
- # client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new do |config|
220
- # config.timeout = 10_000
219
+ # client = ::Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new do |config|
220
+ # config.timeout = 10.0
221
221
  # end
222
222
  #
223
223
  # @yield [config] Configure the SecurityCenter client.
@@ -242,15 +242,16 @@ module Google
242
242
  if credentials.is_a?(String) || credentials.is_a?(Hash)
243
243
  credentials = Credentials.new credentials, scope: @config.scope
244
244
  end
245
- @quota_project_id = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
245
+ @quota_project_id = @config.quota_project
246
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
246
247
 
247
248
  @operations_client = Operations.new do |config|
248
249
  config.credentials = credentials
249
250
  config.endpoint = @config.endpoint
250
251
  end
251
252
 
252
- @security_center_stub = Gapic::ServiceStub.new(
253
- Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Stub,
253
+ @security_center_stub = ::Gapic::ServiceStub.new(
254
+ ::Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Stub,
254
255
  credentials: credentials,
255
256
  endpoint: @config.endpoint,
256
257
  channel_args: @config.channel_args,
@@ -261,7 +262,7 @@ module Google
261
262
  ##
262
263
  # Get the associated client for long-running operations.
263
264
  #
264
- # @return [Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Operations]
265
+ # @return [::Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Operations]
265
266
  #
266
267
  attr_reader :operations_client
267
268
 
@@ -272,12 +273,12 @@ module Google
272
273
  #
273
274
  # @overload create_source(request, options = nil)
274
275
  # Pass arguments to `create_source` via a request object, either of type
275
- # {Google::Cloud::SecurityCenter::V1p1beta1::CreateSourceRequest} or an equivalent Hash.
276
+ # {::Google::Cloud::SecurityCenter::V1p1beta1::CreateSourceRequest} or an equivalent Hash.
276
277
  #
277
- # @param request [Google::Cloud::SecurityCenter::V1p1beta1::CreateSourceRequest, Hash]
278
+ # @param request [::Google::Cloud::SecurityCenter::V1p1beta1::CreateSourceRequest, ::Hash]
278
279
  # A request object representing the call parameters. Required. To specify no
279
280
  # parameters, or to keep all the default parameter values, pass an empty Hash.
280
- # @param options [Gapic::CallOptions, Hash]
281
+ # @param options [::Gapic::CallOptions, ::Hash]
281
282
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
282
283
  #
283
284
  # @overload create_source(parent: nil, source: nil)
@@ -285,34 +286,34 @@ module Google
285
286
  # least one keyword argument is required. To specify no parameters, or to keep all
286
287
  # the default parameter values, pass an empty Hash as a request object (see above).
287
288
  #
288
- # @param parent [String]
289
+ # @param parent [::String]
289
290
  # Required. Resource name of the new source's parent. Its format should be
290
291
  # "organizations/[organization_id]".
291
- # @param source [Google::Cloud::SecurityCenter::V1p1beta1::Source, Hash]
292
+ # @param source [::Google::Cloud::SecurityCenter::V1p1beta1::Source, ::Hash]
292
293
  # Required. The Source being created, only the display_name and description
293
294
  # will be used. All other fields will be ignored.
294
295
  #
295
296
  # @yield [response, operation] Access the result along with the RPC operation
296
- # @yieldparam response [Google::Cloud::SecurityCenter::V1p1beta1::Source]
297
- # @yieldparam operation [GRPC::ActiveCall::Operation]
297
+ # @yieldparam response [::Google::Cloud::SecurityCenter::V1p1beta1::Source]
298
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
298
299
  #
299
- # @return [Google::Cloud::SecurityCenter::V1p1beta1::Source]
300
+ # @return [::Google::Cloud::SecurityCenter::V1p1beta1::Source]
300
301
  #
301
- # @raise [Google::Cloud::Error] if the RPC is aborted.
302
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
302
303
  #
303
304
  def create_source request, options = nil
304
- raise ArgumentError, "request must be provided" if request.nil?
305
+ raise ::ArgumentError, "request must be provided" if request.nil?
305
306
 
306
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1p1beta1::CreateSourceRequest
307
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1p1beta1::CreateSourceRequest
307
308
 
308
309
  # Converts hash and nil to an options object
309
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
310
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
310
311
 
311
312
  # Customize the options with defaults
312
313
  metadata = @config.rpcs.create_source.metadata.to_h
313
314
 
314
315
  # Set x-goog-api-client and x-goog-user-project headers
315
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
316
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
316
317
  lib_name: @config.lib_name, lib_version: @config.lib_version,
317
318
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
318
319
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -333,8 +334,8 @@ module Google
333
334
  yield response, operation if block_given?
334
335
  return response
335
336
  end
336
- rescue GRPC::BadStatus => e
337
- raise Google::Cloud::Error.from_error(e)
337
+ rescue ::GRPC::BadStatus => e
338
+ raise ::Google::Cloud::Error.from_error(e)
338
339
  end
339
340
 
340
341
  ##
@@ -343,12 +344,12 @@ module Google
343
344
  #
344
345
  # @overload create_finding(request, options = nil)
345
346
  # Pass arguments to `create_finding` via a request object, either of type
346
- # {Google::Cloud::SecurityCenter::V1p1beta1::CreateFindingRequest} or an equivalent Hash.
347
+ # {::Google::Cloud::SecurityCenter::V1p1beta1::CreateFindingRequest} or an equivalent Hash.
347
348
  #
348
- # @param request [Google::Cloud::SecurityCenter::V1p1beta1::CreateFindingRequest, Hash]
349
+ # @param request [::Google::Cloud::SecurityCenter::V1p1beta1::CreateFindingRequest, ::Hash]
349
350
  # A request object representing the call parameters. Required. To specify no
350
351
  # parameters, or to keep all the default parameter values, pass an empty Hash.
351
- # @param options [Gapic::CallOptions, Hash]
352
+ # @param options [::Gapic::CallOptions, ::Hash]
352
353
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
353
354
  #
354
355
  # @overload create_finding(parent: nil, finding_id: nil, finding: nil)
@@ -356,38 +357,38 @@ module Google
356
357
  # least one keyword argument is required. To specify no parameters, or to keep all
357
358
  # the default parameter values, pass an empty Hash as a request object (see above).
358
359
  #
359
- # @param parent [String]
360
+ # @param parent [::String]
360
361
  # Required. Resource name of the new finding's parent. Its format should be
361
362
  # "organizations/[organization_id]/sources/[source_id]".
362
- # @param finding_id [String]
363
+ # @param finding_id [::String]
363
364
  # Required. Unique identifier provided by the client within the parent scope.
364
365
  # It must be alphanumeric and less than or equal to 32 characters and
365
366
  # greater than 0 characters in length.
366
- # @param finding [Google::Cloud::SecurityCenter::V1p1beta1::Finding, Hash]
367
+ # @param finding [::Google::Cloud::SecurityCenter::V1p1beta1::Finding, ::Hash]
367
368
  # Required. The Finding being created. The name and security_marks will be
368
369
  # ignored as they are both output only fields on this resource.
369
370
  #
370
371
  # @yield [response, operation] Access the result along with the RPC operation
371
- # @yieldparam response [Google::Cloud::SecurityCenter::V1p1beta1::Finding]
372
- # @yieldparam operation [GRPC::ActiveCall::Operation]
372
+ # @yieldparam response [::Google::Cloud::SecurityCenter::V1p1beta1::Finding]
373
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
373
374
  #
374
- # @return [Google::Cloud::SecurityCenter::V1p1beta1::Finding]
375
+ # @return [::Google::Cloud::SecurityCenter::V1p1beta1::Finding]
375
376
  #
376
- # @raise [Google::Cloud::Error] if the RPC is aborted.
377
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
377
378
  #
378
379
  def create_finding request, options = nil
379
- raise ArgumentError, "request must be provided" if request.nil?
380
+ raise ::ArgumentError, "request must be provided" if request.nil?
380
381
 
381
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1p1beta1::CreateFindingRequest
382
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1p1beta1::CreateFindingRequest
382
383
 
383
384
  # Converts hash and nil to an options object
384
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
385
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
385
386
 
386
387
  # Customize the options with defaults
387
388
  metadata = @config.rpcs.create_finding.metadata.to_h
388
389
 
389
390
  # Set x-goog-api-client and x-goog-user-project headers
390
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
391
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
391
392
  lib_name: @config.lib_name, lib_version: @config.lib_version,
392
393
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
393
394
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -408,8 +409,8 @@ module Google
408
409
  yield response, operation if block_given?
409
410
  return response
410
411
  end
411
- rescue GRPC::BadStatus => e
412
- raise Google::Cloud::Error.from_error(e)
412
+ rescue ::GRPC::BadStatus => e
413
+ raise ::Google::Cloud::Error.from_error(e)
413
414
  end
414
415
 
415
416
  ##
@@ -417,12 +418,12 @@ module Google
417
418
  #
418
419
  # @overload create_notification_config(request, options = nil)
419
420
  # Pass arguments to `create_notification_config` via a request object, either of type
420
- # {Google::Cloud::SecurityCenter::V1p1beta1::CreateNotificationConfigRequest} or an equivalent Hash.
421
+ # {::Google::Cloud::SecurityCenter::V1p1beta1::CreateNotificationConfigRequest} or an equivalent Hash.
421
422
  #
422
- # @param request [Google::Cloud::SecurityCenter::V1p1beta1::CreateNotificationConfigRequest, Hash]
423
+ # @param request [::Google::Cloud::SecurityCenter::V1p1beta1::CreateNotificationConfigRequest, ::Hash]
423
424
  # A request object representing the call parameters. Required. To specify no
424
425
  # parameters, or to keep all the default parameter values, pass an empty Hash.
425
- # @param options [Gapic::CallOptions, Hash]
426
+ # @param options [::Gapic::CallOptions, ::Hash]
426
427
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
427
428
  #
428
429
  # @overload create_notification_config(parent: nil, config_id: nil, notification_config: nil)
@@ -430,40 +431,40 @@ module Google
430
431
  # least one keyword argument is required. To specify no parameters, or to keep all
431
432
  # the default parameter values, pass an empty Hash as a request object (see above).
432
433
  #
433
- # @param parent [String]
434
+ # @param parent [::String]
434
435
  # Required. Resource name of the new notification config's parent. Its format
435
436
  # is "organizations/[organization_id]".
436
- # @param config_id [String]
437
+ # @param config_id [::String]
437
438
  # Required.
438
439
  # Unique identifier provided by the client within the parent scope.
439
440
  # It must be between 1 and 128 characters, and contains alphanumeric
440
441
  # characters, underscores or hyphens only.
441
- # @param notification_config [Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig, Hash]
442
+ # @param notification_config [::Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig, ::Hash]
442
443
  # Required. The notification config being created. The name and the service
443
444
  # account will be ignored as they are both output only fields on this
444
445
  # resource.
445
446
  #
446
447
  # @yield [response, operation] Access the result along with the RPC operation
447
- # @yieldparam response [Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig]
448
- # @yieldparam operation [GRPC::ActiveCall::Operation]
448
+ # @yieldparam response [::Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig]
449
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
449
450
  #
450
- # @return [Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig]
451
+ # @return [::Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig]
451
452
  #
452
- # @raise [Google::Cloud::Error] if the RPC is aborted.
453
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
453
454
  #
454
455
  def create_notification_config request, options = nil
455
- raise ArgumentError, "request must be provided" if request.nil?
456
+ raise ::ArgumentError, "request must be provided" if request.nil?
456
457
 
457
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1p1beta1::CreateNotificationConfigRequest
458
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1p1beta1::CreateNotificationConfigRequest
458
459
 
459
460
  # Converts hash and nil to an options object
460
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
461
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
461
462
 
462
463
  # Customize the options with defaults
463
464
  metadata = @config.rpcs.create_notification_config.metadata.to_h
464
465
 
465
466
  # Set x-goog-api-client and x-goog-user-project headers
466
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
467
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
467
468
  lib_name: @config.lib_name, lib_version: @config.lib_version,
468
469
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
469
470
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -484,8 +485,8 @@ module Google
484
485
  yield response, operation if block_given?
485
486
  return response
486
487
  end
487
- rescue GRPC::BadStatus => e
488
- raise Google::Cloud::Error.from_error(e)
488
+ rescue ::GRPC::BadStatus => e
489
+ raise ::Google::Cloud::Error.from_error(e)
489
490
  end
490
491
 
491
492
  ##
@@ -493,12 +494,12 @@ module Google
493
494
  #
494
495
  # @overload delete_notification_config(request, options = nil)
495
496
  # Pass arguments to `delete_notification_config` via a request object, either of type
496
- # {Google::Cloud::SecurityCenter::V1p1beta1::DeleteNotificationConfigRequest} or an equivalent Hash.
497
+ # {::Google::Cloud::SecurityCenter::V1p1beta1::DeleteNotificationConfigRequest} or an equivalent Hash.
497
498
  #
498
- # @param request [Google::Cloud::SecurityCenter::V1p1beta1::DeleteNotificationConfigRequest, Hash]
499
+ # @param request [::Google::Cloud::SecurityCenter::V1p1beta1::DeleteNotificationConfigRequest, ::Hash]
499
500
  # A request object representing the call parameters. Required. To specify no
500
501
  # parameters, or to keep all the default parameter values, pass an empty Hash.
501
- # @param options [Gapic::CallOptions, Hash]
502
+ # @param options [::Gapic::CallOptions, ::Hash]
502
503
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
503
504
  #
504
505
  # @overload delete_notification_config(name: nil)
@@ -506,31 +507,31 @@ module Google
506
507
  # least one keyword argument is required. To specify no parameters, or to keep all
507
508
  # the default parameter values, pass an empty Hash as a request object (see above).
508
509
  #
509
- # @param name [String]
510
+ # @param name [::String]
510
511
  # Required. Name of the notification config to delete. Its format is
511
512
  # "organizations/[organization_id]/notificationConfigs/[config_id]".
512
513
  #
513
514
  # @yield [response, operation] Access the result along with the RPC operation
514
- # @yieldparam response [Google::Protobuf::Empty]
515
- # @yieldparam operation [GRPC::ActiveCall::Operation]
515
+ # @yieldparam response [::Google::Protobuf::Empty]
516
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
516
517
  #
517
- # @return [Google::Protobuf::Empty]
518
+ # @return [::Google::Protobuf::Empty]
518
519
  #
519
- # @raise [Google::Cloud::Error] if the RPC is aborted.
520
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
520
521
  #
521
522
  def delete_notification_config request, options = nil
522
- raise ArgumentError, "request must be provided" if request.nil?
523
+ raise ::ArgumentError, "request must be provided" if request.nil?
523
524
 
524
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1p1beta1::DeleteNotificationConfigRequest
525
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1p1beta1::DeleteNotificationConfigRequest
525
526
 
526
527
  # Converts hash and nil to an options object
527
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
528
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
528
529
 
529
530
  # Customize the options with defaults
530
531
  metadata = @config.rpcs.delete_notification_config.metadata.to_h
531
532
 
532
533
  # Set x-goog-api-client and x-goog-user-project headers
533
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
534
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
534
535
  lib_name: @config.lib_name, lib_version: @config.lib_version,
535
536
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
536
537
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -551,8 +552,8 @@ module Google
551
552
  yield response, operation if block_given?
552
553
  return response
553
554
  end
554
- rescue GRPC::BadStatus => e
555
- raise Google::Cloud::Error.from_error(e)
555
+ rescue ::GRPC::BadStatus => e
556
+ raise ::Google::Cloud::Error.from_error(e)
556
557
  end
557
558
 
558
559
  ##
@@ -560,12 +561,12 @@ module Google
560
561
  #
561
562
  # @overload get_iam_policy(request, options = nil)
562
563
  # Pass arguments to `get_iam_policy` via a request object, either of type
563
- # {Google::Iam::V1::GetIamPolicyRequest} or an equivalent Hash.
564
+ # {::Google::Iam::V1::GetIamPolicyRequest} or an equivalent Hash.
564
565
  #
565
- # @param request [Google::Iam::V1::GetIamPolicyRequest, Hash]
566
+ # @param request [::Google::Iam::V1::GetIamPolicyRequest, ::Hash]
566
567
  # A request object representing the call parameters. Required. To specify no
567
568
  # parameters, or to keep all the default parameter values, pass an empty Hash.
568
- # @param options [Gapic::CallOptions, Hash]
569
+ # @param options [::Gapic::CallOptions, ::Hash]
569
570
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
570
571
  #
571
572
  # @overload get_iam_policy(resource: nil, options: nil)
@@ -573,34 +574,34 @@ module Google
573
574
  # least one keyword argument is required. To specify no parameters, or to keep all
574
575
  # the default parameter values, pass an empty Hash as a request object (see above).
575
576
  #
576
- # @param resource [String]
577
+ # @param resource [::String]
577
578
  # REQUIRED: The resource for which the policy is being requested.
578
579
  # See the operation documentation for the appropriate value for this field.
579
- # @param options [Google::Iam::V1::GetPolicyOptions, Hash]
580
+ # @param options [::Google::Iam::V1::GetPolicyOptions, ::Hash]
580
581
  # OPTIONAL: A `GetPolicyOptions` object for specifying options to
581
582
  # `GetIamPolicy`. This field is only used by Cloud IAM.
582
583
  #
583
584
  # @yield [response, operation] Access the result along with the RPC operation
584
- # @yieldparam response [Google::Iam::V1::Policy]
585
- # @yieldparam operation [GRPC::ActiveCall::Operation]
585
+ # @yieldparam response [::Google::Iam::V1::Policy]
586
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
586
587
  #
587
- # @return [Google::Iam::V1::Policy]
588
+ # @return [::Google::Iam::V1::Policy]
588
589
  #
589
- # @raise [Google::Cloud::Error] if the RPC is aborted.
590
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
590
591
  #
591
592
  def get_iam_policy request, options = nil
592
- raise ArgumentError, "request must be provided" if request.nil?
593
+ raise ::ArgumentError, "request must be provided" if request.nil?
593
594
 
594
- request = Gapic::Protobuf.coerce request, to: Google::Iam::V1::GetIamPolicyRequest
595
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::GetIamPolicyRequest
595
596
 
596
597
  # Converts hash and nil to an options object
597
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
598
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
598
599
 
599
600
  # Customize the options with defaults
600
601
  metadata = @config.rpcs.get_iam_policy.metadata.to_h
601
602
 
602
603
  # Set x-goog-api-client and x-goog-user-project headers
603
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
604
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
604
605
  lib_name: @config.lib_name, lib_version: @config.lib_version,
605
606
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
606
607
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -621,8 +622,8 @@ module Google
621
622
  yield response, operation if block_given?
622
623
  return response
623
624
  end
624
- rescue GRPC::BadStatus => e
625
- raise Google::Cloud::Error.from_error(e)
625
+ rescue ::GRPC::BadStatus => e
626
+ raise ::Google::Cloud::Error.from_error(e)
626
627
  end
627
628
 
628
629
  ##
@@ -630,12 +631,12 @@ module Google
630
631
  #
631
632
  # @overload get_notification_config(request, options = nil)
632
633
  # Pass arguments to `get_notification_config` via a request object, either of type
633
- # {Google::Cloud::SecurityCenter::V1p1beta1::GetNotificationConfigRequest} or an equivalent Hash.
634
+ # {::Google::Cloud::SecurityCenter::V1p1beta1::GetNotificationConfigRequest} or an equivalent Hash.
634
635
  #
635
- # @param request [Google::Cloud::SecurityCenter::V1p1beta1::GetNotificationConfigRequest, Hash]
636
+ # @param request [::Google::Cloud::SecurityCenter::V1p1beta1::GetNotificationConfigRequest, ::Hash]
636
637
  # A request object representing the call parameters. Required. To specify no
637
638
  # parameters, or to keep all the default parameter values, pass an empty Hash.
638
- # @param options [Gapic::CallOptions, Hash]
639
+ # @param options [::Gapic::CallOptions, ::Hash]
639
640
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
640
641
  #
641
642
  # @overload get_notification_config(name: nil)
@@ -643,31 +644,31 @@ module Google
643
644
  # least one keyword argument is required. To specify no parameters, or to keep all
644
645
  # the default parameter values, pass an empty Hash as a request object (see above).
645
646
  #
646
- # @param name [String]
647
+ # @param name [::String]
647
648
  # Required. Name of the notification config to get. Its format is
648
649
  # "organizations/[organization_id]/notificationConfigs/[config_id]".
649
650
  #
650
651
  # @yield [response, operation] Access the result along with the RPC operation
651
- # @yieldparam response [Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig]
652
- # @yieldparam operation [GRPC::ActiveCall::Operation]
652
+ # @yieldparam response [::Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig]
653
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
653
654
  #
654
- # @return [Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig]
655
+ # @return [::Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig]
655
656
  #
656
- # @raise [Google::Cloud::Error] if the RPC is aborted.
657
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
657
658
  #
658
659
  def get_notification_config request, options = nil
659
- raise ArgumentError, "request must be provided" if request.nil?
660
+ raise ::ArgumentError, "request must be provided" if request.nil?
660
661
 
661
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1p1beta1::GetNotificationConfigRequest
662
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1p1beta1::GetNotificationConfigRequest
662
663
 
663
664
  # Converts hash and nil to an options object
664
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
665
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
665
666
 
666
667
  # Customize the options with defaults
667
668
  metadata = @config.rpcs.get_notification_config.metadata.to_h
668
669
 
669
670
  # Set x-goog-api-client and x-goog-user-project headers
670
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
671
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
671
672
  lib_name: @config.lib_name, lib_version: @config.lib_version,
672
673
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
673
674
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -688,8 +689,8 @@ module Google
688
689
  yield response, operation if block_given?
689
690
  return response
690
691
  end
691
- rescue GRPC::BadStatus => e
692
- raise Google::Cloud::Error.from_error(e)
692
+ rescue ::GRPC::BadStatus => e
693
+ raise ::Google::Cloud::Error.from_error(e)
693
694
  end
694
695
 
695
696
  ##
@@ -697,12 +698,12 @@ module Google
697
698
  #
698
699
  # @overload get_organization_settings(request, options = nil)
699
700
  # Pass arguments to `get_organization_settings` via a request object, either of type
700
- # {Google::Cloud::SecurityCenter::V1p1beta1::GetOrganizationSettingsRequest} or an equivalent Hash.
701
+ # {::Google::Cloud::SecurityCenter::V1p1beta1::GetOrganizationSettingsRequest} or an equivalent Hash.
701
702
  #
702
- # @param request [Google::Cloud::SecurityCenter::V1p1beta1::GetOrganizationSettingsRequest, Hash]
703
+ # @param request [::Google::Cloud::SecurityCenter::V1p1beta1::GetOrganizationSettingsRequest, ::Hash]
703
704
  # A request object representing the call parameters. Required. To specify no
704
705
  # parameters, or to keep all the default parameter values, pass an empty Hash.
705
- # @param options [Gapic::CallOptions, Hash]
706
+ # @param options [::Gapic::CallOptions, ::Hash]
706
707
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
707
708
  #
708
709
  # @overload get_organization_settings(name: nil)
@@ -710,31 +711,31 @@ module Google
710
711
  # least one keyword argument is required. To specify no parameters, or to keep all
711
712
  # the default parameter values, pass an empty Hash as a request object (see above).
712
713
  #
713
- # @param name [String]
714
+ # @param name [::String]
714
715
  # Required. Name of the organization to get organization settings for. Its
715
716
  # format is "organizations/[organization_id]/organizationSettings".
716
717
  #
717
718
  # @yield [response, operation] Access the result along with the RPC operation
718
- # @yieldparam response [Google::Cloud::SecurityCenter::V1p1beta1::OrganizationSettings]
719
- # @yieldparam operation [GRPC::ActiveCall::Operation]
719
+ # @yieldparam response [::Google::Cloud::SecurityCenter::V1p1beta1::OrganizationSettings]
720
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
720
721
  #
721
- # @return [Google::Cloud::SecurityCenter::V1p1beta1::OrganizationSettings]
722
+ # @return [::Google::Cloud::SecurityCenter::V1p1beta1::OrganizationSettings]
722
723
  #
723
- # @raise [Google::Cloud::Error] if the RPC is aborted.
724
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
724
725
  #
725
726
  def get_organization_settings request, options = nil
726
- raise ArgumentError, "request must be provided" if request.nil?
727
+ raise ::ArgumentError, "request must be provided" if request.nil?
727
728
 
728
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1p1beta1::GetOrganizationSettingsRequest
729
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1p1beta1::GetOrganizationSettingsRequest
729
730
 
730
731
  # Converts hash and nil to an options object
731
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
732
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
732
733
 
733
734
  # Customize the options with defaults
734
735
  metadata = @config.rpcs.get_organization_settings.metadata.to_h
735
736
 
736
737
  # Set x-goog-api-client and x-goog-user-project headers
737
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
738
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
738
739
  lib_name: @config.lib_name, lib_version: @config.lib_version,
739
740
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
740
741
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -755,8 +756,8 @@ module Google
755
756
  yield response, operation if block_given?
756
757
  return response
757
758
  end
758
- rescue GRPC::BadStatus => e
759
- raise Google::Cloud::Error.from_error(e)
759
+ rescue ::GRPC::BadStatus => e
760
+ raise ::Google::Cloud::Error.from_error(e)
760
761
  end
761
762
 
762
763
  ##
@@ -764,12 +765,12 @@ module Google
764
765
  #
765
766
  # @overload get_source(request, options = nil)
766
767
  # Pass arguments to `get_source` via a request object, either of type
767
- # {Google::Cloud::SecurityCenter::V1p1beta1::GetSourceRequest} or an equivalent Hash.
768
+ # {::Google::Cloud::SecurityCenter::V1p1beta1::GetSourceRequest} or an equivalent Hash.
768
769
  #
769
- # @param request [Google::Cloud::SecurityCenter::V1p1beta1::GetSourceRequest, Hash]
770
+ # @param request [::Google::Cloud::SecurityCenter::V1p1beta1::GetSourceRequest, ::Hash]
770
771
  # A request object representing the call parameters. Required. To specify no
771
772
  # parameters, or to keep all the default parameter values, pass an empty Hash.
772
- # @param options [Gapic::CallOptions, Hash]
773
+ # @param options [::Gapic::CallOptions, ::Hash]
773
774
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
774
775
  #
775
776
  # @overload get_source(name: nil)
@@ -777,31 +778,31 @@ module Google
777
778
  # least one keyword argument is required. To specify no parameters, or to keep all
778
779
  # the default parameter values, pass an empty Hash as a request object (see above).
779
780
  #
780
- # @param name [String]
781
+ # @param name [::String]
781
782
  # Required. Relative resource name of the source. Its format is
782
783
  # "organizations/[organization_id]/source/[source_id]".
783
784
  #
784
785
  # @yield [response, operation] Access the result along with the RPC operation
785
- # @yieldparam response [Google::Cloud::SecurityCenter::V1p1beta1::Source]
786
- # @yieldparam operation [GRPC::ActiveCall::Operation]
786
+ # @yieldparam response [::Google::Cloud::SecurityCenter::V1p1beta1::Source]
787
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
787
788
  #
788
- # @return [Google::Cloud::SecurityCenter::V1p1beta1::Source]
789
+ # @return [::Google::Cloud::SecurityCenter::V1p1beta1::Source]
789
790
  #
790
- # @raise [Google::Cloud::Error] if the RPC is aborted.
791
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
791
792
  #
792
793
  def get_source request, options = nil
793
- raise ArgumentError, "request must be provided" if request.nil?
794
+ raise ::ArgumentError, "request must be provided" if request.nil?
794
795
 
795
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1p1beta1::GetSourceRequest
796
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1p1beta1::GetSourceRequest
796
797
 
797
798
  # Converts hash and nil to an options object
798
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
799
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
799
800
 
800
801
  # Customize the options with defaults
801
802
  metadata = @config.rpcs.get_source.metadata.to_h
802
803
 
803
804
  # Set x-goog-api-client and x-goog-user-project headers
804
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
805
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
805
806
  lib_name: @config.lib_name, lib_version: @config.lib_version,
806
807
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
807
808
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -822,8 +823,8 @@ module Google
822
823
  yield response, operation if block_given?
823
824
  return response
824
825
  end
825
- rescue GRPC::BadStatus => e
826
- raise Google::Cloud::Error.from_error(e)
826
+ rescue ::GRPC::BadStatus => e
827
+ raise ::Google::Cloud::Error.from_error(e)
827
828
  end
828
829
 
829
830
  ##
@@ -832,23 +833,23 @@ module Google
832
833
  #
833
834
  # @overload group_assets(request, options = nil)
834
835
  # Pass arguments to `group_assets` via a request object, either of type
835
- # {Google::Cloud::SecurityCenter::V1p1beta1::GroupAssetsRequest} or an equivalent Hash.
836
+ # {::Google::Cloud::SecurityCenter::V1p1beta1::GroupAssetsRequest} or an equivalent Hash.
836
837
  #
837
- # @param request [Google::Cloud::SecurityCenter::V1p1beta1::GroupAssetsRequest, Hash]
838
+ # @param request [::Google::Cloud::SecurityCenter::V1p1beta1::GroupAssetsRequest, ::Hash]
838
839
  # A request object representing the call parameters. Required. To specify no
839
840
  # parameters, or to keep all the default parameter values, pass an empty Hash.
840
- # @param options [Gapic::CallOptions, Hash]
841
+ # @param options [::Gapic::CallOptions, ::Hash]
841
842
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
842
843
  #
843
- # @overload group_assets(parent: nil, filter: nil, group_by: nil, compare_duration: nil, read_time: nil, having: nil, page_token: nil, page_size: nil)
844
+ # @overload group_assets(parent: nil, filter: nil, group_by: nil, compare_duration: nil, read_time: nil, page_token: nil, page_size: nil)
844
845
  # Pass arguments to `group_assets` via keyword arguments. Note that at
845
846
  # least one keyword argument is required. To specify no parameters, or to keep all
846
847
  # the default parameter values, pass an empty Hash as a request object (see above).
847
848
  #
848
- # @param parent [String]
849
+ # @param parent [::String]
849
850
  # Required. Name of the organization to groupBy. Its format is
850
851
  # "organizations/[organization_id]".
851
- # @param filter [String]
852
+ # @param filter [::String]
852
853
  # Expression that defines the filter to apply across assets.
853
854
  # The expression is a list of zero or more restrictions combined via logical
854
855
  # operators `AND` and `OR`.
@@ -882,15 +883,15 @@ module Google
882
883
  #
883
884
  # Usage: This should be milliseconds since epoch or an RFC3339 string.
884
885
  # Examples:
885
- # "update_time = \"2019-06-10T16:07:18-07:00\""
886
- # "update_time = 1560208038000"
886
+ # `update_time = "2019-06-10T16:07:18-07:00"`
887
+ # `update_time = 1560208038000`
887
888
  #
888
889
  # * create_time: `=`, `>`, `<`, `>=`, `<=`
889
890
  #
890
891
  # Usage: This should be milliseconds since epoch or an RFC3339 string.
891
892
  # Examples:
892
- # "create_time = \"2019-06-10T16:07:18-07:00\""
893
- # "create_time = 1560208038000"
893
+ # `create_time = "2019-06-10T16:07:18-07:00"`
894
+ # `create_time = 1560208038000`
894
895
  #
895
896
  # * iam_policy.policy_blob: `=`, `:`
896
897
  # * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
@@ -905,7 +906,13 @@ module Google
905
906
  # * security_center_properties.resource_owners: `=`, `:`
906
907
  #
907
908
  # For example, `resource_properties.size = 100` is a valid filter string.
908
- # @param group_by [String]
909
+ #
910
+ # Use a partial match on the empty string to filter based on a property
911
+ # existing: `resource_properties.my_property : ""`
912
+ #
913
+ # Use a negated partial match on the empty string to filter based on a
914
+ # property not existing: `-resource_properties.my_property : ""`
915
+ # @param group_by [::String]
909
916
  # Required. Expression that defines what assets fields to use for grouping.
910
917
  # The string value should follow SQL syntax: comma separated list of fields.
911
918
  # For example:
@@ -924,7 +931,7 @@ module Google
924
931
  # * security_center_properties.resource_type
925
932
  # * security_center_properties.resource_project_display_name
926
933
  # * security_center_properties.resource_parent_display_name
927
- # @param compare_duration [Google::Protobuf::Duration, Hash]
934
+ # @param compare_duration [::Google::Protobuf::Duration, ::Hash]
928
935
  # When compare_duration is set, the GroupResult's "state_change" property is
929
936
  # updated to indicate whether the asset was added, removed, or remained
930
937
  # present during the compare_duration period of time that precedes the
@@ -952,44 +959,40 @@ module Google
952
959
  #
953
960
  # If this field is set then `state_change` must be a specified field in
954
961
  # `group_by`.
955
- # @param read_time [Google::Protobuf::Timestamp, Hash]
962
+ # @param read_time [::Google::Protobuf::Timestamp, ::Hash]
956
963
  # Time used as a reference point when filtering assets. The filter is limited
957
964
  # to assets existing at the supplied time and their values are those at that
958
965
  # specific time. Absence of this field will default to the API's version of
959
966
  # NOW.
960
- # @param having [String]
961
- # Filter that specifies what fields to further filter on *after* the query
962
- # filter has been executed. Currently only `state_change` is supported and
963
- # requires compare_duration to be specified.
964
- # @param page_token [String]
967
+ # @param page_token [::String]
965
968
  # The value returned by the last `GroupAssetsResponse`; indicates
966
969
  # that this is a continuation of a prior `GroupAssets` call, and that the
967
970
  # system should return the next page of data.
968
- # @param page_size [Integer]
971
+ # @param page_size [::Integer]
969
972
  # The maximum number of results to return in a single response. Default is
970
973
  # 10, minimum is 1, maximum is 1000.
971
974
  #
972
975
  # @yield [response, operation] Access the result along with the RPC operation
973
- # @yieldparam response [Gapic::PagedEnumerable<Google::Cloud::SecurityCenter::V1p1beta1::GroupResult>]
974
- # @yieldparam operation [GRPC::ActiveCall::Operation]
976
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenter::V1p1beta1::GroupResult>]
977
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
975
978
  #
976
- # @return [Gapic::PagedEnumerable<Google::Cloud::SecurityCenter::V1p1beta1::GroupResult>]
979
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenter::V1p1beta1::GroupResult>]
977
980
  #
978
- # @raise [Google::Cloud::Error] if the RPC is aborted.
981
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
979
982
  #
980
983
  def group_assets request, options = nil
981
- raise ArgumentError, "request must be provided" if request.nil?
984
+ raise ::ArgumentError, "request must be provided" if request.nil?
982
985
 
983
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1p1beta1::GroupAssetsRequest
986
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1p1beta1::GroupAssetsRequest
984
987
 
985
988
  # Converts hash and nil to an options object
986
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
989
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
987
990
 
988
991
  # Customize the options with defaults
989
992
  metadata = @config.rpcs.group_assets.metadata.to_h
990
993
 
991
994
  # Set x-goog-api-client and x-goog-user-project headers
992
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
995
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
993
996
  lib_name: @config.lib_name, lib_version: @config.lib_version,
994
997
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
995
998
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1007,12 +1010,12 @@ module Google
1007
1010
  retry_policy: @config.retry_policy
1008
1011
 
1009
1012
  @security_center_stub.call_rpc :group_assets, request, options: options do |response, operation|
1010
- response = Gapic::PagedEnumerable.new @security_center_stub, :group_assets, request, response, operation, options
1013
+ response = ::Gapic::PagedEnumerable.new @security_center_stub, :group_assets, request, response, operation, options
1011
1014
  yield response, operation if block_given?
1012
1015
  return response
1013
1016
  end
1014
- rescue GRPC::BadStatus => e
1015
- raise Google::Cloud::Error.from_error(e)
1017
+ rescue ::GRPC::BadStatus => e
1018
+ raise ::Google::Cloud::Error.from_error(e)
1016
1019
  end
1017
1020
 
1018
1021
  ##
@@ -1024,25 +1027,25 @@ module Google
1024
1027
  #
1025
1028
  # @overload group_findings(request, options = nil)
1026
1029
  # Pass arguments to `group_findings` via a request object, either of type
1027
- # {Google::Cloud::SecurityCenter::V1p1beta1::GroupFindingsRequest} or an equivalent Hash.
1030
+ # {::Google::Cloud::SecurityCenter::V1p1beta1::GroupFindingsRequest} or an equivalent Hash.
1028
1031
  #
1029
- # @param request [Google::Cloud::SecurityCenter::V1p1beta1::GroupFindingsRequest, Hash]
1032
+ # @param request [::Google::Cloud::SecurityCenter::V1p1beta1::GroupFindingsRequest, ::Hash]
1030
1033
  # A request object representing the call parameters. Required. To specify no
1031
1034
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1032
- # @param options [Gapic::CallOptions, Hash]
1035
+ # @param options [::Gapic::CallOptions, ::Hash]
1033
1036
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1034
1037
  #
1035
- # @overload group_findings(parent: nil, filter: nil, group_by: nil, read_time: nil, compare_duration: nil, having: nil, page_token: nil, page_size: nil)
1038
+ # @overload group_findings(parent: nil, filter: nil, group_by: nil, read_time: nil, compare_duration: nil, page_token: nil, page_size: nil)
1036
1039
  # Pass arguments to `group_findings` via keyword arguments. Note that at
1037
1040
  # least one keyword argument is required. To specify no parameters, or to keep all
1038
1041
  # the default parameter values, pass an empty Hash as a request object (see above).
1039
1042
  #
1040
- # @param parent [String]
1043
+ # @param parent [::String]
1041
1044
  # Required. Name of the source to groupBy. Its format is
1042
1045
  # "organizations/[organization_id]/sources/[source_id]". To groupBy across
1043
1046
  # all sources provide a source_id of `-`. For example:
1044
1047
  # organizations/\\{organization_id}/sources/-
1045
- # @param filter [String]
1048
+ # @param filter [::String]
1046
1049
  # Expression that defines the filter to apply across findings.
1047
1050
  # The expression is a list of one or more restrictions combined via logical
1048
1051
  # operators `AND` and `OR`.
@@ -1079,14 +1082,20 @@ module Google
1079
1082
  #
1080
1083
  # Usage: This should be milliseconds since epoch or an RFC3339 string.
1081
1084
  # Examples:
1082
- # "event_time = \"2019-06-10T16:07:18-07:00\""
1083
- # "event_time = 1560208038000"
1085
+ # `event_time = "2019-06-10T16:07:18-07:00"`
1086
+ # `event_time = 1560208038000`
1084
1087
  #
1085
1088
  # * security_marks.marks: `=`, `:`
1086
1089
  # * source_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
1087
1090
  #
1088
1091
  # For example, `source_properties.size = 100` is a valid filter string.
1089
- # @param group_by [String]
1092
+ #
1093
+ # Use a partial match on the empty string to filter based on a property
1094
+ # existing: `source_properties.my_property : ""`
1095
+ #
1096
+ # Use a negated partial match on the empty string to filter based on a
1097
+ # property not existing: `-source_properties.my_property : ""`
1098
+ # @param group_by [::String]
1090
1099
  # Required. Expression that defines what assets fields to use for grouping
1091
1100
  # (including `state_change`). The string value should follow SQL syntax:
1092
1101
  # comma separated list of fields. For example: "parent,resource_name".
@@ -1101,12 +1110,12 @@ module Google
1101
1110
  # The following fields are supported when compare_duration is set:
1102
1111
  #
1103
1112
  # * state_change
1104
- # @param read_time [Google::Protobuf::Timestamp, Hash]
1113
+ # @param read_time [::Google::Protobuf::Timestamp, ::Hash]
1105
1114
  # Time used as a reference point when filtering findings. The filter is
1106
1115
  # limited to findings existing at the supplied time and their values are
1107
1116
  # those at that specific time. Absence of this field will default to the
1108
1117
  # API's version of NOW.
1109
- # @param compare_duration [Google::Protobuf::Duration, Hash]
1118
+ # @param compare_duration [::Google::Protobuf::Duration, ::Hash]
1110
1119
  # When compare_duration is set, the GroupResult's "state_change" attribute is
1111
1120
  # updated to indicate whether the finding had its state changed, the
1112
1121
  # finding's state remained unchanged, or if the finding was added during the
@@ -1120,12 +1129,18 @@ module Google
1120
1129
  #
1121
1130
  # Possible "state_change" values when compare_duration is specified:
1122
1131
  #
1123
- # * "CHANGED": indicates that the finding was present at the start of
1124
- # compare_duration, but changed its state at read_time.
1125
- # * "UNCHANGED": indicates that the finding was present at the start of
1126
- # compare_duration and did not change state at read_time.
1127
- # * "ADDED": indicates that the finding was not present at the start
1128
- # of compare_duration, but was present at read_time.
1132
+ # * "CHANGED": indicates that the finding was present and matched the given
1133
+ # filter at the start of compare_duration, but changed its
1134
+ # state at read_time.
1135
+ # * "UNCHANGED": indicates that the finding was present and matched the given
1136
+ # filter at the start of compare_duration and did not change
1137
+ # state at read_time.
1138
+ # * "ADDED": indicates that the finding did not match the given filter or
1139
+ # was not present at the start of compare_duration, but was
1140
+ # present at read_time.
1141
+ # * "REMOVED": indicates that the finding was present and matched the
1142
+ # filter at the start of compare_duration, but did not match
1143
+ # the filter at read_time.
1129
1144
  #
1130
1145
  # If compare_duration is not specified, then the only possible state_change
1131
1146
  # is "UNUSED", which will be the state_change set for all findings present
@@ -1133,39 +1148,35 @@ module Google
1133
1148
  #
1134
1149
  # If this field is set then `state_change` must be a specified field in
1135
1150
  # `group_by`.
1136
- # @param having [String]
1137
- # Filter that specifies what fields to further filter on *after* the query
1138
- # filter has been executed. Currently only `finding.state` and `state_change`
1139
- # are supported and requires compare_duration to be specified.
1140
- # @param page_token [String]
1151
+ # @param page_token [::String]
1141
1152
  # The value returned by the last `GroupFindingsResponse`; indicates
1142
1153
  # that this is a continuation of a prior `GroupFindings` call, and
1143
1154
  # that the system should return the next page of data.
1144
- # @param page_size [Integer]
1155
+ # @param page_size [::Integer]
1145
1156
  # The maximum number of results to return in a single response. Default is
1146
1157
  # 10, minimum is 1, maximum is 1000.
1147
1158
  #
1148
1159
  # @yield [response, operation] Access the result along with the RPC operation
1149
- # @yieldparam response [Gapic::PagedEnumerable<Google::Cloud::SecurityCenter::V1p1beta1::GroupResult>]
1150
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1160
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenter::V1p1beta1::GroupResult>]
1161
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1151
1162
  #
1152
- # @return [Gapic::PagedEnumerable<Google::Cloud::SecurityCenter::V1p1beta1::GroupResult>]
1163
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenter::V1p1beta1::GroupResult>]
1153
1164
  #
1154
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1165
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1155
1166
  #
1156
1167
  def group_findings request, options = nil
1157
- raise ArgumentError, "request must be provided" if request.nil?
1168
+ raise ::ArgumentError, "request must be provided" if request.nil?
1158
1169
 
1159
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1p1beta1::GroupFindingsRequest
1170
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1p1beta1::GroupFindingsRequest
1160
1171
 
1161
1172
  # Converts hash and nil to an options object
1162
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1173
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1163
1174
 
1164
1175
  # Customize the options with defaults
1165
1176
  metadata = @config.rpcs.group_findings.metadata.to_h
1166
1177
 
1167
1178
  # Set x-goog-api-client and x-goog-user-project headers
1168
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1179
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1169
1180
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1170
1181
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
1171
1182
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1183,12 +1194,12 @@ module Google
1183
1194
  retry_policy: @config.retry_policy
1184
1195
 
1185
1196
  @security_center_stub.call_rpc :group_findings, request, options: options do |response, operation|
1186
- response = Gapic::PagedEnumerable.new @security_center_stub, :group_findings, request, response, operation, options
1197
+ response = ::Gapic::PagedEnumerable.new @security_center_stub, :group_findings, request, response, operation, options
1187
1198
  yield response, operation if block_given?
1188
1199
  return response
1189
1200
  end
1190
- rescue GRPC::BadStatus => e
1191
- raise Google::Cloud::Error.from_error(e)
1201
+ rescue ::GRPC::BadStatus => e
1202
+ raise ::Google::Cloud::Error.from_error(e)
1192
1203
  end
1193
1204
 
1194
1205
  ##
@@ -1196,23 +1207,23 @@ module Google
1196
1207
  #
1197
1208
  # @overload list_assets(request, options = nil)
1198
1209
  # Pass arguments to `list_assets` via a request object, either of type
1199
- # {Google::Cloud::SecurityCenter::V1p1beta1::ListAssetsRequest} or an equivalent Hash.
1210
+ # {::Google::Cloud::SecurityCenter::V1p1beta1::ListAssetsRequest} or an equivalent Hash.
1200
1211
  #
1201
- # @param request [Google::Cloud::SecurityCenter::V1p1beta1::ListAssetsRequest, Hash]
1212
+ # @param request [::Google::Cloud::SecurityCenter::V1p1beta1::ListAssetsRequest, ::Hash]
1202
1213
  # A request object representing the call parameters. Required. To specify no
1203
1214
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1204
- # @param options [Gapic::CallOptions, Hash]
1215
+ # @param options [::Gapic::CallOptions, ::Hash]
1205
1216
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1206
1217
  #
1207
- # @overload list_assets(parent: nil, filter: nil, order_by: nil, read_time: nil, compare_duration: nil, having: nil, field_mask: nil, page_token: nil, page_size: nil)
1218
+ # @overload list_assets(parent: nil, filter: nil, order_by: nil, read_time: nil, compare_duration: nil, field_mask: nil, page_token: nil, page_size: nil)
1208
1219
  # Pass arguments to `list_assets` via keyword arguments. Note that at
1209
1220
  # least one keyword argument is required. To specify no parameters, or to keep all
1210
1221
  # the default parameter values, pass an empty Hash as a request object (see above).
1211
1222
  #
1212
- # @param parent [String]
1223
+ # @param parent [::String]
1213
1224
  # Required. Name of the organization assets should belong to. Its format is
1214
1225
  # "organizations/[organization_id]".
1215
- # @param filter [String]
1226
+ # @param filter [::String]
1216
1227
  # Expression that defines the filter to apply across assets.
1217
1228
  # The expression is a list of zero or more restrictions combined via logical
1218
1229
  # operators `AND` and `OR`.
@@ -1246,15 +1257,15 @@ module Google
1246
1257
  #
1247
1258
  # Usage: This should be milliseconds since epoch or an RFC3339 string.
1248
1259
  # Examples:
1249
- # "update_time = \"2019-06-10T16:07:18-07:00\""
1250
- # "update_time = 1560208038000"
1260
+ # `update_time = "2019-06-10T16:07:18-07:00"`
1261
+ # `update_time = 1560208038000`
1251
1262
  #
1252
1263
  # * create_time: `=`, `>`, `<`, `>=`, `<=`
1253
1264
  #
1254
1265
  # Usage: This should be milliseconds since epoch or an RFC3339 string.
1255
1266
  # Examples:
1256
- # "create_time = \"2019-06-10T16:07:18-07:00\""
1257
- # "create_time = 1560208038000"
1267
+ # `create_time = "2019-06-10T16:07:18-07:00"`
1268
+ # `create_time = 1560208038000`
1258
1269
  #
1259
1270
  # * iam_policy.policy_blob: `=`, `:`
1260
1271
  # * resource_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
@@ -1269,7 +1280,13 @@ module Google
1269
1280
  # * security_center_properties.resource_owners: `=`, `:`
1270
1281
  #
1271
1282
  # For example, `resource_properties.size = 100` is a valid filter string.
1272
- # @param order_by [String]
1283
+ #
1284
+ # Use a partial match on the empty string to filter based on a property
1285
+ # existing: `resource_properties.my_property : ""`
1286
+ #
1287
+ # Use a negated partial match on the empty string to filter based on a
1288
+ # property not existing: `-resource_properties.my_property : ""`
1289
+ # @param order_by [::String]
1273
1290
  # Expression that defines what fields and order to use for sorting. The
1274
1291
  # string value should follow SQL syntax: comma separated list of fields. For
1275
1292
  # example: "name,resource_properties.a_property". The default sorting order
@@ -1291,12 +1308,12 @@ module Google
1291
1308
  # security_center_properties.resource_project
1292
1309
  # security_center_properties.resource_project_display_name
1293
1310
  # security_center_properties.resource_type
1294
- # @param read_time [Google::Protobuf::Timestamp, Hash]
1311
+ # @param read_time [::Google::Protobuf::Timestamp, ::Hash]
1295
1312
  # Time used as a reference point when filtering assets. The filter is limited
1296
1313
  # to assets existing at the supplied time and their values are those at that
1297
1314
  # specific time. Absence of this field will default to the API's version of
1298
1315
  # NOW.
1299
- # @param compare_duration [Google::Protobuf::Duration, Hash]
1316
+ # @param compare_duration [::Google::Protobuf::Duration, ::Hash]
1300
1317
  # When compare_duration is set, the ListAssetsResult's "state_change"
1301
1318
  # attribute is updated to indicate whether the asset was added, removed, or
1302
1319
  # remained present during the compare_duration period of time that precedes
@@ -1321,44 +1338,40 @@ module Google
1321
1338
  # If compare_duration is not specified, then the only possible state_change
1322
1339
  # is "UNUSED", which will be the state_change set for all assets present at
1323
1340
  # read_time.
1324
- # @param having [String]
1325
- # Filter that specifies what fields to further filter on *after* the query
1326
- # filter has been executed. Currently only `state_change` is supported and
1327
- # requires compare_duration to be specified.
1328
- # @param field_mask [Google::Protobuf::FieldMask, Hash]
1341
+ # @param field_mask [::Google::Protobuf::FieldMask, ::Hash]
1329
1342
  # Optional.
1330
1343
  # A field mask to specify the ListAssetsResult fields to be listed in the
1331
1344
  # response.
1332
1345
  # An empty field mask will list all fields.
1333
- # @param page_token [String]
1346
+ # @param page_token [::String]
1334
1347
  # The value returned by the last `ListAssetsResponse`; indicates
1335
1348
  # that this is a continuation of a prior `ListAssets` call, and
1336
1349
  # that the system should return the next page of data.
1337
- # @param page_size [Integer]
1350
+ # @param page_size [::Integer]
1338
1351
  # The maximum number of results to return in a single response. Default is
1339
1352
  # 10, minimum is 1, maximum is 1000.
1340
1353
  #
1341
1354
  # @yield [response, operation] Access the result along with the RPC operation
1342
- # @yieldparam response [Gapic::PagedEnumerable<Google::Cloud::SecurityCenter::V1p1beta1::ListAssetsResponse::ListAssetsResult>]
1343
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1355
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenter::V1p1beta1::ListAssetsResponse::ListAssetsResult>]
1356
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1344
1357
  #
1345
- # @return [Gapic::PagedEnumerable<Google::Cloud::SecurityCenter::V1p1beta1::ListAssetsResponse::ListAssetsResult>]
1358
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenter::V1p1beta1::ListAssetsResponse::ListAssetsResult>]
1346
1359
  #
1347
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1360
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1348
1361
  #
1349
1362
  def list_assets request, options = nil
1350
- raise ArgumentError, "request must be provided" if request.nil?
1363
+ raise ::ArgumentError, "request must be provided" if request.nil?
1351
1364
 
1352
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1p1beta1::ListAssetsRequest
1365
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1p1beta1::ListAssetsRequest
1353
1366
 
1354
1367
  # Converts hash and nil to an options object
1355
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1368
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1356
1369
 
1357
1370
  # Customize the options with defaults
1358
1371
  metadata = @config.rpcs.list_assets.metadata.to_h
1359
1372
 
1360
1373
  # Set x-goog-api-client and x-goog-user-project headers
1361
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1374
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1362
1375
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1363
1376
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
1364
1377
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1376,12 +1389,12 @@ module Google
1376
1389
  retry_policy: @config.retry_policy
1377
1390
 
1378
1391
  @security_center_stub.call_rpc :list_assets, request, options: options do |response, operation|
1379
- response = Gapic::PagedEnumerable.new @security_center_stub, :list_assets, request, response, operation, options
1392
+ response = ::Gapic::PagedEnumerable.new @security_center_stub, :list_assets, request, response, operation, options
1380
1393
  yield response, operation if block_given?
1381
1394
  return response
1382
1395
  end
1383
- rescue GRPC::BadStatus => e
1384
- raise Google::Cloud::Error.from_error(e)
1396
+ rescue ::GRPC::BadStatus => e
1397
+ raise ::Google::Cloud::Error.from_error(e)
1385
1398
  end
1386
1399
 
1387
1400
  ##
@@ -1392,25 +1405,25 @@ module Google
1392
1405
  #
1393
1406
  # @overload list_findings(request, options = nil)
1394
1407
  # Pass arguments to `list_findings` via a request object, either of type
1395
- # {Google::Cloud::SecurityCenter::V1p1beta1::ListFindingsRequest} or an equivalent Hash.
1408
+ # {::Google::Cloud::SecurityCenter::V1p1beta1::ListFindingsRequest} or an equivalent Hash.
1396
1409
  #
1397
- # @param request [Google::Cloud::SecurityCenter::V1p1beta1::ListFindingsRequest, Hash]
1410
+ # @param request [::Google::Cloud::SecurityCenter::V1p1beta1::ListFindingsRequest, ::Hash]
1398
1411
  # A request object representing the call parameters. Required. To specify no
1399
1412
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1400
- # @param options [Gapic::CallOptions, Hash]
1413
+ # @param options [::Gapic::CallOptions, ::Hash]
1401
1414
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1402
1415
  #
1403
- # @overload list_findings(parent: nil, filter: nil, order_by: nil, read_time: nil, compare_duration: nil, having: nil, field_mask: nil, page_token: nil, page_size: nil)
1416
+ # @overload list_findings(parent: nil, filter: nil, order_by: nil, read_time: nil, compare_duration: nil, field_mask: nil, page_token: nil, page_size: nil)
1404
1417
  # Pass arguments to `list_findings` via keyword arguments. Note that at
1405
1418
  # least one keyword argument is required. To specify no parameters, or to keep all
1406
1419
  # the default parameter values, pass an empty Hash as a request object (see above).
1407
1420
  #
1408
- # @param parent [String]
1421
+ # @param parent [::String]
1409
1422
  # Required. Name of the source the findings belong to. Its format is
1410
1423
  # "organizations/[organization_id]/sources/[source_id]". To list across all
1411
1424
  # sources provide a source_id of `-`. For example:
1412
1425
  # organizations/\\{organization_id}/sources/-
1413
- # @param filter [String]
1426
+ # @param filter [::String]
1414
1427
  # Expression that defines the filter to apply across findings.
1415
1428
  # The expression is a list of one or more restrictions combined via logical
1416
1429
  # operators `AND` and `OR`.
@@ -1447,14 +1460,20 @@ module Google
1447
1460
  #
1448
1461
  # Usage: This should be milliseconds since epoch or an RFC3339 string.
1449
1462
  # Examples:
1450
- # "event_time = \"2019-06-10T16:07:18-07:00\""
1451
- # "event_time = 1560208038000"
1463
+ # `event_time = "2019-06-10T16:07:18-07:00"`
1464
+ # `event_time = 1560208038000`
1452
1465
  #
1453
1466
  # security_marks.marks: `=`, `:`
1454
1467
  # source_properties: `=`, `:`, `>`, `<`, `>=`, `<=`
1455
1468
  #
1456
1469
  # For example, `source_properties.size = 100` is a valid filter string.
1457
- # @param order_by [String]
1470
+ #
1471
+ # Use a partial match on the empty string to filter based on a property
1472
+ # existing: `source_properties.my_property : ""`
1473
+ #
1474
+ # Use a negated partial match on the empty string to filter based on a
1475
+ # property not existing: `-source_properties.my_property : ""`
1476
+ # @param order_by [::String]
1458
1477
  # Expression that defines what fields and order to use for sorting. The
1459
1478
  # string value should follow SQL syntax: comma separated list of fields. For
1460
1479
  # example: "name,resource_properties.a_property". The default sorting order
@@ -1473,12 +1492,12 @@ module Google
1473
1492
  # event_time
1474
1493
  # source_properties
1475
1494
  # security_marks.marks
1476
- # @param read_time [Google::Protobuf::Timestamp, Hash]
1495
+ # @param read_time [::Google::Protobuf::Timestamp, ::Hash]
1477
1496
  # Time used as a reference point when filtering findings. The filter is
1478
1497
  # limited to findings existing at the supplied time and their values are
1479
1498
  # those at that specific time. Absence of this field will default to the
1480
1499
  # API's version of NOW.
1481
- # @param compare_duration [Google::Protobuf::Duration, Hash]
1500
+ # @param compare_duration [::Google::Protobuf::Duration, ::Hash]
1482
1501
  # When compare_duration is set, the ListFindingsResult's "state_change"
1483
1502
  # attribute is updated to indicate whether the finding had its state changed,
1484
1503
  # the finding's state remained unchanged, or if the finding was added in any
@@ -1493,53 +1512,55 @@ module Google
1493
1512
  #
1494
1513
  # Possible "state_change" values when compare_duration is specified:
1495
1514
  #
1496
- # * "CHANGED": indicates that the finding was present at the start of
1497
- # compare_duration, but changed its state at read_time.
1498
- # * "UNCHANGED": indicates that the finding was present at the start of
1499
- # compare_duration and did not change state at read_time.
1500
- # * "ADDED": indicates that the finding was not present at the start
1501
- # of compare_duration, but was present at read_time.
1515
+ # * "CHANGED": indicates that the finding was present and matched the given
1516
+ # filter at the start of compare_duration, but changed its
1517
+ # state at read_time.
1518
+ # * "UNCHANGED": indicates that the finding was present and matched the given
1519
+ # filter at the start of compare_duration and did not change
1520
+ # state at read_time.
1521
+ # * "ADDED": indicates that the finding did not match the given filter or
1522
+ # was not present at the start of compare_duration, but was
1523
+ # present at read_time.
1524
+ # * "REMOVED": indicates that the finding was present and matched the
1525
+ # filter at the start of compare_duration, but did not match
1526
+ # the filter at read_time.
1502
1527
  #
1503
1528
  # If compare_duration is not specified, then the only possible state_change
1504
1529
  # is "UNUSED", which will be the state_change set for all findings present at
1505
1530
  # read_time.
1506
- # @param having [String]
1507
- # Filter that specifies what fields to further filter on *after* the query
1508
- # filter has been executed. Currently only `finding.state` and `state_change`
1509
- # are supported and requires compare_duration to be specified.
1510
- # @param field_mask [Google::Protobuf::FieldMask, Hash]
1531
+ # @param field_mask [::Google::Protobuf::FieldMask, ::Hash]
1511
1532
  # Optional.
1512
1533
  # A field mask to specify the Finding fields to be listed in the response.
1513
1534
  # An empty field mask will list all fields.
1514
- # @param page_token [String]
1535
+ # @param page_token [::String]
1515
1536
  # The value returned by the last `ListFindingsResponse`; indicates
1516
1537
  # that this is a continuation of a prior `ListFindings` call, and
1517
1538
  # that the system should return the next page of data.
1518
- # @param page_size [Integer]
1539
+ # @param page_size [::Integer]
1519
1540
  # The maximum number of results to return in a single response. Default is
1520
1541
  # 10, minimum is 1, maximum is 1000.
1521
1542
  #
1522
1543
  # @yield [response, operation] Access the result along with the RPC operation
1523
- # @yieldparam response [Gapic::PagedEnumerable<Google::Cloud::SecurityCenter::V1p1beta1::ListFindingsResponse::ListFindingsResult>]
1524
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1544
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenter::V1p1beta1::ListFindingsResponse::ListFindingsResult>]
1545
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1525
1546
  #
1526
- # @return [Gapic::PagedEnumerable<Google::Cloud::SecurityCenter::V1p1beta1::ListFindingsResponse::ListFindingsResult>]
1547
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenter::V1p1beta1::ListFindingsResponse::ListFindingsResult>]
1527
1548
  #
1528
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1549
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1529
1550
  #
1530
1551
  def list_findings request, options = nil
1531
- raise ArgumentError, "request must be provided" if request.nil?
1552
+ raise ::ArgumentError, "request must be provided" if request.nil?
1532
1553
 
1533
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1p1beta1::ListFindingsRequest
1554
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1p1beta1::ListFindingsRequest
1534
1555
 
1535
1556
  # Converts hash and nil to an options object
1536
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1557
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1537
1558
 
1538
1559
  # Customize the options with defaults
1539
1560
  metadata = @config.rpcs.list_findings.metadata.to_h
1540
1561
 
1541
1562
  # Set x-goog-api-client and x-goog-user-project headers
1542
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1563
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1543
1564
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1544
1565
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
1545
1566
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1557,12 +1578,12 @@ module Google
1557
1578
  retry_policy: @config.retry_policy
1558
1579
 
1559
1580
  @security_center_stub.call_rpc :list_findings, request, options: options do |response, operation|
1560
- response = Gapic::PagedEnumerable.new @security_center_stub, :list_findings, request, response, operation, options
1581
+ response = ::Gapic::PagedEnumerable.new @security_center_stub, :list_findings, request, response, operation, options
1561
1582
  yield response, operation if block_given?
1562
1583
  return response
1563
1584
  end
1564
- rescue GRPC::BadStatus => e
1565
- raise Google::Cloud::Error.from_error(e)
1585
+ rescue ::GRPC::BadStatus => e
1586
+ raise ::Google::Cloud::Error.from_error(e)
1566
1587
  end
1567
1588
 
1568
1589
  ##
@@ -1570,12 +1591,12 @@ module Google
1570
1591
  #
1571
1592
  # @overload list_notification_configs(request, options = nil)
1572
1593
  # Pass arguments to `list_notification_configs` via a request object, either of type
1573
- # {Google::Cloud::SecurityCenter::V1p1beta1::ListNotificationConfigsRequest} or an equivalent Hash.
1594
+ # {::Google::Cloud::SecurityCenter::V1p1beta1::ListNotificationConfigsRequest} or an equivalent Hash.
1574
1595
  #
1575
- # @param request [Google::Cloud::SecurityCenter::V1p1beta1::ListNotificationConfigsRequest, Hash]
1596
+ # @param request [::Google::Cloud::SecurityCenter::V1p1beta1::ListNotificationConfigsRequest, ::Hash]
1576
1597
  # A request object representing the call parameters. Required. To specify no
1577
1598
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1578
- # @param options [Gapic::CallOptions, Hash]
1599
+ # @param options [::Gapic::CallOptions, ::Hash]
1579
1600
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1580
1601
  #
1581
1602
  # @overload list_notification_configs(parent: nil, page_token: nil, page_size: nil)
@@ -1583,38 +1604,38 @@ module Google
1583
1604
  # least one keyword argument is required. To specify no parameters, or to keep all
1584
1605
  # the default parameter values, pass an empty Hash as a request object (see above).
1585
1606
  #
1586
- # @param parent [String]
1607
+ # @param parent [::String]
1587
1608
  # Required. Name of the organization to list notification configs.
1588
1609
  # Its format is "organizations/[organization_id]".
1589
- # @param page_token [String]
1610
+ # @param page_token [::String]
1590
1611
  # The value returned by the last `ListNotificationConfigsResponse`; indicates
1591
1612
  # that this is a continuation of a prior `ListNotificationConfigs` call, and
1592
1613
  # that the system should return the next page of data.
1593
- # @param page_size [Integer]
1614
+ # @param page_size [::Integer]
1594
1615
  # The maximum number of results to return in a single response. Default is
1595
1616
  # 10, minimum is 1, maximum is 1000.
1596
1617
  #
1597
1618
  # @yield [response, operation] Access the result along with the RPC operation
1598
- # @yieldparam response [Gapic::PagedEnumerable<Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig>]
1599
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1619
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig>]
1620
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1600
1621
  #
1601
- # @return [Gapic::PagedEnumerable<Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig>]
1622
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig>]
1602
1623
  #
1603
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1624
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1604
1625
  #
1605
1626
  def list_notification_configs request, options = nil
1606
- raise ArgumentError, "request must be provided" if request.nil?
1627
+ raise ::ArgumentError, "request must be provided" if request.nil?
1607
1628
 
1608
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1p1beta1::ListNotificationConfigsRequest
1629
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1p1beta1::ListNotificationConfigsRequest
1609
1630
 
1610
1631
  # Converts hash and nil to an options object
1611
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1632
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1612
1633
 
1613
1634
  # Customize the options with defaults
1614
1635
  metadata = @config.rpcs.list_notification_configs.metadata.to_h
1615
1636
 
1616
1637
  # Set x-goog-api-client and x-goog-user-project headers
1617
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1638
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1618
1639
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1619
1640
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
1620
1641
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1632,12 +1653,12 @@ module Google
1632
1653
  retry_policy: @config.retry_policy
1633
1654
 
1634
1655
  @security_center_stub.call_rpc :list_notification_configs, request, options: options do |response, operation|
1635
- response = Gapic::PagedEnumerable.new @security_center_stub, :list_notification_configs, request, response, operation, options
1656
+ response = ::Gapic::PagedEnumerable.new @security_center_stub, :list_notification_configs, request, response, operation, options
1636
1657
  yield response, operation if block_given?
1637
1658
  return response
1638
1659
  end
1639
- rescue GRPC::BadStatus => e
1640
- raise Google::Cloud::Error.from_error(e)
1660
+ rescue ::GRPC::BadStatus => e
1661
+ raise ::Google::Cloud::Error.from_error(e)
1641
1662
  end
1642
1663
 
1643
1664
  ##
@@ -1645,12 +1666,12 @@ module Google
1645
1666
  #
1646
1667
  # @overload list_sources(request, options = nil)
1647
1668
  # Pass arguments to `list_sources` via a request object, either of type
1648
- # {Google::Cloud::SecurityCenter::V1p1beta1::ListSourcesRequest} or an equivalent Hash.
1669
+ # {::Google::Cloud::SecurityCenter::V1p1beta1::ListSourcesRequest} or an equivalent Hash.
1649
1670
  #
1650
- # @param request [Google::Cloud::SecurityCenter::V1p1beta1::ListSourcesRequest, Hash]
1671
+ # @param request [::Google::Cloud::SecurityCenter::V1p1beta1::ListSourcesRequest, ::Hash]
1651
1672
  # A request object representing the call parameters. Required. To specify no
1652
1673
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1653
- # @param options [Gapic::CallOptions, Hash]
1674
+ # @param options [::Gapic::CallOptions, ::Hash]
1654
1675
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1655
1676
  #
1656
1677
  # @overload list_sources(parent: nil, page_token: nil, page_size: nil)
@@ -1658,38 +1679,38 @@ module Google
1658
1679
  # least one keyword argument is required. To specify no parameters, or to keep all
1659
1680
  # the default parameter values, pass an empty Hash as a request object (see above).
1660
1681
  #
1661
- # @param parent [String]
1682
+ # @param parent [::String]
1662
1683
  # Required. Resource name of the parent of sources to list. Its format should
1663
1684
  # be "organizations/[organization_id]".
1664
- # @param page_token [String]
1685
+ # @param page_token [::String]
1665
1686
  # The value returned by the last `ListSourcesResponse`; indicates
1666
1687
  # that this is a continuation of a prior `ListSources` call, and
1667
1688
  # that the system should return the next page of data.
1668
- # @param page_size [Integer]
1689
+ # @param page_size [::Integer]
1669
1690
  # The maximum number of results to return in a single response. Default is
1670
1691
  # 10, minimum is 1, maximum is 1000.
1671
1692
  #
1672
1693
  # @yield [response, operation] Access the result along with the RPC operation
1673
- # @yieldparam response [Gapic::PagedEnumerable<Google::Cloud::SecurityCenter::V1p1beta1::Source>]
1674
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1694
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenter::V1p1beta1::Source>]
1695
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1675
1696
  #
1676
- # @return [Gapic::PagedEnumerable<Google::Cloud::SecurityCenter::V1p1beta1::Source>]
1697
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::SecurityCenter::V1p1beta1::Source>]
1677
1698
  #
1678
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1699
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1679
1700
  #
1680
1701
  def list_sources request, options = nil
1681
- raise ArgumentError, "request must be provided" if request.nil?
1702
+ raise ::ArgumentError, "request must be provided" if request.nil?
1682
1703
 
1683
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1p1beta1::ListSourcesRequest
1704
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1p1beta1::ListSourcesRequest
1684
1705
 
1685
1706
  # Converts hash and nil to an options object
1686
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1707
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1687
1708
 
1688
1709
  # Customize the options with defaults
1689
1710
  metadata = @config.rpcs.list_sources.metadata.to_h
1690
1711
 
1691
1712
  # Set x-goog-api-client and x-goog-user-project headers
1692
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1713
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1693
1714
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1694
1715
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
1695
1716
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1707,12 +1728,12 @@ module Google
1707
1728
  retry_policy: @config.retry_policy
1708
1729
 
1709
1730
  @security_center_stub.call_rpc :list_sources, request, options: options do |response, operation|
1710
- response = Gapic::PagedEnumerable.new @security_center_stub, :list_sources, request, response, operation, options
1731
+ response = ::Gapic::PagedEnumerable.new @security_center_stub, :list_sources, request, response, operation, options
1711
1732
  yield response, operation if block_given?
1712
1733
  return response
1713
1734
  end
1714
- rescue GRPC::BadStatus => e
1715
- raise Google::Cloud::Error.from_error(e)
1735
+ rescue ::GRPC::BadStatus => e
1736
+ raise ::Google::Cloud::Error.from_error(e)
1716
1737
  end
1717
1738
 
1718
1739
  ##
@@ -1725,12 +1746,12 @@ module Google
1725
1746
  #
1726
1747
  # @overload run_asset_discovery(request, options = nil)
1727
1748
  # Pass arguments to `run_asset_discovery` via a request object, either of type
1728
- # {Google::Cloud::SecurityCenter::V1p1beta1::RunAssetDiscoveryRequest} or an equivalent Hash.
1749
+ # {::Google::Cloud::SecurityCenter::V1p1beta1::RunAssetDiscoveryRequest} or an equivalent Hash.
1729
1750
  #
1730
- # @param request [Google::Cloud::SecurityCenter::V1p1beta1::RunAssetDiscoveryRequest, Hash]
1751
+ # @param request [::Google::Cloud::SecurityCenter::V1p1beta1::RunAssetDiscoveryRequest, ::Hash]
1731
1752
  # A request object representing the call parameters. Required. To specify no
1732
1753
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1733
- # @param options [Gapic::CallOptions, Hash]
1754
+ # @param options [::Gapic::CallOptions, ::Hash]
1734
1755
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1735
1756
  #
1736
1757
  # @overload run_asset_discovery(parent: nil)
@@ -1738,31 +1759,31 @@ module Google
1738
1759
  # least one keyword argument is required. To specify no parameters, or to keep all
1739
1760
  # the default parameter values, pass an empty Hash as a request object (see above).
1740
1761
  #
1741
- # @param parent [String]
1762
+ # @param parent [::String]
1742
1763
  # Required. Name of the organization to run asset discovery for. Its format
1743
1764
  # is "organizations/[organization_id]".
1744
1765
  #
1745
1766
  # @yield [response, operation] Access the result along with the RPC operation
1746
- # @yieldparam response [Gapic::Operation]
1747
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1767
+ # @yieldparam response [::Gapic::Operation]
1768
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1748
1769
  #
1749
- # @return [Gapic::Operation]
1770
+ # @return [::Gapic::Operation]
1750
1771
  #
1751
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1772
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1752
1773
  #
1753
1774
  def run_asset_discovery request, options = nil
1754
- raise ArgumentError, "request must be provided" if request.nil?
1775
+ raise ::ArgumentError, "request must be provided" if request.nil?
1755
1776
 
1756
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1p1beta1::RunAssetDiscoveryRequest
1777
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1p1beta1::RunAssetDiscoveryRequest
1757
1778
 
1758
1779
  # Converts hash and nil to an options object
1759
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1780
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1760
1781
 
1761
1782
  # Customize the options with defaults
1762
1783
  metadata = @config.rpcs.run_asset_discovery.metadata.to_h
1763
1784
 
1764
1785
  # Set x-goog-api-client and x-goog-user-project headers
1765
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1786
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1766
1787
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1767
1788
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
1768
1789
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1780,12 +1801,12 @@ module Google
1780
1801
  retry_policy: @config.retry_policy
1781
1802
 
1782
1803
  @security_center_stub.call_rpc :run_asset_discovery, request, options: options do |response, operation|
1783
- response = Gapic::Operation.new response, @operations_client, options: options
1804
+ response = ::Gapic::Operation.new response, @operations_client, options: options
1784
1805
  yield response, operation if block_given?
1785
1806
  return response
1786
1807
  end
1787
- rescue GRPC::BadStatus => e
1788
- raise Google::Cloud::Error.from_error(e)
1808
+ rescue ::GRPC::BadStatus => e
1809
+ raise ::Google::Cloud::Error.from_error(e)
1789
1810
  end
1790
1811
 
1791
1812
  ##
@@ -1793,12 +1814,12 @@ module Google
1793
1814
  #
1794
1815
  # @overload set_finding_state(request, options = nil)
1795
1816
  # Pass arguments to `set_finding_state` via a request object, either of type
1796
- # {Google::Cloud::SecurityCenter::V1p1beta1::SetFindingStateRequest} or an equivalent Hash.
1817
+ # {::Google::Cloud::SecurityCenter::V1p1beta1::SetFindingStateRequest} or an equivalent Hash.
1797
1818
  #
1798
- # @param request [Google::Cloud::SecurityCenter::V1p1beta1::SetFindingStateRequest, Hash]
1819
+ # @param request [::Google::Cloud::SecurityCenter::V1p1beta1::SetFindingStateRequest, ::Hash]
1799
1820
  # A request object representing the call parameters. Required. To specify no
1800
1821
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1801
- # @param options [Gapic::CallOptions, Hash]
1822
+ # @param options [::Gapic::CallOptions, ::Hash]
1802
1823
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1803
1824
  #
1804
1825
  # @overload set_finding_state(name: nil, state: nil, start_time: nil)
@@ -1806,37 +1827,37 @@ module Google
1806
1827
  # least one keyword argument is required. To specify no parameters, or to keep all
1807
1828
  # the default parameter values, pass an empty Hash as a request object (see above).
1808
1829
  #
1809
- # @param name [String]
1830
+ # @param name [::String]
1810
1831
  # Required. The relative resource name of the finding. See:
1811
1832
  # https://cloud.google.com/apis/design/resource_names#relative_resource_name
1812
1833
  # Example:
1813
1834
  # "organizations/\\{organization_id}/sources/\\{source_id}/finding/\\{finding_id}".
1814
- # @param state [Google::Cloud::SecurityCenter::V1p1beta1::Finding::State]
1835
+ # @param state [::Google::Cloud::SecurityCenter::V1p1beta1::Finding::State]
1815
1836
  # Required. The desired State of the finding.
1816
- # @param start_time [Google::Protobuf::Timestamp, Hash]
1837
+ # @param start_time [::Google::Protobuf::Timestamp, ::Hash]
1817
1838
  # Required. The time at which the updated state takes effect.
1818
1839
  #
1819
1840
  # @yield [response, operation] Access the result along with the RPC operation
1820
- # @yieldparam response [Google::Cloud::SecurityCenter::V1p1beta1::Finding]
1821
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1841
+ # @yieldparam response [::Google::Cloud::SecurityCenter::V1p1beta1::Finding]
1842
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1822
1843
  #
1823
- # @return [Google::Cloud::SecurityCenter::V1p1beta1::Finding]
1844
+ # @return [::Google::Cloud::SecurityCenter::V1p1beta1::Finding]
1824
1845
  #
1825
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1846
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1826
1847
  #
1827
1848
  def set_finding_state request, options = nil
1828
- raise ArgumentError, "request must be provided" if request.nil?
1849
+ raise ::ArgumentError, "request must be provided" if request.nil?
1829
1850
 
1830
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1p1beta1::SetFindingStateRequest
1851
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1p1beta1::SetFindingStateRequest
1831
1852
 
1832
1853
  # Converts hash and nil to an options object
1833
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1854
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1834
1855
 
1835
1856
  # Customize the options with defaults
1836
1857
  metadata = @config.rpcs.set_finding_state.metadata.to_h
1837
1858
 
1838
1859
  # Set x-goog-api-client and x-goog-user-project headers
1839
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1860
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1840
1861
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1841
1862
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
1842
1863
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1857,8 +1878,8 @@ module Google
1857
1878
  yield response, operation if block_given?
1858
1879
  return response
1859
1880
  end
1860
- rescue GRPC::BadStatus => e
1861
- raise Google::Cloud::Error.from_error(e)
1881
+ rescue ::GRPC::BadStatus => e
1882
+ raise ::Google::Cloud::Error.from_error(e)
1862
1883
  end
1863
1884
 
1864
1885
  ##
@@ -1866,12 +1887,12 @@ module Google
1866
1887
  #
1867
1888
  # @overload set_iam_policy(request, options = nil)
1868
1889
  # Pass arguments to `set_iam_policy` via a request object, either of type
1869
- # {Google::Iam::V1::SetIamPolicyRequest} or an equivalent Hash.
1890
+ # {::Google::Iam::V1::SetIamPolicyRequest} or an equivalent Hash.
1870
1891
  #
1871
- # @param request [Google::Iam::V1::SetIamPolicyRequest, Hash]
1892
+ # @param request [::Google::Iam::V1::SetIamPolicyRequest, ::Hash]
1872
1893
  # A request object representing the call parameters. Required. To specify no
1873
1894
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1874
- # @param options [Gapic::CallOptions, Hash]
1895
+ # @param options [::Gapic::CallOptions, ::Hash]
1875
1896
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1876
1897
  #
1877
1898
  # @overload set_iam_policy(resource: nil, policy: nil)
@@ -1879,36 +1900,36 @@ module Google
1879
1900
  # least one keyword argument is required. To specify no parameters, or to keep all
1880
1901
  # the default parameter values, pass an empty Hash as a request object (see above).
1881
1902
  #
1882
- # @param resource [String]
1903
+ # @param resource [::String]
1883
1904
  # REQUIRED: The resource for which the policy is being specified.
1884
1905
  # See the operation documentation for the appropriate value for this field.
1885
- # @param policy [Google::Iam::V1::Policy, Hash]
1906
+ # @param policy [::Google::Iam::V1::Policy, ::Hash]
1886
1907
  # REQUIRED: The complete policy to be applied to the `resource`. The size of
1887
1908
  # the policy is limited to a few 10s of KB. An empty policy is a
1888
1909
  # valid policy but certain Cloud Platform services (such as Projects)
1889
1910
  # might reject them.
1890
1911
  #
1891
1912
  # @yield [response, operation] Access the result along with the RPC operation
1892
- # @yieldparam response [Google::Iam::V1::Policy]
1893
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1913
+ # @yieldparam response [::Google::Iam::V1::Policy]
1914
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1894
1915
  #
1895
- # @return [Google::Iam::V1::Policy]
1916
+ # @return [::Google::Iam::V1::Policy]
1896
1917
  #
1897
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1918
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1898
1919
  #
1899
1920
  def set_iam_policy request, options = nil
1900
- raise ArgumentError, "request must be provided" if request.nil?
1921
+ raise ::ArgumentError, "request must be provided" if request.nil?
1901
1922
 
1902
- request = Gapic::Protobuf.coerce request, to: Google::Iam::V1::SetIamPolicyRequest
1923
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::SetIamPolicyRequest
1903
1924
 
1904
1925
  # Converts hash and nil to an options object
1905
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1926
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1906
1927
 
1907
1928
  # Customize the options with defaults
1908
1929
  metadata = @config.rpcs.set_iam_policy.metadata.to_h
1909
1930
 
1910
1931
  # Set x-goog-api-client and x-goog-user-project headers
1911
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
1932
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1912
1933
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1913
1934
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
1914
1935
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -1929,8 +1950,8 @@ module Google
1929
1950
  yield response, operation if block_given?
1930
1951
  return response
1931
1952
  end
1932
- rescue GRPC::BadStatus => e
1933
- raise Google::Cloud::Error.from_error(e)
1953
+ rescue ::GRPC::BadStatus => e
1954
+ raise ::Google::Cloud::Error.from_error(e)
1934
1955
  end
1935
1956
 
1936
1957
  ##
@@ -1938,12 +1959,12 @@ module Google
1938
1959
  #
1939
1960
  # @overload test_iam_permissions(request, options = nil)
1940
1961
  # Pass arguments to `test_iam_permissions` via a request object, either of type
1941
- # {Google::Iam::V1::TestIamPermissionsRequest} or an equivalent Hash.
1962
+ # {::Google::Iam::V1::TestIamPermissionsRequest} or an equivalent Hash.
1942
1963
  #
1943
- # @param request [Google::Iam::V1::TestIamPermissionsRequest, Hash]
1964
+ # @param request [::Google::Iam::V1::TestIamPermissionsRequest, ::Hash]
1944
1965
  # A request object representing the call parameters. Required. To specify no
1945
1966
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1946
- # @param options [Gapic::CallOptions, Hash]
1967
+ # @param options [::Gapic::CallOptions, ::Hash]
1947
1968
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1948
1969
  #
1949
1970
  # @overload test_iam_permissions(resource: nil, permissions: nil)
@@ -1951,36 +1972,36 @@ module Google
1951
1972
  # least one keyword argument is required. To specify no parameters, or to keep all
1952
1973
  # the default parameter values, pass an empty Hash as a request object (see above).
1953
1974
  #
1954
- # @param resource [String]
1975
+ # @param resource [::String]
1955
1976
  # REQUIRED: The resource for which the policy detail is being requested.
1956
1977
  # See the operation documentation for the appropriate value for this field.
1957
- # @param permissions [Array<String>]
1978
+ # @param permissions [::Array<::String>]
1958
1979
  # The set of permissions to check for the `resource`. Permissions with
1959
1980
  # wildcards (such as '*' or 'storage.*') are not allowed. For more
1960
1981
  # information see
1961
1982
  # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
1962
1983
  #
1963
1984
  # @yield [response, operation] Access the result along with the RPC operation
1964
- # @yieldparam response [Google::Iam::V1::TestIamPermissionsResponse]
1965
- # @yieldparam operation [GRPC::ActiveCall::Operation]
1985
+ # @yieldparam response [::Google::Iam::V1::TestIamPermissionsResponse]
1986
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1966
1987
  #
1967
- # @return [Google::Iam::V1::TestIamPermissionsResponse]
1988
+ # @return [::Google::Iam::V1::TestIamPermissionsResponse]
1968
1989
  #
1969
- # @raise [Google::Cloud::Error] if the RPC is aborted.
1990
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1970
1991
  #
1971
1992
  def test_iam_permissions request, options = nil
1972
- raise ArgumentError, "request must be provided" if request.nil?
1993
+ raise ::ArgumentError, "request must be provided" if request.nil?
1973
1994
 
1974
- request = Gapic::Protobuf.coerce request, to: Google::Iam::V1::TestIamPermissionsRequest
1995
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Iam::V1::TestIamPermissionsRequest
1975
1996
 
1976
1997
  # Converts hash and nil to an options object
1977
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1998
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1978
1999
 
1979
2000
  # Customize the options with defaults
1980
2001
  metadata = @config.rpcs.test_iam_permissions.metadata.to_h
1981
2002
 
1982
2003
  # Set x-goog-api-client and x-goog-user-project headers
1983
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
2004
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1984
2005
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1985
2006
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
1986
2007
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -2001,8 +2022,8 @@ module Google
2001
2022
  yield response, operation if block_given?
2002
2023
  return response
2003
2024
  end
2004
- rescue GRPC::BadStatus => e
2005
- raise Google::Cloud::Error.from_error(e)
2025
+ rescue ::GRPC::BadStatus => e
2026
+ raise ::Google::Cloud::Error.from_error(e)
2006
2027
  end
2007
2028
 
2008
2029
  ##
@@ -2011,12 +2032,12 @@ module Google
2011
2032
  #
2012
2033
  # @overload update_finding(request, options = nil)
2013
2034
  # Pass arguments to `update_finding` via a request object, either of type
2014
- # {Google::Cloud::SecurityCenter::V1p1beta1::UpdateFindingRequest} or an equivalent Hash.
2035
+ # {::Google::Cloud::SecurityCenter::V1p1beta1::UpdateFindingRequest} or an equivalent Hash.
2015
2036
  #
2016
- # @param request [Google::Cloud::SecurityCenter::V1p1beta1::UpdateFindingRequest, Hash]
2037
+ # @param request [::Google::Cloud::SecurityCenter::V1p1beta1::UpdateFindingRequest, ::Hash]
2017
2038
  # A request object representing the call parameters. Required. To specify no
2018
2039
  # parameters, or to keep all the default parameter values, pass an empty Hash.
2019
- # @param options [Gapic::CallOptions, Hash]
2040
+ # @param options [::Gapic::CallOptions, ::Hash]
2020
2041
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2021
2042
  #
2022
2043
  # @overload update_finding(finding: nil, update_mask: nil)
@@ -2024,14 +2045,14 @@ module Google
2024
2045
  # least one keyword argument is required. To specify no parameters, or to keep all
2025
2046
  # the default parameter values, pass an empty Hash as a request object (see above).
2026
2047
  #
2027
- # @param finding [Google::Cloud::SecurityCenter::V1p1beta1::Finding, Hash]
2048
+ # @param finding [::Google::Cloud::SecurityCenter::V1p1beta1::Finding, ::Hash]
2028
2049
  # Required. The finding resource to update or create if it does not already
2029
2050
  # exist. parent, security_marks, and update_time will be ignored.
2030
2051
  #
2031
2052
  # In the case of creation, the finding id portion of the name must be
2032
2053
  # alphanumeric and less than or equal to 32 characters and greater than 0
2033
2054
  # characters in length.
2034
- # @param update_mask [Google::Protobuf::FieldMask, Hash]
2055
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
2035
2056
  # The FieldMask to use when updating the finding resource. This field should
2036
2057
  # not be specified when creating a finding.
2037
2058
  #
@@ -2041,26 +2062,26 @@ module Google
2041
2062
  # mask.
2042
2063
  #
2043
2064
  # @yield [response, operation] Access the result along with the RPC operation
2044
- # @yieldparam response [Google::Cloud::SecurityCenter::V1p1beta1::Finding]
2045
- # @yieldparam operation [GRPC::ActiveCall::Operation]
2065
+ # @yieldparam response [::Google::Cloud::SecurityCenter::V1p1beta1::Finding]
2066
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2046
2067
  #
2047
- # @return [Google::Cloud::SecurityCenter::V1p1beta1::Finding]
2068
+ # @return [::Google::Cloud::SecurityCenter::V1p1beta1::Finding]
2048
2069
  #
2049
- # @raise [Google::Cloud::Error] if the RPC is aborted.
2070
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2050
2071
  #
2051
2072
  def update_finding request, options = nil
2052
- raise ArgumentError, "request must be provided" if request.nil?
2073
+ raise ::ArgumentError, "request must be provided" if request.nil?
2053
2074
 
2054
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1p1beta1::UpdateFindingRequest
2075
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1p1beta1::UpdateFindingRequest
2055
2076
 
2056
2077
  # Converts hash and nil to an options object
2057
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2078
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2058
2079
 
2059
2080
  # Customize the options with defaults
2060
2081
  metadata = @config.rpcs.update_finding.metadata.to_h
2061
2082
 
2062
2083
  # Set x-goog-api-client and x-goog-user-project headers
2063
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
2084
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2064
2085
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2065
2086
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
2066
2087
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -2081,8 +2102,8 @@ module Google
2081
2102
  yield response, operation if block_given?
2082
2103
  return response
2083
2104
  end
2084
- rescue GRPC::BadStatus => e
2085
- raise Google::Cloud::Error.from_error(e)
2105
+ rescue ::GRPC::BadStatus => e
2106
+ raise ::Google::Cloud::Error.from_error(e)
2086
2107
  end
2087
2108
 
2088
2109
  ##
@@ -2090,12 +2111,12 @@ module Google
2090
2111
  #
2091
2112
  # @overload update_notification_config(request, options = nil)
2092
2113
  # Pass arguments to `update_notification_config` via a request object, either of type
2093
- # {Google::Cloud::SecurityCenter::V1p1beta1::UpdateNotificationConfigRequest} or an equivalent Hash.
2114
+ # {::Google::Cloud::SecurityCenter::V1p1beta1::UpdateNotificationConfigRequest} or an equivalent Hash.
2094
2115
  #
2095
- # @param request [Google::Cloud::SecurityCenter::V1p1beta1::UpdateNotificationConfigRequest, Hash]
2116
+ # @param request [::Google::Cloud::SecurityCenter::V1p1beta1::UpdateNotificationConfigRequest, ::Hash]
2096
2117
  # A request object representing the call parameters. Required. To specify no
2097
2118
  # parameters, or to keep all the default parameter values, pass an empty Hash.
2098
- # @param options [Gapic::CallOptions, Hash]
2119
+ # @param options [::Gapic::CallOptions, ::Hash]
2099
2120
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2100
2121
  #
2101
2122
  # @overload update_notification_config(notification_config: nil, update_mask: nil)
@@ -2103,34 +2124,34 @@ module Google
2103
2124
  # least one keyword argument is required. To specify no parameters, or to keep all
2104
2125
  # the default parameter values, pass an empty Hash as a request object (see above).
2105
2126
  #
2106
- # @param notification_config [Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig, Hash]
2127
+ # @param notification_config [::Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig, ::Hash]
2107
2128
  # Required. The notification config to update.
2108
- # @param update_mask [Google::Protobuf::FieldMask, Hash]
2129
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
2109
2130
  # The FieldMask to use when updating the notification config.
2110
2131
  #
2111
2132
  # If empty all mutable fields will be updated.
2112
2133
  #
2113
2134
  # @yield [response, operation] Access the result along with the RPC operation
2114
- # @yieldparam response [Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig]
2115
- # @yieldparam operation [GRPC::ActiveCall::Operation]
2135
+ # @yieldparam response [::Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig]
2136
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2116
2137
  #
2117
- # @return [Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig]
2138
+ # @return [::Google::Cloud::SecurityCenter::V1p1beta1::NotificationConfig]
2118
2139
  #
2119
- # @raise [Google::Cloud::Error] if the RPC is aborted.
2140
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2120
2141
  #
2121
2142
  def update_notification_config request, options = nil
2122
- raise ArgumentError, "request must be provided" if request.nil?
2143
+ raise ::ArgumentError, "request must be provided" if request.nil?
2123
2144
 
2124
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1p1beta1::UpdateNotificationConfigRequest
2145
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1p1beta1::UpdateNotificationConfigRequest
2125
2146
 
2126
2147
  # Converts hash and nil to an options object
2127
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2148
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2128
2149
 
2129
2150
  # Customize the options with defaults
2130
2151
  metadata = @config.rpcs.update_notification_config.metadata.to_h
2131
2152
 
2132
2153
  # Set x-goog-api-client and x-goog-user-project headers
2133
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
2154
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2134
2155
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2135
2156
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
2136
2157
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -2151,8 +2172,8 @@ module Google
2151
2172
  yield response, operation if block_given?
2152
2173
  return response
2153
2174
  end
2154
- rescue GRPC::BadStatus => e
2155
- raise Google::Cloud::Error.from_error(e)
2175
+ rescue ::GRPC::BadStatus => e
2176
+ raise ::Google::Cloud::Error.from_error(e)
2156
2177
  end
2157
2178
 
2158
2179
  ##
@@ -2160,12 +2181,12 @@ module Google
2160
2181
  #
2161
2182
  # @overload update_organization_settings(request, options = nil)
2162
2183
  # Pass arguments to `update_organization_settings` via a request object, either of type
2163
- # {Google::Cloud::SecurityCenter::V1p1beta1::UpdateOrganizationSettingsRequest} or an equivalent Hash.
2184
+ # {::Google::Cloud::SecurityCenter::V1p1beta1::UpdateOrganizationSettingsRequest} or an equivalent Hash.
2164
2185
  #
2165
- # @param request [Google::Cloud::SecurityCenter::V1p1beta1::UpdateOrganizationSettingsRequest, Hash]
2186
+ # @param request [::Google::Cloud::SecurityCenter::V1p1beta1::UpdateOrganizationSettingsRequest, ::Hash]
2166
2187
  # A request object representing the call parameters. Required. To specify no
2167
2188
  # parameters, or to keep all the default parameter values, pass an empty Hash.
2168
- # @param options [Gapic::CallOptions, Hash]
2189
+ # @param options [::Gapic::CallOptions, ::Hash]
2169
2190
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2170
2191
  #
2171
2192
  # @overload update_organization_settings(organization_settings: nil, update_mask: nil)
@@ -2173,34 +2194,34 @@ module Google
2173
2194
  # least one keyword argument is required. To specify no parameters, or to keep all
2174
2195
  # the default parameter values, pass an empty Hash as a request object (see above).
2175
2196
  #
2176
- # @param organization_settings [Google::Cloud::SecurityCenter::V1p1beta1::OrganizationSettings, Hash]
2197
+ # @param organization_settings [::Google::Cloud::SecurityCenter::V1p1beta1::OrganizationSettings, ::Hash]
2177
2198
  # Required. The organization settings resource to update.
2178
- # @param update_mask [Google::Protobuf::FieldMask, Hash]
2199
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
2179
2200
  # The FieldMask to use when updating the settings resource.
2180
2201
  #
2181
2202
  # If empty all mutable fields will be updated.
2182
2203
  #
2183
2204
  # @yield [response, operation] Access the result along with the RPC operation
2184
- # @yieldparam response [Google::Cloud::SecurityCenter::V1p1beta1::OrganizationSettings]
2185
- # @yieldparam operation [GRPC::ActiveCall::Operation]
2205
+ # @yieldparam response [::Google::Cloud::SecurityCenter::V1p1beta1::OrganizationSettings]
2206
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2186
2207
  #
2187
- # @return [Google::Cloud::SecurityCenter::V1p1beta1::OrganizationSettings]
2208
+ # @return [::Google::Cloud::SecurityCenter::V1p1beta1::OrganizationSettings]
2188
2209
  #
2189
- # @raise [Google::Cloud::Error] if the RPC is aborted.
2210
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2190
2211
  #
2191
2212
  def update_organization_settings request, options = nil
2192
- raise ArgumentError, "request must be provided" if request.nil?
2213
+ raise ::ArgumentError, "request must be provided" if request.nil?
2193
2214
 
2194
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1p1beta1::UpdateOrganizationSettingsRequest
2215
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1p1beta1::UpdateOrganizationSettingsRequest
2195
2216
 
2196
2217
  # Converts hash and nil to an options object
2197
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2218
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2198
2219
 
2199
2220
  # Customize the options with defaults
2200
2221
  metadata = @config.rpcs.update_organization_settings.metadata.to_h
2201
2222
 
2202
2223
  # Set x-goog-api-client and x-goog-user-project headers
2203
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
2224
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2204
2225
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2205
2226
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
2206
2227
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -2221,8 +2242,8 @@ module Google
2221
2242
  yield response, operation if block_given?
2222
2243
  return response
2223
2244
  end
2224
- rescue GRPC::BadStatus => e
2225
- raise Google::Cloud::Error.from_error(e)
2245
+ rescue ::GRPC::BadStatus => e
2246
+ raise ::Google::Cloud::Error.from_error(e)
2226
2247
  end
2227
2248
 
2228
2249
  ##
@@ -2230,12 +2251,12 @@ module Google
2230
2251
  #
2231
2252
  # @overload update_source(request, options = nil)
2232
2253
  # Pass arguments to `update_source` via a request object, either of type
2233
- # {Google::Cloud::SecurityCenter::V1p1beta1::UpdateSourceRequest} or an equivalent Hash.
2254
+ # {::Google::Cloud::SecurityCenter::V1p1beta1::UpdateSourceRequest} or an equivalent Hash.
2234
2255
  #
2235
- # @param request [Google::Cloud::SecurityCenter::V1p1beta1::UpdateSourceRequest, Hash]
2256
+ # @param request [::Google::Cloud::SecurityCenter::V1p1beta1::UpdateSourceRequest, ::Hash]
2236
2257
  # A request object representing the call parameters. Required. To specify no
2237
2258
  # parameters, or to keep all the default parameter values, pass an empty Hash.
2238
- # @param options [Gapic::CallOptions, Hash]
2259
+ # @param options [::Gapic::CallOptions, ::Hash]
2239
2260
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2240
2261
  #
2241
2262
  # @overload update_source(source: nil, update_mask: nil)
@@ -2243,34 +2264,34 @@ module Google
2243
2264
  # least one keyword argument is required. To specify no parameters, or to keep all
2244
2265
  # the default parameter values, pass an empty Hash as a request object (see above).
2245
2266
  #
2246
- # @param source [Google::Cloud::SecurityCenter::V1p1beta1::Source, Hash]
2267
+ # @param source [::Google::Cloud::SecurityCenter::V1p1beta1::Source, ::Hash]
2247
2268
  # Required. The source resource to update.
2248
- # @param update_mask [Google::Protobuf::FieldMask, Hash]
2269
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
2249
2270
  # The FieldMask to use when updating the source resource.
2250
2271
  #
2251
2272
  # If empty all mutable fields will be updated.
2252
2273
  #
2253
2274
  # @yield [response, operation] Access the result along with the RPC operation
2254
- # @yieldparam response [Google::Cloud::SecurityCenter::V1p1beta1::Source]
2255
- # @yieldparam operation [GRPC::ActiveCall::Operation]
2275
+ # @yieldparam response [::Google::Cloud::SecurityCenter::V1p1beta1::Source]
2276
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2256
2277
  #
2257
- # @return [Google::Cloud::SecurityCenter::V1p1beta1::Source]
2278
+ # @return [::Google::Cloud::SecurityCenter::V1p1beta1::Source]
2258
2279
  #
2259
- # @raise [Google::Cloud::Error] if the RPC is aborted.
2280
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2260
2281
  #
2261
2282
  def update_source request, options = nil
2262
- raise ArgumentError, "request must be provided" if request.nil?
2283
+ raise ::ArgumentError, "request must be provided" if request.nil?
2263
2284
 
2264
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1p1beta1::UpdateSourceRequest
2285
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1p1beta1::UpdateSourceRequest
2265
2286
 
2266
2287
  # Converts hash and nil to an options object
2267
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2288
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2268
2289
 
2269
2290
  # Customize the options with defaults
2270
2291
  metadata = @config.rpcs.update_source.metadata.to_h
2271
2292
 
2272
2293
  # Set x-goog-api-client and x-goog-user-project headers
2273
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
2294
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2274
2295
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2275
2296
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
2276
2297
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -2291,8 +2312,8 @@ module Google
2291
2312
  yield response, operation if block_given?
2292
2313
  return response
2293
2314
  end
2294
- rescue GRPC::BadStatus => e
2295
- raise Google::Cloud::Error.from_error(e)
2315
+ rescue ::GRPC::BadStatus => e
2316
+ raise ::Google::Cloud::Error.from_error(e)
2296
2317
  end
2297
2318
 
2298
2319
  ##
@@ -2300,12 +2321,12 @@ module Google
2300
2321
  #
2301
2322
  # @overload update_security_marks(request, options = nil)
2302
2323
  # Pass arguments to `update_security_marks` via a request object, either of type
2303
- # {Google::Cloud::SecurityCenter::V1p1beta1::UpdateSecurityMarksRequest} or an equivalent Hash.
2324
+ # {::Google::Cloud::SecurityCenter::V1p1beta1::UpdateSecurityMarksRequest} or an equivalent Hash.
2304
2325
  #
2305
- # @param request [Google::Cloud::SecurityCenter::V1p1beta1::UpdateSecurityMarksRequest, Hash]
2326
+ # @param request [::Google::Cloud::SecurityCenter::V1p1beta1::UpdateSecurityMarksRequest, ::Hash]
2306
2327
  # A request object representing the call parameters. Required. To specify no
2307
2328
  # parameters, or to keep all the default parameter values, pass an empty Hash.
2308
- # @param options [Gapic::CallOptions, Hash]
2329
+ # @param options [::Gapic::CallOptions, ::Hash]
2309
2330
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2310
2331
  #
2311
2332
  # @overload update_security_marks(security_marks: nil, update_mask: nil, start_time: nil)
@@ -2313,40 +2334,40 @@ module Google
2313
2334
  # least one keyword argument is required. To specify no parameters, or to keep all
2314
2335
  # the default parameter values, pass an empty Hash as a request object (see above).
2315
2336
  #
2316
- # @param security_marks [Google::Cloud::SecurityCenter::V1p1beta1::SecurityMarks, Hash]
2337
+ # @param security_marks [::Google::Cloud::SecurityCenter::V1p1beta1::SecurityMarks, ::Hash]
2317
2338
  # Required. The security marks resource to update.
2318
- # @param update_mask [Google::Protobuf::FieldMask, Hash]
2339
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
2319
2340
  # The FieldMask to use when updating the security marks resource.
2320
2341
  #
2321
2342
  # The field mask must not contain duplicate fields.
2322
2343
  # If empty or set to "marks", all marks will be replaced. Individual
2323
2344
  # marks can be updated using "marks.<mark_key>".
2324
- # @param start_time [Google::Protobuf::Timestamp, Hash]
2345
+ # @param start_time [::Google::Protobuf::Timestamp, ::Hash]
2325
2346
  # The time at which the updated SecurityMarks take effect.
2326
2347
  # If not set uses current server time. Updates will be applied to the
2327
2348
  # SecurityMarks that are active immediately preceding this time.
2328
2349
  #
2329
2350
  # @yield [response, operation] Access the result along with the RPC operation
2330
- # @yieldparam response [Google::Cloud::SecurityCenter::V1p1beta1::SecurityMarks]
2331
- # @yieldparam operation [GRPC::ActiveCall::Operation]
2351
+ # @yieldparam response [::Google::Cloud::SecurityCenter::V1p1beta1::SecurityMarks]
2352
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2332
2353
  #
2333
- # @return [Google::Cloud::SecurityCenter::V1p1beta1::SecurityMarks]
2354
+ # @return [::Google::Cloud::SecurityCenter::V1p1beta1::SecurityMarks]
2334
2355
  #
2335
- # @raise [Google::Cloud::Error] if the RPC is aborted.
2356
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2336
2357
  #
2337
2358
  def update_security_marks request, options = nil
2338
- raise ArgumentError, "request must be provided" if request.nil?
2359
+ raise ::ArgumentError, "request must be provided" if request.nil?
2339
2360
 
2340
- request = Gapic::Protobuf.coerce request, to: Google::Cloud::SecurityCenter::V1p1beta1::UpdateSecurityMarksRequest
2361
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::SecurityCenter::V1p1beta1::UpdateSecurityMarksRequest
2341
2362
 
2342
2363
  # Converts hash and nil to an options object
2343
- options = Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2364
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2344
2365
 
2345
2366
  # Customize the options with defaults
2346
2367
  metadata = @config.rpcs.update_security_marks.metadata.to_h
2347
2368
 
2348
2369
  # Set x-goog-api-client and x-goog-user-project headers
2349
- metadata[:"x-goog-api-client"] ||= Gapic::Headers.x_goog_api_client \
2370
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2350
2371
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2351
2372
  gapic_version: ::Google::Cloud::SecurityCenter::V1p1beta1::VERSION
2352
2373
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
@@ -2367,8 +2388,8 @@ module Google
2367
2388
  yield response, operation if block_given?
2368
2389
  return response
2369
2390
  end
2370
- rescue GRPC::BadStatus => e
2371
- raise Google::Cloud::Error.from_error(e)
2391
+ rescue ::GRPC::BadStatus => e
2392
+ raise ::Google::Cloud::Error.from_error(e)
2372
2393
  end
2373
2394
 
2374
2395
  ##
@@ -2378,7 +2399,7 @@ module Google
2378
2399
  # providing control over timeouts, retry behavior, logging, transport
2379
2400
  # parameters, and other low-level controls. Certain parameters can also be
2380
2401
  # applied individually to specific RPCs. See
2381
- # {Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client::Configuration::Rpcs}
2402
+ # {::Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client::Configuration::Rpcs}
2382
2403
  # for a list of RPCs that can be configured independently.
2383
2404
  #
2384
2405
  # Configuration can be applied globally to all clients, or to a single client
@@ -2389,22 +2410,22 @@ module Google
2389
2410
  # To modify the global config, setting the timeout for create_source
2390
2411
  # to 20 seconds, and all remaining timeouts to 10 seconds:
2391
2412
  #
2392
- # Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.configure do |config|
2393
- # config.timeout = 10_000
2394
- # config.rpcs.create_source.timeout = 20_000
2413
+ # ::Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.configure do |config|
2414
+ # config.timeout = 10.0
2415
+ # config.rpcs.create_source.timeout = 20.0
2395
2416
  # end
2396
2417
  #
2397
2418
  # To apply the above configuration only to a new client:
2398
2419
  #
2399
- # client = Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new do |config|
2400
- # config.timeout = 10_000
2401
- # config.rpcs.create_source.timeout = 20_000
2420
+ # client = ::Google::Cloud::SecurityCenter::V1p1beta1::SecurityCenter::Client.new do |config|
2421
+ # config.timeout = 10.0
2422
+ # config.rpcs.create_source.timeout = 20.0
2402
2423
  # end
2403
2424
  #
2404
2425
  # @!attribute [rw] endpoint
2405
2426
  # The hostname or hostname:port of the service endpoint.
2406
2427
  # Defaults to `"securitycenter.googleapis.com"`.
2407
- # @return [String]
2428
+ # @return [::String]
2408
2429
  # @!attribute [rw] credentials
2409
2430
  # Credentials to send with calls. You may provide any of the following types:
2410
2431
  # * (`String`) The path to a service account key file in JSON format
@@ -2416,29 +2437,29 @@ module Google
2416
2437
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
2417
2438
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
2418
2439
  # * (`nil`) indicating no credentials
2419
- # @return [Object]
2440
+ # @return [::Object]
2420
2441
  # @!attribute [rw] scope
2421
2442
  # The OAuth scopes
2422
- # @return [Array<String>]
2443
+ # @return [::Array<::String>]
2423
2444
  # @!attribute [rw] lib_name
2424
2445
  # The library name as recorded in instrumentation and logging
2425
- # @return [String]
2446
+ # @return [::String]
2426
2447
  # @!attribute [rw] lib_version
2427
2448
  # The library version as recorded in instrumentation and logging
2428
- # @return [String]
2449
+ # @return [::String]
2429
2450
  # @!attribute [rw] channel_args
2430
2451
  # Extra parameters passed to the gRPC channel. Note: this is ignored if a
2431
2452
  # `GRPC::Core::Channel` object is provided as the credential.
2432
- # @return [Hash]
2453
+ # @return [::Hash]
2433
2454
  # @!attribute [rw] interceptors
2434
2455
  # An array of interceptors that are run before calls are executed.
2435
- # @return [Array<GRPC::ClientInterceptor>]
2456
+ # @return [::Array<::GRPC::ClientInterceptor>]
2436
2457
  # @!attribute [rw] timeout
2437
- # The call timeout in milliseconds.
2438
- # @return [Numeric]
2458
+ # The call timeout in seconds.
2459
+ # @return [::Numeric]
2439
2460
  # @!attribute [rw] metadata
2440
2461
  # Additional gRPC headers to be sent with the call.
2441
- # @return [Hash{Symbol=>String}]
2462
+ # @return [::Hash{::Symbol=>::String}]
2442
2463
  # @!attribute [rw] retry_policy
2443
2464
  # The retry policy. The value is a hash with the following keys:
2444
2465
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
@@ -2446,25 +2467,29 @@ module Google
2446
2467
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
2447
2468
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
2448
2469
  # trigger a retry.
2449
- # @return [Hash]
2470
+ # @return [::Hash]
2471
+ # @!attribute [rw] quota_project
2472
+ # A separate project against which to charge quota.
2473
+ # @return [::String]
2450
2474
  #
2451
2475
  class Configuration
2452
- extend Gapic::Config
2476
+ extend ::Gapic::Config
2453
2477
 
2454
- config_attr :endpoint, "securitycenter.googleapis.com", String
2455
- config_attr :credentials, nil do |value|
2478
+ config_attr :endpoint, "securitycenter.googleapis.com", ::String
2479
+ config_attr :credentials, nil do |value|
2456
2480
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
2457
2481
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
2458
2482
  allowed.any? { |klass| klass === value }
2459
2483
  end
2460
- config_attr :scope, nil, String, Array, nil
2461
- config_attr :lib_name, nil, String, nil
2462
- config_attr :lib_version, nil, String, nil
2463
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, Hash, nil)
2464
- config_attr :interceptors, nil, Array, nil
2465
- config_attr :timeout, nil, Numeric, nil
2466
- config_attr :metadata, nil, Hash, nil
2467
- config_attr :retry_policy, nil, Hash, Proc, nil
2484
+ config_attr :scope, nil, ::String, ::Array, nil
2485
+ config_attr :lib_name, nil, ::String, nil
2486
+ config_attr :lib_version, nil, ::String, nil
2487
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
2488
+ config_attr :interceptors, nil, ::Array, nil
2489
+ config_attr :timeout, nil, ::Numeric, nil
2490
+ config_attr :metadata, nil, ::Hash, nil
2491
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
2492
+ config_attr :quota_project, nil, ::String, nil
2468
2493
 
2469
2494
  # @private
2470
2495
  def initialize parent_config = nil
@@ -2480,7 +2505,7 @@ module Google
2480
2505
  def rpcs
2481
2506
  @rpcs ||= begin
2482
2507
  parent_rpcs = nil
2483
- parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to? :rpcs
2508
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
2484
2509
  Rpcs.new parent_rpcs
2485
2510
  end
2486
2511
  end
@@ -2505,168 +2530,168 @@ module Google
2505
2530
  class Rpcs
2506
2531
  ##
2507
2532
  # RPC-specific configuration for `create_source`
2508
- # @return [Gapic::Config::Method]
2533
+ # @return [::Gapic::Config::Method]
2509
2534
  #
2510
2535
  attr_reader :create_source
2511
2536
  ##
2512
2537
  # RPC-specific configuration for `create_finding`
2513
- # @return [Gapic::Config::Method]
2538
+ # @return [::Gapic::Config::Method]
2514
2539
  #
2515
2540
  attr_reader :create_finding
2516
2541
  ##
2517
2542
  # RPC-specific configuration for `create_notification_config`
2518
- # @return [Gapic::Config::Method]
2543
+ # @return [::Gapic::Config::Method]
2519
2544
  #
2520
2545
  attr_reader :create_notification_config
2521
2546
  ##
2522
2547
  # RPC-specific configuration for `delete_notification_config`
2523
- # @return [Gapic::Config::Method]
2548
+ # @return [::Gapic::Config::Method]
2524
2549
  #
2525
2550
  attr_reader :delete_notification_config
2526
2551
  ##
2527
2552
  # RPC-specific configuration for `get_iam_policy`
2528
- # @return [Gapic::Config::Method]
2553
+ # @return [::Gapic::Config::Method]
2529
2554
  #
2530
2555
  attr_reader :get_iam_policy
2531
2556
  ##
2532
2557
  # RPC-specific configuration for `get_notification_config`
2533
- # @return [Gapic::Config::Method]
2558
+ # @return [::Gapic::Config::Method]
2534
2559
  #
2535
2560
  attr_reader :get_notification_config
2536
2561
  ##
2537
2562
  # RPC-specific configuration for `get_organization_settings`
2538
- # @return [Gapic::Config::Method]
2563
+ # @return [::Gapic::Config::Method]
2539
2564
  #
2540
2565
  attr_reader :get_organization_settings
2541
2566
  ##
2542
2567
  # RPC-specific configuration for `get_source`
2543
- # @return [Gapic::Config::Method]
2568
+ # @return [::Gapic::Config::Method]
2544
2569
  #
2545
2570
  attr_reader :get_source
2546
2571
  ##
2547
2572
  # RPC-specific configuration for `group_assets`
2548
- # @return [Gapic::Config::Method]
2573
+ # @return [::Gapic::Config::Method]
2549
2574
  #
2550
2575
  attr_reader :group_assets
2551
2576
  ##
2552
2577
  # RPC-specific configuration for `group_findings`
2553
- # @return [Gapic::Config::Method]
2578
+ # @return [::Gapic::Config::Method]
2554
2579
  #
2555
2580
  attr_reader :group_findings
2556
2581
  ##
2557
2582
  # RPC-specific configuration for `list_assets`
2558
- # @return [Gapic::Config::Method]
2583
+ # @return [::Gapic::Config::Method]
2559
2584
  #
2560
2585
  attr_reader :list_assets
2561
2586
  ##
2562
2587
  # RPC-specific configuration for `list_findings`
2563
- # @return [Gapic::Config::Method]
2588
+ # @return [::Gapic::Config::Method]
2564
2589
  #
2565
2590
  attr_reader :list_findings
2566
2591
  ##
2567
2592
  # RPC-specific configuration for `list_notification_configs`
2568
- # @return [Gapic::Config::Method]
2593
+ # @return [::Gapic::Config::Method]
2569
2594
  #
2570
2595
  attr_reader :list_notification_configs
2571
2596
  ##
2572
2597
  # RPC-specific configuration for `list_sources`
2573
- # @return [Gapic::Config::Method]
2598
+ # @return [::Gapic::Config::Method]
2574
2599
  #
2575
2600
  attr_reader :list_sources
2576
2601
  ##
2577
2602
  # RPC-specific configuration for `run_asset_discovery`
2578
- # @return [Gapic::Config::Method]
2603
+ # @return [::Gapic::Config::Method]
2579
2604
  #
2580
2605
  attr_reader :run_asset_discovery
2581
2606
  ##
2582
2607
  # RPC-specific configuration for `set_finding_state`
2583
- # @return [Gapic::Config::Method]
2608
+ # @return [::Gapic::Config::Method]
2584
2609
  #
2585
2610
  attr_reader :set_finding_state
2586
2611
  ##
2587
2612
  # RPC-specific configuration for `set_iam_policy`
2588
- # @return [Gapic::Config::Method]
2613
+ # @return [::Gapic::Config::Method]
2589
2614
  #
2590
2615
  attr_reader :set_iam_policy
2591
2616
  ##
2592
2617
  # RPC-specific configuration for `test_iam_permissions`
2593
- # @return [Gapic::Config::Method]
2618
+ # @return [::Gapic::Config::Method]
2594
2619
  #
2595
2620
  attr_reader :test_iam_permissions
2596
2621
  ##
2597
2622
  # RPC-specific configuration for `update_finding`
2598
- # @return [Gapic::Config::Method]
2623
+ # @return [::Gapic::Config::Method]
2599
2624
  #
2600
2625
  attr_reader :update_finding
2601
2626
  ##
2602
2627
  # RPC-specific configuration for `update_notification_config`
2603
- # @return [Gapic::Config::Method]
2628
+ # @return [::Gapic::Config::Method]
2604
2629
  #
2605
2630
  attr_reader :update_notification_config
2606
2631
  ##
2607
2632
  # RPC-specific configuration for `update_organization_settings`
2608
- # @return [Gapic::Config::Method]
2633
+ # @return [::Gapic::Config::Method]
2609
2634
  #
2610
2635
  attr_reader :update_organization_settings
2611
2636
  ##
2612
2637
  # RPC-specific configuration for `update_source`
2613
- # @return [Gapic::Config::Method]
2638
+ # @return [::Gapic::Config::Method]
2614
2639
  #
2615
2640
  attr_reader :update_source
2616
2641
  ##
2617
2642
  # RPC-specific configuration for `update_security_marks`
2618
- # @return [Gapic::Config::Method]
2643
+ # @return [::Gapic::Config::Method]
2619
2644
  #
2620
2645
  attr_reader :update_security_marks
2621
2646
 
2622
2647
  # @private
2623
2648
  def initialize parent_rpcs = nil
2624
2649
  create_source_config = parent_rpcs&.create_source if parent_rpcs&.respond_to? :create_source
2625
- @create_source = Gapic::Config::Method.new create_source_config
2650
+ @create_source = ::Gapic::Config::Method.new create_source_config
2626
2651
  create_finding_config = parent_rpcs&.create_finding if parent_rpcs&.respond_to? :create_finding
2627
- @create_finding = Gapic::Config::Method.new create_finding_config
2652
+ @create_finding = ::Gapic::Config::Method.new create_finding_config
2628
2653
  create_notification_config_config = parent_rpcs&.create_notification_config if parent_rpcs&.respond_to? :create_notification_config
2629
- @create_notification_config = Gapic::Config::Method.new create_notification_config_config
2654
+ @create_notification_config = ::Gapic::Config::Method.new create_notification_config_config
2630
2655
  delete_notification_config_config = parent_rpcs&.delete_notification_config if parent_rpcs&.respond_to? :delete_notification_config
2631
- @delete_notification_config = Gapic::Config::Method.new delete_notification_config_config
2656
+ @delete_notification_config = ::Gapic::Config::Method.new delete_notification_config_config
2632
2657
  get_iam_policy_config = parent_rpcs&.get_iam_policy if parent_rpcs&.respond_to? :get_iam_policy
2633
- @get_iam_policy = Gapic::Config::Method.new get_iam_policy_config
2658
+ @get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
2634
2659
  get_notification_config_config = parent_rpcs&.get_notification_config if parent_rpcs&.respond_to? :get_notification_config
2635
- @get_notification_config = Gapic::Config::Method.new get_notification_config_config
2660
+ @get_notification_config = ::Gapic::Config::Method.new get_notification_config_config
2636
2661
  get_organization_settings_config = parent_rpcs&.get_organization_settings if parent_rpcs&.respond_to? :get_organization_settings
2637
- @get_organization_settings = Gapic::Config::Method.new get_organization_settings_config
2662
+ @get_organization_settings = ::Gapic::Config::Method.new get_organization_settings_config
2638
2663
  get_source_config = parent_rpcs&.get_source if parent_rpcs&.respond_to? :get_source
2639
- @get_source = Gapic::Config::Method.new get_source_config
2664
+ @get_source = ::Gapic::Config::Method.new get_source_config
2640
2665
  group_assets_config = parent_rpcs&.group_assets if parent_rpcs&.respond_to? :group_assets
2641
- @group_assets = Gapic::Config::Method.new group_assets_config
2666
+ @group_assets = ::Gapic::Config::Method.new group_assets_config
2642
2667
  group_findings_config = parent_rpcs&.group_findings if parent_rpcs&.respond_to? :group_findings
2643
- @group_findings = Gapic::Config::Method.new group_findings_config
2668
+ @group_findings = ::Gapic::Config::Method.new group_findings_config
2644
2669
  list_assets_config = parent_rpcs&.list_assets if parent_rpcs&.respond_to? :list_assets
2645
- @list_assets = Gapic::Config::Method.new list_assets_config
2670
+ @list_assets = ::Gapic::Config::Method.new list_assets_config
2646
2671
  list_findings_config = parent_rpcs&.list_findings if parent_rpcs&.respond_to? :list_findings
2647
- @list_findings = Gapic::Config::Method.new list_findings_config
2672
+ @list_findings = ::Gapic::Config::Method.new list_findings_config
2648
2673
  list_notification_configs_config = parent_rpcs&.list_notification_configs if parent_rpcs&.respond_to? :list_notification_configs
2649
- @list_notification_configs = Gapic::Config::Method.new list_notification_configs_config
2674
+ @list_notification_configs = ::Gapic::Config::Method.new list_notification_configs_config
2650
2675
  list_sources_config = parent_rpcs&.list_sources if parent_rpcs&.respond_to? :list_sources
2651
- @list_sources = Gapic::Config::Method.new list_sources_config
2676
+ @list_sources = ::Gapic::Config::Method.new list_sources_config
2652
2677
  run_asset_discovery_config = parent_rpcs&.run_asset_discovery if parent_rpcs&.respond_to? :run_asset_discovery
2653
- @run_asset_discovery = Gapic::Config::Method.new run_asset_discovery_config
2678
+ @run_asset_discovery = ::Gapic::Config::Method.new run_asset_discovery_config
2654
2679
  set_finding_state_config = parent_rpcs&.set_finding_state if parent_rpcs&.respond_to? :set_finding_state
2655
- @set_finding_state = Gapic::Config::Method.new set_finding_state_config
2680
+ @set_finding_state = ::Gapic::Config::Method.new set_finding_state_config
2656
2681
  set_iam_policy_config = parent_rpcs&.set_iam_policy if parent_rpcs&.respond_to? :set_iam_policy
2657
- @set_iam_policy = Gapic::Config::Method.new set_iam_policy_config
2682
+ @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
2658
2683
  test_iam_permissions_config = parent_rpcs&.test_iam_permissions if parent_rpcs&.respond_to? :test_iam_permissions
2659
- @test_iam_permissions = Gapic::Config::Method.new test_iam_permissions_config
2684
+ @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
2660
2685
  update_finding_config = parent_rpcs&.update_finding if parent_rpcs&.respond_to? :update_finding
2661
- @update_finding = Gapic::Config::Method.new update_finding_config
2686
+ @update_finding = ::Gapic::Config::Method.new update_finding_config
2662
2687
  update_notification_config_config = parent_rpcs&.update_notification_config if parent_rpcs&.respond_to? :update_notification_config
2663
- @update_notification_config = Gapic::Config::Method.new update_notification_config_config
2688
+ @update_notification_config = ::Gapic::Config::Method.new update_notification_config_config
2664
2689
  update_organization_settings_config = parent_rpcs&.update_organization_settings if parent_rpcs&.respond_to? :update_organization_settings
2665
- @update_organization_settings = Gapic::Config::Method.new update_organization_settings_config
2690
+ @update_organization_settings = ::Gapic::Config::Method.new update_organization_settings_config
2666
2691
  update_source_config = parent_rpcs&.update_source if parent_rpcs&.respond_to? :update_source
2667
- @update_source = Gapic::Config::Method.new update_source_config
2692
+ @update_source = ::Gapic::Config::Method.new update_source_config
2668
2693
  update_security_marks_config = parent_rpcs&.update_security_marks if parent_rpcs&.respond_to? :update_security_marks
2669
- @update_security_marks = Gapic::Config::Method.new update_security_marks_config
2694
+ @update_security_marks = ::Gapic::Config::Method.new update_security_marks_config
2670
2695
 
2671
2696
  yield self if block_given?
2672
2697
  end