-
Notifications
You must be signed in to change notification settings - Fork 544
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add AddIpOverride RPC (#26975)
feat: add `express_settings` to `Key` docs: clarify `Event.express` field docs: fix billing, quota, and usecase links
- Loading branch information
1 parent
fff5f23
commit 24d2a7a
Showing
9 changed files
with
326 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 6 additions & 1 deletion
7
...recaptcha_enterprise-v1/lib/google/cloud/recaptchaenterprise/v1/recaptchaenterprise_pb.rb
Large diffs are not rendered by default.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
..._enterprise-v1/lib/google/cloud/recaptchaenterprise/v1/recaptchaenterprise_services_pb.rb
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
...le-cloud-recaptcha_enterprise-v1/snippets/recaptcha_enterprise_service/add_ip_override.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# frozen_string_literal: true | ||
|
||
# Copyright 2024 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# https://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# Auto-generated by gapic-generator-ruby. DO NOT EDIT! | ||
|
||
# [START recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_AddIpOverride_sync] | ||
require "google/cloud/recaptcha_enterprise/v1" | ||
|
||
## | ||
# Snippet for the add_ip_override call in the RecaptchaEnterpriseService service | ||
# | ||
# This snippet has been automatically generated and should be regarded as a code | ||
# template only. It will require modifications to work: | ||
# - It may require correct/in-range values for request initialization. | ||
# - It may require specifying regional endpoints when creating the service | ||
# client as shown in https://cloud.google.com/ruby/docs/reference. | ||
# | ||
# This is an auto-generated example demonstrating basic usage of | ||
# Google::Cloud::RecaptchaEnterprise::V1::RecaptchaEnterpriseService::Client#add_ip_override. | ||
# | ||
def add_ip_override | ||
# Create a client object. The client can be reused for multiple calls. | ||
client = Google::Cloud::RecaptchaEnterprise::V1::RecaptchaEnterpriseService::Client.new | ||
|
||
# Create a request. To set request fields, pass in keyword arguments. | ||
request = Google::Cloud::RecaptchaEnterprise::V1::AddIpOverrideRequest.new | ||
|
||
# Call the add_ip_override method. | ||
result = client.add_ip_override request | ||
|
||
# The returned object is of type Google::Cloud::RecaptchaEnterprise::V1::AddIpOverrideResponse. | ||
p result | ||
end | ||
# [END recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_AddIpOverride_sync] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.