google-apis-contentwarehouse_v1 0.10.0 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -55,7 +55,9 @@ module Google
55
55
  # @param [String] resource
56
56
  # Required. REQUIRED: The resource for which the policy is being requested.
57
57
  # Format for document: projects/`project_number`/locations/`location`/documents/`
58
- # document_id`. Format for project: projects/`project_number`.
58
+ # document_id`. Format for collection: projects/`project_number`/locations/`
59
+ # location`/collections/`collection_id`. Format for project: projects/`
60
+ # project_number`.
59
61
  # @param [Google::Apis::ContentwarehouseV1::GoogleCloudContentwarehouseV1FetchAclRequest] google_cloud_contentwarehouse_v1_fetch_acl_request_object
60
62
  # @param [String] fields
61
63
  # Selector specifying which fields to include in a partial response.
@@ -90,7 +92,9 @@ module Google
90
92
  # @param [String] resource
91
93
  # Required. REQUIRED: The resource for which the policy is being requested.
92
94
  # Format for document: projects/`project_number`/locations/`location`/documents/`
93
- # document_id`. Format for project: projects/`project_number`.
95
+ # document_id`. Format for collection: projects/`project_number`/locations/`
96
+ # location`/collections/`collection_id`. Format for project: projects/`
97
+ # project_number`.
94
98
  # @param [Google::Apis::ContentwarehouseV1::GoogleCloudContentwarehouseV1SetAclRequest] google_cloud_contentwarehouse_v1_set_acl_request_object
95
99
  # @param [String] fields
96
100
  # Selector specifying which fields to include in a partial response.
@@ -190,6 +194,69 @@ module Google
190
194
  execute_or_queue_command(command, &block)
191
195
  end
192
196
 
197
+ # Archives a data export job.
198
+ # @param [String] name
199
+ # Required. The resource name.
200
+ # @param [String] fields
201
+ # Selector specifying which fields to include in a partial response.
202
+ # @param [String] quota_user
203
+ # Available to use for quota purposes for server-side applications. Can be any
204
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
205
+ # @param [Google::Apis::RequestOptions] options
206
+ # Request-specific options
207
+ #
208
+ # @yield [result, err] Result & error if block supplied
209
+ # @yieldparam result [Google::Apis::ContentwarehouseV1::GoogleCloudContentwarehouseV1DataExportJob] parsed result object
210
+ # @yieldparam err [StandardError] error object if request failed
211
+ #
212
+ # @return [Google::Apis::ContentwarehouseV1::GoogleCloudContentwarehouseV1DataExportJob]
213
+ #
214
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
215
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
216
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
217
+ def archive_project_location_data_export_job_data_export_job(name, fields: nil, quota_user: nil, options: nil, &block)
218
+ command = make_simple_command(:delete, 'v1/{+name}', options)
219
+ command.response_representation = Google::Apis::ContentwarehouseV1::GoogleCloudContentwarehouseV1DataExportJob::Representation
220
+ command.response_class = Google::Apis::ContentwarehouseV1::GoogleCloudContentwarehouseV1DataExportJob
221
+ command.params['name'] = name unless name.nil?
222
+ command.query['fields'] = fields unless fields.nil?
223
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
224
+ execute_or_queue_command(command, &block)
225
+ end
226
+
227
+ # Creates a data export job.
228
+ # @param [String] parent
229
+ # Required. The resource parent name.
230
+ # @param [Google::Apis::ContentwarehouseV1::GoogleCloudContentwarehouseV1DataExportJob] google_cloud_contentwarehouse_v1_data_export_job_object
231
+ # @param [String] fields
232
+ # Selector specifying which fields to include in a partial response.
233
+ # @param [String] quota_user
234
+ # Available to use for quota purposes for server-side applications. Can be any
235
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
236
+ # @param [Google::Apis::RequestOptions] options
237
+ # Request-specific options
238
+ #
239
+ # @yield [result, err] Result & error if block supplied
240
+ # @yieldparam result [Google::Apis::ContentwarehouseV1::GoogleCloudContentwarehouseV1DataExportJob] parsed result object
241
+ # @yieldparam err [StandardError] error object if request failed
242
+ #
243
+ # @return [Google::Apis::ContentwarehouseV1::GoogleCloudContentwarehouseV1DataExportJob]
244
+ #
245
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
246
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
247
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
248
+ def create_project_location_data_export_job(parent, google_cloud_contentwarehouse_v1_data_export_job_object = nil, fields: nil, quota_user: nil, options: nil, &block)
249
+ command = make_simple_command(:post, 'v1/{+parent}/dataExportJobs', options)
250
+ command.request_representation = Google::Apis::ContentwarehouseV1::GoogleCloudContentwarehouseV1DataExportJob::Representation
251
+ command.request_object = google_cloud_contentwarehouse_v1_data_export_job_object
252
+ command.response_representation = Google::Apis::ContentwarehouseV1::GoogleCloudContentwarehouseV1DataExportJob::Representation
253
+ command.response_class = Google::Apis::ContentwarehouseV1::GoogleCloudContentwarehouseV1DataExportJob
254
+ command.params['parent'] = parent unless parent.nil?
255
+ command.query['fields'] = fields unless fields.nil?
256
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
257
+ execute_or_queue_command(command, &block)
258
+ end
259
+
193
260
  # Creates a document schema.
194
261
  # @param [String] parent
195
262
  # Required. The parent name.
@@ -441,7 +508,9 @@ module Google
441
508
  # @param [String] resource
442
509
  # Required. REQUIRED: The resource for which the policy is being requested.
443
510
  # Format for document: projects/`project_number`/locations/`location`/documents/`
444
- # document_id`. Format for project: projects/`project_number`.
511
+ # document_id`. Format for collection: projects/`project_number`/locations/`
512
+ # location`/collections/`collection_id`. Format for project: projects/`
513
+ # project_number`.
445
514
  # @param [Google::Apis::ContentwarehouseV1::GoogleCloudContentwarehouseV1FetchAclRequest] google_cloud_contentwarehouse_v1_fetch_acl_request_object
446
515
  # @param [String] fields
447
516
  # Selector specifying which fields to include in a partial response.
@@ -577,6 +646,40 @@ module Google
577
646
  execute_or_queue_command(command, &block)
578
647
  end
579
648
 
649
+ # Lock the document so the document cannot be updated by other users.
650
+ # @param [String] name
651
+ # Required. The name of the document to lock. Format: projects/`project_number`/
652
+ # locations/`location`/documents/`document`.
653
+ # @param [Google::Apis::ContentwarehouseV1::GoogleCloudContentwarehouseV1LockDocumentRequest] google_cloud_contentwarehouse_v1_lock_document_request_object
654
+ # @param [String] fields
655
+ # Selector specifying which fields to include in a partial response.
656
+ # @param [String] quota_user
657
+ # Available to use for quota purposes for server-side applications. Can be any
658
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
659
+ # @param [Google::Apis::RequestOptions] options
660
+ # Request-specific options
661
+ #
662
+ # @yield [result, err] Result & error if block supplied
663
+ # @yieldparam result [Google::Apis::ContentwarehouseV1::GoogleCloudContentwarehouseV1Document] parsed result object
664
+ # @yieldparam err [StandardError] error object if request failed
665
+ #
666
+ # @return [Google::Apis::ContentwarehouseV1::GoogleCloudContentwarehouseV1Document]
667
+ #
668
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
669
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
670
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
671
+ def lock_project_location_document(name, google_cloud_contentwarehouse_v1_lock_document_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
672
+ command = make_simple_command(:post, 'v1/{+name}:lock', options)
673
+ command.request_representation = Google::Apis::ContentwarehouseV1::GoogleCloudContentwarehouseV1LockDocumentRequest::Representation
674
+ command.request_object = google_cloud_contentwarehouse_v1_lock_document_request_object
675
+ command.response_representation = Google::Apis::ContentwarehouseV1::GoogleCloudContentwarehouseV1Document::Representation
676
+ command.response_class = Google::Apis::ContentwarehouseV1::GoogleCloudContentwarehouseV1Document
677
+ command.params['name'] = name unless name.nil?
678
+ command.query['fields'] = fields unless fields.nil?
679
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
680
+ execute_or_queue_command(command, &block)
681
+ end
682
+
580
683
  # Updates a document. Returns INVALID_ARGUMENT if the name of the document is
581
684
  # non-empty and does not equal the existing name.
582
685
  # @param [String] name
@@ -652,7 +755,9 @@ module Google
652
755
  # @param [String] resource
653
756
  # Required. REQUIRED: The resource for which the policy is being requested.
654
757
  # Format for document: projects/`project_number`/locations/`location`/documents/`
655
- # document_id`. Format for project: projects/`project_number`.
758
+ # document_id`. Format for collection: projects/`project_number`/locations/`
759
+ # location`/collections/`collection_id`. Format for project: projects/`
760
+ # project_number`.
656
761
  # @param [Google::Apis::ContentwarehouseV1::GoogleCloudContentwarehouseV1SetAclRequest] google_cloud_contentwarehouse_v1_set_acl_request_object
657
762
  # @param [String] fields
658
763
  # Selector specifying which fields to include in a partial response.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-contentwarehouse_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.11.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-02-26 00:00:00.000000000 Z
11
+ date: 2023-03-26 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-contentwarehouse_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-contentwarehouse_v1/v0.10.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-contentwarehouse_v1/v0.11.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-contentwarehouse_v1
63
63
  post_install_message:
64
64
  rdoc_options: []