Class: Falcon::DataProtectionConfiguration

Inherits:
Object
  • Object
show all
Defined in:
lib/crimson-falcon/api/data_protection_configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_client = ApiClient.default) ⇒ DataProtectionConfiguration

Returns a new instance of DataProtectionConfiguration.



35
36
37
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 35

def initialize(api_client = ApiClient.default)
  @api_client = api_client
end

Instance Attribute Details

#api_clientObject

Returns the value of attribute api_client.



33
34
35
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 33

def api_client
  @api_client
end

Instance Method Details

#entities_classification_delete_v2(ids, opts = {}) ⇒ PolicymanagerClassificationsResponse

Deletes classifications that match the provided ids

Parameters:

  • ids (Array<String>)

    IDs of the classifications to delete

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



42
43
44
45
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 42

def entities_classification_delete_v2(ids, opts = {})
  data, _status_code, _headers = entities_classification_delete_v2_with_http_info(ids, opts)
  data
end

#entities_classification_delete_v2_with_http_info(ids, opts = {}) ⇒ Array<(PolicymanagerClassificationsResponse, Integer, Hash)>

Deletes classifications that match the provided ids

Parameters:

  • ids (Array<String>)

    IDs of the classifications to delete

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 51

def entities_classification_delete_v2_with_http_info(ids, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DataProtectionConfiguration.entities_classification_delete_v2 ...'
  end
  # verify the required parameter 'ids' is set
  if @api_client.config.client_side_validation && ids.nil?
    fail ArgumentError, "Missing the required parameter 'ids' when calling DataProtectionConfiguration.entities_classification_delete_v2"
  end
  if @api_client.config.client_side_validation && ids.length > 100
    fail ArgumentError, 'invalid value for "ids" when calling DataProtectionConfiguration.entities_classification_delete_v2, number of items must be less than or equal to 100.'
  end

  if @api_client.config.client_side_validation && ids.length < 1
    fail ArgumentError, 'invalid value for "ids" when calling DataProtectionConfiguration.entities_classification_delete_v2, number of items must be greater than or equal to 1.'
  end

  # resource path
  local_var_path = '/data-protection/entities/classifications/v2'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'ids'] = @api_client.build_collection_param(ids, :multi)

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'PolicymanagerClassificationsResponse'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['oauth2']

  new_options = opts.merge(
    :operation => :"DataProtectionConfiguration.entities_classification_delete_v2",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DataProtectionConfiguration#entities_classification_delete_v2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#entities_classification_get_v2(ids, opts = {}) ⇒ PolicymanagerClassificationsResponse

Gets the classifications that match the provided ids

Parameters:

  • ids (Array<String>)

    IDs of the classifications to get

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



112
113
114
115
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 112

def entities_classification_get_v2(ids, opts = {})
  data, _status_code, _headers = entities_classification_get_v2_with_http_info(ids, opts)
  data
end

#entities_classification_get_v2_with_http_info(ids, opts = {}) ⇒ Array<(PolicymanagerClassificationsResponse, Integer, Hash)>

Gets the classifications that match the provided ids

Parameters:

  • ids (Array<String>)

    IDs of the classifications to get

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 121

def entities_classification_get_v2_with_http_info(ids, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DataProtectionConfiguration.entities_classification_get_v2 ...'
  end
  # verify the required parameter 'ids' is set
  if @api_client.config.client_side_validation && ids.nil?
    fail ArgumentError, "Missing the required parameter 'ids' when calling DataProtectionConfiguration.entities_classification_get_v2"
  end
  if @api_client.config.client_side_validation && ids.length > 100
    fail ArgumentError, 'invalid value for "ids" when calling DataProtectionConfiguration.entities_classification_get_v2, number of items must be less than or equal to 100.'
  end

  if @api_client.config.client_side_validation && ids.length < 1
    fail ArgumentError, 'invalid value for "ids" when calling DataProtectionConfiguration.entities_classification_get_v2, number of items must be greater than or equal to 1.'
  end

  # resource path
  local_var_path = '/data-protection/entities/classifications/v2'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'ids'] = @api_client.build_collection_param(ids, :multi)

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'PolicymanagerClassificationsResponse'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['oauth2']

  new_options = opts.merge(
    :operation => :"DataProtectionConfiguration.entities_classification_get_v2",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DataProtectionConfiguration#entities_classification_get_v2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#entities_classification_patch_v2(body, opts = {}) ⇒ PolicymanagerClassificationsResponse

Update classifications

Parameters:

Returns:



182
183
184
185
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 182

def entities_classification_patch_v2(body, opts = {})
  data, _status_code, _headers = entities_classification_patch_v2_with_http_info(body, opts)
  data
end

#entities_classification_patch_v2_with_http_info(body, opts = {}) ⇒ Array<(PolicymanagerClassificationsResponse, Integer, Hash)>

Update classifications

Parameters:

Returns:



191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 191

def entities_classification_patch_v2_with_http_info(body, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DataProtectionConfiguration.entities_classification_patch_v2 ...'
  end
  # verify the required parameter 'body' is set
  if @api_client.config.client_side_validation && body.nil?
    fail ArgumentError, "Missing the required parameter 'body' when calling DataProtectionConfiguration.entities_classification_patch_v2"
  end
  # resource path
  local_var_path = '/data-protection/entities/classifications/v2'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
    header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(body)

  # return_type
  return_type = opts[:debug_return_type] || 'PolicymanagerClassificationsResponse'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['oauth2']

  new_options = opts.merge(
    :operation => :"DataProtectionConfiguration.entities_classification_patch_v2",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DataProtectionConfiguration#entities_classification_patch_v2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#entities_classification_post_v2(body, opts = {}) ⇒ PolicymanagerClassificationsResponse

Create classifications

Parameters:

Returns:



248
249
250
251
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 248

def entities_classification_post_v2(body, opts = {})
  data, _status_code, _headers = entities_classification_post_v2_with_http_info(body, opts)
  data
end

#entities_classification_post_v2_with_http_info(body, opts = {}) ⇒ Array<(PolicymanagerClassificationsResponse, Integer, Hash)>

Create classifications

Parameters:

Returns:



257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 257

def entities_classification_post_v2_with_http_info(body, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DataProtectionConfiguration.entities_classification_post_v2 ...'
  end
  # verify the required parameter 'body' is set
  if @api_client.config.client_side_validation && body.nil?
    fail ArgumentError, "Missing the required parameter 'body' when calling DataProtectionConfiguration.entities_classification_post_v2"
  end
  # resource path
  local_var_path = '/data-protection/entities/classifications/v2'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
    header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(body)

  # return_type
  return_type = opts[:debug_return_type] || 'PolicymanagerClassificationsResponse'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['oauth2']

  new_options = opts.merge(
    :operation => :"DataProtectionConfiguration.entities_classification_post_v2",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DataProtectionConfiguration#entities_classification_post_v2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#entities_cloud_application_create(body, opts = {}) ⇒ ApiCloudApplicationMSAResponseV1

Persist the given cloud application for the provided entity instance

Parameters:

Returns:



314
315
316
317
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 314

def entities_cloud_application_create(body, opts = {})
  data, _status_code, _headers = entities_cloud_application_create_with_http_info(body, opts)
  data
end

#entities_cloud_application_create_with_http_info(body, opts = {}) ⇒ Array<(ApiCloudApplicationMSAResponseV1, Integer, Hash)>

Persist the given cloud application for the provided entity instance

Parameters:

Returns:



323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 323

def entities_cloud_application_create_with_http_info(body, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DataProtectionConfiguration.entities_cloud_application_create ...'
  end
  # verify the required parameter 'body' is set
  if @api_client.config.client_side_validation && body.nil?
    fail ArgumentError, "Missing the required parameter 'body' when calling DataProtectionConfiguration.entities_cloud_application_create"
  end
  # resource path
  local_var_path = '/data-protection/entities/cloud-applications/v1'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
    header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(body)

  # return_type
  return_type = opts[:debug_return_type] || 'ApiCloudApplicationMSAResponseV1'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['oauth2']

  new_options = opts.merge(
    :operation => :"DataProtectionConfiguration.entities_cloud_application_create",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DataProtectionConfiguration#entities_cloud_application_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#entities_cloud_application_delete(ids, opts = {}) ⇒ ApiCloudApplicationMSAResponseV1

Delete cloud application

Parameters:

  • ids (Array<String>)

    The id of the cloud application to delete.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



380
381
382
383
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 380

def entities_cloud_application_delete(ids, opts = {})
  data, _status_code, _headers = entities_cloud_application_delete_with_http_info(ids, opts)
  data
end

#entities_cloud_application_delete_with_http_info(ids, opts = {}) ⇒ Array<(ApiCloudApplicationMSAResponseV1, Integer, Hash)>

Delete cloud application

Parameters:

  • ids (Array<String>)

    The id of the cloud application to delete.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 389

def entities_cloud_application_delete_with_http_info(ids, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DataProtectionConfiguration.entities_cloud_application_delete ...'
  end
  # verify the required parameter 'ids' is set
  if @api_client.config.client_side_validation && ids.nil?
    fail ArgumentError, "Missing the required parameter 'ids' when calling DataProtectionConfiguration.entities_cloud_application_delete"
  end
  # resource path
  local_var_path = '/data-protection/entities/cloud-applications/v1'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'ids'] = @api_client.build_collection_param(ids, :multi)

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'ApiCloudApplicationMSAResponseV1'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['oauth2']

  new_options = opts.merge(
    :operation => :"DataProtectionConfiguration.entities_cloud_application_delete",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DataProtectionConfiguration#entities_cloud_application_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#entities_cloud_application_get(ids, opts = {}) ⇒ ApiCloudApplicationMSAResponseV1

Get a particular cloud-application

Parameters:

  • ids (Array<String>)

    The cloud application id(s) to get.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



442
443
444
445
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 442

def entities_cloud_application_get(ids, opts = {})
  data, _status_code, _headers = entities_cloud_application_get_with_http_info(ids, opts)
  data
end

#entities_cloud_application_get_with_http_info(ids, opts = {}) ⇒ Array<(ApiCloudApplicationMSAResponseV1, Integer, Hash)>

Get a particular cloud-application

Parameters:

  • ids (Array<String>)

    The cloud application id(s) to get.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 451

def entities_cloud_application_get_with_http_info(ids, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DataProtectionConfiguration.entities_cloud_application_get ...'
  end
  # verify the required parameter 'ids' is set
  if @api_client.config.client_side_validation && ids.nil?
    fail ArgumentError, "Missing the required parameter 'ids' when calling DataProtectionConfiguration.entities_cloud_application_get"
  end
  # resource path
  local_var_path = '/data-protection/entities/cloud-applications/v1'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'ids'] = @api_client.build_collection_param(ids, :multi)

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'ApiCloudApplicationMSAResponseV1'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['oauth2']

  new_options = opts.merge(
    :operation => :"DataProtectionConfiguration.entities_cloud_application_get",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DataProtectionConfiguration#entities_cloud_application_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#entities_cloud_application_patch(id, body, opts = {}) ⇒ ApiCloudApplicationMSAResponseV1

Update a cloud application

Parameters:

  • id (String)

    The cloud app id to update.

  • body (ApiCloudApplicationUpdateRequestV1)

    The new cloud-application definition

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



505
506
507
508
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 505

def entities_cloud_application_patch(id, body, opts = {})
  data, _status_code, _headers = entities_cloud_application_patch_with_http_info(id, body, opts)
  data
end

#entities_cloud_application_patch_with_http_info(id, body, opts = {}) ⇒ Array<(ApiCloudApplicationMSAResponseV1, Integer, Hash)>

Update a cloud application

Parameters:

  • id (String)

    The cloud app id to update.

  • body (ApiCloudApplicationUpdateRequestV1)

    The new cloud-application definition

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 515

def entities_cloud_application_patch_with_http_info(id, body, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DataProtectionConfiguration.entities_cloud_application_patch ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DataProtectionConfiguration.entities_cloud_application_patch"
  end
  # verify the required parameter 'body' is set
  if @api_client.config.client_side_validation && body.nil?
    fail ArgumentError, "Missing the required parameter 'body' when calling DataProtectionConfiguration.entities_cloud_application_patch"
  end
  # resource path
  local_var_path = '/data-protection/entities/cloud-applications/v1'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'id'] = id

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
    header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(body)

  # return_type
  return_type = opts[:debug_return_type] || 'ApiCloudApplicationMSAResponseV1'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['oauth2']

  new_options = opts.merge(
    :operation => :"DataProtectionConfiguration.entities_cloud_application_patch",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DataProtectionConfiguration#entities_cloud_application_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#entities_content_pattern_create(body, opts = {}) ⇒ ApiContentPatternMSAResponseV1

Persist the given content pattern for the provided entity instance

Parameters:

Returns:



577
578
579
580
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 577

def entities_content_pattern_create(body, opts = {})
  data, _status_code, _headers = entities_content_pattern_create_with_http_info(body, opts)
  data
end

#entities_content_pattern_create_with_http_info(body, opts = {}) ⇒ Array<(ApiContentPatternMSAResponseV1, Integer, Hash)>

Persist the given content pattern for the provided entity instance

Parameters:

Returns:



586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 586

def entities_content_pattern_create_with_http_info(body, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DataProtectionConfiguration.entities_content_pattern_create ...'
  end
  # verify the required parameter 'body' is set
  if @api_client.config.client_side_validation && body.nil?
    fail ArgumentError, "Missing the required parameter 'body' when calling DataProtectionConfiguration.entities_content_pattern_create"
  end
  # resource path
  local_var_path = '/data-protection/entities/content-patterns/v1'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
    header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(body)

  # return_type
  return_type = opts[:debug_return_type] || 'ApiContentPatternMSAResponseV1'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['oauth2']

  new_options = opts.merge(
    :operation => :"DataProtectionConfiguration.entities_content_pattern_create",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DataProtectionConfiguration#entities_content_pattern_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#entities_content_pattern_delete(ids, opts = {}) ⇒ ApiContentPatternMSAResponseV1

Delete content pattern

Parameters:

  • ids (Array<String>)

    The id(s) of the content pattern to delete.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



643
644
645
646
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 643

def entities_content_pattern_delete(ids, opts = {})
  data, _status_code, _headers = entities_content_pattern_delete_with_http_info(ids, opts)
  data
end

#entities_content_pattern_delete_with_http_info(ids, opts = {}) ⇒ Array<(ApiContentPatternMSAResponseV1, Integer, Hash)>

Delete content pattern

Parameters:

  • ids (Array<String>)

    The id(s) of the content pattern to delete.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 652

def entities_content_pattern_delete_with_http_info(ids, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DataProtectionConfiguration.entities_content_pattern_delete ...'
  end
  # verify the required parameter 'ids' is set
  if @api_client.config.client_side_validation && ids.nil?
    fail ArgumentError, "Missing the required parameter 'ids' when calling DataProtectionConfiguration.entities_content_pattern_delete"
  end
  # resource path
  local_var_path = '/data-protection/entities/content-patterns/v1'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'ids'] = @api_client.build_collection_param(ids, :multi)

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'ApiContentPatternMSAResponseV1'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['oauth2']

  new_options = opts.merge(
    :operation => :"DataProtectionConfiguration.entities_content_pattern_delete",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DataProtectionConfiguration#entities_content_pattern_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#entities_content_pattern_get(ids, opts = {}) ⇒ ApiContentPatternMSAResponseV1

Get a particular content-pattern(s)

Parameters:

  • ids (Array<String>)

    The content-pattern id(s) to get.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



705
706
707
708
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 705

def entities_content_pattern_get(ids, opts = {})
  data, _status_code, _headers = entities_content_pattern_get_with_http_info(ids, opts)
  data
end

#entities_content_pattern_get_with_http_info(ids, opts = {}) ⇒ Array<(ApiContentPatternMSAResponseV1, Integer, Hash)>

Get a particular content-pattern(s)

Parameters:

  • ids (Array<String>)

    The content-pattern id(s) to get.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 714

def entities_content_pattern_get_with_http_info(ids, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DataProtectionConfiguration.entities_content_pattern_get ...'
  end
  # verify the required parameter 'ids' is set
  if @api_client.config.client_side_validation && ids.nil?
    fail ArgumentError, "Missing the required parameter 'ids' when calling DataProtectionConfiguration.entities_content_pattern_get"
  end
  # resource path
  local_var_path = '/data-protection/entities/content-patterns/v1'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'ids'] = @api_client.build_collection_param(ids, :multi)

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'ApiContentPatternMSAResponseV1'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['oauth2']

  new_options = opts.merge(
    :operation => :"DataProtectionConfiguration.entities_content_pattern_get",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DataProtectionConfiguration#entities_content_pattern_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#entities_content_pattern_patch(id, body, opts = {}) ⇒ ApiContentPatternMSAResponseV1

Update a content pattern

Parameters:

  • id (String)

    The id of the content pattern to patch.

  • body (ApiContentPatternUpdateRequestV1)

    Definition of content-pattern to create

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



768
769
770
771
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 768

def entities_content_pattern_patch(id, body, opts = {})
  data, _status_code, _headers = entities_content_pattern_patch_with_http_info(id, body, opts)
  data
end

#entities_content_pattern_patch_with_http_info(id, body, opts = {}) ⇒ Array<(ApiContentPatternMSAResponseV1, Integer, Hash)>

Update a content pattern

Parameters:

  • id (String)

    The id of the content pattern to patch.

  • body (ApiContentPatternUpdateRequestV1)

    Definition of content-pattern to create

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 778

def entities_content_pattern_patch_with_http_info(id, body, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DataProtectionConfiguration.entities_content_pattern_patch ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DataProtectionConfiguration.entities_content_pattern_patch"
  end
  # verify the required parameter 'body' is set
  if @api_client.config.client_side_validation && body.nil?
    fail ArgumentError, "Missing the required parameter 'body' when calling DataProtectionConfiguration.entities_content_pattern_patch"
  end
  # resource path
  local_var_path = '/data-protection/entities/content-patterns/v1'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'id'] = id

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
    header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(body)

  # return_type
  return_type = opts[:debug_return_type] || 'ApiContentPatternMSAResponseV1'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['oauth2']

  new_options = opts.merge(
    :operation => :"DataProtectionConfiguration.entities_content_pattern_patch",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DataProtectionConfiguration#entities_content_pattern_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#entities_enterprise_account_create(body, opts = {}) ⇒ ApiEnterpriseAccountMSAResponseV1

Persist the given enterprise account for the provided entity instance

Parameters:

Returns:



840
841
842
843
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 840

def (body, opts = {})
  data, _status_code, _headers = (body, opts)
  data
end

#entities_enterprise_account_create_with_http_info(body, opts = {}) ⇒ Array<(ApiEnterpriseAccountMSAResponseV1, Integer, Hash)>

Persist the given enterprise account for the provided entity instance

Parameters:

Returns:



849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 849

def (body, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DataProtectionConfiguration.entities_enterprise_account_create ...'
  end
  # verify the required parameter 'body' is set
  if @api_client.config.client_side_validation && body.nil?
    fail ArgumentError, "Missing the required parameter 'body' when calling DataProtectionConfiguration.entities_enterprise_account_create"
  end
  # resource path
  local_var_path = '/data-protection/entities/enterprise-accounts/v1'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
    header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(body)

  # return_type
  return_type = opts[:debug_return_type] || 'ApiEnterpriseAccountMSAResponseV1'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['oauth2']

  new_options = opts.merge(
    :operation => :"DataProtectionConfiguration.entities_enterprise_account_create",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DataProtectionConfiguration#entities_enterprise_account_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#entities_enterprise_account_delete(ids, opts = {}) ⇒ ApiEnterpriseAccountMSAResponseV1

Delete enterprise account

Parameters:

  • ids (Array<String>)

    The id of the enterprise account to delete.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



906
907
908
909
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 906

def (ids, opts = {})
  data, _status_code, _headers = (ids, opts)
  data
end

#entities_enterprise_account_delete_with_http_info(ids, opts = {}) ⇒ Array<(ApiEnterpriseAccountMSAResponseV1, Integer, Hash)>

Delete enterprise account

Parameters:

  • ids (Array<String>)

    The id of the enterprise account to delete.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 915

def (ids, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DataProtectionConfiguration.entities_enterprise_account_delete ...'
  end
  # verify the required parameter 'ids' is set
  if @api_client.config.client_side_validation && ids.nil?
    fail ArgumentError, "Missing the required parameter 'ids' when calling DataProtectionConfiguration.entities_enterprise_account_delete"
  end
  # resource path
  local_var_path = '/data-protection/entities/enterprise-accounts/v1'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'ids'] = @api_client.build_collection_param(ids, :multi)

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'ApiEnterpriseAccountMSAResponseV1'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['oauth2']

  new_options = opts.merge(
    :operation => :"DataProtectionConfiguration.entities_enterprise_account_delete",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DataProtectionConfiguration#entities_enterprise_account_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#entities_enterprise_account_get(ids, opts = {}) ⇒ ApiEnterpriseAccountMSAResponseV1

Get a particular enterprise-account(s)

Parameters:

  • ids (Array<String>)

    The enterprise-account id(s) to get.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



968
969
970
971
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 968

def (ids, opts = {})
  data, _status_code, _headers = (ids, opts)
  data
end

#entities_enterprise_account_get_with_http_info(ids, opts = {}) ⇒ Array<(ApiEnterpriseAccountMSAResponseV1, Integer, Hash)>

Get a particular enterprise-account(s)

Parameters:

  • ids (Array<String>)

    The enterprise-account id(s) to get.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 977

def (ids, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DataProtectionConfiguration.entities_enterprise_account_get ...'
  end
  # verify the required parameter 'ids' is set
  if @api_client.config.client_side_validation && ids.nil?
    fail ArgumentError, "Missing the required parameter 'ids' when calling DataProtectionConfiguration.entities_enterprise_account_get"
  end
  # resource path
  local_var_path = '/data-protection/entities/enterprise-accounts/v1'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'ids'] = @api_client.build_collection_param(ids, :multi)

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'ApiEnterpriseAccountMSAResponseV1'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['oauth2']

  new_options = opts.merge(
    :operation => :"DataProtectionConfiguration.entities_enterprise_account_get",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DataProtectionConfiguration#entities_enterprise_account_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#entities_enterprise_account_patch(id, body, opts = {}) ⇒ ApiEnterpriseAccountMSAResponseV1

Update a enterprise account

Parameters:

  • id (String)

    The id of the enterprise account to update.

  • body (ApiEnterpriseAccountUpdateRequestV1)

    Definition of enterprise-account to create

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1031
1032
1033
1034
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 1031

def (id, body, opts = {})
  data, _status_code, _headers = (id, body, opts)
  data
end

#entities_enterprise_account_patch_with_http_info(id, body, opts = {}) ⇒ Array<(ApiEnterpriseAccountMSAResponseV1, Integer, Hash)>

Update a enterprise account

Parameters:

  • id (String)

    The id of the enterprise account to update.

  • body (ApiEnterpriseAccountUpdateRequestV1)

    Definition of enterprise-account to create

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 1041

def (id, body, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DataProtectionConfiguration.entities_enterprise_account_patch ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DataProtectionConfiguration.entities_enterprise_account_patch"
  end
  # verify the required parameter 'body' is set
  if @api_client.config.client_side_validation && body.nil?
    fail ArgumentError, "Missing the required parameter 'body' when calling DataProtectionConfiguration.entities_enterprise_account_patch"
  end
  # resource path
  local_var_path = '/data-protection/entities/enterprise-accounts/v1'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'id'] = id

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
    header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(body)

  # return_type
  return_type = opts[:debug_return_type] || 'ApiEnterpriseAccountMSAResponseV1'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['oauth2']

  new_options = opts.merge(
    :operation => :"DataProtectionConfiguration.entities_enterprise_account_patch",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DataProtectionConfiguration#entities_enterprise_account_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#entities_file_type_get(ids, opts = {}) ⇒ ApiFileTypeMSAResponseV1

Get a particular file-type

Parameters:

  • ids (Array<String>)

    The file-type id(s) to get.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1103
1104
1105
1106
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 1103

def entities_file_type_get(ids, opts = {})
  data, _status_code, _headers = entities_file_type_get_with_http_info(ids, opts)
  data
end

#entities_file_type_get_with_http_info(ids, opts = {}) ⇒ Array<(ApiFileTypeMSAResponseV1, Integer, Hash)>

Get a particular file-type

Parameters:

  • ids (Array<String>)

    The file-type id(s) to get.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(ApiFileTypeMSAResponseV1, Integer, Hash)>)

    ApiFileTypeMSAResponseV1 data, response status code and response headers



1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 1112

def entities_file_type_get_with_http_info(ids, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DataProtectionConfiguration.entities_file_type_get ...'
  end
  # verify the required parameter 'ids' is set
  if @api_client.config.client_side_validation && ids.nil?
    fail ArgumentError, "Missing the required parameter 'ids' when calling DataProtectionConfiguration.entities_file_type_get"
  end
  # resource path
  local_var_path = '/data-protection/entities/file-types/v1'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'ids'] = @api_client.build_collection_param(ids, :multi)

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'ApiFileTypeMSAResponseV1'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['oauth2']

  new_options = opts.merge(
    :operation => :"DataProtectionConfiguration.entities_file_type_get",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DataProtectionConfiguration#entities_file_type_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#entities_local_application_create(body, opts = {}) ⇒ ApiLocalApplicationMSAResponseV1

Persist the given local application for the provided entity instance

Parameters:

Returns:



1165
1166
1167
1168
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 1165

def entities_local_application_create(body, opts = {})
  data, _status_code, _headers = entities_local_application_create_with_http_info(body, opts)
  data
end

#entities_local_application_create_with_http_info(body, opts = {}) ⇒ Array<(ApiLocalApplicationMSAResponseV1, Integer, Hash)>

Persist the given local application for the provided entity instance

Parameters:

Returns:



1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 1174

def entities_local_application_create_with_http_info(body, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DataProtectionConfiguration.entities_local_application_create ...'
  end
  # verify the required parameter 'body' is set
  if @api_client.config.client_side_validation && body.nil?
    fail ArgumentError, "Missing the required parameter 'body' when calling DataProtectionConfiguration.entities_local_application_create"
  end
  # resource path
  local_var_path = '/data-protection/entities/local-applications/v1'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
    header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(body)

  # return_type
  return_type = opts[:debug_return_type] || 'ApiLocalApplicationMSAResponseV1'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['oauth2']

  new_options = opts.merge(
    :operation => :"DataProtectionConfiguration.entities_local_application_create",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DataProtectionConfiguration#entities_local_application_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#entities_local_application_delete(ids, opts = {}) ⇒ ApiLocalApplicationMSAResponseV1

Soft Delete local application. The application wont be visible anymore, but will still be in the database

Parameters:

  • ids (Array<String>)

    The id of the local application to delete.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1231
1232
1233
1234
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 1231

def entities_local_application_delete(ids, opts = {})
  data, _status_code, _headers = entities_local_application_delete_with_http_info(ids, opts)
  data
end

#entities_local_application_delete_with_http_info(ids, opts = {}) ⇒ Array<(ApiLocalApplicationMSAResponseV1, Integer, Hash)>

Soft Delete local application. The application wont be visible anymore, but will still be in the database

Parameters:

  • ids (Array<String>)

    The id of the local application to delete.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 1240

def entities_local_application_delete_with_http_info(ids, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DataProtectionConfiguration.entities_local_application_delete ...'
  end
  # verify the required parameter 'ids' is set
  if @api_client.config.client_side_validation && ids.nil?
    fail ArgumentError, "Missing the required parameter 'ids' when calling DataProtectionConfiguration.entities_local_application_delete"
  end
  # resource path
  local_var_path = '/data-protection/entities/local-applications/v1'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'ids'] = @api_client.build_collection_param(ids, :multi)

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'ApiLocalApplicationMSAResponseV1'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['oauth2']

  new_options = opts.merge(
    :operation => :"DataProtectionConfiguration.entities_local_application_delete",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DataProtectionConfiguration#entities_local_application_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#entities_local_application_get(ids, opts = {}) ⇒ ApiLocalApplicationMSAResponseV1

Get a particular local application

Parameters:

  • ids (Array<String>)

    The local application id(s) to get.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1293
1294
1295
1296
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 1293

def entities_local_application_get(ids, opts = {})
  data, _status_code, _headers = entities_local_application_get_with_http_info(ids, opts)
  data
end

#entities_local_application_get_with_http_info(ids, opts = {}) ⇒ Array<(ApiLocalApplicationMSAResponseV1, Integer, Hash)>

Get a particular local application

Parameters:

  • ids (Array<String>)

    The local application id(s) to get.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 1302

def entities_local_application_get_with_http_info(ids, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DataProtectionConfiguration.entities_local_application_get ...'
  end
  # verify the required parameter 'ids' is set
  if @api_client.config.client_side_validation && ids.nil?
    fail ArgumentError, "Missing the required parameter 'ids' when calling DataProtectionConfiguration.entities_local_application_get"
  end
  # resource path
  local_var_path = '/data-protection/entities/local-applications/v1'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'ids'] = @api_client.build_collection_param(ids, :multi)

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'ApiLocalApplicationMSAResponseV1'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['oauth2']

  new_options = opts.merge(
    :operation => :"DataProtectionConfiguration.entities_local_application_get",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DataProtectionConfiguration#entities_local_application_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#entities_local_application_group_create(body, opts = {}) ⇒ ApiLocalApplicationGroupMSAResponseV1

Persist the given local application group for the provided entity instance

Parameters:

Returns:



1355
1356
1357
1358
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 1355

def entities_local_application_group_create(body, opts = {})
  data, _status_code, _headers = entities_local_application_group_create_with_http_info(body, opts)
  data
end

#entities_local_application_group_create_with_http_info(body, opts = {}) ⇒ Array<(ApiLocalApplicationGroupMSAResponseV1, Integer, Hash)>

Persist the given local application group for the provided entity instance

Parameters:

Returns:



1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 1364

def entities_local_application_group_create_with_http_info(body, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DataProtectionConfiguration.entities_local_application_group_create ...'
  end
  # verify the required parameter 'body' is set
  if @api_client.config.client_side_validation && body.nil?
    fail ArgumentError, "Missing the required parameter 'body' when calling DataProtectionConfiguration.entities_local_application_group_create"
  end
  # resource path
  local_var_path = '/data-protection/entities/local-application-groups/v1'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
    header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(body)

  # return_type
  return_type = opts[:debug_return_type] || 'ApiLocalApplicationGroupMSAResponseV1'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['oauth2']

  new_options = opts.merge(
    :operation => :"DataProtectionConfiguration.entities_local_application_group_create",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DataProtectionConfiguration#entities_local_application_group_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#entities_local_application_group_delete(ids, opts = {}) ⇒ ApiLocalApplicationGroupMSAResponseV1

Soft Delete local application. The application won’t be visible anymore, but will still be in the database

Parameters:

  • ids (Array<String>)

    The id of the local application group to delete.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1421
1422
1423
1424
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 1421

def entities_local_application_group_delete(ids, opts = {})
  data, _status_code, _headers = entities_local_application_group_delete_with_http_info(ids, opts)
  data
end

#entities_local_application_group_delete_with_http_info(ids, opts = {}) ⇒ Array<(ApiLocalApplicationGroupMSAResponseV1, Integer, Hash)>

Soft Delete local application. The application won&#39;t be visible anymore, but will still be in the database

Parameters:

  • ids (Array<String>)

    The id of the local application group to delete.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 1430

def entities_local_application_group_delete_with_http_info(ids, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DataProtectionConfiguration.entities_local_application_group_delete ...'
  end
  # verify the required parameter 'ids' is set
  if @api_client.config.client_side_validation && ids.nil?
    fail ArgumentError, "Missing the required parameter 'ids' when calling DataProtectionConfiguration.entities_local_application_group_delete"
  end
  # resource path
  local_var_path = '/data-protection/entities/local-application-groups/v1'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'ids'] = @api_client.build_collection_param(ids, :multi)

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'ApiLocalApplicationGroupMSAResponseV1'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['oauth2']

  new_options = opts.merge(
    :operation => :"DataProtectionConfiguration.entities_local_application_group_delete",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DataProtectionConfiguration#entities_local_application_group_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#entities_local_application_group_get(ids, opts = {}) ⇒ ApiLocalApplicationGroupMSAResponseV1

Get particular local application groups

Parameters:

  • ids (Array<String>)

    The local application group id(s) to get.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1483
1484
1485
1486
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 1483

def entities_local_application_group_get(ids, opts = {})
  data, _status_code, _headers = entities_local_application_group_get_with_http_info(ids, opts)
  data
end

#entities_local_application_group_get_with_http_info(ids, opts = {}) ⇒ Array<(ApiLocalApplicationGroupMSAResponseV1, Integer, Hash)>

Get particular local application groups

Parameters:

  • ids (Array<String>)

    The local application group id(s) to get.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 1492

def entities_local_application_group_get_with_http_info(ids, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DataProtectionConfiguration.entities_local_application_group_get ...'
  end
  # verify the required parameter 'ids' is set
  if @api_client.config.client_side_validation && ids.nil?
    fail ArgumentError, "Missing the required parameter 'ids' when calling DataProtectionConfiguration.entities_local_application_group_get"
  end
  # resource path
  local_var_path = '/data-protection/entities/local-application-groups/v1'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'ids'] = @api_client.build_collection_param(ids, :multi)

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'ApiLocalApplicationGroupMSAResponseV1'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['oauth2']

  new_options = opts.merge(
    :operation => :"DataProtectionConfiguration.entities_local_application_group_get",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DataProtectionConfiguration#entities_local_application_group_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#entities_local_application_group_patch(id, body, opts = {}) ⇒ ApiLocalApplicationGroupMSAResponseV1

Update a local application group

Parameters:

  • id (String)

    The local app id to update.

  • body (ApiLocalApplicationGroupUpdateRequestV1)

    The new local-application group definition

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1546
1547
1548
1549
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 1546

def entities_local_application_group_patch(id, body, opts = {})
  data, _status_code, _headers = entities_local_application_group_patch_with_http_info(id, body, opts)
  data
end

#entities_local_application_group_patch_with_http_info(id, body, opts = {}) ⇒ Array<(ApiLocalApplicationGroupMSAResponseV1, Integer, Hash)>

Update a local application group

Parameters:

  • id (String)

    The local app id to update.

  • body (ApiLocalApplicationGroupUpdateRequestV1)

    The new local-application group definition

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 1556

def entities_local_application_group_patch_with_http_info(id, body, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DataProtectionConfiguration.entities_local_application_group_patch ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DataProtectionConfiguration.entities_local_application_group_patch"
  end
  # verify the required parameter 'body' is set
  if @api_client.config.client_side_validation && body.nil?
    fail ArgumentError, "Missing the required parameter 'body' when calling DataProtectionConfiguration.entities_local_application_group_patch"
  end
  # resource path
  local_var_path = '/data-protection/entities/local-application-groups/v1'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'id'] = id

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
    header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(body)

  # return_type
  return_type = opts[:debug_return_type] || 'ApiLocalApplicationGroupMSAResponseV1'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['oauth2']

  new_options = opts.merge(
    :operation => :"DataProtectionConfiguration.entities_local_application_group_patch",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DataProtectionConfiguration#entities_local_application_group_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#entities_local_application_patch(id, body, opts = {}) ⇒ ApiLocalApplicationMSAResponseV1

Update a local application

Parameters:

  • id (String)

    The local app id to update.

  • body (ApiLocalApplicationUpdateRequestV1)

    The new local-application definition

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1619
1620
1621
1622
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 1619

def entities_local_application_patch(id, body, opts = {})
  data, _status_code, _headers = entities_local_application_patch_with_http_info(id, body, opts)
  data
end

#entities_local_application_patch_with_http_info(id, body, opts = {}) ⇒ Array<(ApiLocalApplicationMSAResponseV1, Integer, Hash)>

Update a local application

Parameters:

  • id (String)

    The local app id to update.

  • body (ApiLocalApplicationUpdateRequestV1)

    The new local-application definition

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 1629

def entities_local_application_patch_with_http_info(id, body, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DataProtectionConfiguration.entities_local_application_patch ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DataProtectionConfiguration.entities_local_application_patch"
  end
  # verify the required parameter 'body' is set
  if @api_client.config.client_side_validation && body.nil?
    fail ArgumentError, "Missing the required parameter 'body' when calling DataProtectionConfiguration.entities_local_application_patch"
  end
  # resource path
  local_var_path = '/data-protection/entities/local-applications/v1'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'id'] = id

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
    header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(body)

  # return_type
  return_type = opts[:debug_return_type] || 'ApiLocalApplicationMSAResponseV1'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['oauth2']

  new_options = opts.merge(
    :operation => :"DataProtectionConfiguration.entities_local_application_patch",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DataProtectionConfiguration#entities_local_application_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#entities_policy_delete_v2(ids, platform_name, opts = {}) ⇒ PolicymanagerPoliciesResponse

Deletes policies that match the provided ids

Parameters:

  • ids (Array<String>)

    IDs of the policies to delete

  • platform_name (String)

    platform name of the policies to update, either &#39;win&#39; or &#39;mac&#39;

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1692
1693
1694
1695
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 1692

def entities_policy_delete_v2(ids, platform_name, opts = {})
  data, _status_code, _headers = entities_policy_delete_v2_with_http_info(ids, platform_name, opts)
  data
end

#entities_policy_delete_v2_with_http_info(ids, platform_name, opts = {}) ⇒ Array<(PolicymanagerPoliciesResponse, Integer, Hash)>

Deletes policies that match the provided ids

Parameters:

  • ids (Array<String>)

    IDs of the policies to delete

  • platform_name (String)

    platform name of the policies to update, either &#39;win&#39; or &#39;mac&#39;

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 1702

def entities_policy_delete_v2_with_http_info(ids, platform_name, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DataProtectionConfiguration.entities_policy_delete_v2 ...'
  end
  # verify the required parameter 'ids' is set
  if @api_client.config.client_side_validation && ids.nil?
    fail ArgumentError, "Missing the required parameter 'ids' when calling DataProtectionConfiguration.entities_policy_delete_v2"
  end
  if @api_client.config.client_side_validation && ids.length > 100
    fail ArgumentError, 'invalid value for "ids" when calling DataProtectionConfiguration.entities_policy_delete_v2, number of items must be less than or equal to 100.'
  end

  if @api_client.config.client_side_validation && ids.length < 1
    fail ArgumentError, 'invalid value for "ids" when calling DataProtectionConfiguration.entities_policy_delete_v2, number of items must be greater than or equal to 1.'
  end

  # verify the required parameter 'platform_name' is set
  if @api_client.config.client_side_validation && platform_name.nil?
    fail ArgumentError, "Missing the required parameter 'platform_name' when calling DataProtectionConfiguration.entities_policy_delete_v2"
  end
  # resource path
  local_var_path = '/data-protection/entities/policies/v2'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'ids'] = @api_client.build_collection_param(ids, :multi)
  query_params[:'platform_name'] = platform_name

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'PolicymanagerPoliciesResponse'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['oauth2']

  new_options = opts.merge(
    :operation => :"DataProtectionConfiguration.entities_policy_delete_v2",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DataProtectionConfiguration#entities_policy_delete_v2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#entities_policy_get_v2(ids, opts = {}) ⇒ PolicymanagerPoliciesResponse

Gets policies that match the provided ids

Parameters:

  • ids (Array<String>)

    IDs of the policies to get

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1768
1769
1770
1771
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 1768

def entities_policy_get_v2(ids, opts = {})
  data, _status_code, _headers = entities_policy_get_v2_with_http_info(ids, opts)
  data
end

#entities_policy_get_v2_with_http_info(ids, opts = {}) ⇒ Array<(PolicymanagerPoliciesResponse, Integer, Hash)>

Gets policies that match the provided ids

Parameters:

  • ids (Array<String>)

    IDs of the policies to get

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 1777

def entities_policy_get_v2_with_http_info(ids, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DataProtectionConfiguration.entities_policy_get_v2 ...'
  end
  # verify the required parameter 'ids' is set
  if @api_client.config.client_side_validation && ids.nil?
    fail ArgumentError, "Missing the required parameter 'ids' when calling DataProtectionConfiguration.entities_policy_get_v2"
  end
  if @api_client.config.client_side_validation && ids.length > 100
    fail ArgumentError, 'invalid value for "ids" when calling DataProtectionConfiguration.entities_policy_get_v2, number of items must be less than or equal to 100.'
  end

  if @api_client.config.client_side_validation && ids.length < 1
    fail ArgumentError, 'invalid value for "ids" when calling DataProtectionConfiguration.entities_policy_get_v2, number of items must be greater than or equal to 1.'
  end

  # resource path
  local_var_path = '/data-protection/entities/policies/v2'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'ids'] = @api_client.build_collection_param(ids, :multi)

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'PolicymanagerPoliciesResponse'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['oauth2']

  new_options = opts.merge(
    :operation => :"DataProtectionConfiguration.entities_policy_get_v2",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DataProtectionConfiguration#entities_policy_get_v2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#entities_policy_patch_v2(platform_name, body, opts = {}) ⇒ PolicymanagerPoliciesResponse

Update policies

Parameters:

  • platform_name (String)

    platform name of the policies to update, either &#39;win&#39; or &#39;mac&#39;

  • body (PolicymanagerUpdatePoliciesRequest)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1839
1840
1841
1842
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 1839

def entities_policy_patch_v2(platform_name, body, opts = {})
  data, _status_code, _headers = entities_policy_patch_v2_with_http_info(platform_name, body, opts)
  data
end

#entities_policy_patch_v2_with_http_info(platform_name, body, opts = {}) ⇒ Array<(PolicymanagerPoliciesResponse, Integer, Hash)>

Update policies

Parameters:

  • platform_name (String)

    platform name of the policies to update, either &#39;win&#39; or &#39;mac&#39;

  • body (PolicymanagerUpdatePoliciesRequest)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 1849

def entities_policy_patch_v2_with_http_info(platform_name, body, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DataProtectionConfiguration.entities_policy_patch_v2 ...'
  end
  # verify the required parameter 'platform_name' is set
  if @api_client.config.client_side_validation && platform_name.nil?
    fail ArgumentError, "Missing the required parameter 'platform_name' when calling DataProtectionConfiguration.entities_policy_patch_v2"
  end
  # verify the required parameter 'body' is set
  if @api_client.config.client_side_validation && body.nil?
    fail ArgumentError, "Missing the required parameter 'body' when calling DataProtectionConfiguration.entities_policy_patch_v2"
  end
  # resource path
  local_var_path = '/data-protection/entities/policies/v2'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'platform_name'] = platform_name

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
    header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(body)

  # return_type
  return_type = opts[:debug_return_type] || 'PolicymanagerPoliciesResponse'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['oauth2']

  new_options = opts.merge(
    :operation => :"DataProtectionConfiguration.entities_policy_patch_v2",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DataProtectionConfiguration#entities_policy_patch_v2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#entities_policy_post_v2(platform_name, body, opts = {}) ⇒ PolicymanagerPoliciesResponse

Create policies

Parameters:

  • platform_name (String)

    platform name of the policies to update, either &#39;win&#39; or &#39;mac&#39;

  • body (PolicymanagerCreatePoliciesRequest)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1912
1913
1914
1915
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 1912

def entities_policy_post_v2(platform_name, body, opts = {})
  data, _status_code, _headers = entities_policy_post_v2_with_http_info(platform_name, body, opts)
  data
end

#entities_policy_post_v2_with_http_info(platform_name, body, opts = {}) ⇒ Array<(PolicymanagerPoliciesResponse, Integer, Hash)>

Create policies

Parameters:

  • platform_name (String)

    platform name of the policies to update, either &#39;win&#39; or &#39;mac&#39;

  • body (PolicymanagerCreatePoliciesRequest)
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 1922

def entities_policy_post_v2_with_http_info(platform_name, body, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DataProtectionConfiguration.entities_policy_post_v2 ...'
  end
  # verify the required parameter 'platform_name' is set
  if @api_client.config.client_side_validation && platform_name.nil?
    fail ArgumentError, "Missing the required parameter 'platform_name' when calling DataProtectionConfiguration.entities_policy_post_v2"
  end
  # verify the required parameter 'body' is set
  if @api_client.config.client_side_validation && body.nil?
    fail ArgumentError, "Missing the required parameter 'body' when calling DataProtectionConfiguration.entities_policy_post_v2"
  end
  # resource path
  local_var_path = '/data-protection/entities/policies/v2'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'platform_name'] = platform_name

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
    header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(body)

  # return_type
  return_type = opts[:debug_return_type] || 'PolicymanagerPoliciesResponse'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['oauth2']

  new_options = opts.merge(
    :operation => :"DataProtectionConfiguration.entities_policy_post_v2",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DataProtectionConfiguration#entities_policy_post_v2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#entities_policy_precedence_post_v1(body, opts = {}) ⇒ PolicymanagerPoliciesResponse

Update Policy Precedence

Parameters:

Returns:



1984
1985
1986
1987
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 1984

def entities_policy_precedence_post_v1(body, opts = {})
  data, _status_code, _headers = entities_policy_precedence_post_v1_with_http_info(body, opts)
  data
end

#entities_policy_precedence_post_v1_with_http_info(body, opts = {}) ⇒ Array<(PolicymanagerPoliciesResponse, Integer, Hash)>

Update Policy Precedence

Parameters:

Returns:



1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 1993

def entities_policy_precedence_post_v1_with_http_info(body, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DataProtectionConfiguration.entities_policy_precedence_post_v1 ...'
  end
  # verify the required parameter 'body' is set
  if @api_client.config.client_side_validation && body.nil?
    fail ArgumentError, "Missing the required parameter 'body' when calling DataProtectionConfiguration.entities_policy_precedence_post_v1"
  end
  # resource path
  local_var_path = '/data-protection/entities/data-protection-precedence/v1'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
    header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(body)

  # return_type
  return_type = opts[:debug_return_type] || 'PolicymanagerPoliciesResponse'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['oauth2']

  new_options = opts.merge(
    :operation => :"DataProtectionConfiguration.entities_policy_precedence_post_v1",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DataProtectionConfiguration#entities_policy_precedence_post_v1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#entities_sensitivity_label_create_v2(body, opts = {}) ⇒ ApiSensitivityLabelMSAResponseV2

Create new sensitivity label (V2)

Parameters:

Returns:



2050
2051
2052
2053
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 2050

def entities_sensitivity_label_create_v2(body, opts = {})
  data, _status_code, _headers = entities_sensitivity_label_create_v2_with_http_info(body, opts)
  data
end

#entities_sensitivity_label_create_v2_with_http_info(body, opts = {}) ⇒ Array<(ApiSensitivityLabelMSAResponseV2, Integer, Hash)>

Create new sensitivity label (V2)

Parameters:

Returns:



2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 2059

def entities_sensitivity_label_create_v2_with_http_info(body, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DataProtectionConfiguration.entities_sensitivity_label_create_v2 ...'
  end
  # verify the required parameter 'body' is set
  if @api_client.config.client_side_validation && body.nil?
    fail ArgumentError, "Missing the required parameter 'body' when calling DataProtectionConfiguration.entities_sensitivity_label_create_v2"
  end
  # resource path
  local_var_path = '/data-protection/entities/labels/v2'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
    header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(body)

  # return_type
  return_type = opts[:debug_return_type] || 'ApiSensitivityLabelMSAResponseV2'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['oauth2']

  new_options = opts.merge(
    :operation => :"DataProtectionConfiguration.entities_sensitivity_label_create_v2",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DataProtectionConfiguration#entities_sensitivity_label_create_v2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#entities_sensitivity_label_delete_v2(ids, opts = {}) ⇒ ApiSensitivityLabelMSAResponseV2

Delete sensitivity labels matching the IDs (V2)

Parameters:

  • ids (Array<String>)

    The sensitivity label entity id(s) to delete.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



2116
2117
2118
2119
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 2116

def entities_sensitivity_label_delete_v2(ids, opts = {})
  data, _status_code, _headers = entities_sensitivity_label_delete_v2_with_http_info(ids, opts)
  data
end

#entities_sensitivity_label_delete_v2_with_http_info(ids, opts = {}) ⇒ Array<(ApiSensitivityLabelMSAResponseV2, Integer, Hash)>

Delete sensitivity labels matching the IDs (V2)

Parameters:

  • ids (Array<String>)

    The sensitivity label entity id(s) to delete.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 2125

def entities_sensitivity_label_delete_v2_with_http_info(ids, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DataProtectionConfiguration.entities_sensitivity_label_delete_v2 ...'
  end
  # verify the required parameter 'ids' is set
  if @api_client.config.client_side_validation && ids.nil?
    fail ArgumentError, "Missing the required parameter 'ids' when calling DataProtectionConfiguration.entities_sensitivity_label_delete_v2"
  end
  # resource path
  local_var_path = '/data-protection/entities/labels/v2'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'ids'] = @api_client.build_collection_param(ids, :multi)

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'ApiSensitivityLabelMSAResponseV2'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['oauth2']

  new_options = opts.merge(
    :operation => :"DataProtectionConfiguration.entities_sensitivity_label_delete_v2",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DataProtectionConfiguration#entities_sensitivity_label_delete_v2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#entities_sensitivity_label_get_v2(ids, opts = {}) ⇒ ApiSensitivityLabelMSAResponseV2

Get sensitivity label matching the IDs (V2)

Parameters:

  • ids (Array<String>)

    The sensitivity label entity id(s) to get.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



2178
2179
2180
2181
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 2178

def entities_sensitivity_label_get_v2(ids, opts = {})
  data, _status_code, _headers = entities_sensitivity_label_get_v2_with_http_info(ids, opts)
  data
end

#entities_sensitivity_label_get_v2_with_http_info(ids, opts = {}) ⇒ Array<(ApiSensitivityLabelMSAResponseV2, Integer, Hash)>

Get sensitivity label matching the IDs (V2)

Parameters:

  • ids (Array<String>)

    The sensitivity label entity id(s) to get.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 2187

def entities_sensitivity_label_get_v2_with_http_info(ids, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DataProtectionConfiguration.entities_sensitivity_label_get_v2 ...'
  end
  # verify the required parameter 'ids' is set
  if @api_client.config.client_side_validation && ids.nil?
    fail ArgumentError, "Missing the required parameter 'ids' when calling DataProtectionConfiguration.entities_sensitivity_label_get_v2"
  end
  # resource path
  local_var_path = '/data-protection/entities/labels/v2'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'ids'] = @api_client.build_collection_param(ids, :multi)

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'ApiSensitivityLabelMSAResponseV2'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['oauth2']

  new_options = opts.merge(
    :operation => :"DataProtectionConfiguration.entities_sensitivity_label_get_v2",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DataProtectionConfiguration#entities_sensitivity_label_get_v2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#entities_web_location_create_v2(body, opts = {}) ⇒ ApiWebLocationMSAResponseV2

Persist the given web-locations

Parameters:

Returns:



2240
2241
2242
2243
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 2240

def entities_web_location_create_v2(body, opts = {})
  data, _status_code, _headers = entities_web_location_create_v2_with_http_info(body, opts)
  data
end

#entities_web_location_create_v2_with_http_info(body, opts = {}) ⇒ Array<(ApiWebLocationMSAResponseV2, Integer, Hash)>

Persist the given web-locations

Parameters:

Returns:

  • (Array<(ApiWebLocationMSAResponseV2, Integer, Hash)>)

    ApiWebLocationMSAResponseV2 data, response status code and response headers



2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 2249

def entities_web_location_create_v2_with_http_info(body, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DataProtectionConfiguration.entities_web_location_create_v2 ...'
  end
  # verify the required parameter 'body' is set
  if @api_client.config.client_side_validation && body.nil?
    fail ArgumentError, "Missing the required parameter 'body' when calling DataProtectionConfiguration.entities_web_location_create_v2"
  end
  # resource path
  local_var_path = '/data-protection/entities/web-locations/v2'

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
    header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(body)

  # return_type
  return_type = opts[:debug_return_type] || 'ApiWebLocationMSAResponseV2'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['oauth2']

  new_options = opts.merge(
    :operation => :"DataProtectionConfiguration.entities_web_location_create_v2",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DataProtectionConfiguration#entities_web_location_create_v2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#entities_web_location_delete_v2(ids, opts = {}) ⇒ ApiWebLocationMSAResponseV2

Delete web-location

Parameters:

  • ids (Array<String>)

    The ids of the web-location to delete.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



2306
2307
2308
2309
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 2306

def entities_web_location_delete_v2(ids, opts = {})
  data, _status_code, _headers = entities_web_location_delete_v2_with_http_info(ids, opts)
  data
end

#entities_web_location_delete_v2_with_http_info(ids, opts = {}) ⇒ Array<(ApiWebLocationMSAResponseV2, Integer, Hash)>

Delete web-location

Parameters:

  • ids (Array<String>)

    The ids of the web-location to delete.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(ApiWebLocationMSAResponseV2, Integer, Hash)>)

    ApiWebLocationMSAResponseV2 data, response status code and response headers



2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 2315

def entities_web_location_delete_v2_with_http_info(ids, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DataProtectionConfiguration.entities_web_location_delete_v2 ...'
  end
  # verify the required parameter 'ids' is set
  if @api_client.config.client_side_validation && ids.nil?
    fail ArgumentError, "Missing the required parameter 'ids' when calling DataProtectionConfiguration.entities_web_location_delete_v2"
  end
  # resource path
  local_var_path = '/data-protection/entities/web-locations/v2'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'ids'] = @api_client.build_collection_param(ids, :csv)

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'ApiWebLocationMSAResponseV2'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['oauth2']

  new_options = opts.merge(
    :operation => :"DataProtectionConfiguration.entities_web_location_delete_v2",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DataProtectionConfiguration#entities_web_location_delete_v2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#entities_web_location_get_v2(ids, opts = {}) ⇒ ApiWebLocationMSAResponseV2

Get web-location entities matching the provided ID(s)

Parameters:

  • ids (Array<String>)

    The web-location entity id(s) to get.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



2368
2369
2370
2371
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 2368

def entities_web_location_get_v2(ids, opts = {})
  data, _status_code, _headers = entities_web_location_get_v2_with_http_info(ids, opts)
  data
end

#entities_web_location_get_v2_with_http_info(ids, opts = {}) ⇒ Array<(ApiWebLocationMSAResponseV2, Integer, Hash)>

Get web-location entities matching the provided ID(s)

Parameters:

  • ids (Array<String>)

    The web-location entity id(s) to get.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(ApiWebLocationMSAResponseV2, Integer, Hash)>)

    ApiWebLocationMSAResponseV2 data, response status code and response headers



2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 2377

def entities_web_location_get_v2_with_http_info(ids, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DataProtectionConfiguration.entities_web_location_get_v2 ...'
  end
  # verify the required parameter 'ids' is set
  if @api_client.config.client_side_validation && ids.nil?
    fail ArgumentError, "Missing the required parameter 'ids' when calling DataProtectionConfiguration.entities_web_location_get_v2"
  end
  # resource path
  local_var_path = '/data-protection/entities/web-locations/v2'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'ids'] = @api_client.build_collection_param(ids, :multi)

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'ApiWebLocationMSAResponseV2'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['oauth2']

  new_options = opts.merge(
    :operation => :"DataProtectionConfiguration.entities_web_location_get_v2",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DataProtectionConfiguration#entities_web_location_get_v2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#entities_web_location_patch_v2(id, body, opts = {}) ⇒ ApiWebLocationMSAResponseV2

Update a web-location

Parameters:

  • id (String)

    The web-location entity id to update.

  • body (ApiUpdateWebLocationRequestV2)

    Definition of updated web-location

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



2431
2432
2433
2434
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 2431

def entities_web_location_patch_v2(id, body, opts = {})
  data, _status_code, _headers = entities_web_location_patch_v2_with_http_info(id, body, opts)
  data
end

#entities_web_location_patch_v2_with_http_info(id, body, opts = {}) ⇒ Array<(ApiWebLocationMSAResponseV2, Integer, Hash)>

Update a web-location

Parameters:

  • id (String)

    The web-location entity id to update.

  • body (ApiUpdateWebLocationRequestV2)

    Definition of updated web-location

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(ApiWebLocationMSAResponseV2, Integer, Hash)>)

    ApiWebLocationMSAResponseV2 data, response status code and response headers



2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 2441

def entities_web_location_patch_v2_with_http_info(id, body, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DataProtectionConfiguration.entities_web_location_patch_v2 ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DataProtectionConfiguration.entities_web_location_patch_v2"
  end
  # verify the required parameter 'body' is set
  if @api_client.config.client_side_validation && body.nil?
    fail ArgumentError, "Missing the required parameter 'body' when calling DataProtectionConfiguration.entities_web_location_patch_v2"
  end
  # resource path
  local_var_path = '/data-protection/entities/web-locations/v2'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'id'] = id

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
    header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(body)

  # return_type
  return_type = opts[:debug_return_type] || 'ApiWebLocationMSAResponseV2'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['oauth2']

  new_options = opts.merge(
    :operation => :"DataProtectionConfiguration.entities_web_location_patch_v2",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DataProtectionConfiguration#entities_web_location_patch_v2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#queries_classification_get_v2(opts = {}) ⇒ ResponsesPolicySearchV1

Search for classifications that match the provided criteria

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :filter (String)

    Filter results by specific attributes , allowed attributes are [properties.protection_mode properties.sensitivity_labels properties.web_sources created_at created_by modified_by modified_at properties.content_patterns_operator properties.evidence_duplication_enabled name properties.content_patterns properties.file_types]

  • :offset (Integer)

    The offset to start retrieving records from

  • :limit (Integer)

    The maximum records to return (default to 100)

  • :sort (String)

    The property to sort by, allowed fields are :[name created_at modified_at]

Returns:



2506
2507
2508
2509
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 2506

def queries_classification_get_v2(opts = {})
  data, _status_code, _headers = queries_classification_get_v2_with_http_info(opts)
  data
end

#queries_classification_get_v2_with_http_info(opts = {}) ⇒ Array<(ResponsesPolicySearchV1, Integer, Hash)>

Search for classifications that match the provided criteria

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :filter (String)

    Filter results by specific attributes , allowed attributes are [properties.protection_mode properties.sensitivity_labels properties.web_sources created_at created_by modified_by modified_at properties.content_patterns_operator properties.evidence_duplication_enabled name properties.content_patterns properties.file_types]

  • :offset (Integer)

    The offset to start retrieving records from

  • :limit (Integer)

    The maximum records to return (default to 100)

  • :sort (String)

    The property to sort by, allowed fields are :[name created_at modified_at]

Returns:

  • (Array<(ResponsesPolicySearchV1, Integer, Hash)>)

    ResponsesPolicySearchV1 data, response status code and response headers



2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 2518

def queries_classification_get_v2_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DataProtectionConfiguration.queries_classification_get_v2 ...'
  end
  if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] > 10000
    fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DataProtectionConfiguration.queries_classification_get_v2, must be smaller than or equal to 10000.'
  end

  if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
    fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DataProtectionConfiguration.queries_classification_get_v2, must be greater than or equal to 0.'
  end

  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
    fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DataProtectionConfiguration.queries_classification_get_v2, must be smaller than or equal to 500.'
  end

  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 0
    fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DataProtectionConfiguration.queries_classification_get_v2, must be greater than or equal to 0.'
  end

  # resource path
  local_var_path = '/data-protection/queries/classifications/v2'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
  query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'ResponsesPolicySearchV1'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['oauth2']

  new_options = opts.merge(
    :operation => :"DataProtectionConfiguration.queries_classification_get_v2",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DataProtectionConfiguration#queries_classification_get_v2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#queries_cloud_application_get_v2(opts = {}) ⇒ MsaspecQueryResponse

Get all cloud-application IDs matching the query with filter

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :filter (String)

    Optional filter for searching cloud applications. Allowed filters are &#39;name&#39; (string), &#39;type&#39; (array of strings representing the tier, accepted values are: integrated, predefined, custom), &#39;deleted&#39; (boolean), supports_network_inspection (boolean) and &#39;application_group_id&#39; (string)

  • :sort (String)

    The sort instructions to order by on. Allowed values are &#39;name&#39; (string), &#39;type&#39; (array of strings representing the tier, accepted values are: integrated, predefined, custom), &#39;deleted&#39; (boolean) and &#39;application_group_id&#39; (string)

  • :limit (Integer)

    The number of items to return in this response (default: 100, max: 500). Use with the offset parameter to manage pagination of results. (default to 100)

  • :offset (Integer)

    The offset to start retrieving records from. Use with the limit parameter to manage pagination of results.

Returns:



2589
2590
2591
2592
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 2589

def queries_cloud_application_get_v2(opts = {})
  data, _status_code, _headers = queries_cloud_application_get_v2_with_http_info(opts)
  data
end

#queries_cloud_application_get_v2_with_http_info(opts = {}) ⇒ Array<(MsaspecQueryResponse, Integer, Hash)>

Get all cloud-application IDs matching the query with filter

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :filter (String)

    Optional filter for searching cloud applications. Allowed filters are &#39;name&#39; (string), &#39;type&#39; (array of strings representing the tier, accepted values are: integrated, predefined, custom), &#39;deleted&#39; (boolean), supports_network_inspection (boolean) and &#39;application_group_id&#39; (string)

  • :sort (String)

    The sort instructions to order by on. Allowed values are &#39;name&#39; (string), &#39;type&#39; (array of strings representing the tier, accepted values are: integrated, predefined, custom), &#39;deleted&#39; (boolean) and &#39;application_group_id&#39; (string)

  • :limit (Integer)

    The number of items to return in this response (default: 100, max: 500). Use with the offset parameter to manage pagination of results. (default to 100)

  • :offset (Integer)

    The offset to start retrieving records from. Use with the limit parameter to manage pagination of results.

Returns:

  • (Array<(MsaspecQueryResponse, Integer, Hash)>)

    MsaspecQueryResponse data, response status code and response headers



2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 2601

def queries_cloud_application_get_v2_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DataProtectionConfiguration.queries_cloud_application_get_v2 ...'
  end
  # resource path
  local_var_path = '/data-protection/queries/cloud-applications/v2'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
  query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'MsaspecQueryResponse'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['oauth2']

  new_options = opts.merge(
    :operation => :"DataProtectionConfiguration.queries_cloud_application_get_v2",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DataProtectionConfiguration#queries_cloud_application_get_v2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#queries_content_pattern_get_v2(opts = {}) ⇒ MsaspecQueryResponse

Get all content-pattern IDs matching the query with filter

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :filter (String)

    The filter to use when finding content patterns. Allowed filters are &#39;name&#39;, &#39;type&#39;, &#39;category&#39;, &#39;region&#39;, &#39;example&#39;, &#39;created_at&#39;, &#39;updated_at&#39; and &#39;deleted&#39;

  • :sort (String)

    The sort instructions to order by on. Allowed values are &#39;name&#39;, &#39;type&#39;, &#39;category&#39;, &#39;region&#39;, &#39;created_at&#39;, &#39;updated_at&#39;, &#39;example&#39; and &#39;deleted&#39;

  • :limit (Integer)

    The number of items to return in this response (default: 100, max: 500). Use with the offset parameter to manage pagination of results. (default to 100)

  • :offset (Integer)

    The offset to start retrieving records from. Use with the limit parameter to manage pagination of results.

Returns:



2656
2657
2658
2659
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 2656

def queries_content_pattern_get_v2(opts = {})
  data, _status_code, _headers = queries_content_pattern_get_v2_with_http_info(opts)
  data
end

#queries_content_pattern_get_v2_with_http_info(opts = {}) ⇒ Array<(MsaspecQueryResponse, Integer, Hash)>

Get all content-pattern IDs matching the query with filter

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :filter (String)

    The filter to use when finding content patterns. Allowed filters are &#39;name&#39;, &#39;type&#39;, &#39;category&#39;, &#39;region&#39;, &#39;example&#39;, &#39;created_at&#39;, &#39;updated_at&#39; and &#39;deleted&#39;

  • :sort (String)

    The sort instructions to order by on. Allowed values are &#39;name&#39;, &#39;type&#39;, &#39;category&#39;, &#39;region&#39;, &#39;created_at&#39;, &#39;updated_at&#39;, &#39;example&#39; and &#39;deleted&#39;

  • :limit (Integer)

    The number of items to return in this response (default: 100, max: 500). Use with the offset parameter to manage pagination of results. (default to 100)

  • :offset (Integer)

    The offset to start retrieving records from. Use with the limit parameter to manage pagination of results.

Returns:

  • (Array<(MsaspecQueryResponse, Integer, Hash)>)

    MsaspecQueryResponse data, response status code and response headers



2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 2668

def queries_content_pattern_get_v2_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DataProtectionConfiguration.queries_content_pattern_get_v2 ...'
  end
  # resource path
  local_var_path = '/data-protection/queries/content-patterns/v2'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
  query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'MsaspecQueryResponse'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['oauth2']

  new_options = opts.merge(
    :operation => :"DataProtectionConfiguration.queries_content_pattern_get_v2",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DataProtectionConfiguration#queries_content_pattern_get_v2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#queries_enterprise_account_get_v2(opts = {}) ⇒ MsaspecQueryResponse

Get all enterprise-account IDs matching the query with filter

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :filter (String)

    The filter to use when finding enterprise accounts. Allowed filters are &#39;name&#39;, &#39;application_group_id&#39;, &#39;deleted&#39;, &#39;created_at&#39; and &#39;updated_at&#39;

  • :sort (String)

    The sort instructions to order by on. Allowed values are &#39;name&#39;, &#39;application_group_id&#39;, &#39;deleted&#39;, &#39;created_at&#39; and &#39;updated_at&#39;

  • :limit (Integer)

    The number of items to return in this response (default: 100, max: 500). Use with the offset parameter to manage pagination of results. (default to 100)

  • :offset (Integer)

    The offset to start retrieving records from. Use with the limit parameter to manage pagination of results.

Returns:



2723
2724
2725
2726
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 2723

def (opts = {})
  data, _status_code, _headers = (opts)
  data
end

#queries_enterprise_account_get_v2_with_http_info(opts = {}) ⇒ Array<(MsaspecQueryResponse, Integer, Hash)>

Get all enterprise-account IDs matching the query with filter

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :filter (String)

    The filter to use when finding enterprise accounts. Allowed filters are &#39;name&#39;, &#39;application_group_id&#39;, &#39;deleted&#39;, &#39;created_at&#39; and &#39;updated_at&#39;

  • :sort (String)

    The sort instructions to order by on. Allowed values are &#39;name&#39;, &#39;application_group_id&#39;, &#39;deleted&#39;, &#39;created_at&#39; and &#39;updated_at&#39;

  • :limit (Integer)

    The number of items to return in this response (default: 100, max: 500). Use with the offset parameter to manage pagination of results. (default to 100)

  • :offset (Integer)

    The offset to start retrieving records from. Use with the limit parameter to manage pagination of results.

Returns:

  • (Array<(MsaspecQueryResponse, Integer, Hash)>)

    MsaspecQueryResponse data, response status code and response headers



2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 2735

def (opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DataProtectionConfiguration.queries_enterprise_account_get_v2 ...'
  end
  # resource path
  local_var_path = '/data-protection/queries/enterprise-accounts/v2'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
  query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'MsaspecQueryResponse'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['oauth2']

  new_options = opts.merge(
    :operation => :"DataProtectionConfiguration.queries_enterprise_account_get_v2",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DataProtectionConfiguration#queries_enterprise_account_get_v2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#queries_file_type_get_v2(opts = {}) ⇒ MsaspecQueryResponse

Get all file-type IDs matching the query with filter

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :filter (String)

    The filter to use when finding file types. Allowed filter is &#39;name&#39;, &#39;created_at&#39; and &#39;updated_at&#39;

  • :sort (String)

    The sort instructions to order by on. Allowed values are &#39;name&#39;, &#39;created_at&#39; and &#39;updated_at&#39;

  • :limit (Integer)

    The number of items to return in this response (default: 100, max: 500). Use with the offset parameter to manage pagination of results. (default to 100)

  • :offset (Integer)

    The offset to start retrieving records from. Use with the limit parameter to manage pagination of results.

Returns:



2790
2791
2792
2793
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 2790

def queries_file_type_get_v2(opts = {})
  data, _status_code, _headers = queries_file_type_get_v2_with_http_info(opts)
  data
end

#queries_file_type_get_v2_with_http_info(opts = {}) ⇒ Array<(MsaspecQueryResponse, Integer, Hash)>

Get all file-type IDs matching the query with filter

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :filter (String)

    The filter to use when finding file types. Allowed filter is &#39;name&#39;, &#39;created_at&#39; and &#39;updated_at&#39;

  • :sort (String)

    The sort instructions to order by on. Allowed values are &#39;name&#39;, &#39;created_at&#39; and &#39;updated_at&#39;

  • :limit (Integer)

    The number of items to return in this response (default: 100, max: 500). Use with the offset parameter to manage pagination of results. (default to 100)

  • :offset (Integer)

    The offset to start retrieving records from. Use with the limit parameter to manage pagination of results.

Returns:

  • (Array<(MsaspecQueryResponse, Integer, Hash)>)

    MsaspecQueryResponse data, response status code and response headers



2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 2802

def queries_file_type_get_v2_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DataProtectionConfiguration.queries_file_type_get_v2 ...'
  end
  # resource path
  local_var_path = '/data-protection/queries/file-types/v2'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
  query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'MsaspecQueryResponse'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['oauth2']

  new_options = opts.merge(
    :operation => :"DataProtectionConfiguration.queries_file_type_get_v2",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DataProtectionConfiguration#queries_file_type_get_v2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#queries_local_application_get(x_cs_useruuid, opts = {}) ⇒ MsaspecQueryResponse

Get all local-application IDs matching the query with filter

Parameters:

  • x_cs_useruuid (String)

    The user ID

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :filter (String)

    Optional filter for searching local applications. Allowed filters are &#39;name&#39; (string), is_deleted (boolean), &#39;created_at&#39; and &#39;updated_at&#39;

  • :limit (Integer)

    The number of items to return in this response (default: 100, max: 500). Use with the offset parameter to manage pagination of results. (default to 100)

  • :offset (Integer)

    The offset to start retrieving records from. Use with the limit parameter to manage pagination of results.

Returns:



2857
2858
2859
2860
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 2857

def queries_local_application_get(x_cs_useruuid, opts = {})
  data, _status_code, _headers = queries_local_application_get_with_http_info(x_cs_useruuid, opts)
  data
end

#queries_local_application_get_with_http_info(x_cs_useruuid, opts = {}) ⇒ Array<(MsaspecQueryResponse, Integer, Hash)>

Get all local-application IDs matching the query with filter

Parameters:

  • x_cs_useruuid (String)

    The user ID

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :filter (String)

    Optional filter for searching local applications. Allowed filters are &#39;name&#39; (string), is_deleted (boolean), &#39;created_at&#39; and &#39;updated_at&#39;

  • :limit (Integer)

    The number of items to return in this response (default: 100, max: 500). Use with the offset parameter to manage pagination of results. (default to 100)

  • :offset (Integer)

    The offset to start retrieving records from. Use with the limit parameter to manage pagination of results.

Returns:

  • (Array<(MsaspecQueryResponse, Integer, Hash)>)

    MsaspecQueryResponse data, response status code and response headers



2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 2869

def queries_local_application_get_with_http_info(x_cs_useruuid, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DataProtectionConfiguration.queries_local_application_get ...'
  end
  # verify the required parameter 'x_cs_useruuid' is set
  if @api_client.config.client_side_validation && x_cs_useruuid.nil?
    fail ArgumentError, "Missing the required parameter 'x_cs_useruuid' when calling DataProtectionConfiguration.queries_local_application_get"
  end
  # resource path
  local_var_path = '/data-protection/queries/local-applications/v1'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  header_params[:'X-CS-USERUUID'] = x_cs_useruuid

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'MsaspecQueryResponse'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['oauth2']

  new_options = opts.merge(
    :operation => :"DataProtectionConfiguration.queries_local_application_get",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DataProtectionConfiguration#queries_local_application_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#queries_local_application_group_get(x_cs_useruuid, opts = {}) ⇒ MsaspecQueryResponse

Get all local application group IDs matching the query with filter

Parameters:

  • x_cs_useruuid (String)

    The user ID

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :filter (String)

    Optional filter for searching local application group. Allowed filters are &#39;name&#39; (string), is_deleted (boolean), platform (string), &#39;created_at&#39; and &#39;updated_at&#39;

  • :limit (Integer)

    The number of items to return in this response (default: 100, max: 500). Use with the offset parameter to manage pagination of results. (default to 100)

  • :offset (Integer)

    The offset to start retrieving records from. Use with the limit parameter to manage pagination of results.

Returns:



2928
2929
2930
2931
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 2928

def queries_local_application_group_get(x_cs_useruuid, opts = {})
  data, _status_code, _headers = queries_local_application_group_get_with_http_info(x_cs_useruuid, opts)
  data
end

#queries_local_application_group_get_with_http_info(x_cs_useruuid, opts = {}) ⇒ Array<(MsaspecQueryResponse, Integer, Hash)>

Get all local application group IDs matching the query with filter

Parameters:

  • x_cs_useruuid (String)

    The user ID

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :filter (String)

    Optional filter for searching local application group. Allowed filters are &#39;name&#39; (string), is_deleted (boolean), platform (string), &#39;created_at&#39; and &#39;updated_at&#39;

  • :limit (Integer)

    The number of items to return in this response (default: 100, max: 500). Use with the offset parameter to manage pagination of results. (default to 100)

  • :offset (Integer)

    The offset to start retrieving records from. Use with the limit parameter to manage pagination of results.

Returns:

  • (Array<(MsaspecQueryResponse, Integer, Hash)>)

    MsaspecQueryResponse data, response status code and response headers



2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 2940

def queries_local_application_group_get_with_http_info(x_cs_useruuid, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DataProtectionConfiguration.queries_local_application_group_get ...'
  end
  # verify the required parameter 'x_cs_useruuid' is set
  if @api_client.config.client_side_validation && x_cs_useruuid.nil?
    fail ArgumentError, "Missing the required parameter 'x_cs_useruuid' when calling DataProtectionConfiguration.queries_local_application_group_get"
  end
  # resource path
  local_var_path = '/data-protection/queries/local-application-groups/v1'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  header_params[:'X-CS-USERUUID'] = x_cs_useruuid

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'MsaspecQueryResponse'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['oauth2']

  new_options = opts.merge(
    :operation => :"DataProtectionConfiguration.queries_local_application_group_get",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DataProtectionConfiguration#queries_local_application_group_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#queries_policy_get_v2(platform_name, opts = {}) ⇒ ResponsesPolicySearchV1

Search for policies that match the provided criteria

Parameters:

  • platform_name (String)

    platform name of the policies to search, either &#39;win&#39; or &#39;mac&#39;

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :filter (String)

    Filter results by specific attributes , allowed attributes are [properties.screen_capture_duration_post_event properties.enable_screen_capture precedence is_enabled modified_by properties.similarity_detection properties.similarity_threshold properties.enable_end_user_notifications_unsupported_browser properties.evidence_duplication_enabled_default properties.screen_capture_duration_pre_event modified_at properties.max_file_size_to_inspect_unit properties.evidence_encrypted_enabled properties.be_exclude_domains properties.be_paste_timeout_duration_milliseconds properties.be_paste_timeout_response created_at properties.enable_content_inspection properties.custom_block_notification properties.be_upload_timeout_duration_seconds description created_by properties.browsers_without_active_extension properties.network_inspection_files_exceeding_size_limit properties.be_paste_clipboard_over_size_behaviour_block name is_default properties.enable_context_inspection properties.enable_clipboard_inspection properties.allow_notifications properties.enable_network_inspection properties.evidence_storage_free_disk_perc properties.evidence_storage_max_size properties.evidence_download_enabled properties.classifications properties.besplash_enabled properties.be_paste_clipboard_min_size_unit properties.max_file_size_to_inspect properties.euj_dialog_timeout properties.min_confidence_level properties.inspection_depth properties.block_all_data_access properties.block_notifications properties.custom_allow_notification properties.besplash_message_source properties.besplash_custom_message properties.be_paste_clipboard_min_size properties.be_upload_timeout_response properties.be_paste_clipboard_max_size properties.be_paste_clipboard_max_size_unit]

  • :offset (Integer)

    The offset to start retrieving records from

  • :limit (Integer)

    The maximum records to return (default to 100)

  • :sort (String)

    The property to sort by, allowed fields are :[name precedence created_at modified_at]

Returns:



3000
3001
3002
3003
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 3000

def queries_policy_get_v2(platform_name, opts = {})
  data, _status_code, _headers = queries_policy_get_v2_with_http_info(platform_name, opts)
  data
end

#queries_policy_get_v2_with_http_info(platform_name, opts = {}) ⇒ Array<(ResponsesPolicySearchV1, Integer, Hash)>

Search for policies that match the provided criteria

Parameters:

  • platform_name (String)

    platform name of the policies to search, either &#39;win&#39; or &#39;mac&#39;

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :filter (String)

    Filter results by specific attributes , allowed attributes are [properties.screen_capture_duration_post_event properties.enable_screen_capture precedence is_enabled modified_by properties.similarity_detection properties.similarity_threshold properties.enable_end_user_notifications_unsupported_browser properties.evidence_duplication_enabled_default properties.screen_capture_duration_pre_event modified_at properties.max_file_size_to_inspect_unit properties.evidence_encrypted_enabled properties.be_exclude_domains properties.be_paste_timeout_duration_milliseconds properties.be_paste_timeout_response created_at properties.enable_content_inspection properties.custom_block_notification properties.be_upload_timeout_duration_seconds description created_by properties.browsers_without_active_extension properties.network_inspection_files_exceeding_size_limit properties.be_paste_clipboard_over_size_behaviour_block name is_default properties.enable_context_inspection properties.enable_clipboard_inspection properties.allow_notifications properties.enable_network_inspection properties.evidence_storage_free_disk_perc properties.evidence_storage_max_size properties.evidence_download_enabled properties.classifications properties.besplash_enabled properties.be_paste_clipboard_min_size_unit properties.max_file_size_to_inspect properties.euj_dialog_timeout properties.min_confidence_level properties.inspection_depth properties.block_all_data_access properties.block_notifications properties.custom_allow_notification properties.besplash_message_source properties.besplash_custom_message properties.be_paste_clipboard_min_size properties.be_upload_timeout_response properties.be_paste_clipboard_max_size properties.be_paste_clipboard_max_size_unit]

  • :offset (Integer)

    The offset to start retrieving records from

  • :limit (Integer)

    The maximum records to return (default to 100)

  • :sort (String)

    The property to sort by, allowed fields are :[name precedence created_at modified_at]

Returns:

  • (Array<(ResponsesPolicySearchV1, Integer, Hash)>)

    ResponsesPolicySearchV1 data, response status code and response headers



3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 3013

def queries_policy_get_v2_with_http_info(platform_name, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DataProtectionConfiguration.queries_policy_get_v2 ...'
  end
  # verify the required parameter 'platform_name' is set
  if @api_client.config.client_side_validation && platform_name.nil?
    fail ArgumentError, "Missing the required parameter 'platform_name' when calling DataProtectionConfiguration.queries_policy_get_v2"
  end
  if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] > 10000
    fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DataProtectionConfiguration.queries_policy_get_v2, must be smaller than or equal to 10000.'
  end

  if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
    fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DataProtectionConfiguration.queries_policy_get_v2, must be greater than or equal to 0.'
  end

  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
    fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DataProtectionConfiguration.queries_policy_get_v2, must be smaller than or equal to 500.'
  end

  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 0
    fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DataProtectionConfiguration.queries_policy_get_v2, must be greater than or equal to 0.'
  end

  # resource path
  local_var_path = '/data-protection/queries/policies/v2'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'platform_name'] = platform_name
  query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
  query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'ResponsesPolicySearchV1'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['oauth2']

  new_options = opts.merge(
    :operation => :"DataProtectionConfiguration.queries_policy_get_v2",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DataProtectionConfiguration#queries_policy_get_v2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#queries_sensitivity_label_get_v2(opts = {}) ⇒ MsaspecQueryResponse

Get all sensitivity label IDs matching the query with filter

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :filter (String)

    The filter to use when finding sensitivity labels. The only allowed filters are &#39;name&#39;, &#39;display_name&#39;, &#39;external_id&#39; and &#39;deleted&#39;

  • :sort (String)

    The sort instructions to order by on. Allowed values are &#39;name&#39;, &#39;display_name&#39;, &#39;deleted&#39;, &#39;created_at&#39; and &#39;updated_at&#39;

  • :limit (Integer)

    The number of items to return in this response (default: 100, max: 500). Use with the offset parameter to manage pagination of results. (default to 100)

  • :offset (Integer)

    The offset to start retrieving records from. Use with the limit parameter to manage pagination of results.

Returns:



3089
3090
3091
3092
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 3089

def queries_sensitivity_label_get_v2(opts = {})
  data, _status_code, _headers = queries_sensitivity_label_get_v2_with_http_info(opts)
  data
end

#queries_sensitivity_label_get_v2_with_http_info(opts = {}) ⇒ Array<(MsaspecQueryResponse, Integer, Hash)>

Get all sensitivity label IDs matching the query with filter

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :filter (String)

    The filter to use when finding sensitivity labels. The only allowed filters are &#39;name&#39;, &#39;display_name&#39;, &#39;external_id&#39; and &#39;deleted&#39;

  • :sort (String)

    The sort instructions to order by on. Allowed values are &#39;name&#39;, &#39;display_name&#39;, &#39;deleted&#39;, &#39;created_at&#39; and &#39;updated_at&#39;

  • :limit (Integer)

    The number of items to return in this response (default: 100, max: 500). Use with the offset parameter to manage pagination of results. (default to 100)

  • :offset (Integer)

    The offset to start retrieving records from. Use with the limit parameter to manage pagination of results.

Returns:

  • (Array<(MsaspecQueryResponse, Integer, Hash)>)

    MsaspecQueryResponse data, response status code and response headers



3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 3101

def queries_sensitivity_label_get_v2_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DataProtectionConfiguration.queries_sensitivity_label_get_v2 ...'
  end
  # resource path
  local_var_path = '/data-protection/queries/labels/v2'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
  query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'MsaspecQueryResponse'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['oauth2']

  new_options = opts.merge(
    :operation => :"DataProtectionConfiguration.queries_sensitivity_label_get_v2",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DataProtectionConfiguration#queries_sensitivity_label_get_v2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#queries_web_location_get_v2(opts = {}) ⇒ MsaspecQueryResponse

Get web-location IDs matching the query with filter

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :filter (String)

    The filter to use when finding web locations. Allowed filters are &#39;name&#39;, &#39;type&#39;, &#39;deleted&#39;, &#39;application_id&#39;, &#39;provider_location_id&#39; and &#39;enterprise_account_id&#39;

  • :type (String)

    The type of entity to query. Allowed values are &#39;predefined&#39; and &#39;custom&#39;

  • :limit (Integer)

    The number of items to return in this response (default: 100, max: 500). Use with the offset parameter to manage pagination of results. (default to 100)

  • :offset (Integer)

    The offset to start retrieving records from. Use with the limit parameter to manage pagination of results.

Returns:



3156
3157
3158
3159
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 3156

def queries_web_location_get_v2(opts = {})
  data, _status_code, _headers = queries_web_location_get_v2_with_http_info(opts)
  data
end

#queries_web_location_get_v2_with_http_info(opts = {}) ⇒ Array<(MsaspecQueryResponse, Integer, Hash)>

Get web-location IDs matching the query with filter

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :filter (String)

    The filter to use when finding web locations. Allowed filters are &#39;name&#39;, &#39;type&#39;, &#39;deleted&#39;, &#39;application_id&#39;, &#39;provider_location_id&#39; and &#39;enterprise_account_id&#39;

  • :type (String)

    The type of entity to query. Allowed values are &#39;predefined&#39; and &#39;custom&#39;

  • :limit (Integer)

    The number of items to return in this response (default: 100, max: 500). Use with the offset parameter to manage pagination of results. (default to 100)

  • :offset (Integer)

    The offset to start retrieving records from. Use with the limit parameter to manage pagination of results.

Returns:

  • (Array<(MsaspecQueryResponse, Integer, Hash)>)

    MsaspecQueryResponse data, response status code and response headers



3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
# File 'lib/crimson-falcon/api/data_protection_configuration.rb', line 3168

def queries_web_location_get_v2_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DataProtectionConfiguration.queries_web_location_get_v2 ...'
  end
  # resource path
  local_var_path = '/data-protection/queries/web-locations/v2'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
  query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil?
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'MsaspecQueryResponse'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['oauth2']

  new_options = opts.merge(
    :operation => :"DataProtectionConfiguration.queries_web_location_get_v2",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DataProtectionConfiguration#queries_web_location_get_v2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end