Skip to content

Commit

Permalink
chore: Generate Google.Shopping.Merchant.Reviews.V1Beta
Browse files Browse the repository at this point in the history
  • Loading branch information
jskeet committed Dec 11, 2024
1 parent 2b5902a commit 178cae5
Show file tree
Hide file tree
Showing 63 changed files with 17,476 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@
"apis/Google.Shopping.Merchant.Promotions.V1Beta/Google.Shopping.Merchant.Promotions.V1Beta/**",
"apis/Google.Shopping.Merchant.Quota.V1Beta/Google.Shopping.Merchant.Quota.V1Beta/**",
"apis/Google.Shopping.Merchant.Reports.V1Beta/Google.Shopping.Merchant.Reports.V1Beta/**",
"apis/Google.Shopping.Merchant.Reviews.V1Beta/Google.Shopping.Merchant.Reviews.V1Beta/**",
"apis/Google.Shopping.Type/Google.Shopping.Type/**",
"apis/Grafeas.V1/Grafeas.V1/**"
],
Expand Down
31 changes: 31 additions & 0 deletions apis/Google.Shopping.Merchant.Reviews.V1Beta/.OwlBot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@

# 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
#
# 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.

squash: true

deep-remove-regex:
- /owl-bot-staging

deep-copy-regex:
- source: /google/shopping/merchant/reviews/v1beta/.*-csharp/Google.Shopping.Merchant.Reviews.V1Beta
dest: /owl-bot-staging/Google.Shopping.Merchant.Reviews.V1Beta/Google.Shopping.Merchant.Reviews.V1Beta
- source: /google/shopping/merchant/reviews/v1beta/.*-csharp/Google.Shopping.Merchant.Reviews.V1Beta.Snippets
dest: /owl-bot-staging/Google.Shopping.Merchant.Reviews.V1Beta/Google.Shopping.Merchant.Reviews.V1Beta.Snippets
- source: /google/shopping/merchant/reviews/v1beta/.*-csharp/Google.Shopping.Merchant.Reviews.V1Beta.GeneratedSnippets
dest: /owl-bot-staging/Google.Shopping.Merchant.Reviews.V1Beta/Google.Shopping.Merchant.Reviews.V1Beta.GeneratedSnippets
- source: /google/shopping/merchant/reviews/v1beta/.*-csharp/gapic_metadata.json
dest: /owl-bot-staging/Google.Shopping.Merchant.Reviews.V1Beta/gapic_metadata.json

api-name: Google.Shopping.Merchant.Reviews.V1Beta
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"distribution_name": "Google.Shopping.Merchant.Reviews.V1Beta",
"release_level": "unreleased",
"client_documentation": "https://googleapis.dev/dotnet/Google.Shopping.Merchant.Reviews.V1Beta/latest",
"library_type": "GAPIC_AUTO",
"language": "dotnet",
"api_shortname": "merchantapi"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net6.0;net462</TargetFrameworks>
<TargetFrameworks Condition=" '$(OS)' != 'Windows_NT' ">net6.0</TargetFrameworks>
<IsPackable>false</IsPackable>
<NoWarn>1701;1702;1705;xUnit2004;xUnit2013</NoWarn>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\tools\Google.Cloud.ClientTesting\Google.Cloud.ClientTesting.csproj" />
<ProjectReference Include="..\Google.Shopping.Merchant.Reviews.V1Beta\Google.Shopping.Merchant.Reviews.V1Beta.csproj" />
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="NSubstitute" />
<PackageReference Include="System.Linq.Async" />
<PackageReference Include="Xunit.SkippableFact" />
<PackageReference Include="xunit" />
<PackageReference Include="xunit.runner.visualstudio" />
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" />
</ItemGroup>
</Project>
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]
}
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]
}
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]
}
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]
}
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]
}
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]
}
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]
}
Loading

0 comments on commit 178cae5

Please sign in to comment.