google-apis-dlp_v2 0.61.0 → 0.63.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -659,6 +659,47 @@ module Google
659
659
  execute_or_queue_command(command, &block)
660
660
  end
661
661
 
662
+ # Searches for Connections in a parent.
663
+ # @param [String] parent
664
+ # Required. Parent name, typically an organization, without location. For
665
+ # example: "organizations/12345678".
666
+ # @param [String] filter
667
+ # Optional. * Supported fields/values - `state` - MISSING|AVAILABLE|ERROR
668
+ # @param [Fixnum] page_size
669
+ # Optional. Number of results per page, max 1000.
670
+ # @param [String] page_token
671
+ # Optional. Page token from a previous page to return the next set of results.
672
+ # If set, all other request fields must match the original request.
673
+ # @param [String] fields
674
+ # Selector specifying which fields to include in a partial response.
675
+ # @param [String] quota_user
676
+ # Available to use for quota purposes for server-side applications. Can be any
677
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
678
+ # @param [Google::Apis::RequestOptions] options
679
+ # Request-specific options
680
+ #
681
+ # @yield [result, err] Result & error if block supplied
682
+ # @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2SearchConnectionsResponse] parsed result object
683
+ # @yieldparam err [StandardError] error object if request failed
684
+ #
685
+ # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2SearchConnectionsResponse]
686
+ #
687
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
688
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
689
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
690
+ def search_organization_location_connections(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
691
+ command = make_simple_command(:get, 'v2/{+parent}/connections:search', options)
692
+ command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2SearchConnectionsResponse::Representation
693
+ command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2SearchConnectionsResponse
694
+ command.params['parent'] = parent unless parent.nil?
695
+ command.query['filter'] = filter unless filter.nil?
696
+ command.query['pageSize'] = page_size unless page_size.nil?
697
+ command.query['pageToken'] = page_token unless page_token.nil?
698
+ command.query['fields'] = fields unless fields.nil?
699
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
700
+ execute_or_queue_command(command, &block)
701
+ end
702
+
662
703
  # Creates a DeidentifyTemplate for reusing frequently used configuration for de-
663
704
  # identifying content, images, and storage. See https://cloud.google.com/
664
705
  # sensitive-data-protection/docs/creating-templates-deid to learn more.
@@ -1858,6 +1899,37 @@ module Google
1858
1899
  execute_or_queue_command(command, &block)
1859
1900
  end
1860
1901
 
1902
+ # Delete a TableDataProfile. Will not prevent the profile from being regenerated
1903
+ # if the table is still included in a discovery configuration.
1904
+ # @param [String] name
1905
+ # Required. Resource name of the table data profile.
1906
+ # @param [String] fields
1907
+ # Selector specifying which fields to include in a partial response.
1908
+ # @param [String] quota_user
1909
+ # Available to use for quota purposes for server-side applications. Can be any
1910
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1911
+ # @param [Google::Apis::RequestOptions] options
1912
+ # Request-specific options
1913
+ #
1914
+ # @yield [result, err] Result & error if block supplied
1915
+ # @yieldparam result [Google::Apis::DlpV2::GoogleProtobufEmpty] parsed result object
1916
+ # @yieldparam err [StandardError] error object if request failed
1917
+ #
1918
+ # @return [Google::Apis::DlpV2::GoogleProtobufEmpty]
1919
+ #
1920
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1921
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1922
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1923
+ def delete_organization_location_table_data_profile(name, fields: nil, quota_user: nil, options: nil, &block)
1924
+ command = make_simple_command(:delete, 'v2/{+name}', options)
1925
+ command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
1926
+ command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
1927
+ command.params['name'] = name unless name.nil?
1928
+ command.query['fields'] = fields unless fields.nil?
1929
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1930
+ execute_or_queue_command(command, &block)
1931
+ end
1932
+
1861
1933
  # Gets a table data profile.
1862
1934
  # @param [String] name
1863
1935
  # Required. Resource name, for example `organizations/12345/locations/us/
@@ -3344,6 +3416,217 @@ module Google
3344
3416
  execute_or_queue_command(command, &block)
3345
3417
  end
3346
3418
 
3419
+ # Create a Connection to an external data source.
3420
+ # @param [String] parent
3421
+ # Required. Parent resource name in the format: "projects/`project`/locations/`
3422
+ # location`".
3423
+ # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateConnectionRequest] google_privacy_dlp_v2_create_connection_request_object
3424
+ # @param [String] fields
3425
+ # Selector specifying which fields to include in a partial response.
3426
+ # @param [String] quota_user
3427
+ # Available to use for quota purposes for server-side applications. Can be any
3428
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3429
+ # @param [Google::Apis::RequestOptions] options
3430
+ # Request-specific options
3431
+ #
3432
+ # @yield [result, err] Result & error if block supplied
3433
+ # @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2Connection] parsed result object
3434
+ # @yieldparam err [StandardError] error object if request failed
3435
+ #
3436
+ # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2Connection]
3437
+ #
3438
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3439
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3440
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3441
+ def create_project_location_connection(parent, google_privacy_dlp_v2_create_connection_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3442
+ command = make_simple_command(:post, 'v2/{+parent}/connections', options)
3443
+ command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateConnectionRequest::Representation
3444
+ command.request_object = google_privacy_dlp_v2_create_connection_request_object
3445
+ command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2Connection::Representation
3446
+ command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2Connection
3447
+ command.params['parent'] = parent unless parent.nil?
3448
+ command.query['fields'] = fields unless fields.nil?
3449
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3450
+ execute_or_queue_command(command, &block)
3451
+ end
3452
+
3453
+ # Delete a Connection.
3454
+ # @param [String] name
3455
+ # Required. Resource name of the Connection to be deleted, in the format: "
3456
+ # projects/`project`/locations/`location`/connections/`connection`".
3457
+ # @param [String] fields
3458
+ # Selector specifying which fields to include in a partial response.
3459
+ # @param [String] quota_user
3460
+ # Available to use for quota purposes for server-side applications. Can be any
3461
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3462
+ # @param [Google::Apis::RequestOptions] options
3463
+ # Request-specific options
3464
+ #
3465
+ # @yield [result, err] Result & error if block supplied
3466
+ # @yieldparam result [Google::Apis::DlpV2::GoogleProtobufEmpty] parsed result object
3467
+ # @yieldparam err [StandardError] error object if request failed
3468
+ #
3469
+ # @return [Google::Apis::DlpV2::GoogleProtobufEmpty]
3470
+ #
3471
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3472
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3473
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3474
+ def delete_project_location_connection(name, fields: nil, quota_user: nil, options: nil, &block)
3475
+ command = make_simple_command(:delete, 'v2/{+name}', options)
3476
+ command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
3477
+ command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
3478
+ command.params['name'] = name unless name.nil?
3479
+ command.query['fields'] = fields unless fields.nil?
3480
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3481
+ execute_or_queue_command(command, &block)
3482
+ end
3483
+
3484
+ # Get a Connection by name.
3485
+ # @param [String] name
3486
+ # Required. Resource name in the format: "projects/`project`/locations/`location`
3487
+ # /connections/`connection`".
3488
+ # @param [String] fields
3489
+ # Selector specifying which fields to include in a partial response.
3490
+ # @param [String] quota_user
3491
+ # Available to use for quota purposes for server-side applications. Can be any
3492
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3493
+ # @param [Google::Apis::RequestOptions] options
3494
+ # Request-specific options
3495
+ #
3496
+ # @yield [result, err] Result & error if block supplied
3497
+ # @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2Connection] parsed result object
3498
+ # @yieldparam err [StandardError] error object if request failed
3499
+ #
3500
+ # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2Connection]
3501
+ #
3502
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3503
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3504
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3505
+ def get_project_location_connection(name, fields: nil, quota_user: nil, options: nil, &block)
3506
+ command = make_simple_command(:get, 'v2/{+name}', options)
3507
+ command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2Connection::Representation
3508
+ command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2Connection
3509
+ command.params['name'] = name unless name.nil?
3510
+ command.query['fields'] = fields unless fields.nil?
3511
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3512
+ execute_or_queue_command(command, &block)
3513
+ end
3514
+
3515
+ # Lists Connections in a parent.
3516
+ # @param [String] parent
3517
+ # Required. Parent name, for example: "projects/project-id/locations/global".
3518
+ # @param [String] filter
3519
+ # Optional. * Supported fields/values - `state` - MISSING|AVAILABLE|ERROR
3520
+ # @param [Fixnum] page_size
3521
+ # Optional. Number of results per page, max 1000.
3522
+ # @param [String] page_token
3523
+ # Optional. Page token from a previous page to return the next set of results.
3524
+ # If set, all other request fields must match the original request.
3525
+ # @param [String] fields
3526
+ # Selector specifying which fields to include in a partial response.
3527
+ # @param [String] quota_user
3528
+ # Available to use for quota purposes for server-side applications. Can be any
3529
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3530
+ # @param [Google::Apis::RequestOptions] options
3531
+ # Request-specific options
3532
+ #
3533
+ # @yield [result, err] Result & error if block supplied
3534
+ # @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2ListConnectionsResponse] parsed result object
3535
+ # @yieldparam err [StandardError] error object if request failed
3536
+ #
3537
+ # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ListConnectionsResponse]
3538
+ #
3539
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3540
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3541
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3542
+ def list_project_location_connections(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
3543
+ command = make_simple_command(:get, 'v2/{+parent}/connections', options)
3544
+ command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListConnectionsResponse::Representation
3545
+ command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListConnectionsResponse
3546
+ command.params['parent'] = parent unless parent.nil?
3547
+ command.query['filter'] = filter unless filter.nil?
3548
+ command.query['pageSize'] = page_size unless page_size.nil?
3549
+ command.query['pageToken'] = page_token unless page_token.nil?
3550
+ command.query['fields'] = fields unless fields.nil?
3551
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3552
+ execute_or_queue_command(command, &block)
3553
+ end
3554
+
3555
+ # Update a Connection.
3556
+ # @param [String] name
3557
+ # Required. Resource name in the format: "projects/`project`/locations/`location`
3558
+ # /connections/`connection`".
3559
+ # @param [Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateConnectionRequest] google_privacy_dlp_v2_update_connection_request_object
3560
+ # @param [String] fields
3561
+ # Selector specifying which fields to include in a partial response.
3562
+ # @param [String] quota_user
3563
+ # Available to use for quota purposes for server-side applications. Can be any
3564
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3565
+ # @param [Google::Apis::RequestOptions] options
3566
+ # Request-specific options
3567
+ #
3568
+ # @yield [result, err] Result & error if block supplied
3569
+ # @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2Connection] parsed result object
3570
+ # @yieldparam err [StandardError] error object if request failed
3571
+ #
3572
+ # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2Connection]
3573
+ #
3574
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3575
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3576
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3577
+ def patch_project_location_connection(name, google_privacy_dlp_v2_update_connection_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3578
+ command = make_simple_command(:patch, 'v2/{+name}', options)
3579
+ command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateConnectionRequest::Representation
3580
+ command.request_object = google_privacy_dlp_v2_update_connection_request_object
3581
+ command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2Connection::Representation
3582
+ command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2Connection
3583
+ command.params['name'] = name unless name.nil?
3584
+ command.query['fields'] = fields unless fields.nil?
3585
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3586
+ execute_or_queue_command(command, &block)
3587
+ end
3588
+
3589
+ # Searches for Connections in a parent.
3590
+ # @param [String] parent
3591
+ # Required. Parent name, typically an organization, without location. For
3592
+ # example: "organizations/12345678".
3593
+ # @param [String] filter
3594
+ # Optional. * Supported fields/values - `state` - MISSING|AVAILABLE|ERROR
3595
+ # @param [Fixnum] page_size
3596
+ # Optional. Number of results per page, max 1000.
3597
+ # @param [String] page_token
3598
+ # Optional. Page token from a previous page to return the next set of results.
3599
+ # If set, all other request fields must match the original request.
3600
+ # @param [String] fields
3601
+ # Selector specifying which fields to include in a partial response.
3602
+ # @param [String] quota_user
3603
+ # Available to use for quota purposes for server-side applications. Can be any
3604
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3605
+ # @param [Google::Apis::RequestOptions] options
3606
+ # Request-specific options
3607
+ #
3608
+ # @yield [result, err] Result & error if block supplied
3609
+ # @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2SearchConnectionsResponse] parsed result object
3610
+ # @yieldparam err [StandardError] error object if request failed
3611
+ #
3612
+ # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2SearchConnectionsResponse]
3613
+ #
3614
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3615
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3616
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3617
+ def search_project_location_connections(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
3618
+ command = make_simple_command(:get, 'v2/{+parent}/connections:search', options)
3619
+ command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2SearchConnectionsResponse::Representation
3620
+ command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2SearchConnectionsResponse
3621
+ command.params['parent'] = parent unless parent.nil?
3622
+ command.query['filter'] = filter unless filter.nil?
3623
+ command.query['pageSize'] = page_size unless page_size.nil?
3624
+ command.query['pageToken'] = page_token unless page_token.nil?
3625
+ command.query['fields'] = fields unless fields.nil?
3626
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3627
+ execute_or_queue_command(command, &block)
3628
+ end
3629
+
3347
3630
  # De-identifies potentially sensitive info from a ContentItem. This method has
3348
3631
  # limits on input size and output size. See https://cloud.google.com/sensitive-
3349
3632
  # data-protection/docs/deidentify-sensitive-data to learn more. When no
@@ -5009,6 +5292,37 @@ module Google
5009
5292
  execute_or_queue_command(command, &block)
5010
5293
  end
5011
5294
 
5295
+ # Delete a TableDataProfile. Will not prevent the profile from being regenerated
5296
+ # if the table is still included in a discovery configuration.
5297
+ # @param [String] name
5298
+ # Required. Resource name of the table data profile.
5299
+ # @param [String] fields
5300
+ # Selector specifying which fields to include in a partial response.
5301
+ # @param [String] quota_user
5302
+ # Available to use for quota purposes for server-side applications. Can be any
5303
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5304
+ # @param [Google::Apis::RequestOptions] options
5305
+ # Request-specific options
5306
+ #
5307
+ # @yield [result, err] Result & error if block supplied
5308
+ # @yieldparam result [Google::Apis::DlpV2::GoogleProtobufEmpty] parsed result object
5309
+ # @yieldparam err [StandardError] error object if request failed
5310
+ #
5311
+ # @return [Google::Apis::DlpV2::GoogleProtobufEmpty]
5312
+ #
5313
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5314
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5315
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5316
+ def delete_project_location_table_data_profile(name, fields: nil, quota_user: nil, options: nil, &block)
5317
+ command = make_simple_command(:delete, 'v2/{+name}', options)
5318
+ command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
5319
+ command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
5320
+ command.params['name'] = name unless name.nil?
5321
+ command.query['fields'] = fields unless fields.nil?
5322
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5323
+ execute_or_queue_command(command, &block)
5324
+ end
5325
+
5012
5326
  # Gets a table data profile.
5013
5327
  # @param [String] name
5014
5328
  # Required. Resource name, for example `organizations/12345/locations/us/
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-dlp_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.61.0
4
+ version: 0.63.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-17 00:00:00.000000000 Z
11
+ date: 2024-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dlp_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-dlp_v2/v0.61.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-dlp_v2/v0.63.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dlp_v2
63
63
  post_install_message:
64
64
  rdoc_options: []