@@ -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