google-apis-contentwarehouse_v1 0.10.0 → 0.12.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.
@@ -156,40 +160,6 @@ module Google
156
160
  execute_or_queue_command(command, &block)
157
161
  end
158
162
 
159
- # Run a predefined pipeline.
160
- # @param [String] name
161
- # Required. The resource name which owns the resources of the pipeline. Format:
162
- # projects/`project_number`/locations/`location`.
163
- # @param [Google::Apis::ContentwarehouseV1::GoogleCloudContentwarehouseV1RunPipelineRequest] google_cloud_contentwarehouse_v1_run_pipeline_request_object
164
- # @param [String] fields
165
- # Selector specifying which fields to include in a partial response.
166
- # @param [String] quota_user
167
- # Available to use for quota purposes for server-side applications. Can be any
168
- # arbitrary string assigned to a user, but should not exceed 40 characters.
169
- # @param [Google::Apis::RequestOptions] options
170
- # Request-specific options
171
- #
172
- # @yield [result, err] Result & error if block supplied
173
- # @yieldparam result [Google::Apis::ContentwarehouseV1::GoogleLongrunningOperation] parsed result object
174
- # @yieldparam err [StandardError] error object if request failed
175
- #
176
- # @return [Google::Apis::ContentwarehouseV1::GoogleLongrunningOperation]
177
- #
178
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
179
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
180
- # @raise [Google::Apis::AuthorizationError] Authorization is required
181
- def run_project_location_pipeline(name, google_cloud_contentwarehouse_v1_run_pipeline_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
182
- command = make_simple_command(:post, 'v1/{+name}:runPipeline', options)
183
- command.request_representation = Google::Apis::ContentwarehouseV1::GoogleCloudContentwarehouseV1RunPipelineRequest::Representation
184
- command.request_object = google_cloud_contentwarehouse_v1_run_pipeline_request_object
185
- command.response_representation = Google::Apis::ContentwarehouseV1::GoogleLongrunningOperation::Representation
186
- command.response_class = Google::Apis::ContentwarehouseV1::GoogleLongrunningOperation
187
- command.params['name'] = name unless name.nil?
188
- command.query['fields'] = fields unless fields.nil?
189
- command.query['quotaUser'] = quota_user unless quota_user.nil?
190
- execute_or_queue_command(command, &block)
191
- end
192
-
193
163
  # Creates a document schema.
194
164
  # @param [String] parent
195
165
  # Required. The parent name.
@@ -441,7 +411,9 @@ module Google
441
411
  # @param [String] resource
442
412
  # Required. REQUIRED: The resource for which the policy is being requested.
443
413
  # Format for document: projects/`project_number`/locations/`location`/documents/`
444
- # document_id`. Format for project: projects/`project_number`.
414
+ # document_id`. Format for collection: projects/`project_number`/locations/`
415
+ # location`/collections/`collection_id`. Format for project: projects/`
416
+ # project_number`.
445
417
  # @param [Google::Apis::ContentwarehouseV1::GoogleCloudContentwarehouseV1FetchAclRequest] google_cloud_contentwarehouse_v1_fetch_acl_request_object
446
418
  # @param [String] fields
447
419
  # Selector specifying which fields to include in a partial response.
@@ -577,6 +549,40 @@ module Google
577
549
  execute_or_queue_command(command, &block)
578
550
  end
579
551
 
552
+ # Lock the document so the document cannot be updated by other users.
553
+ # @param [String] name
554
+ # Required. The name of the document to lock. Format: projects/`project_number`/
555
+ # locations/`location`/documents/`document`.
556
+ # @param [Google::Apis::ContentwarehouseV1::GoogleCloudContentwarehouseV1LockDocumentRequest] google_cloud_contentwarehouse_v1_lock_document_request_object
557
+ # @param [String] fields
558
+ # Selector specifying which fields to include in a partial response.
559
+ # @param [String] quota_user
560
+ # Available to use for quota purposes for server-side applications. Can be any
561
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
562
+ # @param [Google::Apis::RequestOptions] options
563
+ # Request-specific options
564
+ #
565
+ # @yield [result, err] Result & error if block supplied
566
+ # @yieldparam result [Google::Apis::ContentwarehouseV1::GoogleCloudContentwarehouseV1Document] parsed result object
567
+ # @yieldparam err [StandardError] error object if request failed
568
+ #
569
+ # @return [Google::Apis::ContentwarehouseV1::GoogleCloudContentwarehouseV1Document]
570
+ #
571
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
572
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
573
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
574
+ def lock_project_location_document(name, google_cloud_contentwarehouse_v1_lock_document_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
575
+ command = make_simple_command(:post, 'v1/{+name}:lock', options)
576
+ command.request_representation = Google::Apis::ContentwarehouseV1::GoogleCloudContentwarehouseV1LockDocumentRequest::Representation
577
+ command.request_object = google_cloud_contentwarehouse_v1_lock_document_request_object
578
+ command.response_representation = Google::Apis::ContentwarehouseV1::GoogleCloudContentwarehouseV1Document::Representation
579
+ command.response_class = Google::Apis::ContentwarehouseV1::GoogleCloudContentwarehouseV1Document
580
+ command.params['name'] = name unless name.nil?
581
+ command.query['fields'] = fields unless fields.nil?
582
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
583
+ execute_or_queue_command(command, &block)
584
+ end
585
+
580
586
  # Updates a document. Returns INVALID_ARGUMENT if the name of the document is
581
587
  # non-empty and does not equal the existing name.
582
588
  # @param [String] name
@@ -652,7 +658,9 @@ module Google
652
658
  # @param [String] resource
653
659
  # Required. REQUIRED: The resource for which the policy is being requested.
654
660
  # Format for document: projects/`project_number`/locations/`location`/documents/`
655
- # document_id`. Format for project: projects/`project_number`.
661
+ # document_id`. Format for collection: projects/`project_number`/locations/`
662
+ # location`/collections/`collection_id`. Format for project: projects/`
663
+ # project_number`.
656
664
  # @param [Google::Apis::ContentwarehouseV1::GoogleCloudContentwarehouseV1SetAclRequest] google_cloud_contentwarehouse_v1_set_acl_request_object
657
665
  # @param [String] fields
658
666
  # 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.12.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-04-02 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.12.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: []