generated/google-apis-dns_v1beta2/lib/google/apis/dns_v1beta2/service.rb
# Applies a partial update to an existing Response Policy Rule.
# @param [String] project
#   Identifies the project addressed by this request.
# @param [String] response_policy
#   User assigned name of the Response Policy containing the Response Policy Rule.
# @param [String] response_policy_rule
#   User assigned name of the Response Policy Rule addressed by this request.
# @param [Google::Apis::DnsV1beta2::ResponsePolicyRule] response_policy_rule_object
# @param [String] client_operation_id
#   For mutating operation requests only. An optional identifier specified by the
#   client. Must be unique for operation resources in the Operations collection.
# @param [String] fields
#   Selector specifying which fields to include in a partial response.
# @param [String] quota_user
#   Available to use for quota purposes for server-side applications. Can be any
#   arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
#   Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DnsV1beta2::ResponsePolicyRulesPatchResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DnsV1beta2::ResponsePolicyRulesPatchResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
Applies a partial update to an existing Response Policy Rule.
Applies a partial update to an existing Response Policy Rule .
def patch_response_policy_rule(project, response_policy, response_policy_rule, response_policy_rule_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:patch, 'dns/v1beta2/projects/{project}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}', options)
          command.request_representation = Google::Apis::DnsV1beta2::ResponsePolicyRule::Representation
          command.request_object = response_policy_rule_object
          command.response_representation = Google::Apis::DnsV1beta2::ResponsePolicyRulesPatchResponse::Representation
          command.response_class = Google::Apis::DnsV1beta2::ResponsePolicyRulesPatchResponse
          command.params['project'] = project unless project.nil?
          command.params['responsePolicy'] = response_policy unless response_policy.nil?
          command.params['responsePolicyRule'] = response_policy_rule unless response_policy_rule.nil?
          command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
          command.query['fields'] = fields unless fields.nil?
          command.query['quotaUser'] = quota_user unless quota_user.nil?
          execute_or_queue_command(command, &block)
        end
def patch_response_policy_rule ( project , response_policy , response_policy_rule , response_policy_rule_object = nil , client_operation_id : nil , fields : nil , quota_user : nil , options : nil , & block ) command = make_simple_command ( :patch , 'dns/v1beta2/projects/{project}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}' , options ) command . request_representation = Google :: Apis :: DnsV1beta2 :: ResponsePolicyRule :: Representation command . request_object = response_policy_rule_object command . response_representation = Google :: Apis :: DnsV1beta2 :: ResponsePolicyRulesPatchResponse :: Representation command . response_class = Google :: Apis :: DnsV1beta2 :: ResponsePolicyRulesPatchResponse command . params [ 'project' ] = project unless project . nil? command . params [ 'responsePolicy' ] = response_policy unless response_policy . nil? command . params [ 'responsePolicyRule' ] = response_policy_rule unless response_policy_rule . nil? command . query [ 'clientOperationId' ] = client_operation_id unless client_operation_id . nil? command . query [ 'fields' ] = fields unless fields . nil? command . query [ 'quotaUser' ] = quota_user unless quota_user . nil? execute_or_queue_command ( command , & block ) end
Applies a partial update to an existing Response Policy Rule.
Applies a partial update to an existing Response Policy Rule .
None
Google::Apis::DnsV1beta2::ResponsePolicyRulesPatchResponse
[Google::Apis::ServerError] An error occurred on the server and the request can be retried
[ Google :: Apis :: ServerError ] An error occurred on the server and the request can be retried
[Google::Apis::ClientError] The request is invalid and should not be retried without modification
[ Google :: Apis :: ClientError ] The request is invalid and should not be retried without modification
[Google::Apis::AuthorizationError] Authorization is required
[ Google :: Apis :: AuthorizationError ] Authorization is required
project
response_policy
response_policy_rule
response_policy_rule_object
client_operation_id
fields
quota_user
options
block
options Request-specific options
options Request - specific options
]
Result & error if block supplied
Result & error if block supplied
result
parsed result object
parsed result object
err
error object if request failed
error object if request failed