google-apis-run_v2 0.82.0 → 0.83.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/run_v2/classes.rb +971 -59
- data/lib/google/apis/run_v2/gem_version.rb +2 -2
- data/lib/google/apis/run_v2/representations.rb +277 -0
- data/lib/google/apis/run_v2/service.rb +444 -0
- metadata +4 -4
@@ -1455,6 +1455,450 @@ module Google
|
|
1455
1455
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1456
1456
|
execute_or_queue_command(command, &block)
|
1457
1457
|
end
|
1458
|
+
|
1459
|
+
# Creates a new WorkerPool in a given project and location.
|
1460
|
+
# @param [String] parent
|
1461
|
+
# Required. The location and project in which this worker pool should be created.
|
1462
|
+
# Format: projects/`project`/locations/`location`, where `project` can be
|
1463
|
+
# project id or number. Only lowercase characters, digits, and hyphens.
|
1464
|
+
# @param [Google::Apis::RunV2::GoogleCloudRunV2WorkerPool] google_cloud_run_v2_worker_pool_object
|
1465
|
+
# @param [Boolean] validate_only
|
1466
|
+
# Optional. Indicates that the request should be validated and default values
|
1467
|
+
# populated, without persisting the request or creating any resources.
|
1468
|
+
# @param [String] worker_pool_id
|
1469
|
+
# Required. The unique identifier for the WorkerPool. It must begin with letter,
|
1470
|
+
# and cannot end with hyphen; must contain fewer than 50 characters. The name of
|
1471
|
+
# the worker pool becomes `parent`/workerPools/`worker_pool_id`.
|
1472
|
+
# @param [String] fields
|
1473
|
+
# Selector specifying which fields to include in a partial response.
|
1474
|
+
# @param [String] quota_user
|
1475
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1476
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1477
|
+
# @param [Google::Apis::RequestOptions] options
|
1478
|
+
# Request-specific options
|
1479
|
+
#
|
1480
|
+
# @yield [result, err] Result & error if block supplied
|
1481
|
+
# @yieldparam result [Google::Apis::RunV2::GoogleLongrunningOperation] parsed result object
|
1482
|
+
# @yieldparam err [StandardError] error object if request failed
|
1483
|
+
#
|
1484
|
+
# @return [Google::Apis::RunV2::GoogleLongrunningOperation]
|
1485
|
+
#
|
1486
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1487
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1488
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1489
|
+
def create_project_location_worker_pool(parent, google_cloud_run_v2_worker_pool_object = nil, validate_only: nil, worker_pool_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1490
|
+
command = make_simple_command(:post, 'v2/{+parent}/workerPools', options)
|
1491
|
+
command.request_representation = Google::Apis::RunV2::GoogleCloudRunV2WorkerPool::Representation
|
1492
|
+
command.request_object = google_cloud_run_v2_worker_pool_object
|
1493
|
+
command.response_representation = Google::Apis::RunV2::GoogleLongrunningOperation::Representation
|
1494
|
+
command.response_class = Google::Apis::RunV2::GoogleLongrunningOperation
|
1495
|
+
command.params['parent'] = parent unless parent.nil?
|
1496
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
1497
|
+
command.query['workerPoolId'] = worker_pool_id unless worker_pool_id.nil?
|
1498
|
+
command.query['fields'] = fields unless fields.nil?
|
1499
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1500
|
+
execute_or_queue_command(command, &block)
|
1501
|
+
end
|
1502
|
+
|
1503
|
+
# Deletes a WorkerPool.
|
1504
|
+
# @param [String] name
|
1505
|
+
# Required. The full name of the WorkerPool. Format: projects/`project`/
|
1506
|
+
# locations/`location`/workerPools/`worker_pool`, where `project` can be project
|
1507
|
+
# id or number.
|
1508
|
+
# @param [String] etag
|
1509
|
+
# A system-generated fingerprint for this version of the resource. May be used
|
1510
|
+
# to detect modification conflict during updates.
|
1511
|
+
# @param [Boolean] validate_only
|
1512
|
+
# Optional. Indicates that the request should be validated without actually
|
1513
|
+
# deleting any resources.
|
1514
|
+
# @param [String] fields
|
1515
|
+
# Selector specifying which fields to include in a partial response.
|
1516
|
+
# @param [String] quota_user
|
1517
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1518
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1519
|
+
# @param [Google::Apis::RequestOptions] options
|
1520
|
+
# Request-specific options
|
1521
|
+
#
|
1522
|
+
# @yield [result, err] Result & error if block supplied
|
1523
|
+
# @yieldparam result [Google::Apis::RunV2::GoogleLongrunningOperation] parsed result object
|
1524
|
+
# @yieldparam err [StandardError] error object if request failed
|
1525
|
+
#
|
1526
|
+
# @return [Google::Apis::RunV2::GoogleLongrunningOperation]
|
1527
|
+
#
|
1528
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1529
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1530
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1531
|
+
def delete_project_location_worker_pool(name, etag: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1532
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
1533
|
+
command.response_representation = Google::Apis::RunV2::GoogleLongrunningOperation::Representation
|
1534
|
+
command.response_class = Google::Apis::RunV2::GoogleLongrunningOperation
|
1535
|
+
command.params['name'] = name unless name.nil?
|
1536
|
+
command.query['etag'] = etag unless etag.nil?
|
1537
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
1538
|
+
command.query['fields'] = fields unless fields.nil?
|
1539
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1540
|
+
execute_or_queue_command(command, &block)
|
1541
|
+
end
|
1542
|
+
|
1543
|
+
# Gets information about a WorkerPool.
|
1544
|
+
# @param [String] name
|
1545
|
+
# Required. The full name of the WorkerPool. Format: projects/`project`/
|
1546
|
+
# locations/`location`/workerPools/`worker_pool`, where `project` can be project
|
1547
|
+
# id or number.
|
1548
|
+
# @param [String] fields
|
1549
|
+
# Selector specifying which fields to include in a partial response.
|
1550
|
+
# @param [String] quota_user
|
1551
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1552
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1553
|
+
# @param [Google::Apis::RequestOptions] options
|
1554
|
+
# Request-specific options
|
1555
|
+
#
|
1556
|
+
# @yield [result, err] Result & error if block supplied
|
1557
|
+
# @yieldparam result [Google::Apis::RunV2::GoogleCloudRunV2WorkerPool] parsed result object
|
1558
|
+
# @yieldparam err [StandardError] error object if request failed
|
1559
|
+
#
|
1560
|
+
# @return [Google::Apis::RunV2::GoogleCloudRunV2WorkerPool]
|
1561
|
+
#
|
1562
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1563
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1564
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1565
|
+
def get_project_location_worker_pool(name, fields: nil, quota_user: nil, options: nil, &block)
|
1566
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
1567
|
+
command.response_representation = Google::Apis::RunV2::GoogleCloudRunV2WorkerPool::Representation
|
1568
|
+
command.response_class = Google::Apis::RunV2::GoogleCloudRunV2WorkerPool
|
1569
|
+
command.params['name'] = name unless name.nil?
|
1570
|
+
command.query['fields'] = fields unless fields.nil?
|
1571
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1572
|
+
execute_or_queue_command(command, &block)
|
1573
|
+
end
|
1574
|
+
|
1575
|
+
# Gets the IAM Access Control policy currently in effect for the given Cloud Run
|
1576
|
+
# WorkerPool. This result does not include any inherited policies.
|
1577
|
+
# @param [String] resource
|
1578
|
+
# REQUIRED: The resource for which the policy is being requested. See [Resource
|
1579
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
1580
|
+
# appropriate value for this field.
|
1581
|
+
# @param [Fixnum] options_requested_policy_version
|
1582
|
+
# Optional. The maximum policy version that will be used to format the policy.
|
1583
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
1584
|
+
# rejected. Requests for policies with any conditional role bindings must
|
1585
|
+
# specify version 3. Policies with no conditional role bindings may specify any
|
1586
|
+
# valid value or leave the field unset. The policy in the response might use the
|
1587
|
+
# policy version that you specified, or it might use a lower policy version. For
|
1588
|
+
# example, if you specify version 3, but the policy has no conditional role
|
1589
|
+
# bindings, the response uses version 1. To learn which resources support
|
1590
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
1591
|
+
# google.com/iam/help/conditions/resource-policies).
|
1592
|
+
# @param [String] fields
|
1593
|
+
# Selector specifying which fields to include in a partial response.
|
1594
|
+
# @param [String] quota_user
|
1595
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1596
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1597
|
+
# @param [Google::Apis::RequestOptions] options
|
1598
|
+
# Request-specific options
|
1599
|
+
#
|
1600
|
+
# @yield [result, err] Result & error if block supplied
|
1601
|
+
# @yieldparam result [Google::Apis::RunV2::GoogleIamV1Policy] parsed result object
|
1602
|
+
# @yieldparam err [StandardError] error object if request failed
|
1603
|
+
#
|
1604
|
+
# @return [Google::Apis::RunV2::GoogleIamV1Policy]
|
1605
|
+
#
|
1606
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1607
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1608
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1609
|
+
def get_project_location_worker_pool_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1610
|
+
command = make_simple_command(:get, 'v2/{+resource}:getIamPolicy', options)
|
1611
|
+
command.response_representation = Google::Apis::RunV2::GoogleIamV1Policy::Representation
|
1612
|
+
command.response_class = Google::Apis::RunV2::GoogleIamV1Policy
|
1613
|
+
command.params['resource'] = resource unless resource.nil?
|
1614
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
1615
|
+
command.query['fields'] = fields unless fields.nil?
|
1616
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1617
|
+
execute_or_queue_command(command, &block)
|
1618
|
+
end
|
1619
|
+
|
1620
|
+
# Lists WorkerPools. Results are sorted by creation time, descending.
|
1621
|
+
# @param [String] parent
|
1622
|
+
# Required. The location and project to list resources on. Location must be a
|
1623
|
+
# valid Google Cloud region, and cannot be the "-" wildcard. Format: projects/`
|
1624
|
+
# project`/locations/`location`, where `project` can be project id or number.
|
1625
|
+
# @param [Fixnum] page_size
|
1626
|
+
# Maximum number of WorkerPools to return in this call.
|
1627
|
+
# @param [String] page_token
|
1628
|
+
# A page token received from a previous call to ListWorkerPools. All other
|
1629
|
+
# parameters must match.
|
1630
|
+
# @param [Boolean] show_deleted
|
1631
|
+
# If true, returns deleted (but unexpired) resources along with active ones.
|
1632
|
+
# @param [String] fields
|
1633
|
+
# Selector specifying which fields to include in a partial response.
|
1634
|
+
# @param [String] quota_user
|
1635
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1636
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1637
|
+
# @param [Google::Apis::RequestOptions] options
|
1638
|
+
# Request-specific options
|
1639
|
+
#
|
1640
|
+
# @yield [result, err] Result & error if block supplied
|
1641
|
+
# @yieldparam result [Google::Apis::RunV2::GoogleCloudRunV2ListWorkerPoolsResponse] parsed result object
|
1642
|
+
# @yieldparam err [StandardError] error object if request failed
|
1643
|
+
#
|
1644
|
+
# @return [Google::Apis::RunV2::GoogleCloudRunV2ListWorkerPoolsResponse]
|
1645
|
+
#
|
1646
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1647
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1648
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1649
|
+
def list_project_location_worker_pools(parent, page_size: nil, page_token: nil, show_deleted: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1650
|
+
command = make_simple_command(:get, 'v2/{+parent}/workerPools', options)
|
1651
|
+
command.response_representation = Google::Apis::RunV2::GoogleCloudRunV2ListWorkerPoolsResponse::Representation
|
1652
|
+
command.response_class = Google::Apis::RunV2::GoogleCloudRunV2ListWorkerPoolsResponse
|
1653
|
+
command.params['parent'] = parent unless parent.nil?
|
1654
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1655
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1656
|
+
command.query['showDeleted'] = show_deleted unless show_deleted.nil?
|
1657
|
+
command.query['fields'] = fields unless fields.nil?
|
1658
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1659
|
+
execute_or_queue_command(command, &block)
|
1660
|
+
end
|
1661
|
+
|
1662
|
+
# Updates a WorkerPool.
|
1663
|
+
# @param [String] name
|
1664
|
+
# The fully qualified name of this WorkerPool. In CreateWorkerPoolRequest, this
|
1665
|
+
# field is ignored, and instead composed from CreateWorkerPoolRequest.parent and
|
1666
|
+
# CreateWorkerPoolRequest.worker_id. Format: projects/`project`/locations/`
|
1667
|
+
# location`/workerPools/`worker_id`
|
1668
|
+
# @param [Google::Apis::RunV2::GoogleCloudRunV2WorkerPool] google_cloud_run_v2_worker_pool_object
|
1669
|
+
# @param [Boolean] allow_missing
|
1670
|
+
# Optional. If set to true, and if the WorkerPool does not exist, it will create
|
1671
|
+
# a new one. The caller must have 'run.workerpools.create' permissions if this
|
1672
|
+
# is set to true and the WorkerPool does not exist.
|
1673
|
+
# @param [Boolean] force_new_revision
|
1674
|
+
# Optional. If set to true, a new revision will be created from the template
|
1675
|
+
# even if the system doesn't detect any changes from the previously deployed
|
1676
|
+
# revision. This may be useful for cases where the underlying resources need to
|
1677
|
+
# be recreated or reinitialized. For example if the image is specified by label,
|
1678
|
+
# but the underlying image digest has changed) or if the container performs
|
1679
|
+
# deployment initialization work that needs to be performed again.
|
1680
|
+
# @param [String] update_mask
|
1681
|
+
# Optional. The list of fields to be updated.
|
1682
|
+
# @param [Boolean] validate_only
|
1683
|
+
# Optional. Indicates that the request should be validated and default values
|
1684
|
+
# populated, without persisting the request or updating any resources.
|
1685
|
+
# @param [String] fields
|
1686
|
+
# Selector specifying which fields to include in a partial response.
|
1687
|
+
# @param [String] quota_user
|
1688
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1689
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1690
|
+
# @param [Google::Apis::RequestOptions] options
|
1691
|
+
# Request-specific options
|
1692
|
+
#
|
1693
|
+
# @yield [result, err] Result & error if block supplied
|
1694
|
+
# @yieldparam result [Google::Apis::RunV2::GoogleLongrunningOperation] parsed result object
|
1695
|
+
# @yieldparam err [StandardError] error object if request failed
|
1696
|
+
#
|
1697
|
+
# @return [Google::Apis::RunV2::GoogleLongrunningOperation]
|
1698
|
+
#
|
1699
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1700
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1701
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1702
|
+
def patch_project_location_worker_pool(name, google_cloud_run_v2_worker_pool_object = nil, allow_missing: nil, force_new_revision: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1703
|
+
command = make_simple_command(:patch, 'v2/{+name}', options)
|
1704
|
+
command.request_representation = Google::Apis::RunV2::GoogleCloudRunV2WorkerPool::Representation
|
1705
|
+
command.request_object = google_cloud_run_v2_worker_pool_object
|
1706
|
+
command.response_representation = Google::Apis::RunV2::GoogleLongrunningOperation::Representation
|
1707
|
+
command.response_class = Google::Apis::RunV2::GoogleLongrunningOperation
|
1708
|
+
command.params['name'] = name unless name.nil?
|
1709
|
+
command.query['allowMissing'] = allow_missing unless allow_missing.nil?
|
1710
|
+
command.query['forceNewRevision'] = force_new_revision unless force_new_revision.nil?
|
1711
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1712
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
1713
|
+
command.query['fields'] = fields unless fields.nil?
|
1714
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1715
|
+
execute_or_queue_command(command, &block)
|
1716
|
+
end
|
1717
|
+
|
1718
|
+
# Sets the IAM Access control policy for the specified WorkerPool. Overwrites
|
1719
|
+
# any existing policy.
|
1720
|
+
# @param [String] resource
|
1721
|
+
# REQUIRED: The resource for which the policy is being specified. See [Resource
|
1722
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
1723
|
+
# appropriate value for this field.
|
1724
|
+
# @param [Google::Apis::RunV2::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_request_object
|
1725
|
+
# @param [String] fields
|
1726
|
+
# Selector specifying which fields to include in a partial response.
|
1727
|
+
# @param [String] quota_user
|
1728
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1729
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1730
|
+
# @param [Google::Apis::RequestOptions] options
|
1731
|
+
# Request-specific options
|
1732
|
+
#
|
1733
|
+
# @yield [result, err] Result & error if block supplied
|
1734
|
+
# @yieldparam result [Google::Apis::RunV2::GoogleIamV1Policy] parsed result object
|
1735
|
+
# @yieldparam err [StandardError] error object if request failed
|
1736
|
+
#
|
1737
|
+
# @return [Google::Apis::RunV2::GoogleIamV1Policy]
|
1738
|
+
#
|
1739
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1740
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1741
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1742
|
+
def set_project_location_worker_pool_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1743
|
+
command = make_simple_command(:post, 'v2/{+resource}:setIamPolicy', options)
|
1744
|
+
command.request_representation = Google::Apis::RunV2::GoogleIamV1SetIamPolicyRequest::Representation
|
1745
|
+
command.request_object = google_iam_v1_set_iam_policy_request_object
|
1746
|
+
command.response_representation = Google::Apis::RunV2::GoogleIamV1Policy::Representation
|
1747
|
+
command.response_class = Google::Apis::RunV2::GoogleIamV1Policy
|
1748
|
+
command.params['resource'] = resource unless resource.nil?
|
1749
|
+
command.query['fields'] = fields unless fields.nil?
|
1750
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1751
|
+
execute_or_queue_command(command, &block)
|
1752
|
+
end
|
1753
|
+
|
1754
|
+
# Returns permissions that a caller has on the specified Project. There are no
|
1755
|
+
# permissions required for making this API call.
|
1756
|
+
# @param [String] resource
|
1757
|
+
# REQUIRED: The resource for which the policy detail is being requested. See [
|
1758
|
+
# Resource names](https://cloud.google.com/apis/design/resource_names) for the
|
1759
|
+
# appropriate value for this field.
|
1760
|
+
# @param [Google::Apis::RunV2::GoogleIamV1TestIamPermissionsRequest] google_iam_v1_test_iam_permissions_request_object
|
1761
|
+
# @param [String] fields
|
1762
|
+
# Selector specifying which fields to include in a partial response.
|
1763
|
+
# @param [String] quota_user
|
1764
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1765
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1766
|
+
# @param [Google::Apis::RequestOptions] options
|
1767
|
+
# Request-specific options
|
1768
|
+
#
|
1769
|
+
# @yield [result, err] Result & error if block supplied
|
1770
|
+
# @yieldparam result [Google::Apis::RunV2::GoogleIamV1TestIamPermissionsResponse] parsed result object
|
1771
|
+
# @yieldparam err [StandardError] error object if request failed
|
1772
|
+
#
|
1773
|
+
# @return [Google::Apis::RunV2::GoogleIamV1TestIamPermissionsResponse]
|
1774
|
+
#
|
1775
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1776
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1777
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1778
|
+
def test_project_location_worker_pool_iam_permissions(resource, google_iam_v1_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1779
|
+
command = make_simple_command(:post, 'v2/{+resource}:testIamPermissions', options)
|
1780
|
+
command.request_representation = Google::Apis::RunV2::GoogleIamV1TestIamPermissionsRequest::Representation
|
1781
|
+
command.request_object = google_iam_v1_test_iam_permissions_request_object
|
1782
|
+
command.response_representation = Google::Apis::RunV2::GoogleIamV1TestIamPermissionsResponse::Representation
|
1783
|
+
command.response_class = Google::Apis::RunV2::GoogleIamV1TestIamPermissionsResponse
|
1784
|
+
command.params['resource'] = resource unless resource.nil?
|
1785
|
+
command.query['fields'] = fields unless fields.nil?
|
1786
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1787
|
+
execute_or_queue_command(command, &block)
|
1788
|
+
end
|
1789
|
+
|
1790
|
+
# Deletes a Revision.
|
1791
|
+
# @param [String] name
|
1792
|
+
# Required. The name of the Revision to delete. Format: projects/`project`/
|
1793
|
+
# locations/`location`/services/`service`/revisions/`revision`
|
1794
|
+
# @param [String] etag
|
1795
|
+
# A system-generated fingerprint for this version of the resource. This may be
|
1796
|
+
# used to detect modification conflict during updates.
|
1797
|
+
# @param [Boolean] validate_only
|
1798
|
+
# Indicates that the request should be validated without actually deleting any
|
1799
|
+
# resources.
|
1800
|
+
# @param [String] fields
|
1801
|
+
# Selector specifying which fields to include in a partial response.
|
1802
|
+
# @param [String] quota_user
|
1803
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1804
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1805
|
+
# @param [Google::Apis::RequestOptions] options
|
1806
|
+
# Request-specific options
|
1807
|
+
#
|
1808
|
+
# @yield [result, err] Result & error if block supplied
|
1809
|
+
# @yieldparam result [Google::Apis::RunV2::GoogleLongrunningOperation] parsed result object
|
1810
|
+
# @yieldparam err [StandardError] error object if request failed
|
1811
|
+
#
|
1812
|
+
# @return [Google::Apis::RunV2::GoogleLongrunningOperation]
|
1813
|
+
#
|
1814
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1815
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1816
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1817
|
+
def delete_project_location_worker_pool_revision(name, etag: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1818
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
1819
|
+
command.response_representation = Google::Apis::RunV2::GoogleLongrunningOperation::Representation
|
1820
|
+
command.response_class = Google::Apis::RunV2::GoogleLongrunningOperation
|
1821
|
+
command.params['name'] = name unless name.nil?
|
1822
|
+
command.query['etag'] = etag unless etag.nil?
|
1823
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
1824
|
+
command.query['fields'] = fields unless fields.nil?
|
1825
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1826
|
+
execute_or_queue_command(command, &block)
|
1827
|
+
end
|
1828
|
+
|
1829
|
+
# Gets information about a Revision.
|
1830
|
+
# @param [String] name
|
1831
|
+
# Required. The full name of the Revision. Format: projects/`project`/locations/`
|
1832
|
+
# location`/services/`service`/revisions/`revision`
|
1833
|
+
# @param [String] fields
|
1834
|
+
# Selector specifying which fields to include in a partial response.
|
1835
|
+
# @param [String] quota_user
|
1836
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1837
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1838
|
+
# @param [Google::Apis::RequestOptions] options
|
1839
|
+
# Request-specific options
|
1840
|
+
#
|
1841
|
+
# @yield [result, err] Result & error if block supplied
|
1842
|
+
# @yieldparam result [Google::Apis::RunV2::GoogleCloudRunV2Revision] parsed result object
|
1843
|
+
# @yieldparam err [StandardError] error object if request failed
|
1844
|
+
#
|
1845
|
+
# @return [Google::Apis::RunV2::GoogleCloudRunV2Revision]
|
1846
|
+
#
|
1847
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1848
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1849
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1850
|
+
def get_project_location_worker_pool_revision(name, fields: nil, quota_user: nil, options: nil, &block)
|
1851
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
1852
|
+
command.response_representation = Google::Apis::RunV2::GoogleCloudRunV2Revision::Representation
|
1853
|
+
command.response_class = Google::Apis::RunV2::GoogleCloudRunV2Revision
|
1854
|
+
command.params['name'] = name unless name.nil?
|
1855
|
+
command.query['fields'] = fields unless fields.nil?
|
1856
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1857
|
+
execute_or_queue_command(command, &block)
|
1858
|
+
end
|
1859
|
+
|
1860
|
+
# Lists Revisions from a given Service, or from a given location. Results are
|
1861
|
+
# sorted by creation time, descending.
|
1862
|
+
# @param [String] parent
|
1863
|
+
# Required. The Service from which the Revisions should be listed. To list all
|
1864
|
+
# Revisions across Services, use "-" instead of Service name. Format: projects/`
|
1865
|
+
# project`/locations/`location`/services/`service`
|
1866
|
+
# @param [Fixnum] page_size
|
1867
|
+
# Maximum number of revisions to return in this call.
|
1868
|
+
# @param [String] page_token
|
1869
|
+
# A page token received from a previous call to ListRevisions. All other
|
1870
|
+
# parameters must match.
|
1871
|
+
# @param [Boolean] show_deleted
|
1872
|
+
# If true, returns deleted (but unexpired) resources along with active ones.
|
1873
|
+
# @param [String] fields
|
1874
|
+
# Selector specifying which fields to include in a partial response.
|
1875
|
+
# @param [String] quota_user
|
1876
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1877
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1878
|
+
# @param [Google::Apis::RequestOptions] options
|
1879
|
+
# Request-specific options
|
1880
|
+
#
|
1881
|
+
# @yield [result, err] Result & error if block supplied
|
1882
|
+
# @yieldparam result [Google::Apis::RunV2::GoogleCloudRunV2ListRevisionsResponse] parsed result object
|
1883
|
+
# @yieldparam err [StandardError] error object if request failed
|
1884
|
+
#
|
1885
|
+
# @return [Google::Apis::RunV2::GoogleCloudRunV2ListRevisionsResponse]
|
1886
|
+
#
|
1887
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1888
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1889
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1890
|
+
def list_project_location_worker_pool_revisions(parent, page_size: nil, page_token: nil, show_deleted: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1891
|
+
command = make_simple_command(:get, 'v2/{+parent}/revisions', options)
|
1892
|
+
command.response_representation = Google::Apis::RunV2::GoogleCloudRunV2ListRevisionsResponse::Representation
|
1893
|
+
command.response_class = Google::Apis::RunV2::GoogleCloudRunV2ListRevisionsResponse
|
1894
|
+
command.params['parent'] = parent unless parent.nil?
|
1895
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1896
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1897
|
+
command.query['showDeleted'] = show_deleted unless show_deleted.nil?
|
1898
|
+
command.query['fields'] = fields unless fields.nil?
|
1899
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1900
|
+
execute_or_queue_command(command, &block)
|
1901
|
+
end
|
1458
1902
|
|
1459
1903
|
protected
|
1460
1904
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-run_v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.83.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-
|
10
|
+
date: 2025-03-02 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: google-apis-core
|
@@ -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-run_v2/CHANGELOG.md
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-run_v2/v0.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-run_v2/v0.83.0
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-run_v2
|
62
62
|
rdoc_options: []
|
63
63
|
require_paths:
|
@@ -73,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: '0'
|
75
75
|
requirements: []
|
76
|
-
rubygems_version: 3.6.
|
76
|
+
rubygems_version: 3.6.5
|
77
77
|
specification_version: 4
|
78
78
|
summary: Simple REST client for Cloud Run Admin API V2
|
79
79
|
test_files: []
|