Skip to content

Commit

Permalink
chore: use latest GAPIC generator for C#
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 627281413

Source-Link: googleapis/googleapis@980fda4

Source-Link: googleapis/googleapis-gen@6a8d39f
Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuU2VydmljZURpcmVjdG9yeS5WMUJldGExLy5Pd2xCb3QueWFtbCIsImgiOiI2YThkMzlmZWNlNmUyN2U5NzRmMTkyYzU3YmUyMDM2MDlkZWE5MTcxIn0=
Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuU2VydmljZUhlYWx0aC5WMS8uT3dsQm90LnlhbWwiLCJoIjoiNmE4ZDM5ZmVjZTZlMjdlOTc0ZjE5MmM1N2JlMjAzNjA5ZGVhOTE3MSJ9
Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuU2VydmljZU1hbmFnZW1lbnQuVjEvLk93bEJvdC55YW1sIiwiaCI6IjZhOGQzOWZlY2U2ZTI3ZTk3NGYxOTJjNTdiZTIwMzYwOWRlYTkxNzEifQ==
Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuU2VydmljZVVzYWdlLlYxLy5Pd2xCb3QueWFtbCIsImgiOiI2YThkMzlmZWNlNmUyN2U5NzRmMTkyYzU3YmUyMDM2MDlkZWE5MTcxIn0=
Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuU2hlbGwuVjEvLk93bEJvdC55YW1sIiwiaCI6IjZhOGQzOWZlY2U2ZTI3ZTk3NGYxOTJjNTdiZTIwMzYwOWRlYTkxNzEifQ==
Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuU3Bhbm5lci5BZG1pbi5EYXRhYmFzZS5WMS8uT3dsQm90LnlhbWwiLCJoIjoiNmE4ZDM5ZmVjZTZlMjdlOTc0ZjE5MmM1N2JlMjAzNjA5ZGVhOTE3MSJ9
Copy-Tag: eyJwIjoiYXBp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3f58
Show file tree
Hide file tree
Showing 1,961 changed files with 585,864 additions and 0 deletions.
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.Cloud.ServiceDirectory.V1Beta1/Google.Cloud.ServiceDirectory.V1Beta1.csproj" />
<PackageReference Include="System.Linq.Async" Version="6.0.1" />
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3" PrivateAssets="All" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
// 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 servicedirectory_v1beta1_generated_LookupService_ResolveService_async]
using Google.Cloud.ServiceDirectory.V1Beta1;
using System.Threading.Tasks;

public sealed partial class GeneratedLookupServiceClientSnippets
{
/// <summary>Snippet for ResolveServiceAsync</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 ResolveServiceRequestObjectAsync()
{
// Create client
LookupServiceClient lookupServiceClient = await LookupServiceClient.CreateAsync();
// Initialize request argument(s)
ResolveServiceRequest request = new ResolveServiceRequest
{
ServiceName = ServiceName.FromProjectLocationNamespaceService("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]"),
MaxEndpoints = 0,
EndpointFilter = "",
};
// Make the request
ResolveServiceResponse response = await lookupServiceClient.ResolveServiceAsync(request);
}
}
// [END servicedirectory_v1beta1_generated_LookupService_ResolveService_async]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
// 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 servicedirectory_v1beta1_generated_LookupService_ResolveService_sync]
using Google.Cloud.ServiceDirectory.V1Beta1;

public sealed partial class GeneratedLookupServiceClientSnippets
{
/// <summary>Snippet for ResolveService</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 ResolveServiceRequestObject()
{
// Create client
LookupServiceClient lookupServiceClient = LookupServiceClient.Create();
// Initialize request argument(s)
ResolveServiceRequest request = new ResolveServiceRequest
{
ServiceName = ServiceName.FromProjectLocationNamespaceService("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]"),
MaxEndpoints = 0,
EndpointFilter = "",
};
// Make the request
ResolveServiceResponse response = lookupServiceClient.ResolveService(request);
}
}
// [END servicedirectory_v1beta1_generated_LookupService_ResolveService_sync]
}
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 servicedirectory_v1beta1_generated_RegistrationService_CreateEndpoint_async_flattened]
using Google.Cloud.ServiceDirectory.V1Beta1;
using System.Threading.Tasks;

public sealed partial class GeneratedRegistrationServiceClientSnippets
{
/// <summary>Snippet for CreateEndpointAsync</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 CreateEndpointAsync()
{
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/namespaces/[NAMESPACE]/services/[SERVICE]";
Endpoint endpoint = new Endpoint();
string endpointId = "";
// Make the request
Endpoint response = await registrationServiceClient.CreateEndpointAsync(parent, endpoint, endpointId);
}
}
// [END servicedirectory_v1beta1_generated_RegistrationService_CreateEndpoint_async_flattened]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
// 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 servicedirectory_v1beta1_generated_RegistrationService_CreateEndpoint_async]
using Google.Cloud.ServiceDirectory.V1Beta1;
using System.Threading.Tasks;

public sealed partial class GeneratedRegistrationServiceClientSnippets
{
/// <summary>Snippet for CreateEndpointAsync</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 CreateEndpointRequestObjectAsync()
{
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
CreateEndpointRequest request = new CreateEndpointRequest
{
ParentAsServiceName = ServiceName.FromProjectLocationNamespaceService("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]"),
EndpointId = "",
Endpoint = new Endpoint(),
};
// Make the request
Endpoint response = await registrationServiceClient.CreateEndpointAsync(request);
}
}
// [END servicedirectory_v1beta1_generated_RegistrationService_CreateEndpoint_async]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
// 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 servicedirectory_v1beta1_generated_RegistrationService_CreateEndpoint_sync]
using Google.Cloud.ServiceDirectory.V1Beta1;

public sealed partial class GeneratedRegistrationServiceClientSnippets
{
/// <summary>Snippet for CreateEndpoint</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 CreateEndpointRequestObject()
{
// Create client
RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.Create();
// Initialize request argument(s)
CreateEndpointRequest request = new CreateEndpointRequest
{
ParentAsServiceName = ServiceName.FromProjectLocationNamespaceService("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]"),
EndpointId = "",
Endpoint = new Endpoint(),
};
// Make the request
Endpoint response = registrationServiceClient.CreateEndpoint(request);
}
}
// [END servicedirectory_v1beta1_generated_RegistrationService_CreateEndpoint_sync]
}
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 servicedirectory_v1beta1_generated_RegistrationService_CreateEndpoint_async_flattened_resourceNames]
using Google.Cloud.ServiceDirectory.V1Beta1;
using System.Threading.Tasks;

public sealed partial class GeneratedRegistrationServiceClientSnippets
{
/// <summary>Snippet for CreateEndpointAsync</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 CreateEndpointResourceNamesAsync()
{
// Create client
RegistrationServiceClient registrationServiceClient = await RegistrationServiceClient.CreateAsync();
// Initialize request argument(s)
ServiceName parent = ServiceName.FromProjectLocationNamespaceService("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]");
Endpoint endpoint = new Endpoint();
string endpointId = "";
// Make the request
Endpoint response = await registrationServiceClient.CreateEndpointAsync(parent, endpoint, endpointId);
}
}
// [END servicedirectory_v1beta1_generated_RegistrationService_CreateEndpoint_async_flattened_resourceNames]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
// 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 servicedirectory_v1beta1_generated_RegistrationService_CreateEndpoint_sync_flattened_resourceNames]
using Google.Cloud.ServiceDirectory.V1Beta1;

public sealed partial class GeneratedRegistrationServiceClientSnippets
{
/// <summary>Snippet for CreateEndpoint</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 CreateEndpointResourceNames()
{
// Create client
RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.Create();
// Initialize request argument(s)
ServiceName parent = ServiceName.FromProjectLocationNamespaceService("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]");
Endpoint endpoint = new Endpoint();
string endpointId = "";
// Make the request
Endpoint response = registrationServiceClient.CreateEndpoint(parent, endpoint, endpointId);
}
}
// [END servicedirectory_v1beta1_generated_RegistrationService_CreateEndpoint_sync_flattened_resourceNames]
}

0 comments on commit e0d3f58

Please sign in to comment.