google-apis-dataplex_v1 0.59.0 → 0.60.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -196,6 +196,12 @@ module Google
196
196
  include Google::Apis::Core::JsonObjectSupport
197
197
  end
198
198
 
199
+ class GoogleCloudDataplexV1CancelMetadataJobRequest
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
199
205
  class GoogleCloudDataplexV1Content
200
206
  class Representation < Google::Apis::Core::JsonRepresentation; end
201
207
 
@@ -712,6 +718,12 @@ module Google
712
718
  include Google::Apis::Core::JsonObjectSupport
713
719
  end
714
720
 
721
+ class GoogleCloudDataplexV1ImportItem
722
+ class Representation < Google::Apis::Core::JsonRepresentation; end
723
+
724
+ include Google::Apis::Core::JsonObjectSupport
725
+ end
726
+
715
727
  class GoogleCloudDataplexV1Job
716
728
  class Representation < Google::Apis::Core::JsonRepresentation; end
717
729
 
@@ -838,6 +850,12 @@ module Google
838
850
  include Google::Apis::Core::JsonObjectSupport
839
851
  end
840
852
 
853
+ class GoogleCloudDataplexV1ListMetadataJobsResponse
854
+ class Representation < Google::Apis::Core::JsonRepresentation; end
855
+
856
+ include Google::Apis::Core::JsonObjectSupport
857
+ end
858
+
841
859
  class GoogleCloudDataplexV1ListPartitionsResponse
842
860
  class Representation < Google::Apis::Core::JsonRepresentation; end
843
861
 
@@ -862,6 +880,36 @@ module Google
862
880
  include Google::Apis::Core::JsonObjectSupport
863
881
  end
864
882
 
883
+ class GoogleCloudDataplexV1MetadataJob
884
+ class Representation < Google::Apis::Core::JsonRepresentation; end
885
+
886
+ include Google::Apis::Core::JsonObjectSupport
887
+ end
888
+
889
+ class GoogleCloudDataplexV1MetadataJobImportJobResult
890
+ class Representation < Google::Apis::Core::JsonRepresentation; end
891
+
892
+ include Google::Apis::Core::JsonObjectSupport
893
+ end
894
+
895
+ class GoogleCloudDataplexV1MetadataJobImportJobSpec
896
+ class Representation < Google::Apis::Core::JsonRepresentation; end
897
+
898
+ include Google::Apis::Core::JsonObjectSupport
899
+ end
900
+
901
+ class GoogleCloudDataplexV1MetadataJobImportJobSpecImportJobScope
902
+ class Representation < Google::Apis::Core::JsonRepresentation; end
903
+
904
+ include Google::Apis::Core::JsonObjectSupport
905
+ end
906
+
907
+ class GoogleCloudDataplexV1MetadataJobStatus
908
+ class Representation < Google::Apis::Core::JsonRepresentation; end
909
+
910
+ include Google::Apis::Core::JsonObjectSupport
911
+ end
912
+
865
913
  class GoogleCloudDataplexV1OperationMetadata
866
914
  class Representation < Google::Apis::Core::JsonRepresentation; end
867
915
 
@@ -1505,6 +1553,12 @@ module Google
1505
1553
  end
1506
1554
  end
1507
1555
 
1556
+ class GoogleCloudDataplexV1CancelMetadataJobRequest
1557
+ # @private
1558
+ class Representation < Google::Apis::Core::JsonRepresentation
1559
+ end
1560
+ end
1561
+
1508
1562
  class GoogleCloudDataplexV1Content
1509
1563
  # @private
1510
1564
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1812,6 +1866,7 @@ module Google
1812
1866
 
1813
1867
  property :statistic_range_expectation, as: 'statisticRangeExpectation', class: Google::Apis::DataplexV1::GoogleCloudDataplexV1DataQualityRuleStatisticRangeExpectation, decorator: Google::Apis::DataplexV1::GoogleCloudDataplexV1DataQualityRuleStatisticRangeExpectation::Representation
1814
1868
 
1869
+ property :suspended, as: 'suspended'
1815
1870
  property :table_condition_expectation, as: 'tableConditionExpectation', class: Google::Apis::DataplexV1::GoogleCloudDataplexV1DataQualityRuleTableConditionExpectation, decorator: Google::Apis::DataplexV1::GoogleCloudDataplexV1DataQualityRuleTableConditionExpectation::Representation
1816
1871
 
1817
1872
  property :threshold, as: 'threshold'
@@ -2457,6 +2512,16 @@ module Google
2457
2512
  end
2458
2513
  end
2459
2514
 
2515
+ class GoogleCloudDataplexV1ImportItem
2516
+ # @private
2517
+ class Representation < Google::Apis::Core::JsonRepresentation
2518
+ collection :aspect_keys, as: 'aspectKeys'
2519
+ property :entry, as: 'entry', class: Google::Apis::DataplexV1::GoogleCloudDataplexV1Entry, decorator: Google::Apis::DataplexV1::GoogleCloudDataplexV1Entry::Representation
2520
+
2521
+ property :update_mask, as: 'updateMask'
2522
+ end
2523
+ end
2524
+
2460
2525
  class GoogleCloudDataplexV1Job
2461
2526
  # @private
2462
2527
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2682,6 +2747,16 @@ module Google
2682
2747
  end
2683
2748
  end
2684
2749
 
2750
+ class GoogleCloudDataplexV1ListMetadataJobsResponse
2751
+ # @private
2752
+ class Representation < Google::Apis::Core::JsonRepresentation
2753
+ collection :metadata_jobs, as: 'metadataJobs', class: Google::Apis::DataplexV1::GoogleCloudDataplexV1MetadataJob, decorator: Google::Apis::DataplexV1::GoogleCloudDataplexV1MetadataJob::Representation
2754
+
2755
+ property :next_page_token, as: 'nextPageToken'
2756
+ collection :unreachable_locations, as: 'unreachableLocations'
2757
+ end
2758
+ end
2759
+
2685
2760
  class GoogleCloudDataplexV1ListPartitionsResponse
2686
2761
  # @private
2687
2762
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2719,6 +2794,68 @@ module Google
2719
2794
  end
2720
2795
  end
2721
2796
 
2797
+ class GoogleCloudDataplexV1MetadataJob
2798
+ # @private
2799
+ class Representation < Google::Apis::Core::JsonRepresentation
2800
+ property :create_time, as: 'createTime'
2801
+ property :import_result, as: 'importResult', class: Google::Apis::DataplexV1::GoogleCloudDataplexV1MetadataJobImportJobResult, decorator: Google::Apis::DataplexV1::GoogleCloudDataplexV1MetadataJobImportJobResult::Representation
2802
+
2803
+ property :import_spec, as: 'importSpec', class: Google::Apis::DataplexV1::GoogleCloudDataplexV1MetadataJobImportJobSpec, decorator: Google::Apis::DataplexV1::GoogleCloudDataplexV1MetadataJobImportJobSpec::Representation
2804
+
2805
+ hash :labels, as: 'labels'
2806
+ property :name, as: 'name'
2807
+ property :status, as: 'status', class: Google::Apis::DataplexV1::GoogleCloudDataplexV1MetadataJobStatus, decorator: Google::Apis::DataplexV1::GoogleCloudDataplexV1MetadataJobStatus::Representation
2808
+
2809
+ property :type, as: 'type'
2810
+ property :uid, as: 'uid'
2811
+ property :update_time, as: 'updateTime'
2812
+ end
2813
+ end
2814
+
2815
+ class GoogleCloudDataplexV1MetadataJobImportJobResult
2816
+ # @private
2817
+ class Representation < Google::Apis::Core::JsonRepresentation
2818
+ property :created_entries, :numeric_string => true, as: 'createdEntries'
2819
+ property :deleted_entries, :numeric_string => true, as: 'deletedEntries'
2820
+ property :recreated_entries, :numeric_string => true, as: 'recreatedEntries'
2821
+ property :unchanged_entries, :numeric_string => true, as: 'unchangedEntries'
2822
+ property :update_time, as: 'updateTime'
2823
+ property :updated_entries, :numeric_string => true, as: 'updatedEntries'
2824
+ end
2825
+ end
2826
+
2827
+ class GoogleCloudDataplexV1MetadataJobImportJobSpec
2828
+ # @private
2829
+ class Representation < Google::Apis::Core::JsonRepresentation
2830
+ property :aspect_sync_mode, as: 'aspectSyncMode'
2831
+ property :entry_sync_mode, as: 'entrySyncMode'
2832
+ property :log_level, as: 'logLevel'
2833
+ property :scope, as: 'scope', class: Google::Apis::DataplexV1::GoogleCloudDataplexV1MetadataJobImportJobSpecImportJobScope, decorator: Google::Apis::DataplexV1::GoogleCloudDataplexV1MetadataJobImportJobSpecImportJobScope::Representation
2834
+
2835
+ property :source_create_time, as: 'sourceCreateTime'
2836
+ property :source_storage_uri, as: 'sourceStorageUri'
2837
+ end
2838
+ end
2839
+
2840
+ class GoogleCloudDataplexV1MetadataJobImportJobSpecImportJobScope
2841
+ # @private
2842
+ class Representation < Google::Apis::Core::JsonRepresentation
2843
+ collection :aspect_types, as: 'aspectTypes'
2844
+ collection :entry_groups, as: 'entryGroups'
2845
+ collection :entry_types, as: 'entryTypes'
2846
+ end
2847
+ end
2848
+
2849
+ class GoogleCloudDataplexV1MetadataJobStatus
2850
+ # @private
2851
+ class Representation < Google::Apis::Core::JsonRepresentation
2852
+ property :completion_percent, as: 'completionPercent'
2853
+ property :message, as: 'message'
2854
+ property :state, as: 'state'
2855
+ property :update_time, as: 'updateTime'
2856
+ end
2857
+ end
2858
+
2722
2859
  class GoogleCloudDataplexV1OperationMetadata
2723
2860
  # @private
2724
2861
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -51,6 +51,127 @@ module Google
51
51
  @batch_path = 'batch'
52
52
  end
53
53
 
54
+ # Gets the access control policy for a resource. Returns an empty policy if the
55
+ # resource exists and does not have a policy set.
56
+ # @param [String] resource
57
+ # REQUIRED: The resource for which the policy is being requested. See Resource
58
+ # names (https://cloud.google.com/apis/design/resource_names) for the
59
+ # appropriate value for this field.
60
+ # @param [Fixnum] options_requested_policy_version
61
+ # Optional. The maximum policy version that will be used to format the policy.
62
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
63
+ # rejected.Requests for policies with any conditional role bindings must specify
64
+ # version 3. Policies with no conditional role bindings may specify any valid
65
+ # value or leave the field unset.The policy in the response might use the policy
66
+ # version that you specified, or it might use a lower policy version. For
67
+ # example, if you specify version 3, but the policy has no conditional role
68
+ # bindings, the response uses version 1.To learn which resources support
69
+ # conditions in their IAM policies, see the IAM documentation (https://cloud.
70
+ # google.com/iam/help/conditions/resource-policies).
71
+ # @param [String] fields
72
+ # Selector specifying which fields to include in a partial response.
73
+ # @param [String] quota_user
74
+ # Available to use for quota purposes for server-side applications. Can be any
75
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
76
+ # @param [Google::Apis::RequestOptions] options
77
+ # Request-specific options
78
+ #
79
+ # @yield [result, err] Result & error if block supplied
80
+ # @yieldparam result [Google::Apis::DataplexV1::GoogleIamV1Policy] parsed result object
81
+ # @yieldparam err [StandardError] error object if request failed
82
+ #
83
+ # @return [Google::Apis::DataplexV1::GoogleIamV1Policy]
84
+ #
85
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
86
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
87
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
88
+ def get_organization_location_encryption_config_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
89
+ command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
90
+ command.response_representation = Google::Apis::DataplexV1::GoogleIamV1Policy::Representation
91
+ command.response_class = Google::Apis::DataplexV1::GoogleIamV1Policy
92
+ command.params['resource'] = resource unless resource.nil?
93
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
94
+ command.query['fields'] = fields unless fields.nil?
95
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
96
+ execute_or_queue_command(command, &block)
97
+ end
98
+
99
+ # Sets the access control policy on the specified resource. Replaces any
100
+ # existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED
101
+ # errors.
102
+ # @param [String] resource
103
+ # REQUIRED: The resource for which the policy is being specified. See Resource
104
+ # names (https://cloud.google.com/apis/design/resource_names) for the
105
+ # appropriate value for this field.
106
+ # @param [Google::Apis::DataplexV1::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_request_object
107
+ # @param [String] fields
108
+ # Selector specifying which fields to include in a partial response.
109
+ # @param [String] quota_user
110
+ # Available to use for quota purposes for server-side applications. Can be any
111
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
112
+ # @param [Google::Apis::RequestOptions] options
113
+ # Request-specific options
114
+ #
115
+ # @yield [result, err] Result & error if block supplied
116
+ # @yieldparam result [Google::Apis::DataplexV1::GoogleIamV1Policy] parsed result object
117
+ # @yieldparam err [StandardError] error object if request failed
118
+ #
119
+ # @return [Google::Apis::DataplexV1::GoogleIamV1Policy]
120
+ #
121
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
122
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
123
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
124
+ def set_organization_location_encryption_config_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
125
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
126
+ command.request_representation = Google::Apis::DataplexV1::GoogleIamV1SetIamPolicyRequest::Representation
127
+ command.request_object = google_iam_v1_set_iam_policy_request_object
128
+ command.response_representation = Google::Apis::DataplexV1::GoogleIamV1Policy::Representation
129
+ command.response_class = Google::Apis::DataplexV1::GoogleIamV1Policy
130
+ command.params['resource'] = resource unless resource.nil?
131
+ command.query['fields'] = fields unless fields.nil?
132
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
133
+ execute_or_queue_command(command, &block)
134
+ end
135
+
136
+ # Returns permissions that a caller has on the specified resource. If the
137
+ # resource does not exist, this will return an empty set of permissions, not a
138
+ # NOT_FOUND error.Note: This operation is designed to be used for building
139
+ # permission-aware UIs and command-line tools, not for authorization checking.
140
+ # This operation may "fail open" without warning.
141
+ # @param [String] resource
142
+ # REQUIRED: The resource for which the policy detail is being requested. See
143
+ # Resource names (https://cloud.google.com/apis/design/resource_names) for the
144
+ # appropriate value for this field.
145
+ # @param [Google::Apis::DataplexV1::GoogleIamV1TestIamPermissionsRequest] google_iam_v1_test_iam_permissions_request_object
146
+ # @param [String] fields
147
+ # Selector specifying which fields to include in a partial response.
148
+ # @param [String] quota_user
149
+ # Available to use for quota purposes for server-side applications. Can be any
150
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
151
+ # @param [Google::Apis::RequestOptions] options
152
+ # Request-specific options
153
+ #
154
+ # @yield [result, err] Result & error if block supplied
155
+ # @yieldparam result [Google::Apis::DataplexV1::GoogleIamV1TestIamPermissionsResponse] parsed result object
156
+ # @yieldparam err [StandardError] error object if request failed
157
+ #
158
+ # @return [Google::Apis::DataplexV1::GoogleIamV1TestIamPermissionsResponse]
159
+ #
160
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
161
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
162
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
163
+ def test_organization_location_encryption_config_iam_permissions(resource, google_iam_v1_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
164
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
165
+ command.request_representation = Google::Apis::DataplexV1::GoogleIamV1TestIamPermissionsRequest::Representation
166
+ command.request_object = google_iam_v1_test_iam_permissions_request_object
167
+ command.response_representation = Google::Apis::DataplexV1::GoogleIamV1TestIamPermissionsResponse::Representation
168
+ command.response_class = Google::Apis::DataplexV1::GoogleIamV1TestIamPermissionsResponse
169
+ command.params['resource'] = resource unless resource.nil?
170
+ command.query['fields'] = fields unless fields.nil?
171
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
172
+ execute_or_queue_command(command, &block)
173
+ end
174
+
54
175
  # Gets information about a location.
55
176
  # @param [String] name
56
177
  # Resource name for the location.
@@ -2246,8 +2367,9 @@ module Google
2246
2367
 
2247
2368
  # Updates an EntryGroup.
2248
2369
  # @param [String] name
2249
- # Output only. The relative resource name of the EntryGroup, of the form:
2250
- # projects/`project_number`/locations/`location_id`/entryGroups/`entry_group_id`.
2370
+ # Output only. The relative resource name of the EntryGroup, in the format
2371
+ # projects/`project_id_or_number`/locations/`location_id`/entryGroups/`
2372
+ # entry_group_id`.
2251
2373
  # @param [Google::Apis::DataplexV1::GoogleCloudDataplexV1EntryGroup] google_cloud_dataplex_v1_entry_group_object
2252
2374
  # @param [String] update_mask
2253
2375
  # Required. Mask of fields to update.
@@ -2537,8 +2659,9 @@ module Google
2537
2659
 
2538
2660
  # Updates an Entry.
2539
2661
  # @param [String] name
2540
- # Identifier. The relative resource name of the Entry, of the form: projects/`
2541
- # project`/locations/`location`/entryGroups/`entry_group`/entries/`entry`.
2662
+ # Identifier. The relative resource name of the entry, in the format projects/`
2663
+ # project_id_or_number`/locations/`location_id`/entryGroups/`entry_group_id`/
2664
+ # entries/`entry_id`.
2542
2665
  # @param [Google::Apis::DataplexV1::GoogleCloudDataplexV1Entry] google_cloud_dataplex_v1_entry_object
2543
2666
  # @param [Boolean] allow_missing
2544
2667
  # Optional. If set to true and the entry doesn't exist, the service will create
@@ -2915,6 +3038,127 @@ module Google
2915
3038
  execute_or_queue_command(command, &block)
2916
3039
  end
2917
3040
 
3041
+ # Gets the access control policy for a resource. Returns an empty policy if the
3042
+ # resource exists and does not have a policy set.
3043
+ # @param [String] resource
3044
+ # REQUIRED: The resource for which the policy is being requested. See Resource
3045
+ # names (https://cloud.google.com/apis/design/resource_names) for the
3046
+ # appropriate value for this field.
3047
+ # @param [Fixnum] options_requested_policy_version
3048
+ # Optional. The maximum policy version that will be used to format the policy.
3049
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
3050
+ # rejected.Requests for policies with any conditional role bindings must specify
3051
+ # version 3. Policies with no conditional role bindings may specify any valid
3052
+ # value or leave the field unset.The policy in the response might use the policy
3053
+ # version that you specified, or it might use a lower policy version. For
3054
+ # example, if you specify version 3, but the policy has no conditional role
3055
+ # bindings, the response uses version 1.To learn which resources support
3056
+ # conditions in their IAM policies, see the IAM documentation (https://cloud.
3057
+ # google.com/iam/help/conditions/resource-policies).
3058
+ # @param [String] fields
3059
+ # Selector specifying which fields to include in a partial response.
3060
+ # @param [String] quota_user
3061
+ # Available to use for quota purposes for server-side applications. Can be any
3062
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3063
+ # @param [Google::Apis::RequestOptions] options
3064
+ # Request-specific options
3065
+ #
3066
+ # @yield [result, err] Result & error if block supplied
3067
+ # @yieldparam result [Google::Apis::DataplexV1::GoogleIamV1Policy] parsed result object
3068
+ # @yieldparam err [StandardError] error object if request failed
3069
+ #
3070
+ # @return [Google::Apis::DataplexV1::GoogleIamV1Policy]
3071
+ #
3072
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3073
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3074
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3075
+ def get_project_location_glossary_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
3076
+ command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
3077
+ command.response_representation = Google::Apis::DataplexV1::GoogleIamV1Policy::Representation
3078
+ command.response_class = Google::Apis::DataplexV1::GoogleIamV1Policy
3079
+ command.params['resource'] = resource unless resource.nil?
3080
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
3081
+ command.query['fields'] = fields unless fields.nil?
3082
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3083
+ execute_or_queue_command(command, &block)
3084
+ end
3085
+
3086
+ # Sets the access control policy on the specified resource. Replaces any
3087
+ # existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED
3088
+ # errors.
3089
+ # @param [String] resource
3090
+ # REQUIRED: The resource for which the policy is being specified. See Resource
3091
+ # names (https://cloud.google.com/apis/design/resource_names) for the
3092
+ # appropriate value for this field.
3093
+ # @param [Google::Apis::DataplexV1::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_request_object
3094
+ # @param [String] fields
3095
+ # Selector specifying which fields to include in a partial response.
3096
+ # @param [String] quota_user
3097
+ # Available to use for quota purposes for server-side applications. Can be any
3098
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3099
+ # @param [Google::Apis::RequestOptions] options
3100
+ # Request-specific options
3101
+ #
3102
+ # @yield [result, err] Result & error if block supplied
3103
+ # @yieldparam result [Google::Apis::DataplexV1::GoogleIamV1Policy] parsed result object
3104
+ # @yieldparam err [StandardError] error object if request failed
3105
+ #
3106
+ # @return [Google::Apis::DataplexV1::GoogleIamV1Policy]
3107
+ #
3108
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3109
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3110
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3111
+ def set_project_location_glossary_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3112
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
3113
+ command.request_representation = Google::Apis::DataplexV1::GoogleIamV1SetIamPolicyRequest::Representation
3114
+ command.request_object = google_iam_v1_set_iam_policy_request_object
3115
+ command.response_representation = Google::Apis::DataplexV1::GoogleIamV1Policy::Representation
3116
+ command.response_class = Google::Apis::DataplexV1::GoogleIamV1Policy
3117
+ command.params['resource'] = resource unless resource.nil?
3118
+ command.query['fields'] = fields unless fields.nil?
3119
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3120
+ execute_or_queue_command(command, &block)
3121
+ end
3122
+
3123
+ # Returns permissions that a caller has on the specified resource. If the
3124
+ # resource does not exist, this will return an empty set of permissions, not a
3125
+ # NOT_FOUND error.Note: This operation is designed to be used for building
3126
+ # permission-aware UIs and command-line tools, not for authorization checking.
3127
+ # This operation may "fail open" without warning.
3128
+ # @param [String] resource
3129
+ # REQUIRED: The resource for which the policy detail is being requested. See
3130
+ # Resource names (https://cloud.google.com/apis/design/resource_names) for the
3131
+ # appropriate value for this field.
3132
+ # @param [Google::Apis::DataplexV1::GoogleIamV1TestIamPermissionsRequest] google_iam_v1_test_iam_permissions_request_object
3133
+ # @param [String] fields
3134
+ # Selector specifying which fields to include in a partial response.
3135
+ # @param [String] quota_user
3136
+ # Available to use for quota purposes for server-side applications. Can be any
3137
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3138
+ # @param [Google::Apis::RequestOptions] options
3139
+ # Request-specific options
3140
+ #
3141
+ # @yield [result, err] Result & error if block supplied
3142
+ # @yieldparam result [Google::Apis::DataplexV1::GoogleIamV1TestIamPermissionsResponse] parsed result object
3143
+ # @yieldparam err [StandardError] error object if request failed
3144
+ #
3145
+ # @return [Google::Apis::DataplexV1::GoogleIamV1TestIamPermissionsResponse]
3146
+ #
3147
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3148
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3149
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3150
+ def test_project_location_glossary_iam_permissions(resource, google_iam_v1_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3151
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
3152
+ command.request_representation = Google::Apis::DataplexV1::GoogleIamV1TestIamPermissionsRequest::Representation
3153
+ command.request_object = google_iam_v1_test_iam_permissions_request_object
3154
+ command.response_representation = Google::Apis::DataplexV1::GoogleIamV1TestIamPermissionsResponse::Representation
3155
+ command.response_class = Google::Apis::DataplexV1::GoogleIamV1TestIamPermissionsResponse
3156
+ command.params['resource'] = resource unless resource.nil?
3157
+ command.query['fields'] = fields unless fields.nil?
3158
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3159
+ execute_or_queue_command(command, &block)
3160
+ end
3161
+
2918
3162
  # Gets the access control policy for a resource. Returns an empty policy if the
2919
3163
  # resource exists and does not have a policy set.
2920
3164
  # @param [String] resource
@@ -5922,6 +6166,164 @@ module Google
5922
6166
  execute_or_queue_command(command, &block)
5923
6167
  end
5924
6168
 
6169
+ # Cancels a metadata job.If you cancel a metadata import job that is in progress,
6170
+ # the changes in the job might be partially applied. We recommend that you
6171
+ # reset the state of the entry groups in your project by running another
6172
+ # metadata job that reverts the changes from the canceled job.
6173
+ # @param [String] name
6174
+ # Required. The resource name of the job, in the format projects/`
6175
+ # project_id_or_number`/locations/`location_id`/metadataJobs/`metadata_job_id`
6176
+ # @param [Google::Apis::DataplexV1::GoogleCloudDataplexV1CancelMetadataJobRequest] google_cloud_dataplex_v1_cancel_metadata_job_request_object
6177
+ # @param [String] fields
6178
+ # Selector specifying which fields to include in a partial response.
6179
+ # @param [String] quota_user
6180
+ # Available to use for quota purposes for server-side applications. Can be any
6181
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
6182
+ # @param [Google::Apis::RequestOptions] options
6183
+ # Request-specific options
6184
+ #
6185
+ # @yield [result, err] Result & error if block supplied
6186
+ # @yieldparam result [Google::Apis::DataplexV1::Empty] parsed result object
6187
+ # @yieldparam err [StandardError] error object if request failed
6188
+ #
6189
+ # @return [Google::Apis::DataplexV1::Empty]
6190
+ #
6191
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6192
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6193
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6194
+ def cancel_project_location_metadata_job(name, google_cloud_dataplex_v1_cancel_metadata_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
6195
+ command = make_simple_command(:post, 'v1/{+name}:cancel', options)
6196
+ command.request_representation = Google::Apis::DataplexV1::GoogleCloudDataplexV1CancelMetadataJobRequest::Representation
6197
+ command.request_object = google_cloud_dataplex_v1_cancel_metadata_job_request_object
6198
+ command.response_representation = Google::Apis::DataplexV1::Empty::Representation
6199
+ command.response_class = Google::Apis::DataplexV1::Empty
6200
+ command.params['name'] = name unless name.nil?
6201
+ command.query['fields'] = fields unless fields.nil?
6202
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6203
+ execute_or_queue_command(command, &block)
6204
+ end
6205
+
6206
+ # Creates a metadata job. For example, use a metadata job to import Dataplex
6207
+ # Catalog entries and aspects from a third-party system into Dataplex.
6208
+ # @param [String] parent
6209
+ # Required. The resource name of the parent location, in the format projects/`
6210
+ # project_id_or_number`/locations/`location_id`
6211
+ # @param [Google::Apis::DataplexV1::GoogleCloudDataplexV1MetadataJob] google_cloud_dataplex_v1_metadata_job_object
6212
+ # @param [String] metadata_job_id
6213
+ # Optional. The metadata job ID. If not provided, a unique ID is generated with
6214
+ # the prefix metadata-job-.
6215
+ # @param [String] fields
6216
+ # Selector specifying which fields to include in a partial response.
6217
+ # @param [String] quota_user
6218
+ # Available to use for quota purposes for server-side applications. Can be any
6219
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
6220
+ # @param [Google::Apis::RequestOptions] options
6221
+ # Request-specific options
6222
+ #
6223
+ # @yield [result, err] Result & error if block supplied
6224
+ # @yieldparam result [Google::Apis::DataplexV1::GoogleLongrunningOperation] parsed result object
6225
+ # @yieldparam err [StandardError] error object if request failed
6226
+ #
6227
+ # @return [Google::Apis::DataplexV1::GoogleLongrunningOperation]
6228
+ #
6229
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6230
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6231
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6232
+ def create_project_location_metadata_job(parent, google_cloud_dataplex_v1_metadata_job_object = nil, metadata_job_id: nil, fields: nil, quota_user: nil, options: nil, &block)
6233
+ command = make_simple_command(:post, 'v1/{+parent}/metadataJobs', options)
6234
+ command.request_representation = Google::Apis::DataplexV1::GoogleCloudDataplexV1MetadataJob::Representation
6235
+ command.request_object = google_cloud_dataplex_v1_metadata_job_object
6236
+ command.response_representation = Google::Apis::DataplexV1::GoogleLongrunningOperation::Representation
6237
+ command.response_class = Google::Apis::DataplexV1::GoogleLongrunningOperation
6238
+ command.params['parent'] = parent unless parent.nil?
6239
+ command.query['metadataJobId'] = metadata_job_id unless metadata_job_id.nil?
6240
+ command.query['fields'] = fields unless fields.nil?
6241
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6242
+ execute_or_queue_command(command, &block)
6243
+ end
6244
+
6245
+ # Gets a metadata job.
6246
+ # @param [String] name
6247
+ # Required. The resource name of the metadata job, in the format projects/`
6248
+ # project_id_or_number`/locations/`location_id`/metadataJobs/`metadata_job_id`.
6249
+ # @param [String] fields
6250
+ # Selector specifying which fields to include in a partial response.
6251
+ # @param [String] quota_user
6252
+ # Available to use for quota purposes for server-side applications. Can be any
6253
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
6254
+ # @param [Google::Apis::RequestOptions] options
6255
+ # Request-specific options
6256
+ #
6257
+ # @yield [result, err] Result & error if block supplied
6258
+ # @yieldparam result [Google::Apis::DataplexV1::GoogleCloudDataplexV1MetadataJob] parsed result object
6259
+ # @yieldparam err [StandardError] error object if request failed
6260
+ #
6261
+ # @return [Google::Apis::DataplexV1::GoogleCloudDataplexV1MetadataJob]
6262
+ #
6263
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6264
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6265
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6266
+ def get_project_location_metadata_job(name, fields: nil, quota_user: nil, options: nil, &block)
6267
+ command = make_simple_command(:get, 'v1/{+name}', options)
6268
+ command.response_representation = Google::Apis::DataplexV1::GoogleCloudDataplexV1MetadataJob::Representation
6269
+ command.response_class = Google::Apis::DataplexV1::GoogleCloudDataplexV1MetadataJob
6270
+ command.params['name'] = name unless name.nil?
6271
+ command.query['fields'] = fields unless fields.nil?
6272
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6273
+ execute_or_queue_command(command, &block)
6274
+ end
6275
+
6276
+ # Lists metadata jobs.
6277
+ # @param [String] parent
6278
+ # Required. The resource name of the parent location, in the format projects/`
6279
+ # project_id_or_number`/locations/`location_id`
6280
+ # @param [String] filter
6281
+ # Optional. Filter request. Filters are case-sensitive. The service supports the
6282
+ # following formats: labels.key1 = "value1" labels:key1 name = "value"You can
6283
+ # combine filters with AND, OR, and NOT operators.
6284
+ # @param [String] order_by
6285
+ # Optional. The field to sort the results by, either name or create_time. If not
6286
+ # specified, the ordering is undefined.
6287
+ # @param [Fixnum] page_size
6288
+ # Optional. The maximum number of metadata jobs to return. The service might
6289
+ # return fewer jobs than this value. If unspecified, at most 10 jobs are
6290
+ # returned. The maximum value is 1,000.
6291
+ # @param [String] page_token
6292
+ # Optional. The page token received from a previous ListMetadataJobs call.
6293
+ # Provide this token to retrieve the subsequent page of results. When paginating,
6294
+ # all other parameters that are provided to the ListMetadataJobs request must
6295
+ # match the call that provided the page token.
6296
+ # @param [String] fields
6297
+ # Selector specifying which fields to include in a partial response.
6298
+ # @param [String] quota_user
6299
+ # Available to use for quota purposes for server-side applications. Can be any
6300
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
6301
+ # @param [Google::Apis::RequestOptions] options
6302
+ # Request-specific options
6303
+ #
6304
+ # @yield [result, err] Result & error if block supplied
6305
+ # @yieldparam result [Google::Apis::DataplexV1::GoogleCloudDataplexV1ListMetadataJobsResponse] parsed result object
6306
+ # @yieldparam err [StandardError] error object if request failed
6307
+ #
6308
+ # @return [Google::Apis::DataplexV1::GoogleCloudDataplexV1ListMetadataJobsResponse]
6309
+ #
6310
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6311
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6312
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6313
+ def list_project_location_metadata_jobs(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
6314
+ command = make_simple_command(:get, 'v1/{+parent}/metadataJobs', options)
6315
+ command.response_representation = Google::Apis::DataplexV1::GoogleCloudDataplexV1ListMetadataJobsResponse::Representation
6316
+ command.response_class = Google::Apis::DataplexV1::GoogleCloudDataplexV1ListMetadataJobsResponse
6317
+ command.params['parent'] = parent unless parent.nil?
6318
+ command.query['filter'] = filter unless filter.nil?
6319
+ command.query['orderBy'] = order_by unless order_by.nil?
6320
+ command.query['pageSize'] = page_size unless page_size.nil?
6321
+ command.query['pageToken'] = page_token unless page_token.nil?
6322
+ command.query['fields'] = fields unless fields.nil?
6323
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6324
+ execute_or_queue_command(command, &block)
6325
+ end
6326
+
5925
6327
  # Starts asynchronous cancellation on a long-running operation. The server makes
5926
6328
  # a best effort to cancel the operation, but success is not guaranteed. If the
5927
6329
  # server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.