Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Automated regeneration of RecaptchaEnterprise client #10961

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion clients/recaptcha_enterprise/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

reCAPTCHA Enterprise API client library.


Help protect your website from fraudulent activity, spam, and abuse without creating friction.

## Installation

Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.RecaptchaEnterprise.V1 do
API client metadata for GoogleApi.RecaptchaEnterprise.V1.
"""

@discovery_revision "20221106"
@discovery_revision "20240303"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ defmodule GoogleApi.RecaptchaEnterprise.V1.Model.GoogleCloudRecaptchaenterpriseV

## Attributes

* `labels` (*type:* `list(String.t)`, *default:* `nil`) - Labels for this request.
* `labels` (*type:* `list(String.t)`, *default:* `nil`) - Output only. Labels for this request.
"""

use GoogleApi.Gax.ModelBase
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# Copyright 2019 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
#
# http://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.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.RecaptchaEnterprise.V1.Model.GoogleCloudRecaptchaenterpriseV1AccountVerificationInfo do
@moduledoc """
Information about account verification, used for identity verification.

## Attributes

* `endpoints` (*type:* `list(GoogleApi.RecaptchaEnterprise.V1.Model.GoogleCloudRecaptchaenterpriseV1EndpointVerificationInfo.t)`, *default:* `nil`) - Optional. Endpoints that can be used for identity verification.
* `languageCode` (*type:* `String.t`, *default:* `nil`) - Optional. Language code preference for the verification message, set as a IETF BCP 47 language code.
* `latestVerificationResult` (*type:* `String.t`, *default:* `nil`) - Output only. Result of the latest account verification challenge.
* `username` (*type:* `String.t`, *default:* `nil`) - Username of the account that is being verified. Deprecated. Customers should now provide the `account_id` field in `event.user_info`.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:endpoints =>
list(
GoogleApi.RecaptchaEnterprise.V1.Model.GoogleCloudRecaptchaenterpriseV1EndpointVerificationInfo.t()
)
| nil,
:languageCode => String.t() | nil,
:latestVerificationResult => String.t() | nil,
:username => String.t() | nil
}

field(:endpoints,
as:
GoogleApi.RecaptchaEnterprise.V1.Model.GoogleCloudRecaptchaenterpriseV1EndpointVerificationInfo,
type: :list
)

field(:languageCode)
field(:latestVerificationResult)
field(:username)
end

defimpl Poison.Decoder,
for:
GoogleApi.RecaptchaEnterprise.V1.Model.GoogleCloudRecaptchaenterpriseV1AccountVerificationInfo do
def decode(value, options) do
GoogleApi.RecaptchaEnterprise.V1.Model.GoogleCloudRecaptchaenterpriseV1AccountVerificationInfo.decode(
value,
options
)
end
end

defimpl Poison.Encoder,
for:
GoogleApi.RecaptchaEnterprise.V1.Model.GoogleCloudRecaptchaenterpriseV1AccountVerificationInfo do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,22 @@ defmodule GoogleApi.RecaptchaEnterprise.V1.Model.GoogleCloudRecaptchaenterpriseV

## Attributes

* `allowAllPackageNames` (*type:* `boolean()`, *default:* `nil`) - If set to true, allowed_package_names are not enforced.
* `allowedPackageNames` (*type:* `list(String.t)`, *default:* `nil`) - Android package names of apps allowed to use the key. Example: 'com.companyname.appname'
* `allowAllPackageNames` (*type:* `boolean()`, *default:* `nil`) - Optional. If set to true, allowed_package_names are not enforced.
* `allowedPackageNames` (*type:* `list(String.t)`, *default:* `nil`) - Optional. Android package names of apps allowed to use the key. Example: 'com.companyname.appname'
* `supportNonGoogleAppStoreDistribution` (*type:* `boolean()`, *default:* `nil`) - Optional. Set to true for keys that are used in an Android application that is available for download in app stores in addition to the Google Play Store.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:allowAllPackageNames => boolean() | nil,
:allowedPackageNames => list(String.t()) | nil
:allowedPackageNames => list(String.t()) | nil,
:supportNonGoogleAppStoreDistribution => boolean() | nil
}

field(:allowAllPackageNames)
field(:allowedPackageNames, type: :list)
field(:supportNonGoogleAppStoreDistribution)
end

defimpl Poison.Decoder,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,33 @@ defmodule GoogleApi.RecaptchaEnterprise.V1.Model.GoogleCloudRecaptchaenterpriseV

## Attributes

* `accountId` (*type:* `String.t`, *default:* `nil`) - Optional. A stable account identifier to apply to the assessment. This is an alternative to setting `account_id` in `CreateAssessment`, for example when a stable account identifier is not yet known in the initial request.
* `annotation` (*type:* `String.t`, *default:* `nil`) - Optional. The annotation that will be assigned to the Event. This field can be left empty to provide reasons that apply to an event without concluding whether the event is legitimate or fraudulent.
* `hashedAccountId` (*type:* `String.t`, *default:* `nil`) - Optional. Unique stable hashed user identifier to apply to the assessment. This is an alternative to setting the hashed_account_id in CreateAssessment, for example when the account identifier is not yet known in the initial request. It is recommended that the identifier is hashed using hmac-sha256 with stable secret.
* `reasons` (*type:* `list(String.t)`, *default:* `nil`) - Optional. Optional reasons for the annotation that will be assigned to the Event.
* `hashedAccountId` (*type:* `String.t`, *default:* `nil`) - Optional. A stable hashed account identifier to apply to the assessment. This is an alternative to setting `hashed_account_id` in `CreateAssessment`, for example when a stable account identifier is not yet known in the initial request.
* `reasons` (*type:* `list(String.t)`, *default:* `nil`) - Optional. Reasons for the annotation that are assigned to the event.
* `transactionEvent` (*type:* `GoogleApi.RecaptchaEnterprise.V1.Model.GoogleCloudRecaptchaenterpriseV1TransactionEvent.t`, *default:* `nil`) - Optional. If the assessment is part of a payment transaction, provide details on payment lifecycle events that occur in the transaction.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:accountId => String.t() | nil,
:annotation => String.t() | nil,
:hashedAccountId => String.t() | nil,
:reasons => list(String.t()) | nil
:reasons => list(String.t()) | nil,
:transactionEvent =>
GoogleApi.RecaptchaEnterprise.V1.Model.GoogleCloudRecaptchaenterpriseV1TransactionEvent.t()
| nil
}

field(:accountId)
field(:annotation)
field(:hashedAccountId)
field(:reasons, type: :list)

field(:transactionEvent,
as: GoogleApi.RecaptchaEnterprise.V1.Model.GoogleCloudRecaptchaenterpriseV1TransactionEvent
)
end

defimpl Poison.Decoder,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Copyright 2019 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
#
# http://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.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.RecaptchaEnterprise.V1.Model.GoogleCloudRecaptchaenterpriseV1AppleDeveloperId do
@moduledoc """
Contains fields that are required to perform Apple-specific integrity checks.

## Attributes

* `keyId` (*type:* `String.t`, *default:* `nil`) - Required. The Apple developer key ID (10-character string).
* `privateKey` (*type:* `String.t`, *default:* `nil`) - Required. Input only. A private key (downloaded as a text file with a .p8 file extension) generated for your Apple Developer account. Ensure that Apple DeviceCheck is enabled for the private key.
* `teamId` (*type:* `String.t`, *default:* `nil`) - Required. The Apple team ID (10-character string) owning the provisioning profile used to build your application.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:keyId => String.t() | nil,
:privateKey => String.t() | nil,
:teamId => String.t() | nil
}

field(:keyId)
field(:privateKey)
field(:teamId)
end

defimpl Poison.Decoder,
for: GoogleApi.RecaptchaEnterprise.V1.Model.GoogleCloudRecaptchaenterpriseV1AppleDeveloperId do
def decode(value, options) do
GoogleApi.RecaptchaEnterprise.V1.Model.GoogleCloudRecaptchaenterpriseV1AppleDeveloperId.decode(
value,
options
)
end
end

defimpl Poison.Encoder,
for: GoogleApi.RecaptchaEnterprise.V1.Model.GoogleCloudRecaptchaenterpriseV1AppleDeveloperId do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,18 @@

defmodule GoogleApi.RecaptchaEnterprise.V1.Model.GoogleCloudRecaptchaenterpriseV1Assessment do
@moduledoc """
A recaptcha assessment resource.
A reCAPTCHA Enterprise assessment resource.

## Attributes

* `accountDefenderAssessment` (*type:* `GoogleApi.RecaptchaEnterprise.V1.Model.GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessment.t`, *default:* `nil`) - Assessment returned by account defender when a hashed_account_id is provided.
* `event` (*type:* `GoogleApi.RecaptchaEnterprise.V1.Model.GoogleCloudRecaptchaenterpriseV1Event.t`, *default:* `nil`) - The event being assessed.
* `name` (*type:* `String.t`, *default:* `nil`) - Output only. The resource name for the Assessment in the format "projects/{project}/assessments/{assessment}".
* `privatePasswordLeakVerification` (*type:* `GoogleApi.RecaptchaEnterprise.V1.Model.GoogleCloudRecaptchaenterpriseV1PrivatePasswordLeakVerification.t`, *default:* `nil`) - The private password leak verification field contains the parameters that are used to to check for leaks privately without sharing user credentials.
* `accountDefenderAssessment` (*type:* `GoogleApi.RecaptchaEnterprise.V1.Model.GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessment.t`, *default:* `nil`) - Output only. Assessment returned by account defender when an account identifier is provided.
* `accountVerification` (*type:* `GoogleApi.RecaptchaEnterprise.V1.Model.GoogleCloudRecaptchaenterpriseV1AccountVerificationInfo.t`, *default:* `nil`) - Optional. Account verification information for identity verification. The assessment event must include a token and site key to use this feature.
* `event` (*type:* `GoogleApi.RecaptchaEnterprise.V1.Model.GoogleCloudRecaptchaenterpriseV1Event.t`, *default:* `nil`) - Optional. The event being assessed.
* `firewallPolicyAssessment` (*type:* `GoogleApi.RecaptchaEnterprise.V1.Model.GoogleCloudRecaptchaenterpriseV1FirewallPolicyAssessment.t`, *default:* `nil`) - Output only. Assessment returned when firewall policies belonging to the project are evaluated using the field firewall_policy_evaluation.
* `fraudPreventionAssessment` (*type:* `GoogleApi.RecaptchaEnterprise.V1.Model.GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessment.t`, *default:* `nil`) - Output only. Assessment returned by Fraud Prevention when TransactionData is provided.
* `fraudSignals` (*type:* `GoogleApi.RecaptchaEnterprise.V1.Model.GoogleCloudRecaptchaenterpriseV1FraudSignals.t`, *default:* `nil`) - Output only. Fraud Signals specific to the users involved in a payment transaction.
* `name` (*type:* `String.t`, *default:* `nil`) - Output only. Identifier. The resource name for the Assessment in the format `projects/{project}/assessments/{assessment}`.
* `privatePasswordLeakVerification` (*type:* `GoogleApi.RecaptchaEnterprise.V1.Model.GoogleCloudRecaptchaenterpriseV1PrivatePasswordLeakVerification.t`, *default:* `nil`) - Optional. The private password leak verification field contains the parameters that are used to to check for leaks privately without sharing user credentials.
* `riskAnalysis` (*type:* `GoogleApi.RecaptchaEnterprise.V1.Model.GoogleCloudRecaptchaenterpriseV1RiskAnalysis.t`, *default:* `nil`) - Output only. The risk analysis result for the event being assessed.
* `tokenProperties` (*type:* `GoogleApi.RecaptchaEnterprise.V1.Model.GoogleCloudRecaptchaenterpriseV1TokenProperties.t`, *default:* `nil`) - Output only. Properties of the provided event token.
"""
Expand All @@ -35,8 +39,20 @@ defmodule GoogleApi.RecaptchaEnterprise.V1.Model.GoogleCloudRecaptchaenterpriseV
:accountDefenderAssessment =>
GoogleApi.RecaptchaEnterprise.V1.Model.GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessment.t()
| nil,
:accountVerification =>
GoogleApi.RecaptchaEnterprise.V1.Model.GoogleCloudRecaptchaenterpriseV1AccountVerificationInfo.t()
| nil,
:event =>
GoogleApi.RecaptchaEnterprise.V1.Model.GoogleCloudRecaptchaenterpriseV1Event.t() | nil,
:firewallPolicyAssessment =>
GoogleApi.RecaptchaEnterprise.V1.Model.GoogleCloudRecaptchaenterpriseV1FirewallPolicyAssessment.t()
| nil,
:fraudPreventionAssessment =>
GoogleApi.RecaptchaEnterprise.V1.Model.GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessment.t()
| nil,
:fraudSignals =>
GoogleApi.RecaptchaEnterprise.V1.Model.GoogleCloudRecaptchaenterpriseV1FraudSignals.t()
| nil,
:name => String.t() | nil,
:privatePasswordLeakVerification =>
GoogleApi.RecaptchaEnterprise.V1.Model.GoogleCloudRecaptchaenterpriseV1PrivatePasswordLeakVerification.t()
Expand All @@ -54,7 +70,27 @@ defmodule GoogleApi.RecaptchaEnterprise.V1.Model.GoogleCloudRecaptchaenterpriseV
GoogleApi.RecaptchaEnterprise.V1.Model.GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessment
)

field(:accountVerification,
as:
GoogleApi.RecaptchaEnterprise.V1.Model.GoogleCloudRecaptchaenterpriseV1AccountVerificationInfo
)

field(:event, as: GoogleApi.RecaptchaEnterprise.V1.Model.GoogleCloudRecaptchaenterpriseV1Event)

field(:firewallPolicyAssessment,
as:
GoogleApi.RecaptchaEnterprise.V1.Model.GoogleCloudRecaptchaenterpriseV1FirewallPolicyAssessment
)

field(:fraudPreventionAssessment,
as:
GoogleApi.RecaptchaEnterprise.V1.Model.GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessment
)

field(:fraudSignals,
as: GoogleApi.RecaptchaEnterprise.V1.Model.GoogleCloudRecaptchaenterpriseV1FraudSignals
)

field(:name)

field(:privatePasswordLeakVerification,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# Copyright 2019 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
#
# http://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.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.RecaptchaEnterprise.V1.Model.GoogleCloudRecaptchaenterpriseV1EndpointVerificationInfo do
@moduledoc """
Information about a verification endpoint that can be used for 2FA.

## Attributes

* `emailAddress` (*type:* `String.t`, *default:* `nil`) - Email address for which to trigger a verification request.
* `lastVerificationTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Timestamp of the last successful verification for the endpoint, if any.
* `phoneNumber` (*type:* `String.t`, *default:* `nil`) - Phone number for which to trigger a verification request. Should be given in E.164 format.
* `requestToken` (*type:* `String.t`, *default:* `nil`) - Output only. Token to provide to the client to trigger endpoint verification. It must be used within 15 minutes.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:emailAddress => String.t() | nil,
:lastVerificationTime => DateTime.t() | nil,
:phoneNumber => String.t() | nil,
:requestToken => String.t() | nil
}

field(:emailAddress)
field(:lastVerificationTime, as: DateTime)
field(:phoneNumber)
field(:requestToken)
end

defimpl Poison.Decoder,
for:
GoogleApi.RecaptchaEnterprise.V1.Model.GoogleCloudRecaptchaenterpriseV1EndpointVerificationInfo do
def decode(value, options) do
GoogleApi.RecaptchaEnterprise.V1.Model.GoogleCloudRecaptchaenterpriseV1EndpointVerificationInfo.decode(
value,
options
)
end
end

defimpl Poison.Encoder,
for:
GoogleApi.RecaptchaEnterprise.V1.Model.GoogleCloudRecaptchaenterpriseV1EndpointVerificationInfo do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Loading
Loading