google-apis-dlp_v2 0.60.0 → 0.62.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/dlp_v2/classes.rb +537 -9
- data/lib/google/apis/dlp_v2/gem_version.rb +2 -2
- data/lib/google/apis/dlp_v2/representations.rb +275 -0
- data/lib/google/apis/dlp_v2/service.rb +358 -44
- metadata +3 -3
@@ -591,11 +591,11 @@ module Google
|
|
591
591
|
execute_or_queue_command(command, &block)
|
592
592
|
end
|
593
593
|
|
594
|
-
# Lists data profiles for an organization.
|
594
|
+
# Lists column data profiles for an organization.
|
595
595
|
# @param [String] parent
|
596
596
|
# Required. Resource name of the organization or project, for example `
|
597
|
-
# organizations/433245324/locations/europe` or projects/project-id/locations/
|
598
|
-
# asia
|
597
|
+
# organizations/433245324/locations/europe` or `projects/project-id/locations/
|
598
|
+
# asia`.
|
599
599
|
# @param [String] filter
|
600
600
|
# Allows filtering. Supported syntax: * Filter expressions are made up of one or
|
601
601
|
# more restrictions. * Restrictions can be combined by `AND` or `OR` logical
|
@@ -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.
|
@@ -1590,7 +1631,7 @@ module Google
|
|
1590
1631
|
execute_or_queue_command(command, &block)
|
1591
1632
|
end
|
1592
1633
|
|
1593
|
-
# Lists data profiles for an organization.
|
1634
|
+
# Lists project data profiles for an organization.
|
1594
1635
|
# @param [String] parent
|
1595
1636
|
# Required. organizations/`org_id`/locations/`loc_id`
|
1596
1637
|
# @param [String] filter
|
@@ -1601,15 +1642,15 @@ module Google
|
|
1601
1642
|
# sensitivity_level` - HIGH|MODERATE|LOW - `data_risk_level` - HIGH|MODERATE|LOW
|
1602
1643
|
# - `status_code` - an RPC status code as defined in https://github.com/
|
1603
1644
|
# googleapis/googleapis/blob/master/google/rpc/code.proto * The operator must be
|
1604
|
-
# `=` or `!=`. Examples: * project_id = 12345 AND status_code = 1 *
|
1605
|
-
# 12345 AND sensitivity_level = HIGH The length of this field
|
1606
|
-
# than 500 characters.
|
1645
|
+
# `=` or `!=`. Examples: * `project_id = 12345 AND status_code = 1` * `
|
1646
|
+
# project_id = 12345 AND sensitivity_level = HIGH` The length of this field
|
1647
|
+
# should be no more than 500 characters.
|
1607
1648
|
# @param [String] order_by
|
1608
1649
|
# Comma separated list of fields to order by, followed by `asc` or `desc`
|
1609
1650
|
# postfix. This list is case insensitive. The default sorting order is ascending.
|
1610
1651
|
# Redundant space characters are insignificant. Only one order field at a time
|
1611
1652
|
# is allowed. Examples: * `project_id` * `sensitivity_level desc` Supported
|
1612
|
-
# fields are: - `project_id`:
|
1653
|
+
# fields are: - `project_id`: Google Cloud project ID - `sensitivity_level`: How
|
1613
1654
|
# sensitive the data in a project is, at most. - `data_risk_level`: How much
|
1614
1655
|
# risk is associated with this data. - `profile_last_generated`: When the
|
1615
1656
|
# profile was last updated in epoch seconds.
|
@@ -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/
|
@@ -1889,7 +1961,7 @@ module Google
|
|
1889
1961
|
execute_or_queue_command(command, &block)
|
1890
1962
|
end
|
1891
1963
|
|
1892
|
-
# Lists data profiles for an organization.
|
1964
|
+
# Lists table data profiles for an organization.
|
1893
1965
|
# @param [String] parent
|
1894
1966
|
# Required. Resource name of the organization or project, for example `
|
1895
1967
|
# organizations/433245324/locations/europe` or `projects/project-id/locations/
|
@@ -1899,24 +1971,24 @@ module Google
|
|
1899
1971
|
# more restrictions. * Restrictions can be combined by `AND` or `OR` logical
|
1900
1972
|
# operators. A sequence of restrictions implicitly uses `AND`. * A restriction
|
1901
1973
|
# has the form of ``field` `operator` `value``. * Supported fields/values: - `
|
1902
|
-
# project_id` - The
|
1903
|
-
# table_id` - The ID of the BigQuery table. - `sensitivity_level`
|
1904
|
-
# MODERATE|LOW - `data_risk_level` - HIGH|MODERATE|LOW - `
|
1905
|
-
# PUBLIC|RESTRICTED - `status_code` - an RPC status code
|
1906
|
-
# github.com/googleapis/googleapis/blob/master/google/rpc/
|
1907
|
-
# operator must be `=` or `!=`. Examples: * project_id = 12345
|
1908
|
-
# 1 * project_id = 12345 AND sensitivity_level = HIGH *
|
1909
|
-
# resource_visibility = PUBLIC The length of this field
|
1910
|
-
# 500 characters.
|
1974
|
+
# project_id` - The Google Cloud project ID. - `dataset_id` - The BigQuery
|
1975
|
+
# dataset ID. - `table_id` - The ID of the BigQuery table. - `sensitivity_level`
|
1976
|
+
# - HIGH|MODERATE|LOW - `data_risk_level` - HIGH|MODERATE|LOW - `
|
1977
|
+
# resource_visibility`: PUBLIC|RESTRICTED - `status_code` - an RPC status code
|
1978
|
+
# as defined in https://github.com/googleapis/googleapis/blob/master/google/rpc/
|
1979
|
+
# code.proto * The operator must be `=` or `!=`. Examples: * `project_id = 12345
|
1980
|
+
# AND status_code = 1` * `project_id = 12345 AND sensitivity_level = HIGH` * `
|
1981
|
+
# project_id = 12345 AND resource_visibility = PUBLIC` The length of this field
|
1982
|
+
# should be no more than 500 characters.
|
1911
1983
|
# @param [String] order_by
|
1912
1984
|
# Comma separated list of fields to order by, followed by `asc` or `desc`
|
1913
1985
|
# postfix. This list is case insensitive. The default sorting order is ascending.
|
1914
1986
|
# Redundant space characters are insignificant. Only one order field at a time
|
1915
1987
|
# is allowed. Examples: * `project_id asc` * `table_id` * `sensitivity_level
|
1916
|
-
# desc` Supported fields are: - `project_id`: The
|
1917
|
-
# The ID of a BigQuery dataset. - `table_id`: The ID of a BigQuery
|
1918
|
-
# sensitivity_level`: How sensitive the data in a table is, at most. -
|
1919
|
-
# data_risk_level`: How much risk is associated with this data. - `
|
1988
|
+
# desc` Supported fields are: - `project_id`: The Google Cloud project ID. - `
|
1989
|
+
# dataset_id`: The ID of a BigQuery dataset. - `table_id`: The ID of a BigQuery
|
1990
|
+
# table. - `sensitivity_level`: How sensitive the data in a table is, at most. -
|
1991
|
+
# `data_risk_level`: How much risk is associated with this data. - `
|
1920
1992
|
# profile_last_generated`: When the profile was last updated in epoch seconds. -
|
1921
1993
|
# `last_modified`: The last time the resource was modified. - `
|
1922
1994
|
# resource_visibility`: Visibility restriction for this resource. - `row_count`:
|
@@ -3276,11 +3348,11 @@ module Google
|
|
3276
3348
|
execute_or_queue_command(command, &block)
|
3277
3349
|
end
|
3278
3350
|
|
3279
|
-
# Lists data profiles for an organization.
|
3351
|
+
# Lists column data profiles for an organization.
|
3280
3352
|
# @param [String] parent
|
3281
3353
|
# Required. Resource name of the organization or project, for example `
|
3282
|
-
# organizations/433245324/locations/europe` or projects/project-id/locations/
|
3283
|
-
# asia
|
3354
|
+
# organizations/433245324/locations/europe` or `projects/project-id/locations/
|
3355
|
+
# asia`.
|
3284
3356
|
# @param [String] filter
|
3285
3357
|
# Allows filtering. Supported syntax: * Filter expressions are made up of one or
|
3286
3358
|
# more restrictions. * Restrictions can be combined by `AND` or `OR` logical
|
@@ -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
|
@@ -4741,7 +5024,7 @@ module Google
|
|
4741
5024
|
execute_or_queue_command(command, &block)
|
4742
5025
|
end
|
4743
5026
|
|
4744
|
-
# Lists data profiles for an organization.
|
5027
|
+
# Lists project data profiles for an organization.
|
4745
5028
|
# @param [String] parent
|
4746
5029
|
# Required. organizations/`org_id`/locations/`loc_id`
|
4747
5030
|
# @param [String] filter
|
@@ -4752,15 +5035,15 @@ module Google
|
|
4752
5035
|
# sensitivity_level` - HIGH|MODERATE|LOW - `data_risk_level` - HIGH|MODERATE|LOW
|
4753
5036
|
# - `status_code` - an RPC status code as defined in https://github.com/
|
4754
5037
|
# googleapis/googleapis/blob/master/google/rpc/code.proto * The operator must be
|
4755
|
-
# `=` or `!=`. Examples: * project_id = 12345 AND status_code = 1 *
|
4756
|
-
# 12345 AND sensitivity_level = HIGH The length of this field
|
4757
|
-
# than 500 characters.
|
5038
|
+
# `=` or `!=`. Examples: * `project_id = 12345 AND status_code = 1` * `
|
5039
|
+
# project_id = 12345 AND sensitivity_level = HIGH` The length of this field
|
5040
|
+
# should be no more than 500 characters.
|
4758
5041
|
# @param [String] order_by
|
4759
5042
|
# Comma separated list of fields to order by, followed by `asc` or `desc`
|
4760
5043
|
# postfix. This list is case insensitive. The default sorting order is ascending.
|
4761
5044
|
# Redundant space characters are insignificant. Only one order field at a time
|
4762
5045
|
# is allowed. Examples: * `project_id` * `sensitivity_level desc` Supported
|
4763
|
-
# fields are: - `project_id`:
|
5046
|
+
# fields are: - `project_id`: Google Cloud project ID - `sensitivity_level`: How
|
4764
5047
|
# sensitive the data in a project is, at most. - `data_risk_level`: How much
|
4765
5048
|
# risk is associated with this data. - `profile_last_generated`: When the
|
4766
5049
|
# profile was last updated in epoch seconds.
|
@@ -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/
|
@@ -5040,7 +5354,7 @@ module Google
|
|
5040
5354
|
execute_or_queue_command(command, &block)
|
5041
5355
|
end
|
5042
5356
|
|
5043
|
-
# Lists data profiles for an organization.
|
5357
|
+
# Lists table data profiles for an organization.
|
5044
5358
|
# @param [String] parent
|
5045
5359
|
# Required. Resource name of the organization or project, for example `
|
5046
5360
|
# organizations/433245324/locations/europe` or `projects/project-id/locations/
|
@@ -5050,24 +5364,24 @@ module Google
|
|
5050
5364
|
# more restrictions. * Restrictions can be combined by `AND` or `OR` logical
|
5051
5365
|
# operators. A sequence of restrictions implicitly uses `AND`. * A restriction
|
5052
5366
|
# has the form of ``field` `operator` `value``. * Supported fields/values: - `
|
5053
|
-
# project_id` - The
|
5054
|
-
# table_id` - The ID of the BigQuery table. - `sensitivity_level`
|
5055
|
-
# MODERATE|LOW - `data_risk_level` - HIGH|MODERATE|LOW - `
|
5056
|
-
# PUBLIC|RESTRICTED - `status_code` - an RPC status code
|
5057
|
-
# github.com/googleapis/googleapis/blob/master/google/rpc/
|
5058
|
-
# operator must be `=` or `!=`. Examples: * project_id = 12345
|
5059
|
-
# 1 * project_id = 12345 AND sensitivity_level = HIGH *
|
5060
|
-
# resource_visibility = PUBLIC The length of this field
|
5061
|
-
# 500 characters.
|
5367
|
+
# project_id` - The Google Cloud project ID. - `dataset_id` - The BigQuery
|
5368
|
+
# dataset ID. - `table_id` - The ID of the BigQuery table. - `sensitivity_level`
|
5369
|
+
# - HIGH|MODERATE|LOW - `data_risk_level` - HIGH|MODERATE|LOW - `
|
5370
|
+
# resource_visibility`: PUBLIC|RESTRICTED - `status_code` - an RPC status code
|
5371
|
+
# as defined in https://github.com/googleapis/googleapis/blob/master/google/rpc/
|
5372
|
+
# code.proto * The operator must be `=` or `!=`. Examples: * `project_id = 12345
|
5373
|
+
# AND status_code = 1` * `project_id = 12345 AND sensitivity_level = HIGH` * `
|
5374
|
+
# project_id = 12345 AND resource_visibility = PUBLIC` The length of this field
|
5375
|
+
# should be no more than 500 characters.
|
5062
5376
|
# @param [String] order_by
|
5063
5377
|
# Comma separated list of fields to order by, followed by `asc` or `desc`
|
5064
5378
|
# postfix. This list is case insensitive. The default sorting order is ascending.
|
5065
5379
|
# Redundant space characters are insignificant. Only one order field at a time
|
5066
5380
|
# is allowed. Examples: * `project_id asc` * `table_id` * `sensitivity_level
|
5067
|
-
# desc` Supported fields are: - `project_id`: The
|
5068
|
-
# The ID of a BigQuery dataset. - `table_id`: The ID of a BigQuery
|
5069
|
-
# sensitivity_level`: How sensitive the data in a table is, at most. -
|
5070
|
-
# data_risk_level`: How much risk is associated with this data. - `
|
5381
|
+
# desc` Supported fields are: - `project_id`: The Google Cloud project ID. - `
|
5382
|
+
# dataset_id`: The ID of a BigQuery dataset. - `table_id`: The ID of a BigQuery
|
5383
|
+
# table. - `sensitivity_level`: How sensitive the data in a table is, at most. -
|
5384
|
+
# `data_risk_level`: How much risk is associated with this data. - `
|
5071
5385
|
# profile_last_generated`: When the profile was last updated in epoch seconds. -
|
5072
5386
|
# `last_modified`: The last time the resource was modified. - `
|
5073
5387
|
# resource_visibility`: Visibility restriction for this resource. - `row_count`:
|
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.
|
4
|
+
version: 0.62.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-
|
11
|
+
date: 2024-04-07 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
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-dlp_v2/v0.62.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: []
|