forked from googleapis/google-cloud-dotnet
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added Assessment.firewall_policy_assessment, fraud_signals feat: added new fields to Event message feat: added RiskAnalysis.extended_verdict_reasons feat: added FraudPreventionAssessment.behavioral_trust_verdict feat: added AndroidKeySettings.support_non_google_app_store_distribution feat: added IOSKeySettings.apple_developer_id feat: added WafFeature.EXPRESS enum value feat: added WafService.FASTLY enum value chore: remove backend configuration from the service config PiperOrigin-RevId: 570747007 Source-Link: googleapis/googleapis@726e33e Source-Link: googleapis/googleapis-gen@4e53991 Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuUmVjYXB0Y2hhRW50ZXJwcmlzZS5WMS8uT3dsQm90LnlhbWwiLCJoIjoiNGU1Mzk5MWI3MzE1ODUzZmJkNmIyNzVjNjA0ZWMzODUzMDUyN2Y4MyJ9
- Loading branch information
1 parent
3173b55
commit 0eea6bd
Showing
35 changed files
with
12,852 additions
and
2,651 deletions.
There are no files selected for viewing
45 changes: 45 additions & 0 deletions
45
....GeneratedSnippets/RecaptchaEnterpriseServiceClient.CreateFirewallPolicyAsyncSnippet.g.cs
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,45 @@ | ||
// Copyright 2023 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. | ||
|
||
// Generated code. DO NOT EDIT! | ||
|
||
namespace GoogleCSharpSnippets | ||
{ | ||
// [START recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_CreateFirewallPolicy_async_flattened] | ||
using Google.Cloud.RecaptchaEnterprise.V1; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedRecaptchaEnterpriseServiceClientSnippets | ||
{ | ||
/// <summary>Snippet for CreateFirewallPolicyAsync</summary> | ||
/// <remarks> | ||
/// 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/dotnet/docs/reference/help/client-configuration#endpoint. | ||
/// </remarks> | ||
public async Task CreateFirewallPolicyAsync() | ||
{ | ||
// Create client | ||
RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
string parent = "projects/[PROJECT]"; | ||
FirewallPolicy firewallPolicy = new FirewallPolicy(); | ||
// Make the request | ||
FirewallPolicy response = await recaptchaEnterpriseServiceClient.CreateFirewallPolicyAsync(parent, firewallPolicy); | ||
} | ||
} | ||
// [END recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_CreateFirewallPolicy_async_flattened] | ||
} |
49 changes: 49 additions & 0 deletions
49
...ppets/RecaptchaEnterpriseServiceClient.CreateFirewallPolicyRequestObjectAsyncSnippet.g.cs
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,49 @@ | ||
// Copyright 2023 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. | ||
|
||
// Generated code. DO NOT EDIT! | ||
|
||
namespace GoogleCSharpSnippets | ||
{ | ||
// [START recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_CreateFirewallPolicy_async] | ||
using Google.Api.Gax.ResourceNames; | ||
using Google.Cloud.RecaptchaEnterprise.V1; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedRecaptchaEnterpriseServiceClientSnippets | ||
{ | ||
/// <summary>Snippet for CreateFirewallPolicyAsync</summary> | ||
/// <remarks> | ||
/// 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/dotnet/docs/reference/help/client-configuration#endpoint. | ||
/// </remarks> | ||
public async Task CreateFirewallPolicyRequestObjectAsync() | ||
{ | ||
// Create client | ||
RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
CreateFirewallPolicyRequest request = new CreateFirewallPolicyRequest | ||
{ | ||
ParentAsProjectName = ProjectName.FromProject("[PROJECT]"), | ||
FirewallPolicy = new FirewallPolicy(), | ||
}; | ||
// Make the request | ||
FirewallPolicy response = await recaptchaEnterpriseServiceClient.CreateFirewallPolicyAsync(request); | ||
} | ||
} | ||
// [END recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_CreateFirewallPolicy_async] | ||
} |
48 changes: 48 additions & 0 deletions
48
...edSnippets/RecaptchaEnterpriseServiceClient.CreateFirewallPolicyRequestObjectSnippet.g.cs
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,48 @@ | ||
// Copyright 2023 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. | ||
|
||
// Generated code. DO NOT EDIT! | ||
|
||
namespace GoogleCSharpSnippets | ||
{ | ||
// [START recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_CreateFirewallPolicy_sync] | ||
using Google.Api.Gax.ResourceNames; | ||
using Google.Cloud.RecaptchaEnterprise.V1; | ||
|
||
public sealed partial class GeneratedRecaptchaEnterpriseServiceClientSnippets | ||
{ | ||
/// <summary>Snippet for CreateFirewallPolicy</summary> | ||
/// <remarks> | ||
/// 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/dotnet/docs/reference/help/client-configuration#endpoint. | ||
/// </remarks> | ||
public void CreateFirewallPolicyRequestObject() | ||
{ | ||
// Create client | ||
RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create(); | ||
// Initialize request argument(s) | ||
CreateFirewallPolicyRequest request = new CreateFirewallPolicyRequest | ||
{ | ||
ParentAsProjectName = ProjectName.FromProject("[PROJECT]"), | ||
FirewallPolicy = new FirewallPolicy(), | ||
}; | ||
// Make the request | ||
FirewallPolicy response = recaptchaEnterpriseServiceClient.CreateFirewallPolicy(request); | ||
} | ||
} | ||
// [END recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_CreateFirewallPolicy_sync] | ||
} |
46 changes: 46 additions & 0 deletions
46
...ppets/RecaptchaEnterpriseServiceClient.CreateFirewallPolicyResourceNamesAsyncSnippet.g.cs
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,46 @@ | ||
// Copyright 2023 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. | ||
|
||
// Generated code. DO NOT EDIT! | ||
|
||
namespace GoogleCSharpSnippets | ||
{ | ||
// [START recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_CreateFirewallPolicy_async_flattened_resourceNames] | ||
using Google.Api.Gax.ResourceNames; | ||
using Google.Cloud.RecaptchaEnterprise.V1; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedRecaptchaEnterpriseServiceClientSnippets | ||
{ | ||
/// <summary>Snippet for CreateFirewallPolicyAsync</summary> | ||
/// <remarks> | ||
/// 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/dotnet/docs/reference/help/client-configuration#endpoint. | ||
/// </remarks> | ||
public async Task CreateFirewallPolicyResourceNamesAsync() | ||
{ | ||
// Create client | ||
RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
ProjectName parent = ProjectName.FromProject("[PROJECT]"); | ||
FirewallPolicy firewallPolicy = new FirewallPolicy(); | ||
// Make the request | ||
FirewallPolicy response = await recaptchaEnterpriseServiceClient.CreateFirewallPolicyAsync(parent, firewallPolicy); | ||
} | ||
} | ||
// [END recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_CreateFirewallPolicy_async_flattened_resourceNames] | ||
} |
45 changes: 45 additions & 0 deletions
45
...edSnippets/RecaptchaEnterpriseServiceClient.CreateFirewallPolicyResourceNamesSnippet.g.cs
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,45 @@ | ||
// Copyright 2023 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. | ||
|
||
// Generated code. DO NOT EDIT! | ||
|
||
namespace GoogleCSharpSnippets | ||
{ | ||
// [START recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_CreateFirewallPolicy_sync_flattened_resourceNames] | ||
using Google.Api.Gax.ResourceNames; | ||
using Google.Cloud.RecaptchaEnterprise.V1; | ||
|
||
public sealed partial class GeneratedRecaptchaEnterpriseServiceClientSnippets | ||
{ | ||
/// <summary>Snippet for CreateFirewallPolicy</summary> | ||
/// <remarks> | ||
/// 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/dotnet/docs/reference/help/client-configuration#endpoint. | ||
/// </remarks> | ||
public void CreateFirewallPolicyResourceNames() | ||
{ | ||
// Create client | ||
RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create(); | ||
// Initialize request argument(s) | ||
ProjectName parent = ProjectName.FromProject("[PROJECT]"); | ||
FirewallPolicy firewallPolicy = new FirewallPolicy(); | ||
// Make the request | ||
FirewallPolicy response = recaptchaEnterpriseServiceClient.CreateFirewallPolicy(parent, firewallPolicy); | ||
} | ||
} | ||
// [END recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_CreateFirewallPolicy_sync_flattened_resourceNames] | ||
} |
44 changes: 44 additions & 0 deletions
44
...se.V1.GeneratedSnippets/RecaptchaEnterpriseServiceClient.CreateFirewallPolicySnippet.g.cs
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,44 @@ | ||
// Copyright 2023 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. | ||
|
||
// Generated code. DO NOT EDIT! | ||
|
||
namespace GoogleCSharpSnippets | ||
{ | ||
// [START recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_CreateFirewallPolicy_sync_flattened] | ||
using Google.Cloud.RecaptchaEnterprise.V1; | ||
|
||
public sealed partial class GeneratedRecaptchaEnterpriseServiceClientSnippets | ||
{ | ||
/// <summary>Snippet for CreateFirewallPolicy</summary> | ||
/// <remarks> | ||
/// 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/dotnet/docs/reference/help/client-configuration#endpoint. | ||
/// </remarks> | ||
public void CreateFirewallPolicy() | ||
{ | ||
// Create client | ||
RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.Create(); | ||
// Initialize request argument(s) | ||
string parent = "projects/[PROJECT]"; | ||
FirewallPolicy firewallPolicy = new FirewallPolicy(); | ||
// Make the request | ||
FirewallPolicy response = recaptchaEnterpriseServiceClient.CreateFirewallPolicy(parent, firewallPolicy); | ||
} | ||
} | ||
// [END recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_CreateFirewallPolicy_sync_flattened] | ||
} |
44 changes: 44 additions & 0 deletions
44
....GeneratedSnippets/RecaptchaEnterpriseServiceClient.DeleteFirewallPolicyAsyncSnippet.g.cs
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,44 @@ | ||
// Copyright 2023 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. | ||
|
||
// Generated code. DO NOT EDIT! | ||
|
||
namespace GoogleCSharpSnippets | ||
{ | ||
// [START recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_DeleteFirewallPolicy_async_flattened] | ||
using Google.Cloud.RecaptchaEnterprise.V1; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedRecaptchaEnterpriseServiceClientSnippets | ||
{ | ||
/// <summary>Snippet for DeleteFirewallPolicyAsync</summary> | ||
/// <remarks> | ||
/// 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/dotnet/docs/reference/help/client-configuration#endpoint. | ||
/// </remarks> | ||
public async Task DeleteFirewallPolicyAsync() | ||
{ | ||
// Create client | ||
RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
string name = "projects/[PROJECT]/firewallpolicies/[FIREWALLPOLICY]"; | ||
// Make the request | ||
await recaptchaEnterpriseServiceClient.DeleteFirewallPolicyAsync(name); | ||
} | ||
} | ||
// [END recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_DeleteFirewallPolicy_async_flattened] | ||
} |
47 changes: 47 additions & 0 deletions
47
...ppets/RecaptchaEnterpriseServiceClient.DeleteFirewallPolicyRequestObjectAsyncSnippet.g.cs
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 @@ | ||
// Copyright 2023 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. | ||
|
||
// Generated code. DO NOT EDIT! | ||
|
||
namespace GoogleCSharpSnippets | ||
{ | ||
// [START recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_DeleteFirewallPolicy_async] | ||
using Google.Cloud.RecaptchaEnterprise.V1; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedRecaptchaEnterpriseServiceClientSnippets | ||
{ | ||
/// <summary>Snippet for DeleteFirewallPolicyAsync</summary> | ||
/// <remarks> | ||
/// 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/dotnet/docs/reference/help/client-configuration#endpoint. | ||
/// </remarks> | ||
public async Task DeleteFirewallPolicyRequestObjectAsync() | ||
{ | ||
// Create client | ||
RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = await RecaptchaEnterpriseServiceClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
DeleteFirewallPolicyRequest request = new DeleteFirewallPolicyRequest | ||
{ | ||
FirewallPolicyName = FirewallPolicyName.FromProjectFirewallpolicy("[PROJECT]", "[FIREWALLPOLICY]"), | ||
}; | ||
// Make the request | ||
await recaptchaEnterpriseServiceClient.DeleteFirewallPolicyAsync(request); | ||
} | ||
} | ||
// [END recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_DeleteFirewallPolicy_async] | ||
} |
Oops, something went wrong.