@@ -330,6 +330,42 @@ def reorder_project_firewallpolicy(parent, google_cloud_recaptchaenterprise_v1_r
330330 execute_or_queue_command ( command , &block )
331331 end
332332
333+ # Adds an IP override to a key. The following restrictions hold: * The maximum
334+ # number of IP overrides per key is 100. * For any conflict (such as IP already
335+ # exists or IP part of an existing IP range), an error will be returned.
336+ # @param [String] name
337+ # Required. The name of the key to which the IP override is added, in the format
338+ # `projects/`project`/keys/`key``.
339+ # @param [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1AddIpOverrideRequest] google_cloud_recaptchaenterprise_v1_add_ip_override_request_object
340+ # @param [String] fields
341+ # Selector specifying which fields to include in a partial response.
342+ # @param [String] quota_user
343+ # Available to use for quota purposes for server-side applications. Can be any
344+ # arbitrary string assigned to a user, but should not exceed 40 characters.
345+ # @param [Google::Apis::RequestOptions] options
346+ # Request-specific options
347+ #
348+ # @yield [result, err] Result & error if block supplied
349+ # @yieldparam result [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1AddIpOverrideResponse] parsed result object
350+ # @yieldparam err [StandardError] error object if request failed
351+ #
352+ # @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1AddIpOverrideResponse]
353+ #
354+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
355+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
356+ # @raise [Google::Apis::AuthorizationError] Authorization is required
357+ def add_project_key_ip_override ( name , google_cloud_recaptchaenterprise_v1_add_ip_override_request_object = nil , fields : nil , quota_user : nil , options : nil , &block )
358+ command = make_simple_command ( :post , 'v1/{+name}:addIpOverride' , options )
359+ command . request_representation = Google ::Apis ::RecaptchaenterpriseV1 ::GoogleCloudRecaptchaenterpriseV1AddIpOverrideRequest ::Representation
360+ command . request_object = google_cloud_recaptchaenterprise_v1_add_ip_override_request_object
361+ command . response_representation = Google ::Apis ::RecaptchaenterpriseV1 ::GoogleCloudRecaptchaenterpriseV1AddIpOverrideResponse ::Representation
362+ command . response_class = Google ::Apis ::RecaptchaenterpriseV1 ::GoogleCloudRecaptchaenterpriseV1AddIpOverrideResponse
363+ command . params [ 'name' ] = name unless name . nil?
364+ command . query [ 'fields' ] = fields unless fields . nil?
365+ command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
366+ execute_or_queue_command ( command , &block )
367+ end
368+
333369 # Creates a new reCAPTCHA Enterprise key.
334370 # @param [String] parent
335371 # Required. The name of the project in which the key will be created, in the
0 commit comments