google-apis-dlp_v2 0.52.0 → 0.53.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 +4 -0
- data/lib/google/apis/dlp_v2/classes.rb +599 -0
- data/lib/google/apis/dlp_v2/gem_version.rb +2 -2
- data/lib/google/apis/dlp_v2/representations.rb +307 -0
- data/lib/google/apis/dlp_v2/service.rb +364 -0
- metadata +3 -3
@@ -761,6 +761,188 @@ module Google
|
|
761
761
|
execute_or_queue_command(command, &block)
|
762
762
|
end
|
763
763
|
|
764
|
+
# Creates a config for Discovery to scan and profile storage.
|
765
|
+
# @param [String] parent
|
766
|
+
# Required. Parent resource name. The format of this value is as follows: `
|
767
|
+
# projects/`PROJECT_ID`/locations/`LOCATION_ID The following example `parent`
|
768
|
+
# string specifies a parent project with the identifier `example-project`, and
|
769
|
+
# specifies the `europe-west3` location for processing data: parent=projects/
|
770
|
+
# example-project/locations/europe-west3
|
771
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDiscoveryConfigRequest] google_privacy_dlp_v2_create_discovery_config_request_object
|
772
|
+
# @param [String] fields
|
773
|
+
# Selector specifying which fields to include in a partial response.
|
774
|
+
# @param [String] quota_user
|
775
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
776
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
777
|
+
# @param [Google::Apis::RequestOptions] options
|
778
|
+
# Request-specific options
|
779
|
+
#
|
780
|
+
# @yield [result, err] Result & error if block supplied
|
781
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2DiscoveryConfig] parsed result object
|
782
|
+
# @yieldparam err [StandardError] error object if request failed
|
783
|
+
#
|
784
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DiscoveryConfig]
|
785
|
+
#
|
786
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
787
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
788
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
789
|
+
def create_organization_location_discovery_config(parent, google_privacy_dlp_v2_create_discovery_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
790
|
+
command = make_simple_command(:post, 'v2/{+parent}/discoveryConfigs', options)
|
791
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDiscoveryConfigRequest::Representation
|
792
|
+
command.request_object = google_privacy_dlp_v2_create_discovery_config_request_object
|
793
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DiscoveryConfig::Representation
|
794
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DiscoveryConfig
|
795
|
+
command.params['parent'] = parent unless parent.nil?
|
796
|
+
command.query['fields'] = fields unless fields.nil?
|
797
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
798
|
+
execute_or_queue_command(command, &block)
|
799
|
+
end
|
800
|
+
|
801
|
+
# Deletes a Discovery configuration.
|
802
|
+
# @param [String] name
|
803
|
+
# Required. Resource name of the project and the config, for example `projects/
|
804
|
+
# dlp-test-project/discoveryConfigs/53234423`.
|
805
|
+
# @param [String] fields
|
806
|
+
# Selector specifying which fields to include in a partial response.
|
807
|
+
# @param [String] quota_user
|
808
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
809
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
810
|
+
# @param [Google::Apis::RequestOptions] options
|
811
|
+
# Request-specific options
|
812
|
+
#
|
813
|
+
# @yield [result, err] Result & error if block supplied
|
814
|
+
# @yieldparam result [Google::Apis::DlpV2::GoogleProtobufEmpty] parsed result object
|
815
|
+
# @yieldparam err [StandardError] error object if request failed
|
816
|
+
#
|
817
|
+
# @return [Google::Apis::DlpV2::GoogleProtobufEmpty]
|
818
|
+
#
|
819
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
820
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
821
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
822
|
+
def delete_organization_location_discovery_config(name, fields: nil, quota_user: nil, options: nil, &block)
|
823
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
824
|
+
command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
|
825
|
+
command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
|
826
|
+
command.params['name'] = name unless name.nil?
|
827
|
+
command.query['fields'] = fields unless fields.nil?
|
828
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
829
|
+
execute_or_queue_command(command, &block)
|
830
|
+
end
|
831
|
+
|
832
|
+
# Gets a Discovery configuration.
|
833
|
+
# @param [String] name
|
834
|
+
# Required. Resource name of the project and the configuration, for example `
|
835
|
+
# projects/dlp-test-project/discoveryConfigs/53234423`.
|
836
|
+
# @param [String] fields
|
837
|
+
# Selector specifying which fields to include in a partial response.
|
838
|
+
# @param [String] quota_user
|
839
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
840
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
841
|
+
# @param [Google::Apis::RequestOptions] options
|
842
|
+
# Request-specific options
|
843
|
+
#
|
844
|
+
# @yield [result, err] Result & error if block supplied
|
845
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2DiscoveryConfig] parsed result object
|
846
|
+
# @yieldparam err [StandardError] error object if request failed
|
847
|
+
#
|
848
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DiscoveryConfig]
|
849
|
+
#
|
850
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
851
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
852
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
853
|
+
def get_organization_location_discovery_config(name, fields: nil, quota_user: nil, options: nil, &block)
|
854
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
855
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DiscoveryConfig::Representation
|
856
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DiscoveryConfig
|
857
|
+
command.params['name'] = name unless name.nil?
|
858
|
+
command.query['fields'] = fields unless fields.nil?
|
859
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
860
|
+
execute_or_queue_command(command, &block)
|
861
|
+
end
|
862
|
+
|
863
|
+
# Lists Discovery configurations.
|
864
|
+
# @param [String] parent
|
865
|
+
# Required. Parent resource name. The format of this value is as follows: `
|
866
|
+
# projects/`PROJECT_ID`/locations/`LOCATION_ID The following example `parent`
|
867
|
+
# string specifies a parent project with the identifier `example-project`, and
|
868
|
+
# specifies the `europe-west3` location for processing data: parent=projects/
|
869
|
+
# example-project/locations/europe-west3
|
870
|
+
# @param [String] order_by
|
871
|
+
# Comma separated list of config fields to order by, followed by `asc` or `desc`
|
872
|
+
# postfix. This list is case-insensitive, default sorting order is ascending,
|
873
|
+
# redundant space characters are insignificant. Example: `name asc,update_time,
|
874
|
+
# create_time desc` Supported fields are: - `last_run_time`: corresponds to the
|
875
|
+
# last time the DiscoveryConfig ran. - `name`: corresponds to the
|
876
|
+
# DiscoveryConfig's name. - `status`: corresponds to DiscoveryConfig's status.
|
877
|
+
# @param [Fixnum] page_size
|
878
|
+
# Size of the page, can be limited by a server.
|
879
|
+
# @param [String] page_token
|
880
|
+
# Page token to continue retrieval. Comes from previous call to
|
881
|
+
# ListDiscoveryConfigs. `order_by` field must not change for subsequent calls.
|
882
|
+
# @param [String] fields
|
883
|
+
# Selector specifying which fields to include in a partial response.
|
884
|
+
# @param [String] quota_user
|
885
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
886
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
887
|
+
# @param [Google::Apis::RequestOptions] options
|
888
|
+
# Request-specific options
|
889
|
+
#
|
890
|
+
# @yield [result, err] Result & error if block supplied
|
891
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2ListDiscoveryConfigsResponse] parsed result object
|
892
|
+
# @yieldparam err [StandardError] error object if request failed
|
893
|
+
#
|
894
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ListDiscoveryConfigsResponse]
|
895
|
+
#
|
896
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
897
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
898
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
899
|
+
def list_organization_location_discovery_configs(parent, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
900
|
+
command = make_simple_command(:get, 'v2/{+parent}/discoveryConfigs', options)
|
901
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDiscoveryConfigsResponse::Representation
|
902
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDiscoveryConfigsResponse
|
903
|
+
command.params['parent'] = parent unless parent.nil?
|
904
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
905
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
906
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
907
|
+
command.query['fields'] = fields unless fields.nil?
|
908
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
909
|
+
execute_or_queue_command(command, &block)
|
910
|
+
end
|
911
|
+
|
912
|
+
# Updates a Discovery configuration.
|
913
|
+
# @param [String] name
|
914
|
+
# Required. Resource name of the project and the configuration, for example `
|
915
|
+
# projects/dlp-test-project/discoveryConfigs/53234423`.
|
916
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateDiscoveryConfigRequest] google_privacy_dlp_v2_update_discovery_config_request_object
|
917
|
+
# @param [String] fields
|
918
|
+
# Selector specifying which fields to include in a partial response.
|
919
|
+
# @param [String] quota_user
|
920
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
921
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
922
|
+
# @param [Google::Apis::RequestOptions] options
|
923
|
+
# Request-specific options
|
924
|
+
#
|
925
|
+
# @yield [result, err] Result & error if block supplied
|
926
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2DiscoveryConfig] parsed result object
|
927
|
+
# @yieldparam err [StandardError] error object if request failed
|
928
|
+
#
|
929
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DiscoveryConfig]
|
930
|
+
#
|
931
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
932
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
933
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
934
|
+
def patch_organization_location_discovery_config(name, google_privacy_dlp_v2_update_discovery_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
935
|
+
command = make_simple_command(:patch, 'v2/{+name}', options)
|
936
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateDiscoveryConfigRequest::Representation
|
937
|
+
command.request_object = google_privacy_dlp_v2_update_discovery_config_request_object
|
938
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DiscoveryConfig::Representation
|
939
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DiscoveryConfig
|
940
|
+
command.params['name'] = name unless name.nil?
|
941
|
+
command.query['fields'] = fields unless fields.nil?
|
942
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
943
|
+
execute_or_queue_command(command, &block)
|
944
|
+
end
|
945
|
+
|
764
946
|
# Lists DlpJobs that match the specified filter in the request. See https://
|
765
947
|
# cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/
|
766
948
|
# docs/compute-risk-analysis to learn more.
|
@@ -3087,6 +3269,188 @@ module Google
|
|
3087
3269
|
execute_or_queue_command(command, &block)
|
3088
3270
|
end
|
3089
3271
|
|
3272
|
+
# Creates a config for Discovery to scan and profile storage.
|
3273
|
+
# @param [String] parent
|
3274
|
+
# Required. Parent resource name. The format of this value is as follows: `
|
3275
|
+
# projects/`PROJECT_ID`/locations/`LOCATION_ID The following example `parent`
|
3276
|
+
# string specifies a parent project with the identifier `example-project`, and
|
3277
|
+
# specifies the `europe-west3` location for processing data: parent=projects/
|
3278
|
+
# example-project/locations/europe-west3
|
3279
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDiscoveryConfigRequest] google_privacy_dlp_v2_create_discovery_config_request_object
|
3280
|
+
# @param [String] fields
|
3281
|
+
# Selector specifying which fields to include in a partial response.
|
3282
|
+
# @param [String] quota_user
|
3283
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3284
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3285
|
+
# @param [Google::Apis::RequestOptions] options
|
3286
|
+
# Request-specific options
|
3287
|
+
#
|
3288
|
+
# @yield [result, err] Result & error if block supplied
|
3289
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2DiscoveryConfig] parsed result object
|
3290
|
+
# @yieldparam err [StandardError] error object if request failed
|
3291
|
+
#
|
3292
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DiscoveryConfig]
|
3293
|
+
#
|
3294
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3295
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3296
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3297
|
+
def create_project_location_discovery_config(parent, google_privacy_dlp_v2_create_discovery_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3298
|
+
command = make_simple_command(:post, 'v2/{+parent}/discoveryConfigs', options)
|
3299
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2CreateDiscoveryConfigRequest::Representation
|
3300
|
+
command.request_object = google_privacy_dlp_v2_create_discovery_config_request_object
|
3301
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DiscoveryConfig::Representation
|
3302
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DiscoveryConfig
|
3303
|
+
command.params['parent'] = parent unless parent.nil?
|
3304
|
+
command.query['fields'] = fields unless fields.nil?
|
3305
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3306
|
+
execute_or_queue_command(command, &block)
|
3307
|
+
end
|
3308
|
+
|
3309
|
+
# Deletes a Discovery configuration.
|
3310
|
+
# @param [String] name
|
3311
|
+
# Required. Resource name of the project and the config, for example `projects/
|
3312
|
+
# dlp-test-project/discoveryConfigs/53234423`.
|
3313
|
+
# @param [String] fields
|
3314
|
+
# Selector specifying which fields to include in a partial response.
|
3315
|
+
# @param [String] quota_user
|
3316
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3317
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3318
|
+
# @param [Google::Apis::RequestOptions] options
|
3319
|
+
# Request-specific options
|
3320
|
+
#
|
3321
|
+
# @yield [result, err] Result & error if block supplied
|
3322
|
+
# @yieldparam result [Google::Apis::DlpV2::GoogleProtobufEmpty] parsed result object
|
3323
|
+
# @yieldparam err [StandardError] error object if request failed
|
3324
|
+
#
|
3325
|
+
# @return [Google::Apis::DlpV2::GoogleProtobufEmpty]
|
3326
|
+
#
|
3327
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3328
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3329
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3330
|
+
def delete_project_location_discovery_config(name, fields: nil, quota_user: nil, options: nil, &block)
|
3331
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
3332
|
+
command.response_representation = Google::Apis::DlpV2::GoogleProtobufEmpty::Representation
|
3333
|
+
command.response_class = Google::Apis::DlpV2::GoogleProtobufEmpty
|
3334
|
+
command.params['name'] = name unless name.nil?
|
3335
|
+
command.query['fields'] = fields unless fields.nil?
|
3336
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3337
|
+
execute_or_queue_command(command, &block)
|
3338
|
+
end
|
3339
|
+
|
3340
|
+
# Gets a Discovery configuration.
|
3341
|
+
# @param [String] name
|
3342
|
+
# Required. Resource name of the project and the configuration, for example `
|
3343
|
+
# projects/dlp-test-project/discoveryConfigs/53234423`.
|
3344
|
+
# @param [String] fields
|
3345
|
+
# Selector specifying which fields to include in a partial response.
|
3346
|
+
# @param [String] quota_user
|
3347
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3348
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3349
|
+
# @param [Google::Apis::RequestOptions] options
|
3350
|
+
# Request-specific options
|
3351
|
+
#
|
3352
|
+
# @yield [result, err] Result & error if block supplied
|
3353
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2DiscoveryConfig] parsed result object
|
3354
|
+
# @yieldparam err [StandardError] error object if request failed
|
3355
|
+
#
|
3356
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DiscoveryConfig]
|
3357
|
+
#
|
3358
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3359
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3360
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3361
|
+
def get_project_location_discovery_config(name, fields: nil, quota_user: nil, options: nil, &block)
|
3362
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
3363
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DiscoveryConfig::Representation
|
3364
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DiscoveryConfig
|
3365
|
+
command.params['name'] = name unless name.nil?
|
3366
|
+
command.query['fields'] = fields unless fields.nil?
|
3367
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3368
|
+
execute_or_queue_command(command, &block)
|
3369
|
+
end
|
3370
|
+
|
3371
|
+
# Lists Discovery configurations.
|
3372
|
+
# @param [String] parent
|
3373
|
+
# Required. Parent resource name. The format of this value is as follows: `
|
3374
|
+
# projects/`PROJECT_ID`/locations/`LOCATION_ID The following example `parent`
|
3375
|
+
# string specifies a parent project with the identifier `example-project`, and
|
3376
|
+
# specifies the `europe-west3` location for processing data: parent=projects/
|
3377
|
+
# example-project/locations/europe-west3
|
3378
|
+
# @param [String] order_by
|
3379
|
+
# Comma separated list of config fields to order by, followed by `asc` or `desc`
|
3380
|
+
# postfix. This list is case-insensitive, default sorting order is ascending,
|
3381
|
+
# redundant space characters are insignificant. Example: `name asc,update_time,
|
3382
|
+
# create_time desc` Supported fields are: - `last_run_time`: corresponds to the
|
3383
|
+
# last time the DiscoveryConfig ran. - `name`: corresponds to the
|
3384
|
+
# DiscoveryConfig's name. - `status`: corresponds to DiscoveryConfig's status.
|
3385
|
+
# @param [Fixnum] page_size
|
3386
|
+
# Size of the page, can be limited by a server.
|
3387
|
+
# @param [String] page_token
|
3388
|
+
# Page token to continue retrieval. Comes from previous call to
|
3389
|
+
# ListDiscoveryConfigs. `order_by` field must not change for subsequent calls.
|
3390
|
+
# @param [String] fields
|
3391
|
+
# Selector specifying which fields to include in a partial response.
|
3392
|
+
# @param [String] quota_user
|
3393
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3394
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3395
|
+
# @param [Google::Apis::RequestOptions] options
|
3396
|
+
# Request-specific options
|
3397
|
+
#
|
3398
|
+
# @yield [result, err] Result & error if block supplied
|
3399
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2ListDiscoveryConfigsResponse] parsed result object
|
3400
|
+
# @yieldparam err [StandardError] error object if request failed
|
3401
|
+
#
|
3402
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2ListDiscoveryConfigsResponse]
|
3403
|
+
#
|
3404
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3405
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3406
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3407
|
+
def list_project_location_discovery_configs(parent, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3408
|
+
command = make_simple_command(:get, 'v2/{+parent}/discoveryConfigs', options)
|
3409
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDiscoveryConfigsResponse::Representation
|
3410
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2ListDiscoveryConfigsResponse
|
3411
|
+
command.params['parent'] = parent unless parent.nil?
|
3412
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
3413
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
3414
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
3415
|
+
command.query['fields'] = fields unless fields.nil?
|
3416
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3417
|
+
execute_or_queue_command(command, &block)
|
3418
|
+
end
|
3419
|
+
|
3420
|
+
# Updates a Discovery configuration.
|
3421
|
+
# @param [String] name
|
3422
|
+
# Required. Resource name of the project and the configuration, for example `
|
3423
|
+
# projects/dlp-test-project/discoveryConfigs/53234423`.
|
3424
|
+
# @param [Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateDiscoveryConfigRequest] google_privacy_dlp_v2_update_discovery_config_request_object
|
3425
|
+
# @param [String] fields
|
3426
|
+
# Selector specifying which fields to include in a partial response.
|
3427
|
+
# @param [String] quota_user
|
3428
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3429
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3430
|
+
# @param [Google::Apis::RequestOptions] options
|
3431
|
+
# Request-specific options
|
3432
|
+
#
|
3433
|
+
# @yield [result, err] Result & error if block supplied
|
3434
|
+
# @yieldparam result [Google::Apis::DlpV2::GooglePrivacyDlpV2DiscoveryConfig] parsed result object
|
3435
|
+
# @yieldparam err [StandardError] error object if request failed
|
3436
|
+
#
|
3437
|
+
# @return [Google::Apis::DlpV2::GooglePrivacyDlpV2DiscoveryConfig]
|
3438
|
+
#
|
3439
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3440
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3441
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3442
|
+
def patch_project_location_discovery_config(name, google_privacy_dlp_v2_update_discovery_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3443
|
+
command = make_simple_command(:patch, 'v2/{+name}', options)
|
3444
|
+
command.request_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2UpdateDiscoveryConfigRequest::Representation
|
3445
|
+
command.request_object = google_privacy_dlp_v2_update_discovery_config_request_object
|
3446
|
+
command.response_representation = Google::Apis::DlpV2::GooglePrivacyDlpV2DiscoveryConfig::Representation
|
3447
|
+
command.response_class = Google::Apis::DlpV2::GooglePrivacyDlpV2DiscoveryConfig
|
3448
|
+
command.params['name'] = name unless name.nil?
|
3449
|
+
command.query['fields'] = fields unless fields.nil?
|
3450
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3451
|
+
execute_or_queue_command(command, &block)
|
3452
|
+
end
|
3453
|
+
|
3090
3454
|
# Starts asynchronous cancellation on a long-running DlpJob. The server makes a
|
3091
3455
|
# best effort to cancel the DlpJob, but success is not guaranteed. See https://
|
3092
3456
|
# cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/
|
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.53.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: 2023-10-
|
11
|
+
date: 2023-10-29 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.53.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: []
|