google-apis-documentai_v1beta3 0.115.0 → 0.116.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.
@@ -1387,6 +1387,393 @@ module Google
1387
1387
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1388
1388
  execute_or_queue_command(command, &block)
1389
1389
  end
1390
+
1391
+ # Creates a schema.
1392
+ # @param [String] parent
1393
+ # Required. The parent (project and location) under which to create the Schema.
1394
+ # Format: `projects/`project`/locations/`location``
1395
+ # @param [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3NextSchema] google_cloud_documentai_v1beta3_next_schema_object
1396
+ # @param [String] fields
1397
+ # Selector specifying which fields to include in a partial response.
1398
+ # @param [String] quota_user
1399
+ # Available to use for quota purposes for server-side applications. Can be any
1400
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1401
+ # @param [Google::Apis::RequestOptions] options
1402
+ # Request-specific options
1403
+ #
1404
+ # @yield [result, err] Result & error if block supplied
1405
+ # @yieldparam result [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3NextSchema] parsed result object
1406
+ # @yieldparam err [StandardError] error object if request failed
1407
+ #
1408
+ # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3NextSchema]
1409
+ #
1410
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1411
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1412
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1413
+ def create_project_location_schema(parent, google_cloud_documentai_v1beta3_next_schema_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1414
+ command = make_simple_command(:post, 'v1beta3/{+parent}/schemas', options)
1415
+ command.request_representation = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3NextSchema::Representation
1416
+ command.request_object = google_cloud_documentai_v1beta3_next_schema_object
1417
+ command.response_representation = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3NextSchema::Representation
1418
+ command.response_class = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3NextSchema
1419
+ command.params['parent'] = parent unless parent.nil?
1420
+ command.query['fields'] = fields unless fields.nil?
1421
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1422
+ execute_or_queue_command(command, &block)
1423
+ end
1424
+
1425
+ # Deletes a schema.
1426
+ # @param [String] name
1427
+ # Required. The name of the Schema to be deleted. Format: `projects/`project`/
1428
+ # locations/`location`/schemas/`schema``
1429
+ # @param [Boolean] force
1430
+ # Optional. If set to true, any child resources of this Schema will also be
1431
+ # deleted. (Otherwise, the request will only work if the Schema has no child
1432
+ # resources.)
1433
+ # @param [String] fields
1434
+ # Selector specifying which fields to include in a partial response.
1435
+ # @param [String] quota_user
1436
+ # Available to use for quota purposes for server-side applications. Can be any
1437
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1438
+ # @param [Google::Apis::RequestOptions] options
1439
+ # Request-specific options
1440
+ #
1441
+ # @yield [result, err] Result & error if block supplied
1442
+ # @yieldparam result [Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation] parsed result object
1443
+ # @yieldparam err [StandardError] error object if request failed
1444
+ #
1445
+ # @return [Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation]
1446
+ #
1447
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1448
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1449
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1450
+ def delete_project_location_schema(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
1451
+ command = make_simple_command(:delete, 'v1beta3/{+name}', options)
1452
+ command.response_representation = Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation::Representation
1453
+ command.response_class = Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation
1454
+ command.params['name'] = name unless name.nil?
1455
+ command.query['force'] = force unless force.nil?
1456
+ command.query['fields'] = fields unless fields.nil?
1457
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1458
+ execute_or_queue_command(command, &block)
1459
+ end
1460
+
1461
+ # Gets a schema.
1462
+ # @param [String] name
1463
+ # Required. The name of the Schema to get. Format: `projects/`project`/locations/
1464
+ # `location`/schemas/`schema``
1465
+ # @param [String] fields
1466
+ # Selector specifying which fields to include in a partial response.
1467
+ # @param [String] quota_user
1468
+ # Available to use for quota purposes for server-side applications. Can be any
1469
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1470
+ # @param [Google::Apis::RequestOptions] options
1471
+ # Request-specific options
1472
+ #
1473
+ # @yield [result, err] Result & error if block supplied
1474
+ # @yieldparam result [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3NextSchema] parsed result object
1475
+ # @yieldparam err [StandardError] error object if request failed
1476
+ #
1477
+ # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3NextSchema]
1478
+ #
1479
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1480
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1481
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1482
+ def get_project_location_schema(name, fields: nil, quota_user: nil, options: nil, &block)
1483
+ command = make_simple_command(:get, 'v1beta3/{+name}', options)
1484
+ command.response_representation = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3NextSchema::Representation
1485
+ command.response_class = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3NextSchema
1486
+ command.params['name'] = name unless name.nil?
1487
+ command.query['fields'] = fields unless fields.nil?
1488
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1489
+ execute_or_queue_command(command, &block)
1490
+ end
1491
+
1492
+ # Lists Schemas.
1493
+ # @param [String] parent
1494
+ # Required. Format: `projects/`project`/locations/`location``
1495
+ # @param [Fixnum] page_size
1496
+ # Optional. The maximum number of schema groups to return. If unspecified, at
1497
+ # most `10` Schema will be returned. The maximum value is `20`. Values above `20`
1498
+ # will be coerced to `20`.
1499
+ # @param [String] page_token
1500
+ # Optional. We will return the schema groups sorted by creation time. The page
1501
+ # token will point to the next Schema.
1502
+ # @param [String] fields
1503
+ # Selector specifying which fields to include in a partial response.
1504
+ # @param [String] quota_user
1505
+ # Available to use for quota purposes for server-side applications. Can be any
1506
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1507
+ # @param [Google::Apis::RequestOptions] options
1508
+ # Request-specific options
1509
+ #
1510
+ # @yield [result, err] Result & error if block supplied
1511
+ # @yieldparam result [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ListSchemasResponse] parsed result object
1512
+ # @yieldparam err [StandardError] error object if request failed
1513
+ #
1514
+ # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ListSchemasResponse]
1515
+ #
1516
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1517
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1518
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1519
+ def list_project_location_schemas(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1520
+ command = make_simple_command(:get, 'v1beta3/{+parent}/schemas', options)
1521
+ command.response_representation = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ListSchemasResponse::Representation
1522
+ command.response_class = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ListSchemasResponse
1523
+ command.params['parent'] = parent unless parent.nil?
1524
+ command.query['pageSize'] = page_size unless page_size.nil?
1525
+ command.query['pageToken'] = page_token unless page_token.nil?
1526
+ command.query['fields'] = fields unless fields.nil?
1527
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1528
+ execute_or_queue_command(command, &block)
1529
+ end
1530
+
1531
+ # Updates a schema. Editable fields are: - `display_name` - `labels`
1532
+ # @param [String] name
1533
+ # Identifier. The resource name of the Schema. Format: `projects/`project`/
1534
+ # locations/`location`/schemas/`schema``
1535
+ # @param [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3NextSchema] google_cloud_documentai_v1beta3_next_schema_object
1536
+ # @param [String] update_mask
1537
+ # Optional. The update mask to apply to the resource. **Note:** Only the
1538
+ # following fields can be updated: - display_name. - labels.
1539
+ # @param [String] fields
1540
+ # Selector specifying which fields to include in a partial response.
1541
+ # @param [String] quota_user
1542
+ # Available to use for quota purposes for server-side applications. Can be any
1543
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1544
+ # @param [Google::Apis::RequestOptions] options
1545
+ # Request-specific options
1546
+ #
1547
+ # @yield [result, err] Result & error if block supplied
1548
+ # @yieldparam result [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3NextSchema] parsed result object
1549
+ # @yieldparam err [StandardError] error object if request failed
1550
+ #
1551
+ # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3NextSchema]
1552
+ #
1553
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1554
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1555
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1556
+ def patch_project_location_schema(name, google_cloud_documentai_v1beta3_next_schema_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1557
+ command = make_simple_command(:patch, 'v1beta3/{+name}', options)
1558
+ command.request_representation = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3NextSchema::Representation
1559
+ command.request_object = google_cloud_documentai_v1beta3_next_schema_object
1560
+ command.response_representation = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3NextSchema::Representation
1561
+ command.response_class = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3NextSchema
1562
+ command.params['name'] = name unless name.nil?
1563
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1564
+ command.query['fields'] = fields unless fields.nil?
1565
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1566
+ execute_or_queue_command(command, &block)
1567
+ end
1568
+
1569
+ # Creates a schema version.
1570
+ # @param [String] parent
1571
+ # Required. The parent (project and location) under which to create the
1572
+ # SchemaVersion. Format: `projects/`project`/locations/`location`/schemas/`
1573
+ # schema``
1574
+ # @param [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3SchemaVersion] google_cloud_documentai_v1beta3_schema_version_object
1575
+ # @param [String] fields
1576
+ # Selector specifying which fields to include in a partial response.
1577
+ # @param [String] quota_user
1578
+ # Available to use for quota purposes for server-side applications. Can be any
1579
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1580
+ # @param [Google::Apis::RequestOptions] options
1581
+ # Request-specific options
1582
+ #
1583
+ # @yield [result, err] Result & error if block supplied
1584
+ # @yieldparam result [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3SchemaVersion] parsed result object
1585
+ # @yieldparam err [StandardError] error object if request failed
1586
+ #
1587
+ # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3SchemaVersion]
1588
+ #
1589
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1590
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1591
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1592
+ def create_project_location_schema_schema_version(parent, google_cloud_documentai_v1beta3_schema_version_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1593
+ command = make_simple_command(:post, 'v1beta3/{+parent}/schemaVersions', options)
1594
+ command.request_representation = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3SchemaVersion::Representation
1595
+ command.request_object = google_cloud_documentai_v1beta3_schema_version_object
1596
+ command.response_representation = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3SchemaVersion::Representation
1597
+ command.response_class = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3SchemaVersion
1598
+ command.params['parent'] = parent unless parent.nil?
1599
+ command.query['fields'] = fields unless fields.nil?
1600
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1601
+ execute_or_queue_command(command, &block)
1602
+ end
1603
+
1604
+ # Deletes a schema version.
1605
+ # @param [String] name
1606
+ # Required. The name of the SchemaVersion to delete. Format: `projects/`project`/
1607
+ # locations/`location`/schemas/`schema`/schemaVersions/`schema_version``
1608
+ # @param [String] fields
1609
+ # Selector specifying which fields to include in a partial response.
1610
+ # @param [String] quota_user
1611
+ # Available to use for quota purposes for server-side applications. Can be any
1612
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1613
+ # @param [Google::Apis::RequestOptions] options
1614
+ # Request-specific options
1615
+ #
1616
+ # @yield [result, err] Result & error if block supplied
1617
+ # @yieldparam result [Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation] parsed result object
1618
+ # @yieldparam err [StandardError] error object if request failed
1619
+ #
1620
+ # @return [Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation]
1621
+ #
1622
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1623
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1624
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1625
+ def delete_project_location_schema_schema_version(name, fields: nil, quota_user: nil, options: nil, &block)
1626
+ command = make_simple_command(:delete, 'v1beta3/{+name}', options)
1627
+ command.response_representation = Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation::Representation
1628
+ command.response_class = Google::Apis::DocumentaiV1beta3::GoogleLongrunningOperation
1629
+ command.params['name'] = name unless name.nil?
1630
+ command.query['fields'] = fields unless fields.nil?
1631
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1632
+ execute_or_queue_command(command, &block)
1633
+ end
1634
+
1635
+ # Generates a schema version.
1636
+ # @param [String] parent
1637
+ # Required. The parent (project, location and schema) under which to generate
1638
+ # the SchemaVersion. Format: `projects/`project`/locations/`location`/schemas/`
1639
+ # schema``
1640
+ # @param [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3GenerateSchemaVersionRequest] google_cloud_documentai_v1beta3_generate_schema_version_request_object
1641
+ # @param [String] fields
1642
+ # Selector specifying which fields to include in a partial response.
1643
+ # @param [String] quota_user
1644
+ # Available to use for quota purposes for server-side applications. Can be any
1645
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1646
+ # @param [Google::Apis::RequestOptions] options
1647
+ # Request-specific options
1648
+ #
1649
+ # @yield [result, err] Result & error if block supplied
1650
+ # @yieldparam result [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3GenerateSchemaVersionResponse] parsed result object
1651
+ # @yieldparam err [StandardError] error object if request failed
1652
+ #
1653
+ # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3GenerateSchemaVersionResponse]
1654
+ #
1655
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1656
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1657
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1658
+ def generate_project_location_schema_schema_version(parent, google_cloud_documentai_v1beta3_generate_schema_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1659
+ command = make_simple_command(:post, 'v1beta3/{+parent}/schemaVersions:generate', options)
1660
+ command.request_representation = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3GenerateSchemaVersionRequest::Representation
1661
+ command.request_object = google_cloud_documentai_v1beta3_generate_schema_version_request_object
1662
+ command.response_representation = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3GenerateSchemaVersionResponse::Representation
1663
+ command.response_class = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3GenerateSchemaVersionResponse
1664
+ command.params['parent'] = parent unless parent.nil?
1665
+ command.query['fields'] = fields unless fields.nil?
1666
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1667
+ execute_or_queue_command(command, &block)
1668
+ end
1669
+
1670
+ # Gets a schema version.
1671
+ # @param [String] name
1672
+ # Required. The name of the SchemaVersion to get. Format: `projects/`project`/
1673
+ # locations/`location`/schemas/`schema`/schemaVersions/`schema_version``
1674
+ # @param [String] fields
1675
+ # Selector specifying which fields to include in a partial response.
1676
+ # @param [String] quota_user
1677
+ # Available to use for quota purposes for server-side applications. Can be any
1678
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1679
+ # @param [Google::Apis::RequestOptions] options
1680
+ # Request-specific options
1681
+ #
1682
+ # @yield [result, err] Result & error if block supplied
1683
+ # @yieldparam result [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3SchemaVersion] parsed result object
1684
+ # @yieldparam err [StandardError] error object if request failed
1685
+ #
1686
+ # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3SchemaVersion]
1687
+ #
1688
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1689
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1690
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1691
+ def get_project_location_schema_schema_version(name, fields: nil, quota_user: nil, options: nil, &block)
1692
+ command = make_simple_command(:get, 'v1beta3/{+name}', options)
1693
+ command.response_representation = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3SchemaVersion::Representation
1694
+ command.response_class = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3SchemaVersion
1695
+ command.params['name'] = name unless name.nil?
1696
+ command.query['fields'] = fields unless fields.nil?
1697
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1698
+ execute_or_queue_command(command, &block)
1699
+ end
1700
+
1701
+ # Lists SchemaVersions.
1702
+ # @param [String] parent
1703
+ # Required. Format: `projects/`project`/locations/`location`/schemas/`schema``
1704
+ # @param [Fixnum] page_size
1705
+ # Optional. The maximum number of SchemaVersion to return. If unspecified, at
1706
+ # most `10` SchemaVersion will be returned. The maximum value is `20`. Values
1707
+ # above `20` will be coerced to `20`.
1708
+ # @param [String] page_token
1709
+ # Optional. We will return the SchemaVersion sorted by creation time. The page
1710
+ # token will point to the next SchemaVersion.
1711
+ # @param [String] fields
1712
+ # Selector specifying which fields to include in a partial response.
1713
+ # @param [String] quota_user
1714
+ # Available to use for quota purposes for server-side applications. Can be any
1715
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1716
+ # @param [Google::Apis::RequestOptions] options
1717
+ # Request-specific options
1718
+ #
1719
+ # @yield [result, err] Result & error if block supplied
1720
+ # @yieldparam result [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ListSchemaVersionsResponse] parsed result object
1721
+ # @yieldparam err [StandardError] error object if request failed
1722
+ #
1723
+ # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ListSchemaVersionsResponse]
1724
+ #
1725
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1726
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1727
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1728
+ def list_project_location_schema_schema_versions(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1729
+ command = make_simple_command(:get, 'v1beta3/{+parent}/schemaVersions', options)
1730
+ command.response_representation = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ListSchemaVersionsResponse::Representation
1731
+ command.response_class = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ListSchemaVersionsResponse
1732
+ command.params['parent'] = parent unless parent.nil?
1733
+ command.query['pageSize'] = page_size unless page_size.nil?
1734
+ command.query['pageToken'] = page_token unless page_token.nil?
1735
+ command.query['fields'] = fields unless fields.nil?
1736
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1737
+ execute_or_queue_command(command, &block)
1738
+ end
1739
+
1740
+ # Updates a schema version. Editable fields are: - `display_name` - `labels`
1741
+ # @param [String] name
1742
+ # Identifier. The resource name of the SchemaVersion. Format: `projects/`project`
1743
+ # /locations/`location`/schemas/`schema`/schemaVersions/`schema_version``
1744
+ # @param [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3SchemaVersion] google_cloud_documentai_v1beta3_schema_version_object
1745
+ # @param [String] update_mask
1746
+ # Optional. The update mask to apply to the resource. **Note:** Only the
1747
+ # following fields can be updated: - display_name. - labels.
1748
+ # @param [String] fields
1749
+ # Selector specifying which fields to include in a partial response.
1750
+ # @param [String] quota_user
1751
+ # Available to use for quota purposes for server-side applications. Can be any
1752
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1753
+ # @param [Google::Apis::RequestOptions] options
1754
+ # Request-specific options
1755
+ #
1756
+ # @yield [result, err] Result & error if block supplied
1757
+ # @yieldparam result [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3SchemaVersion] parsed result object
1758
+ # @yieldparam err [StandardError] error object if request failed
1759
+ #
1760
+ # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3SchemaVersion]
1761
+ #
1762
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1763
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1764
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1765
+ def patch_project_location_schema_schema_version(name, google_cloud_documentai_v1beta3_schema_version_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1766
+ command = make_simple_command(:patch, 'v1beta3/{+name}', options)
1767
+ command.request_representation = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3SchemaVersion::Representation
1768
+ command.request_object = google_cloud_documentai_v1beta3_schema_version_object
1769
+ command.response_representation = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3SchemaVersion::Representation
1770
+ command.response_class = Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3SchemaVersion
1771
+ command.params['name'] = name unless name.nil?
1772
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1773
+ command.query['fields'] = fields unless fields.nil?
1774
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1775
+ execute_or_queue_command(command, &block)
1776
+ end
1390
1777
 
1391
1778
  protected
1392
1779
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-documentai_v1beta3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.115.0
4
+ version: 0.116.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-documentai_v1beta3/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1beta3/v0.115.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1beta3/v0.116.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-documentai_v1beta3
62
62
  rdoc_options: []
63
63
  require_paths: