Skip to content

Commit 8be9e9c

Browse files
feat: Automated regeneration of eventarc v1 client (googleapis#21372)
Auto-created at 2025-01-12 10:28:33 +0000 using the toys pull request generator.
1 parent e265905 commit 8be9e9c

File tree

4 files changed

+136
-3
lines changed

4 files changed

+136
-3
lines changed

api_names_out.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222656,6 +222656,13 @@
222656222656
"/eventarc:v1/eventarc.projects.locations.googleApiSources.setIamPolicy/resource": resource
222657222657
"/eventarc:v1/eventarc.projects.locations.googleApiSources.testIamPermissions": test_google_api_source_iam_permissions
222658222658
"/eventarc:v1/eventarc.projects.locations.googleApiSources.testIamPermissions/resource": resource
222659+
"/eventarc:v1/eventarc.projects.locations.kafkaSources.getIamPolicy": get_project_location_kafka_source_iam_policy
222660+
"/eventarc:v1/eventarc.projects.locations.kafkaSources.getIamPolicy/options.requestedPolicyVersion": options_requested_policy_version
222661+
"/eventarc:v1/eventarc.projects.locations.kafkaSources.getIamPolicy/resource": resource
222662+
"/eventarc:v1/eventarc.projects.locations.kafkaSources.setIamPolicy": set_kafka_source_iam_policy
222663+
"/eventarc:v1/eventarc.projects.locations.kafkaSources.setIamPolicy/resource": resource
222664+
"/eventarc:v1/eventarc.projects.locations.kafkaSources.testIamPermissions": test_kafka_source_iam_permissions
222665+
"/eventarc:v1/eventarc.projects.locations.kafkaSources.testIamPermissions/resource": resource
222659222666
"/eventarc:v1/eventarc.projects.locations.list": list_project_locations
222660222667
"/eventarc:v1/eventarc.projects.locations.list/filter": filter
222661222668
"/eventarc:v1/eventarc.projects.locations.list/name": name

generated/google-apis-eventarc_v1/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Release history for google-apis-eventarc_v1
22

3+
### v0.59.0 (2025-01-12)
4+
5+
* Regenerated from discovery document revision 20250103
6+
* Regenerated using generator version 0.16.0
7+
38
### v0.58.0 (2024-12-15)
49

510
* Regenerated from discovery document revision 20241203

generated/google-apis-eventarc_v1/lib/google/apis/eventarc_v1/gem_version.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module EventarcV1
1818
# Version of the google-apis-eventarc_v1 gem
19-
GEM_VERSION = "0.58.0"
19+
GEM_VERSION = "0.59.0"
2020

2121
# Version of the code generator used to generate this client
22-
GENERATOR_VERSION = "0.15.1"
22+
GENERATOR_VERSION = "0.16.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20241203"
25+
REVISION = "20250103"
2626
end
2727
end
2828
end

generated/google-apis-eventarc_v1/lib/google/apis/eventarc_v1/service.rb

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1425,6 +1425,127 @@ def test_google_api_source_iam_permissions(resource, test_iam_permissions_reques
14251425
execute_or_queue_command(command, &block)
14261426
end
14271427

1428+
# Gets the access control policy for a resource. Returns an empty policy if the
1429+
# resource exists and does not have a policy set.
1430+
# @param [String] resource
1431+
# REQUIRED: The resource for which the policy is being requested. See [Resource
1432+
# names](https://cloud.google.com/apis/design/resource_names) for the
1433+
# appropriate value for this field.
1434+
# @param [Fixnum] options_requested_policy_version
1435+
# Optional. The maximum policy version that will be used to format the policy.
1436+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
1437+
# rejected. Requests for policies with any conditional role bindings must
1438+
# specify version 3. Policies with no conditional role bindings may specify any
1439+
# valid value or leave the field unset. The policy in the response might use the
1440+
# policy version that you specified, or it might use a lower policy version. For
1441+
# example, if you specify version 3, but the policy has no conditional role
1442+
# bindings, the response uses version 1. To learn which resources support
1443+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
1444+
# google.com/iam/help/conditions/resource-policies).
1445+
# @param [String] fields
1446+
# Selector specifying which fields to include in a partial response.
1447+
# @param [String] quota_user
1448+
# Available to use for quota purposes for server-side applications. Can be any
1449+
# arbitrary string assigned to a user, but should not exceed 40 characters.
1450+
# @param [Google::Apis::RequestOptions] options
1451+
# Request-specific options
1452+
#
1453+
# @yield [result, err] Result & error if block supplied
1454+
# @yieldparam result [Google::Apis::EventarcV1::Policy] parsed result object
1455+
# @yieldparam err [StandardError] error object if request failed
1456+
#
1457+
# @return [Google::Apis::EventarcV1::Policy]
1458+
#
1459+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1460+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1461+
# @raise [Google::Apis::AuthorizationError] Authorization is required
1462+
def get_project_location_kafka_source_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
1463+
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
1464+
command.response_representation = Google::Apis::EventarcV1::Policy::Representation
1465+
command.response_class = Google::Apis::EventarcV1::Policy
1466+
command.params['resource'] = resource unless resource.nil?
1467+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
1468+
command.query['fields'] = fields unless fields.nil?
1469+
command.query['quotaUser'] = quota_user unless quota_user.nil?
1470+
execute_or_queue_command(command, &block)
1471+
end
1472+
1473+
# Sets the access control policy on the specified resource. Replaces any
1474+
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
1475+
# PERMISSION_DENIED` errors.
1476+
# @param [String] resource
1477+
# REQUIRED: The resource for which the policy is being specified. See [Resource
1478+
# names](https://cloud.google.com/apis/design/resource_names) for the
1479+
# appropriate value for this field.
1480+
# @param [Google::Apis::EventarcV1::SetIamPolicyRequest] set_iam_policy_request_object
1481+
# @param [String] fields
1482+
# Selector specifying which fields to include in a partial response.
1483+
# @param [String] quota_user
1484+
# Available to use for quota purposes for server-side applications. Can be any
1485+
# arbitrary string assigned to a user, but should not exceed 40 characters.
1486+
# @param [Google::Apis::RequestOptions] options
1487+
# Request-specific options
1488+
#
1489+
# @yield [result, err] Result & error if block supplied
1490+
# @yieldparam result [Google::Apis::EventarcV1::Policy] parsed result object
1491+
# @yieldparam err [StandardError] error object if request failed
1492+
#
1493+
# @return [Google::Apis::EventarcV1::Policy]
1494+
#
1495+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1496+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1497+
# @raise [Google::Apis::AuthorizationError] Authorization is required
1498+
def set_kafka_source_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1499+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
1500+
command.request_representation = Google::Apis::EventarcV1::SetIamPolicyRequest::Representation
1501+
command.request_object = set_iam_policy_request_object
1502+
command.response_representation = Google::Apis::EventarcV1::Policy::Representation
1503+
command.response_class = Google::Apis::EventarcV1::Policy
1504+
command.params['resource'] = resource unless resource.nil?
1505+
command.query['fields'] = fields unless fields.nil?
1506+
command.query['quotaUser'] = quota_user unless quota_user.nil?
1507+
execute_or_queue_command(command, &block)
1508+
end
1509+
1510+
# Returns permissions that a caller has on the specified resource. If the
1511+
# resource does not exist, this will return an empty set of permissions, not a `
1512+
# NOT_FOUND` error. Note: This operation is designed to be used for building
1513+
# permission-aware UIs and command-line tools, not for authorization checking.
1514+
# This operation may "fail open" without warning.
1515+
# @param [String] resource
1516+
# REQUIRED: The resource for which the policy detail is being requested. See [
1517+
# Resource names](https://cloud.google.com/apis/design/resource_names) for the
1518+
# appropriate value for this field.
1519+
# @param [Google::Apis::EventarcV1::TestIamPermissionsRequest] test_iam_permissions_request_object
1520+
# @param [String] fields
1521+
# Selector specifying which fields to include in a partial response.
1522+
# @param [String] quota_user
1523+
# Available to use for quota purposes for server-side applications. Can be any
1524+
# arbitrary string assigned to a user, but should not exceed 40 characters.
1525+
# @param [Google::Apis::RequestOptions] options
1526+
# Request-specific options
1527+
#
1528+
# @yield [result, err] Result & error if block supplied
1529+
# @yieldparam result [Google::Apis::EventarcV1::TestIamPermissionsResponse] parsed result object
1530+
# @yieldparam err [StandardError] error object if request failed
1531+
#
1532+
# @return [Google::Apis::EventarcV1::TestIamPermissionsResponse]
1533+
#
1534+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1535+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1536+
# @raise [Google::Apis::AuthorizationError] Authorization is required
1537+
def test_kafka_source_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1538+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
1539+
command.request_representation = Google::Apis::EventarcV1::TestIamPermissionsRequest::Representation
1540+
command.request_object = test_iam_permissions_request_object
1541+
command.response_representation = Google::Apis::EventarcV1::TestIamPermissionsResponse::Representation
1542+
command.response_class = Google::Apis::EventarcV1::TestIamPermissionsResponse
1543+
command.params['resource'] = resource unless resource.nil?
1544+
command.query['fields'] = fields unless fields.nil?
1545+
command.query['quotaUser'] = quota_user unless quota_user.nil?
1546+
execute_or_queue_command(command, &block)
1547+
end
1548+
14281549
# Create a new MessageBus in a particular project and location.
14291550
# @param [String] parent
14301551
# Required. The parent collection in which to add this message bus.

0 commit comments

Comments
 (0)