Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"apis/Google.Cloud.AIPlatform.V1/Google.Cloud.AIPlatform.V1/**",
"apis/Google.Cloud.ApiHub.V1/Google.Cloud.ApiHub.V1/**",
"apis/Google.Cloud.ApiKeys.V2/Google.Cloud.ApiKeys.V2/**",
"apis/Google.Cloud.ApiRegistry.V1Beta/Google.Cloud.ApiRegistry.V1Beta/**",
"apis/Google.Cloud.ApigeeConnect.V1/Google.Cloud.ApigeeConnect.V1/**",
"apis/Google.Cloud.ApigeeRegistry.V1/Google.Cloud.ApigeeRegistry.V1/**",
"apis/Google.Cloud.AppEngine.Logging.V1/Google.Cloud.AppEngine.Logging.V1/**",
Expand Down
8 changes: 8 additions & 0 deletions apis/Google.Cloud.ApiRegistry.V1Beta/.repo-metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"distribution_name": "Google.Cloud.ApiRegistry.V1Beta",
"release_level": "unreleased",
"client_documentation": "https://cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiRegistry.V1Beta/latest",
"library_type": "GAPIC_AUTO",
"language": "dotnet",
"api_shortname": "cloudapiregistry"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
// Copyright 2025 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 cloudapiregistry_v1beta_generated_CloudApiRegistry_GetMcpServer_async_flattened]
using Google.Cloud.ApiRegistry.V1Beta;
using System.Threading.Tasks;

public sealed partial class GeneratedCloudApiRegistryClientSnippets
{
/// <summary>Snippet for GetMcpServerAsync</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 GetMcpServerAsync()
{
// Create client
CloudApiRegistryClient cloudApiRegistryClient = await CloudApiRegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apiNamespaces/[API_NAMESPACE]/mcpServers/[MCP_SERVER]";
// Make the request
McpServer response = await cloudApiRegistryClient.GetMcpServerAsync(name);
}
}
// [END cloudapiregistry_v1beta_generated_CloudApiRegistry_GetMcpServer_async_flattened]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
// Copyright 2025 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 cloudapiregistry_v1beta_generated_CloudApiRegistry_GetMcpServer_async]
using Google.Cloud.ApiRegistry.V1Beta;
using System.Threading.Tasks;

public sealed partial class GeneratedCloudApiRegistryClientSnippets
{
/// <summary>Snippet for GetMcpServerAsync</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 GetMcpServerRequestObjectAsync()
{
// Create client
CloudApiRegistryClient cloudApiRegistryClient = await CloudApiRegistryClient.CreateAsync();
// Initialize request argument(s)
GetMcpServerRequest request = new GetMcpServerRequest
{
McpServerName = McpServerName.FromProjectLocationApiNamespaceMcpServer("[PROJECT]", "[LOCATION]", "[API_NAMESPACE]", "[MCP_SERVER]"),
};
// Make the request
McpServer response = await cloudApiRegistryClient.GetMcpServerAsync(request);
}
}
// [END cloudapiregistry_v1beta_generated_CloudApiRegistry_GetMcpServer_async]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
// Copyright 2025 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 cloudapiregistry_v1beta_generated_CloudApiRegistry_GetMcpServer_sync]
using Google.Cloud.ApiRegistry.V1Beta;

public sealed partial class GeneratedCloudApiRegistryClientSnippets
{
/// <summary>Snippet for GetMcpServer</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 GetMcpServerRequestObject()
{
// Create client
CloudApiRegistryClient cloudApiRegistryClient = CloudApiRegistryClient.Create();
// Initialize request argument(s)
GetMcpServerRequest request = new GetMcpServerRequest
{
McpServerName = McpServerName.FromProjectLocationApiNamespaceMcpServer("[PROJECT]", "[LOCATION]", "[API_NAMESPACE]", "[MCP_SERVER]"),
};
// Make the request
McpServer response = cloudApiRegistryClient.GetMcpServer(request);
}
}
// [END cloudapiregistry_v1beta_generated_CloudApiRegistry_GetMcpServer_sync]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
// Copyright 2025 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 cloudapiregistry_v1beta_generated_CloudApiRegistry_GetMcpServer_async_flattened_resourceNames]
using Google.Cloud.ApiRegistry.V1Beta;
using System.Threading.Tasks;

public sealed partial class GeneratedCloudApiRegistryClientSnippets
{
/// <summary>Snippet for GetMcpServerAsync</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 GetMcpServerResourceNamesAsync()
{
// Create client
CloudApiRegistryClient cloudApiRegistryClient = await CloudApiRegistryClient.CreateAsync();
// Initialize request argument(s)
McpServerName name = McpServerName.FromProjectLocationApiNamespaceMcpServer("[PROJECT]", "[LOCATION]", "[API_NAMESPACE]", "[MCP_SERVER]");
// Make the request
McpServer response = await cloudApiRegistryClient.GetMcpServerAsync(name);
}
}
// [END cloudapiregistry_v1beta_generated_CloudApiRegistry_GetMcpServer_async_flattened_resourceNames]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
// Copyright 2025 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 cloudapiregistry_v1beta_generated_CloudApiRegistry_GetMcpServer_sync_flattened_resourceNames]
using Google.Cloud.ApiRegistry.V1Beta;

public sealed partial class GeneratedCloudApiRegistryClientSnippets
{
/// <summary>Snippet for GetMcpServer</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 GetMcpServerResourceNames()
{
// Create client
CloudApiRegistryClient cloudApiRegistryClient = CloudApiRegistryClient.Create();
// Initialize request argument(s)
McpServerName name = McpServerName.FromProjectLocationApiNamespaceMcpServer("[PROJECT]", "[LOCATION]", "[API_NAMESPACE]", "[MCP_SERVER]");
// Make the request
McpServer response = cloudApiRegistryClient.GetMcpServer(name);
}
}
// [END cloudapiregistry_v1beta_generated_CloudApiRegistry_GetMcpServer_sync_flattened_resourceNames]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
// Copyright 2025 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 cloudapiregistry_v1beta_generated_CloudApiRegistry_GetMcpServer_sync_flattened]
using Google.Cloud.ApiRegistry.V1Beta;

public sealed partial class GeneratedCloudApiRegistryClientSnippets
{
/// <summary>Snippet for GetMcpServer</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 GetMcpServer()
{
// Create client
CloudApiRegistryClient cloudApiRegistryClient = CloudApiRegistryClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apiNamespaces/[API_NAMESPACE]/mcpServers/[MCP_SERVER]";
// Make the request
McpServer response = cloudApiRegistryClient.GetMcpServer(name);
}
}
// [END cloudapiregistry_v1beta_generated_CloudApiRegistry_GetMcpServer_sync_flattened]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
// Copyright 2025 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 cloudapiregistry_v1beta_generated_CloudApiRegistry_GetMcpTool_async_flattened]
using Google.Cloud.ApiRegistry.V1Beta;
using System.Threading.Tasks;

public sealed partial class GeneratedCloudApiRegistryClientSnippets
{
/// <summary>Snippet for GetMcpToolAsync</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 GetMcpToolAsync()
{
// Create client
CloudApiRegistryClient cloudApiRegistryClient = await CloudApiRegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apiNamespaces/[API_NAMESPACE]/mcpServers/[MCP_SERVER]/mcpTools/[MCP_TOOL]";
// Make the request
McpTool response = await cloudApiRegistryClient.GetMcpToolAsync(name);
}
}
// [END cloudapiregistry_v1beta_generated_CloudApiRegistry_GetMcpTool_async_flattened]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
// Copyright 2025 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 cloudapiregistry_v1beta_generated_CloudApiRegistry_GetMcpTool_async]
using Google.Cloud.ApiRegistry.V1Beta;
using System.Threading.Tasks;

public sealed partial class GeneratedCloudApiRegistryClientSnippets
{
/// <summary>Snippet for GetMcpToolAsync</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 GetMcpToolRequestObjectAsync()
{
// Create client
CloudApiRegistryClient cloudApiRegistryClient = await CloudApiRegistryClient.CreateAsync();
// Initialize request argument(s)
GetMcpToolRequest request = new GetMcpToolRequest
{
McpToolName = McpToolName.FromProjectLocationApiNamespaceMcpServerMcpTool("[PROJECT]", "[LOCATION]", "[API_NAMESPACE]", "[MCP_SERVER]", "[MCP_TOOL]"),
};
// Make the request
McpTool response = await cloudApiRegistryClient.GetMcpToolAsync(request);
}
}
// [END cloudapiregistry_v1beta_generated_CloudApiRegistry_GetMcpTool_async]
}
Loading