Skip to content

Commit

Permalink
feat: add account_verification field to Assessment for MFA
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 493691493

Source-Link: googleapis/googleapis@c9560d8

Source-Link: googleapis/googleapis-gen@ec825c8
Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuUmVjYXB0Y2hhRW50ZXJwcmlzZS5WMS8uT3dsQm90LnlhbWwiLCJoIjoiZWM4MjVjOGVmOTk4N2I2N2Q0M2RmZmZhYjUwOTE0ZTAzMjI3NWQ2MyJ9
  • Loading branch information
gcf-owl-bot[bot] authored and jskeet committed Dec 8, 2022
1 parent 1df2774 commit e703e5b
Show file tree
Hide file tree
Showing 6 changed files with 1,326 additions and 385 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public async Task MigrateKeyRequestObjectAsync()
MigrateKeyRequest request = new MigrateKeyRequest
{
KeyName = KeyName.FromProjectKey("[PROJECT]", "[KEY]"),
SkipBillingCheck = false,
};
// Make the request
Key response = await recaptchaEnterpriseServiceClient.MigrateKeyAsync(request);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public void MigrateKeyRequestObject()
MigrateKeyRequest request = new MigrateKeyRequest
{
KeyName = KeyName.FromProjectKey("[PROJECT]", "[KEY]"),
SkipBillingCheck = false,
};
// Make the request
Key response = recaptchaEnterpriseServiceClient.MigrateKey(request);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1103,12 +1103,12 @@
"segments": [
{
"start": 20,
"end": 44,
"end": 45,
"type": "FULL"
},
{
"start": 34,
"end": 42,
"end": 43,
"type": "SHORT"
}
]
Expand Down Expand Up @@ -1142,12 +1142,12 @@
"segments": [
{
"start": 20,
"end": 45,
"end": 46,
"type": "FULL"
},
{
"start": 35,
"end": 43,
"end": 44,
"type": "SHORT"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,7 @@ public void MigrateKeyRequestObject()
MigrateKeyRequest request = new MigrateKeyRequest
{
KeyName = KeyName.FromProjectKey("[PROJECT]", "[KEY]"),
SkipBillingCheck = false,
};
// Make the request
Key response = recaptchaEnterpriseServiceClient.MigrateKey(request);
Expand All @@ -569,6 +570,7 @@ public async Task MigrateKeyRequestObjectAsync()
MigrateKeyRequest request = new MigrateKeyRequest
{
KeyName = KeyName.FromProjectKey("[PROJECT]", "[KEY]"),
SkipBillingCheck = false,
};
// Make the request
Key response = await recaptchaEnterpriseServiceClient.MigrateKeyAsync(request);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -550,9 +550,9 @@ internal static RecaptchaEnterpriseServiceClient Create(grpccore::CallInvoker ca
/// "projects/{project}/assessments/{assessment}".
/// </param>
/// <param name="annotation">
/// 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.
/// 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.
/// </param>
/// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
/// <returns>The RPC response.</returns>
Expand All @@ -572,9 +572,9 @@ internal static RecaptchaEnterpriseServiceClient Create(grpccore::CallInvoker ca
/// "projects/{project}/assessments/{assessment}".
/// </param>
/// <param name="annotation">
/// 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.
/// 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.
/// </param>
/// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
/// <returns>A Task containing the RPC response.</returns>
Expand All @@ -594,9 +594,9 @@ internal static RecaptchaEnterpriseServiceClient Create(grpccore::CallInvoker ca
/// "projects/{project}/assessments/{assessment}".
/// </param>
/// <param name="annotation">
/// 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.
/// 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.
/// </param>
/// <param name="cancellationToken">A <see cref="st::CancellationToken"/> to use for this RPC.</param>
/// <returns>A Task containing the RPC response.</returns>
Expand All @@ -612,9 +612,9 @@ internal static RecaptchaEnterpriseServiceClient Create(grpccore::CallInvoker ca
/// "projects/{project}/assessments/{assessment}".
/// </param>
/// <param name="annotation">
/// 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.
/// 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.
/// </param>
/// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
/// <returns>The RPC response.</returns>
Expand All @@ -634,9 +634,9 @@ internal static RecaptchaEnterpriseServiceClient Create(grpccore::CallInvoker ca
/// "projects/{project}/assessments/{assessment}".
/// </param>
/// <param name="annotation">
/// 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.
/// 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.
/// </param>
/// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
/// <returns>A Task containing the RPC response.</returns>
Expand All @@ -656,9 +656,9 @@ internal static RecaptchaEnterpriseServiceClient Create(grpccore::CallInvoker ca
/// "projects/{project}/assessments/{assessment}".
/// </param>
/// <param name="annotation">
/// 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.
/// 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.
/// </param>
/// <param name="cancellationToken">A <see cref="st::CancellationToken"/> to use for this RPC.</param>
/// <returns>A Task containing the RPC response.</returns>
Expand Down Expand Up @@ -749,8 +749,8 @@ internal static RecaptchaEnterpriseServiceClient Create(grpccore::CallInvoker ca
/// legacy reCAPTCHA.
/// </summary>
/// <param name="key">
/// Required. The public key name linked to the requested secret key in the format
/// "projects/{project}/keys/{key}".
/// Required. The public key name linked to the requested secret key in the
/// format "projects/{project}/keys/{key}".
/// </param>
/// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
/// <returns>The RPC response.</returns>
Expand All @@ -766,8 +766,8 @@ internal static RecaptchaEnterpriseServiceClient Create(grpccore::CallInvoker ca
/// legacy reCAPTCHA.
/// </summary>
/// <param name="key">
/// Required. The public key name linked to the requested secret key in the format
/// "projects/{project}/keys/{key}".
/// Required. The public key name linked to the requested secret key in the
/// format "projects/{project}/keys/{key}".
/// </param>
/// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
/// <returns>A Task containing the RPC response.</returns>
Expand All @@ -783,8 +783,8 @@ internal static RecaptchaEnterpriseServiceClient Create(grpccore::CallInvoker ca
/// legacy reCAPTCHA.
/// </summary>
/// <param name="key">
/// Required. The public key name linked to the requested secret key in the format
/// "projects/{project}/keys/{key}".
/// Required. The public key name linked to the requested secret key in the
/// format "projects/{project}/keys/{key}".
/// </param>
/// <param name="cancellationToken">A <see cref="st::CancellationToken"/> to use for this RPC.</param>
/// <returns>A Task containing the RPC response.</returns>
Expand All @@ -797,8 +797,8 @@ internal static RecaptchaEnterpriseServiceClient Create(grpccore::CallInvoker ca
/// legacy reCAPTCHA.
/// </summary>
/// <param name="key">
/// Required. The public key name linked to the requested secret key in the format
/// "projects/{project}/keys/{key}".
/// Required. The public key name linked to the requested secret key in the
/// format "projects/{project}/keys/{key}".
/// </param>
/// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
/// <returns>The RPC response.</returns>
Expand All @@ -814,8 +814,8 @@ internal static RecaptchaEnterpriseServiceClient Create(grpccore::CallInvoker ca
/// legacy reCAPTCHA.
/// </summary>
/// <param name="key">
/// Required. The public key name linked to the requested secret key in the format
/// "projects/{project}/keys/{key}".
/// Required. The public key name linked to the requested secret key in the
/// format "projects/{project}/keys/{key}".
/// </param>
/// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
/// <returns>A Task containing the RPC response.</returns>
Expand All @@ -831,8 +831,8 @@ internal static RecaptchaEnterpriseServiceClient Create(grpccore::CallInvoker ca
/// legacy reCAPTCHA.
/// </summary>
/// <param name="key">
/// Required. The public key name linked to the requested secret key in the format
/// "projects/{project}/keys/{key}".
/// Required. The public key name linked to the requested secret key in the
/// format "projects/{project}/keys/{key}".
/// </param>
/// <param name="cancellationToken">A <see cref="st::CancellationToken"/> to use for this RPC.</param>
/// <returns>A Task containing the RPC response.</returns>
Expand Down Expand Up @@ -1104,8 +1104,8 @@ internal static RecaptchaEnterpriseServiceClient Create(grpccore::CallInvoker ca
/// List groups of related accounts.
/// </summary>
/// <param name="parent">
/// Required. The name of the project to list related account groups from, in the format
/// "projects/{project}".
/// Required. The name of the project to list related account groups from, in
/// the format "projects/{project}".
/// </param>
/// <param name="pageToken">
/// The token returned from the previous request. A value of <c>null</c> or an empty string retrieves the first
Expand All @@ -1129,8 +1129,8 @@ internal static RecaptchaEnterpriseServiceClient Create(grpccore::CallInvoker ca
/// List groups of related accounts.
/// </summary>
/// <param name="parent">
/// Required. The name of the project to list related account groups from, in the format
/// "projects/{project}".
/// Required. The name of the project to list related account groups from, in
/// the format "projects/{project}".
/// </param>
/// <param name="pageToken">
/// The token returned from the previous request. A value of <c>null</c> or an empty string retrieves the first
Expand All @@ -1154,8 +1154,8 @@ internal static RecaptchaEnterpriseServiceClient Create(grpccore::CallInvoker ca
/// List groups of related accounts.
/// </summary>
/// <param name="parent">
/// Required. The name of the project to list related account groups from, in the format
/// "projects/{project}".
/// Required. The name of the project to list related account groups from, in
/// the format "projects/{project}".
/// </param>
/// <param name="pageToken">
/// The token returned from the previous request. A value of <c>null</c> or an empty string retrieves the first
Expand All @@ -1179,8 +1179,8 @@ internal static RecaptchaEnterpriseServiceClient Create(grpccore::CallInvoker ca
/// List groups of related accounts.
/// </summary>
/// <param name="parent">
/// Required. The name of the project to list related account groups from, in the format
/// "projects/{project}".
/// Required. The name of the project to list related account groups from, in
/// the format "projects/{project}".
/// </param>
/// <param name="pageToken">
/// The token returned from the previous request. A value of <c>null</c> or an empty string retrieves the first
Expand Down Expand Up @@ -1348,13 +1348,14 @@ internal static RecaptchaEnterpriseServiceClient Create(grpccore::CallInvoker ca
/// Search group memberships related to a given account.
/// </summary>
/// <param name="project">
/// Required. The name of the project to search related account group memberships from.
/// Specify the project name in the following format: "projects/{project}".
/// Required. The name of the project to search related account group
/// memberships from. Specify the project name in the following format:
/// "projects/{project}".
/// </param>
/// <param name="hashedAccountId">
/// Optional. The unique stable hashed user identifier we should search connections to.
/// The identifier should correspond to a `hashed_account_id` provided in a
/// previous `CreateAssessment` or `AnnotateAssessment` call.
/// Optional. The unique stable hashed user identifier we should search
/// connections to. The identifier should correspond to a `hashed_account_id`
/// provided in a previous `CreateAssessment` or `AnnotateAssessment` call.
/// </param>
/// <param name="pageToken">
/// The token returned from the previous request. A value of <c>null</c> or an empty string retrieves the first
Expand All @@ -1379,13 +1380,14 @@ internal static RecaptchaEnterpriseServiceClient Create(grpccore::CallInvoker ca
/// Search group memberships related to a given account.
/// </summary>
/// <param name="project">
/// Required. The name of the project to search related account group memberships from.
/// Specify the project name in the following format: "projects/{project}".
/// Required. The name of the project to search related account group
/// memberships from. Specify the project name in the following format:
/// "projects/{project}".
/// </param>
/// <param name="hashedAccountId">
/// Optional. The unique stable hashed user identifier we should search connections to.
/// The identifier should correspond to a `hashed_account_id` provided in a
/// previous `CreateAssessment` or `AnnotateAssessment` call.
/// Optional. The unique stable hashed user identifier we should search
/// connections to. The identifier should correspond to a `hashed_account_id`
/// provided in a previous `CreateAssessment` or `AnnotateAssessment` call.
/// </param>
/// <param name="pageToken">
/// The token returned from the previous request. A value of <c>null</c> or an empty string retrieves the first
Expand All @@ -1412,13 +1414,14 @@ internal static RecaptchaEnterpriseServiceClient Create(grpccore::CallInvoker ca
/// Search group memberships related to a given account.
/// </summary>
/// <param name="project">
/// Required. The name of the project to search related account group memberships from.
/// Specify the project name in the following format: "projects/{project}".
/// Required. The name of the project to search related account group
/// memberships from. Specify the project name in the following format:
/// "projects/{project}".
/// </param>
/// <param name="hashedAccountId">
/// Optional. The unique stable hashed user identifier we should search connections to.
/// The identifier should correspond to a `hashed_account_id` provided in a
/// previous `CreateAssessment` or `AnnotateAssessment` call.
/// Optional. The unique stable hashed user identifier we should search
/// connections to. The identifier should correspond to a `hashed_account_id`
/// provided in a previous `CreateAssessment` or `AnnotateAssessment` call.
/// </param>
/// <param name="pageToken">
/// The token returned from the previous request. A value of <c>null</c> or an empty string retrieves the first
Expand All @@ -1443,13 +1446,14 @@ internal static RecaptchaEnterpriseServiceClient Create(grpccore::CallInvoker ca
/// Search group memberships related to a given account.
/// </summary>
/// <param name="project">
/// Required. The name of the project to search related account group memberships from.
/// Specify the project name in the following format: "projects/{project}".
/// Required. The name of the project to search related account group
/// memberships from. Specify the project name in the following format:
/// "projects/{project}".
/// </param>
/// <param name="hashedAccountId">
/// Optional. The unique stable hashed user identifier we should search connections to.
/// The identifier should correspond to a `hashed_account_id` provided in a
/// previous `CreateAssessment` or `AnnotateAssessment` call.
/// Optional. The unique stable hashed user identifier we should search
/// connections to. The identifier should correspond to a `hashed_account_id`
/// provided in a previous `CreateAssessment` or `AnnotateAssessment` call.
/// </param>
/// <param name="pageToken">
/// The token returned from the previous request. A value of <c>null</c> or an empty string retrieves the first
Expand Down
Loading

0 comments on commit e703e5b

Please sign in to comment.