-
Notifications
You must be signed in to change notification settings - Fork 369
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Configure clients for google-shopping-merchant-reviews
PiperOrigin-RevId: 707702887 Source-Link: googleapis/googleapis@020c281 Source-Link: googleapis/googleapis-gen@3d1d96e Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuU2hvcHBpbmcuTWVyY2hhbnQuUmV2aWV3cy5WMUJldGEvLk93bEJvdC55YW1sIiwiaCI6IjNkMWQ5NmU5NWQ3NGRiN2YwZThkMTU3NzgwY2UxZTY2NjM5ZTUxOTIifQ==
- Loading branch information
1 parent
7dea52d
commit c8777c6
Showing
59 changed files
with
17,432 additions
and
0 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
...V1Beta.GeneratedSnippets/Google.Shopping.Merchant.Reviews.V1Beta.GeneratedSnippets.csproj
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,15 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFrameworks>net6.0;net462</TargetFrameworks> | ||
<LangVersion>latest</LangVersion> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="../Google.Shopping.Merchant.Reviews.V1Beta/Google.Shopping.Merchant.Reviews.V1Beta.csproj" /> | ||
<PackageReference Include="System.Linq.Async" Version="6.0.1" /> | ||
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3" PrivateAssets="All" /> | ||
</ItemGroup> | ||
|
||
</Project> |
44 changes: 44 additions & 0 deletions
44
...Beta.GeneratedSnippets/MerchantReviewsServiceClient.DeleteMerchantReviewAsyncSnippet.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 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. | ||
|
||
// Generated code. DO NOT EDIT! | ||
|
||
namespace GoogleCSharpSnippets | ||
{ | ||
// [START merchantapi_v1beta_generated_MerchantReviewsService_DeleteMerchantReview_async_flattened] | ||
using Google.Shopping.Merchant.Reviews.V1Beta; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedMerchantReviewsServiceClientSnippets | ||
{ | ||
/// <summary>Snippet for DeleteMerchantReviewAsync</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 DeleteMerchantReviewAsync() | ||
{ | ||
// Create client | ||
MerchantReviewsServiceClient merchantReviewsServiceClient = await MerchantReviewsServiceClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
string name = "accounts/[ACCOUNT]/merchantReviews/[NAME]"; | ||
// Make the request | ||
await merchantReviewsServiceClient.DeleteMerchantReviewAsync(name); | ||
} | ||
} | ||
// [END merchantapi_v1beta_generated_MerchantReviewsService_DeleteMerchantReview_async_flattened] | ||
} |
47 changes: 47 additions & 0 deletions
47
...dSnippets/MerchantReviewsServiceClient.DeleteMerchantReviewRequestObjectAsyncSnippet.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 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. | ||
|
||
// Generated code. DO NOT EDIT! | ||
|
||
namespace GoogleCSharpSnippets | ||
{ | ||
// [START merchantapi_v1beta_generated_MerchantReviewsService_DeleteMerchantReview_async] | ||
using Google.Shopping.Merchant.Reviews.V1Beta; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedMerchantReviewsServiceClientSnippets | ||
{ | ||
/// <summary>Snippet for DeleteMerchantReviewAsync</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 DeleteMerchantReviewRequestObjectAsync() | ||
{ | ||
// Create client | ||
MerchantReviewsServiceClient merchantReviewsServiceClient = await MerchantReviewsServiceClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
DeleteMerchantReviewRequest request = new DeleteMerchantReviewRequest | ||
{ | ||
MerchantReviewName = MerchantReviewName.FromAccountName("[ACCOUNT]", "[NAME]"), | ||
}; | ||
// Make the request | ||
await merchantReviewsServiceClient.DeleteMerchantReviewAsync(request); | ||
} | ||
} | ||
// [END merchantapi_v1beta_generated_MerchantReviewsService_DeleteMerchantReview_async] | ||
} |
46 changes: 46 additions & 0 deletions
46
...eratedSnippets/MerchantReviewsServiceClient.DeleteMerchantReviewRequestObjectSnippet.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 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. | ||
|
||
// Generated code. DO NOT EDIT! | ||
|
||
namespace GoogleCSharpSnippets | ||
{ | ||
// [START merchantapi_v1beta_generated_MerchantReviewsService_DeleteMerchantReview_sync] | ||
using Google.Shopping.Merchant.Reviews.V1Beta; | ||
|
||
public sealed partial class GeneratedMerchantReviewsServiceClientSnippets | ||
{ | ||
/// <summary>Snippet for DeleteMerchantReview</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 DeleteMerchantReviewRequestObject() | ||
{ | ||
// Create client | ||
MerchantReviewsServiceClient merchantReviewsServiceClient = MerchantReviewsServiceClient.Create(); | ||
// Initialize request argument(s) | ||
DeleteMerchantReviewRequest request = new DeleteMerchantReviewRequest | ||
{ | ||
MerchantReviewName = MerchantReviewName.FromAccountName("[ACCOUNT]", "[NAME]"), | ||
}; | ||
// Make the request | ||
merchantReviewsServiceClient.DeleteMerchantReview(request); | ||
} | ||
} | ||
// [END merchantapi_v1beta_generated_MerchantReviewsService_DeleteMerchantReview_sync] | ||
} |
44 changes: 44 additions & 0 deletions
44
...dSnippets/MerchantReviewsServiceClient.DeleteMerchantReviewResourceNamesAsyncSnippet.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 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. | ||
|
||
// Generated code. DO NOT EDIT! | ||
|
||
namespace GoogleCSharpSnippets | ||
{ | ||
// [START merchantapi_v1beta_generated_MerchantReviewsService_DeleteMerchantReview_async_flattened_resourceNames] | ||
using Google.Shopping.Merchant.Reviews.V1Beta; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedMerchantReviewsServiceClientSnippets | ||
{ | ||
/// <summary>Snippet for DeleteMerchantReviewAsync</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 DeleteMerchantReviewResourceNamesAsync() | ||
{ | ||
// Create client | ||
MerchantReviewsServiceClient merchantReviewsServiceClient = await MerchantReviewsServiceClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
MerchantReviewName name = MerchantReviewName.FromAccountName("[ACCOUNT]", "[NAME]"); | ||
// Make the request | ||
await merchantReviewsServiceClient.DeleteMerchantReviewAsync(name); | ||
} | ||
} | ||
// [END merchantapi_v1beta_generated_MerchantReviewsService_DeleteMerchantReview_async_flattened_resourceNames] | ||
} |
43 changes: 43 additions & 0 deletions
43
...eratedSnippets/MerchantReviewsServiceClient.DeleteMerchantReviewResourceNamesSnippet.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,43 @@ | ||
// 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. | ||
|
||
// Generated code. DO NOT EDIT! | ||
|
||
namespace GoogleCSharpSnippets | ||
{ | ||
// [START merchantapi_v1beta_generated_MerchantReviewsService_DeleteMerchantReview_sync_flattened_resourceNames] | ||
using Google.Shopping.Merchant.Reviews.V1Beta; | ||
|
||
public sealed partial class GeneratedMerchantReviewsServiceClientSnippets | ||
{ | ||
/// <summary>Snippet for DeleteMerchantReview</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 DeleteMerchantReviewResourceNames() | ||
{ | ||
// Create client | ||
MerchantReviewsServiceClient merchantReviewsServiceClient = MerchantReviewsServiceClient.Create(); | ||
// Initialize request argument(s) | ||
MerchantReviewName name = MerchantReviewName.FromAccountName("[ACCOUNT]", "[NAME]"); | ||
// Make the request | ||
merchantReviewsServiceClient.DeleteMerchantReview(name); | ||
} | ||
} | ||
// [END merchantapi_v1beta_generated_MerchantReviewsService_DeleteMerchantReview_sync_flattened_resourceNames] | ||
} |
43 changes: 43 additions & 0 deletions
43
...ws.V1Beta.GeneratedSnippets/MerchantReviewsServiceClient.DeleteMerchantReviewSnippet.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,43 @@ | ||
// 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. | ||
|
||
// Generated code. DO NOT EDIT! | ||
|
||
namespace GoogleCSharpSnippets | ||
{ | ||
// [START merchantapi_v1beta_generated_MerchantReviewsService_DeleteMerchantReview_sync_flattened] | ||
using Google.Shopping.Merchant.Reviews.V1Beta; | ||
|
||
public sealed partial class GeneratedMerchantReviewsServiceClientSnippets | ||
{ | ||
/// <summary>Snippet for DeleteMerchantReview</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 DeleteMerchantReview() | ||
{ | ||
// Create client | ||
MerchantReviewsServiceClient merchantReviewsServiceClient = MerchantReviewsServiceClient.Create(); | ||
// Initialize request argument(s) | ||
string name = "accounts/[ACCOUNT]/merchantReviews/[NAME]"; | ||
// Make the request | ||
merchantReviewsServiceClient.DeleteMerchantReview(name); | ||
} | ||
} | ||
// [END merchantapi_v1beta_generated_MerchantReviewsService_DeleteMerchantReview_sync_flattened] | ||
} |
44 changes: 44 additions & 0 deletions
44
....V1Beta.GeneratedSnippets/MerchantReviewsServiceClient.GetMerchantReviewAsyncSnippet.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 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. | ||
|
||
// Generated code. DO NOT EDIT! | ||
|
||
namespace GoogleCSharpSnippets | ||
{ | ||
// [START merchantapi_v1beta_generated_MerchantReviewsService_GetMerchantReview_async_flattened] | ||
using Google.Shopping.Merchant.Reviews.V1Beta; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedMerchantReviewsServiceClientSnippets | ||
{ | ||
/// <summary>Snippet for GetMerchantReviewAsync</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 GetMerchantReviewAsync() | ||
{ | ||
// Create client | ||
MerchantReviewsServiceClient merchantReviewsServiceClient = await MerchantReviewsServiceClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
string name = "accounts/[ACCOUNT]/merchantReviews/[NAME]"; | ||
// Make the request | ||
MerchantReview response = await merchantReviewsServiceClient.GetMerchantReviewAsync(name); | ||
} | ||
} | ||
// [END merchantapi_v1beta_generated_MerchantReviewsService_GetMerchantReview_async_flattened] | ||
} |
47 changes: 47 additions & 0 deletions
47
...atedSnippets/MerchantReviewsServiceClient.GetMerchantReviewRequestObjectAsyncSnippet.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 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. | ||
|
||
// Generated code. DO NOT EDIT! | ||
|
||
namespace GoogleCSharpSnippets | ||
{ | ||
// [START merchantapi_v1beta_generated_MerchantReviewsService_GetMerchantReview_async] | ||
using Google.Shopping.Merchant.Reviews.V1Beta; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedMerchantReviewsServiceClientSnippets | ||
{ | ||
/// <summary>Snippet for GetMerchantReviewAsync</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 GetMerchantReviewRequestObjectAsync() | ||
{ | ||
// Create client | ||
MerchantReviewsServiceClient merchantReviewsServiceClient = await MerchantReviewsServiceClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
GetMerchantReviewRequest request = new GetMerchantReviewRequest | ||
{ | ||
MerchantReviewName = MerchantReviewName.FromAccountName("[ACCOUNT]", "[NAME]"), | ||
}; | ||
// Make the request | ||
MerchantReview response = await merchantReviewsServiceClient.GetMerchantReviewAsync(request); | ||
} | ||
} | ||
// [END merchantapi_v1beta_generated_MerchantReviewsService_GetMerchantReview_async] | ||
} |
Oops, something went wrong.