API hub v1 API - Class RuntimeProjectAttachmentServiceClient (1.0.0-beta02)

public abstract class RuntimeProjectAttachmentServiceClient

Reference documentation and code samples for the API hub v1 API class RuntimeProjectAttachmentServiceClient.

RuntimeProjectAttachmentService client wrapper, for convenient use.

Inheritance

object > RuntimeProjectAttachmentServiceClient

Namespace

Google.Cloud.ApiHub.V1

Assembly

Google.Cloud.ApiHub.V1.dll

Remarks

This service is used for managing the runtime project attachments.

Properties

DefaultEndpoint

public static string DefaultEndpoint { get; }

The default endpoint for the RuntimeProjectAttachmentService service, which is a host of "apihub.googleapis.com" and a port of 443.

Property Value
Type Description
string

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default RuntimeProjectAttachmentService scopes.

Property Value
Type Description
IReadOnlyListstring
Remarks

The default RuntimeProjectAttachmentService scopes are:

GrpcClient

public virtual RuntimeProjectAttachmentService.RuntimeProjectAttachmentServiceClient GrpcClient { get; }

The underlying gRPC RuntimeProjectAttachmentService client

Property Value
Type Description
RuntimeProjectAttachmentServiceRuntimeProjectAttachmentServiceClient

LocationsClient

public virtual LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
Type Description
LocationsClient

ServiceMetadata

public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

Property Value
Type Description
ServiceMetadata

Methods

Create()

public static RuntimeProjectAttachmentServiceClient Create()

Synchronously creates a RuntimeProjectAttachmentServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use RuntimeProjectAttachmentServiceClientBuilder.

Returns
Type Description
RuntimeProjectAttachmentServiceClient

The created RuntimeProjectAttachmentServiceClient.

CreateAsync(CancellationToken)

public static Task<RuntimeProjectAttachmentServiceClient> CreateAsync(CancellationToken cancellationToken = default)

Asynchronously creates a RuntimeProjectAttachmentServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use RuntimeProjectAttachmentServiceClientBuilder.

Parameter
Name Description
cancellationToken CancellationToken

The CancellationToken to use while creating the client.

Returns
Type Description
TaskRuntimeProjectAttachmentServiceClient

The task representing the created RuntimeProjectAttachmentServiceClient.

CreateRuntimeProjectAttachment(LocationName, RuntimeProjectAttachment, string, CallSettings)

public virtual RuntimeProjectAttachment CreateRuntimeProjectAttachment(LocationName parent, RuntimeProjectAttachment runtimeProjectAttachment, string runtimeProjectAttachmentId, CallSettings callSettings = null)

Attaches a runtime project to the host project.

Parameters
Name Description
parent LocationName

Required. The parent resource for the Runtime Project Attachment. Format: projects/{project}/locations/{location}

runtimeProjectAttachment RuntimeProjectAttachment

Required. The Runtime Project Attachment to create.

runtimeProjectAttachmentId string

Required. The ID to use for the Runtime Project Attachment, which will become the final component of the Runtime Project Attachment's name. The ID must be the same as the project ID of the Google cloud project specified in the runtime_project_attachment.runtime_project field.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
RuntimeProjectAttachment

The RPC response.

Example
// Create client
RuntimeProjectAttachmentServiceClient runtimeProjectAttachmentServiceClient = RuntimeProjectAttachmentServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
RuntimeProjectAttachment runtimeProjectAttachment = new RuntimeProjectAttachment();
string runtimeProjectAttachmentId = "";
// Make the request
RuntimeProjectAttachment response = runtimeProjectAttachmentServiceClient.CreateRuntimeProjectAttachment(parent, runtimeProjectAttachment, runtimeProjectAttachmentId);

CreateRuntimeProjectAttachment(CreateRuntimeProjectAttachmentRequest, CallSettings)

public virtual RuntimeProjectAttachment CreateRuntimeProjectAttachment(CreateRuntimeProjectAttachmentRequest request, CallSettings callSettings = null)

Attaches a runtime project to the host project.

Parameters
Name Description
request CreateRuntimeProjectAttachmentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
RuntimeProjectAttachment

The RPC response.

Example
// Create client
RuntimeProjectAttachmentServiceClient runtimeProjectAttachmentServiceClient = RuntimeProjectAttachmentServiceClient.Create();
// Initialize request argument(s)
CreateRuntimeProjectAttachmentRequest request = new CreateRuntimeProjectAttachmentRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    RuntimeProjectAttachmentId = "",
    RuntimeProjectAttachment = new RuntimeProjectAttachment(),
};
// Make the request
RuntimeProjectAttachment response = runtimeProjectAttachmentServiceClient.CreateRuntimeProjectAttachment(request);

CreateRuntimeProjectAttachment(string, RuntimeProjectAttachment, string, CallSettings)

public virtual RuntimeProjectAttachment CreateRuntimeProjectAttachment(string parent, RuntimeProjectAttachment runtimeProjectAttachment, string runtimeProjectAttachmentId, CallSettings callSettings = null)

Attaches a runtime project to the host project.

Parameters
Name Description
parent string

Required. The parent resource for the Runtime Project Attachment. Format: projects/{project}/locations/{location}

runtimeProjectAttachment RuntimeProjectAttachment

Required. The Runtime Project Attachment to create.

runtimeProjectAttachmentId string

Required. The ID to use for the Runtime Project Attachment, which will become the final component of the Runtime Project Attachment's name. The ID must be the same as the project ID of the Google cloud project specified in the runtime_project_attachment.runtime_project field.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
RuntimeProjectAttachment

The RPC response.

Example
// Create client
RuntimeProjectAttachmentServiceClient runtimeProjectAttachmentServiceClient = RuntimeProjectAttachmentServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
RuntimeProjectAttachment runtimeProjectAttachment = new RuntimeProjectAttachment();
string runtimeProjectAttachmentId = "";
// Make the request
RuntimeProjectAttachment response = runtimeProjectAttachmentServiceClient.CreateRuntimeProjectAttachment(parent, runtimeProjectAttachment, runtimeProjectAttachmentId);

CreateRuntimeProjectAttachmentAsync(LocationName, RuntimeProjectAttachment, string, CallSettings)

public virtual Task<RuntimeProjectAttachment> CreateRuntimeProjectAttachmentAsync(LocationName parent, RuntimeProjectAttachment runtimeProjectAttachment, string runtimeProjectAttachmentId, CallSettings callSettings = null)

Attaches a runtime project to the host project.

Parameters
Name Description
parent LocationName

Required. The parent resource for the Runtime Project Attachment. Format: projects/{project}/locations/{location}

runtimeProjectAttachment RuntimeProjectAttachment

Required. The Runtime Project Attachment to create.

runtimeProjectAttachmentId string

Required. The ID to use for the Runtime Project Attachment, which will become the final component of the Runtime Project Attachment's name. The ID must be the same as the project ID of the Google cloud project specified in the runtime_project_attachment.runtime_project field.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskRuntimeProjectAttachment

A Task containing the RPC response.

Example
// Create client
RuntimeProjectAttachmentServiceClient runtimeProjectAttachmentServiceClient = await RuntimeProjectAttachmentServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
RuntimeProjectAttachment runtimeProjectAttachment = new RuntimeProjectAttachment();
string runtimeProjectAttachmentId = "";
// Make the request
RuntimeProjectAttachment response = await runtimeProjectAttachmentServiceClient.CreateRuntimeProjectAttachmentAsync(parent, runtimeProjectAttachment, runtimeProjectAttachmentId);

CreateRuntimeProjectAttachmentAsync(LocationName, RuntimeProjectAttachment, string, CancellationToken)

public virtual Task<RuntimeProjectAttachment> CreateRuntimeProjectAttachmentAsync(LocationName parent, RuntimeProjectAttachment runtimeProjectAttachment, string runtimeProjectAttachmentId, CancellationToken cancellationToken)

Attaches a runtime project to the host project.

Parameters
Name Description
parent LocationName

Required. The parent resource for the Runtime Project Attachment. Format: projects/{project}/locations/{location}

runtimeProjectAttachment RuntimeProjectAttachment

Required. The Runtime Project Attachment to create.

runtimeProjectAttachmentId string

Required. The ID to use for the Runtime Project Attachment, which will become the final component of the Runtime Project Attachment's name. The ID must be the same as the project ID of the Google cloud project specified in the runtime_project_attachment.runtime_project field.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskRuntimeProjectAttachment

A Task containing the RPC response.

Example
// Create client
RuntimeProjectAttachmentServiceClient runtimeProjectAttachmentServiceClient = await RuntimeProjectAttachmentServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
RuntimeProjectAttachment runtimeProjectAttachment = new RuntimeProjectAttachment();
string runtimeProjectAttachmentId = "";
// Make the request
RuntimeProjectAttachment response = await runtimeProjectAttachmentServiceClient.CreateRuntimeProjectAttachmentAsync(parent, runtimeProjectAttachment, runtimeProjectAttachmentId);

CreateRuntimeProjectAttachmentAsync(CreateRuntimeProjectAttachmentRequest, CallSettings)

public virtual Task<RuntimeProjectAttachment> CreateRuntimeProjectAttachmentAsync(CreateRuntimeProjectAttachmentRequest request, CallSettings callSettings = null)

Attaches a runtime project to the host project.

Parameters
Name Description
request CreateRuntimeProjectAttachmentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskRuntimeProjectAttachment

A Task containing the RPC response.

Example
// Create client
RuntimeProjectAttachmentServiceClient runtimeProjectAttachmentServiceClient = await RuntimeProjectAttachmentServiceClient.CreateAsync();
// Initialize request argument(s)
CreateRuntimeProjectAttachmentRequest request = new CreateRuntimeProjectAttachmentRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    RuntimeProjectAttachmentId = "",
    RuntimeProjectAttachment = new RuntimeProjectAttachment(),
};
// Make the request
RuntimeProjectAttachment response = await runtimeProjectAttachmentServiceClient.CreateRuntimeProjectAttachmentAsync(request);

CreateRuntimeProjectAttachmentAsync(CreateRuntimeProjectAttachmentRequest, CancellationToken)

public virtual Task<RuntimeProjectAttachment> CreateRuntimeProjectAttachmentAsync(CreateRuntimeProjectAttachmentRequest request, CancellationToken cancellationToken)

Attaches a runtime project to the host project.

Parameters
Name Description
request CreateRuntimeProjectAttachmentRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskRuntimeProjectAttachment

A Task containing the RPC response.

Example
// Create client
RuntimeProjectAttachmentServiceClient runtimeProjectAttachmentServiceClient = await RuntimeProjectAttachmentServiceClient.CreateAsync();
// Initialize request argument(s)
CreateRuntimeProjectAttachmentRequest request = new CreateRuntimeProjectAttachmentRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    RuntimeProjectAttachmentId = "",
    RuntimeProjectAttachment = new RuntimeProjectAttachment(),
};
// Make the request
RuntimeProjectAttachment response = await runtimeProjectAttachmentServiceClient.CreateRuntimeProjectAttachmentAsync(request);

CreateRuntimeProjectAttachmentAsync(string, RuntimeProjectAttachment, string, CallSettings)

public virtual Task<RuntimeProjectAttachment> CreateRuntimeProjectAttachmentAsync(string parent, RuntimeProjectAttachment runtimeProjectAttachment, string runtimeProjectAttachmentId, CallSettings callSettings = null)

Attaches a runtime project to the host project.

Parameters
Name Description
parent string

Required. The parent resource for the Runtime Project Attachment. Format: projects/{project}/locations/{location}

runtimeProjectAttachment RuntimeProjectAttachment

Required. The Runtime Project Attachment to create.

runtimeProjectAttachmentId string

Required. The ID to use for the Runtime Project Attachment, which will become the final component of the Runtime Project Attachment's name. The ID must be the same as the project ID of the Google cloud project specified in the runtime_project_attachment.runtime_project field.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskRuntimeProjectAttachment

A Task containing the RPC response.

Example
// Create client
RuntimeProjectAttachmentServiceClient runtimeProjectAttachmentServiceClient = await RuntimeProjectAttachmentServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
RuntimeProjectAttachment runtimeProjectAttachment = new RuntimeProjectAttachment();
string runtimeProjectAttachmentId = "";
// Make the request
RuntimeProjectAttachment response = await runtimeProjectAttachmentServiceClient.CreateRuntimeProjectAttachmentAsync(parent, runtimeProjectAttachment, runtimeProjectAttachmentId);

CreateRuntimeProjectAttachmentAsync(string, RuntimeProjectAttachment, string, CancellationToken)

public virtual Task<RuntimeProjectAttachment> CreateRuntimeProjectAttachmentAsync(string parent, RuntimeProjectAttachment runtimeProjectAttachment, string runtimeProjectAttachmentId, CancellationToken cancellationToken)

Attaches a runtime project to the host project.

Parameters
Name Description
parent string

Required. The parent resource for the Runtime Project Attachment. Format: projects/{project}/locations/{location}

runtimeProjectAttachment RuntimeProjectAttachment

Required. The Runtime Project Attachment to create.

runtimeProjectAttachmentId string

Required. The ID to use for the Runtime Project Attachment, which will become the final component of the Runtime Project Attachment's name. The ID must be the same as the project ID of the Google cloud project specified in the runtime_project_attachment.runtime_project field.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskRuntimeProjectAttachment

A Task containing the RPC response.

Example
// Create client
RuntimeProjectAttachmentServiceClient runtimeProjectAttachmentServiceClient = await RuntimeProjectAttachmentServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
RuntimeProjectAttachment runtimeProjectAttachment = new RuntimeProjectAttachment();
string runtimeProjectAttachmentId = "";
// Make the request
RuntimeProjectAttachment response = await runtimeProjectAttachmentServiceClient.CreateRuntimeProjectAttachmentAsync(parent, runtimeProjectAttachment, runtimeProjectAttachmentId);

DeleteRuntimeProjectAttachment(DeleteRuntimeProjectAttachmentRequest, CallSettings)

public virtual void DeleteRuntimeProjectAttachment(DeleteRuntimeProjectAttachmentRequest request, CallSettings callSettings = null)

Delete a runtime project attachment in the API Hub. This call will detach the runtime project from the host project.

Parameters
Name Description
request DeleteRuntimeProjectAttachmentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
RuntimeProjectAttachmentServiceClient runtimeProjectAttachmentServiceClient = RuntimeProjectAttachmentServiceClient.Create();
// Initialize request argument(s)
DeleteRuntimeProjectAttachmentRequest request = new DeleteRuntimeProjectAttachmentRequest
{
    RuntimeProjectAttachmentName = RuntimeProjectAttachmentName.FromProjectLocationRuntimeProjectAttachment("[PROJECT]", "[LOCATION]", "[RUNTIME_PROJECT_ATTACHMENT]"),
};
// Make the request
runtimeProjectAttachmentServiceClient.DeleteRuntimeProjectAttachment(request);

DeleteRuntimeProjectAttachment(RuntimeProjectAttachmentName, CallSettings)

public virtual void DeleteRuntimeProjectAttachment(RuntimeProjectAttachmentName name, CallSettings callSettings = null)

Delete a runtime project attachment in the API Hub. This call will detach the runtime project from the host project.

Parameters
Name Description
name RuntimeProjectAttachmentName

Required. The name of the Runtime Project Attachment to delete. Format: projects/{project}/locations/{location}/runtimeProjectAttachments/{runtime_project_attachment}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
RuntimeProjectAttachmentServiceClient runtimeProjectAttachmentServiceClient = RuntimeProjectAttachmentServiceClient.Create();
// Initialize request argument(s)
RuntimeProjectAttachmentName name = RuntimeProjectAttachmentName.FromProjectLocationRuntimeProjectAttachment("[PROJECT]", "[LOCATION]", "[RUNTIME_PROJECT_ATTACHMENT]");
// Make the request
runtimeProjectAttachmentServiceClient.DeleteRuntimeProjectAttachment(name);

DeleteRuntimeProjectAttachment(string, CallSettings)

public virtual void DeleteRuntimeProjectAttachment(string name, CallSettings callSettings = null)

Delete a runtime project attachment in the API Hub. This call will detach the runtime project from the host project.

Parameters
Name Description
name string

Required. The name of the Runtime Project Attachment to delete. Format: projects/{project}/locations/{location}/runtimeProjectAttachments/{runtime_project_attachment}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
RuntimeProjectAttachmentServiceClient runtimeProjectAttachmentServiceClient = RuntimeProjectAttachmentServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/runtimeProjectAttachments/[RUNTIME_PROJECT_ATTACHMENT]";
// Make the request
runtimeProjectAttachmentServiceClient.DeleteRuntimeProjectAttachment(name);

DeleteRuntimeProjectAttachmentAsync(DeleteRuntimeProjectAttachmentRequest, CallSettings)

public virtual Task DeleteRuntimeProjectAttachmentAsync(DeleteRuntimeProjectAttachmentRequest request, CallSettings callSettings = null)

Delete a runtime project attachment in the API Hub. This call will detach the runtime project from the host project.

Parameters
Name Description
request DeleteRuntimeProjectAttachmentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
RuntimeProjectAttachmentServiceClient runtimeProjectAttachmentServiceClient = await RuntimeProjectAttachmentServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteRuntimeProjectAttachmentRequest request = new DeleteRuntimeProjectAttachmentRequest
{
    RuntimeProjectAttachmentName = RuntimeProjectAttachmentName.FromProjectLocationRuntimeProjectAttachment("[PROJECT]", "[LOCATION]", "[RUNTIME_PROJECT_ATTACHMENT]"),
};
// Make the request
await runtimeProjectAttachmentServiceClient.DeleteRuntimeProjectAttachmentAsync(request);

DeleteRuntimeProjectAttachmentAsync(DeleteRuntimeProjectAttachmentRequest, CancellationToken)

public virtual Task DeleteRuntimeProjectAttachmentAsync(DeleteRuntimeProjectAttachmentRequest request, CancellationToken cancellationToken)

Delete a runtime project attachment in the API Hub. This call will detach the runtime project from the host project.

Parameters
Name Description
request DeleteRuntimeProjectAttachmentRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
RuntimeProjectAttachmentServiceClient runtimeProjectAttachmentServiceClient = await RuntimeProjectAttachmentServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteRuntimeProjectAttachmentRequest request = new DeleteRuntimeProjectAttachmentRequest
{
    RuntimeProjectAttachmentName = RuntimeProjectAttachmentName.FromProjectLocationRuntimeProjectAttachment("[PROJECT]", "[LOCATION]", "[RUNTIME_PROJECT_ATTACHMENT]"),
};
// Make the request
await runtimeProjectAttachmentServiceClient.DeleteRuntimeProjectAttachmentAsync(request);

DeleteRuntimeProjectAttachmentAsync(RuntimeProjectAttachmentName, CallSettings)

public virtual Task DeleteRuntimeProjectAttachmentAsync(RuntimeProjectAttachmentName name, CallSettings callSettings = null)

Delete a runtime project attachment in the API Hub. This call will detach the runtime project from the host project.

Parameters
Name Description
name RuntimeProjectAttachmentName

Required. The name of the Runtime Project Attachment to delete. Format: projects/{project}/locations/{location}/runtimeProjectAttachments/{runtime_project_attachment}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
RuntimeProjectAttachmentServiceClient runtimeProjectAttachmentServiceClient = await RuntimeProjectAttachmentServiceClient.CreateAsync();
// Initialize request argument(s)
RuntimeProjectAttachmentName name = RuntimeProjectAttachmentName.FromProjectLocationRuntimeProjectAttachment("[PROJECT]", "[LOCATION]", "[RUNTIME_PROJECT_ATTACHMENT]");
// Make the request
await runtimeProjectAttachmentServiceClient.DeleteRuntimeProjectAttachmentAsync(name);

DeleteRuntimeProjectAttachmentAsync(RuntimeProjectAttachmentName, CancellationToken)

public virtual Task DeleteRuntimeProjectAttachmentAsync(RuntimeProjectAttachmentName name, CancellationToken cancellationToken)

Delete a runtime project attachment in the API Hub. This call will detach the runtime project from the host project.

Parameters
Name Description
name RuntimeProjectAttachmentName

Required. The name of the Runtime Project Attachment to delete. Format: projects/{project}/locations/{location}/runtimeProjectAttachments/{runtime_project_attachment}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
RuntimeProjectAttachmentServiceClient runtimeProjectAttachmentServiceClient = await RuntimeProjectAttachmentServiceClient.CreateAsync();
// Initialize request argument(s)
RuntimeProjectAttachmentName name = RuntimeProjectAttachmentName.FromProjectLocationRuntimeProjectAttachment("[PROJECT]", "[LOCATION]", "[RUNTIME_PROJECT_ATTACHMENT]");
// Make the request
await runtimeProjectAttachmentServiceClient.DeleteRuntimeProjectAttachmentAsync(name);

DeleteRuntimeProjectAttachmentAsync(string, CallSettings)

public virtual Task DeleteRuntimeProjectAttachmentAsync(string name, CallSettings callSettings = null)

Delete a runtime project attachment in the API Hub. This call will detach the runtime project from the host project.

Parameters
Name Description
name string

Required. The name of the Runtime Project Attachment to delete. Format: projects/{project}/locations/{location}/runtimeProjectAttachments/{runtime_project_attachment}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
RuntimeProjectAttachmentServiceClient runtimeProjectAttachmentServiceClient = await RuntimeProjectAttachmentServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/runtimeProjectAttachments/[RUNTIME_PROJECT_ATTACHMENT]";
// Make the request
await runtimeProjectAttachmentServiceClient.DeleteRuntimeProjectAttachmentAsync(name);

DeleteRuntimeProjectAttachmentAsync(string, CancellationToken)

public virtual Task DeleteRuntimeProjectAttachmentAsync(string name, CancellationToken cancellationToken)

Delete a runtime project attachment in the API Hub. This call will detach the runtime project from the host project.

Parameters
Name Description
name string

Required. The name of the Runtime Project Attachment to delete. Format: projects/{project}/locations/{location}/runtimeProjectAttachments/{runtime_project_attachment}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
RuntimeProjectAttachmentServiceClient runtimeProjectAttachmentServiceClient = await RuntimeProjectAttachmentServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/runtimeProjectAttachments/[RUNTIME_PROJECT_ATTACHMENT]";
// Make the request
await runtimeProjectAttachmentServiceClient.DeleteRuntimeProjectAttachmentAsync(name);

GetRuntimeProjectAttachment(GetRuntimeProjectAttachmentRequest, CallSettings)

public virtual RuntimeProjectAttachment GetRuntimeProjectAttachment(GetRuntimeProjectAttachmentRequest request, CallSettings callSettings = null)

Gets a runtime project attachment.

Parameters
Name Description
request GetRuntimeProjectAttachmentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
RuntimeProjectAttachment

The RPC response.

Example
// Create client
RuntimeProjectAttachmentServiceClient runtimeProjectAttachmentServiceClient = RuntimeProjectAttachmentServiceClient.Create();
// Initialize request argument(s)
GetRuntimeProjectAttachmentRequest request = new GetRuntimeProjectAttachmentRequest
{
    RuntimeProjectAttachmentName = RuntimeProjectAttachmentName.FromProjectLocationRuntimeProjectAttachment("[PROJECT]", "[LOCATION]", "[RUNTIME_PROJECT_ATTACHMENT]"),
};
// Make the request
RuntimeProjectAttachment response = runtimeProjectAttachmentServiceClient.GetRuntimeProjectAttachment(request);

GetRuntimeProjectAttachment(RuntimeProjectAttachmentName, CallSettings)

public virtual RuntimeProjectAttachment GetRuntimeProjectAttachment(RuntimeProjectAttachmentName name, CallSettings callSettings = null)

Gets a runtime project attachment.

Parameters
Name Description
name RuntimeProjectAttachmentName

Required. The name of the API resource to retrieve. Format: projects/{project}/locations/{location}/runtimeProjectAttachments/{runtime_project_attachment}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
RuntimeProjectAttachment

The RPC response.

Example
// Create client
RuntimeProjectAttachmentServiceClient runtimeProjectAttachmentServiceClient = RuntimeProjectAttachmentServiceClient.Create();
// Initialize request argument(s)
RuntimeProjectAttachmentName name = RuntimeProjectAttachmentName.FromProjectLocationRuntimeProjectAttachment("[PROJECT]", "[LOCATION]", "[RUNTIME_PROJECT_ATTACHMENT]");
// Make the request
RuntimeProjectAttachment response = runtimeProjectAttachmentServiceClient.GetRuntimeProjectAttachment(name);

GetRuntimeProjectAttachment(string, CallSettings)

public virtual RuntimeProjectAttachment GetRuntimeProjectAttachment(string name, CallSettings callSettings = null)

Gets a runtime project attachment.

Parameters
Name Description
name string

Required. The name of the API resource to retrieve. Format: projects/{project}/locations/{location}/runtimeProjectAttachments/{runtime_project_attachment}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
RuntimeProjectAttachment

The RPC response.

Example
// Create client
RuntimeProjectAttachmentServiceClient runtimeProjectAttachmentServiceClient = RuntimeProjectAttachmentServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/runtimeProjectAttachments/[RUNTIME_PROJECT_ATTACHMENT]";
// Make the request
RuntimeProjectAttachment response = runtimeProjectAttachmentServiceClient.GetRuntimeProjectAttachment(name);

GetRuntimeProjectAttachmentAsync(GetRuntimeProjectAttachmentRequest, CallSettings)

public virtual Task<RuntimeProjectAttachment> GetRuntimeProjectAttachmentAsync(GetRuntimeProjectAttachmentRequest request, CallSettings callSettings = null)

Gets a runtime project attachment.

Parameters
Name Description
request GetRuntimeProjectAttachmentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskRuntimeProjectAttachment

A Task containing the RPC response.

Example
// Create client
RuntimeProjectAttachmentServiceClient runtimeProjectAttachmentServiceClient = await RuntimeProjectAttachmentServiceClient.CreateAsync();
// Initialize request argument(s)
GetRuntimeProjectAttachmentRequest request = new GetRuntimeProjectAttachmentRequest
{
    RuntimeProjectAttachmentName = RuntimeProjectAttachmentName.FromProjectLocationRuntimeProjectAttachment("[PROJECT]", "[LOCATION]", "[RUNTIME_PROJECT_ATTACHMENT]"),
};
// Make the request
RuntimeProjectAttachment response = await runtimeProjectAttachmentServiceClient.GetRuntimeProjectAttachmentAsync(request);

GetRuntimeProjectAttachmentAsync(GetRuntimeProjectAttachmentRequest, CancellationToken)

public virtual Task<RuntimeProjectAttachment> GetRuntimeProjectAttachmentAsync(GetRuntimeProjectAttachmentRequest request, CancellationToken cancellationToken)

Gets a runtime project attachment.

Parameters
Name Description
request GetRuntimeProjectAttachmentRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskRuntimeProjectAttachment

A Task containing the RPC response.

Example
// Create client
RuntimeProjectAttachmentServiceClient runtimeProjectAttachmentServiceClient = await RuntimeProjectAttachmentServiceClient.CreateAsync();
// Initialize request argument(s)
GetRuntimeProjectAttachmentRequest request = new GetRuntimeProjectAttachmentRequest
{
    RuntimeProjectAttachmentName = RuntimeProjectAttachmentName.FromProjectLocationRuntimeProjectAttachment("[PROJECT]", "[LOCATION]", "[RUNTIME_PROJECT_ATTACHMENT]"),
};
// Make the request
RuntimeProjectAttachment response = await runtimeProjectAttachmentServiceClient.GetRuntimeProjectAttachmentAsync(request);

GetRuntimeProjectAttachmentAsync(RuntimeProjectAttachmentName, CallSettings)

public virtual Task<RuntimeProjectAttachment> GetRuntimeProjectAttachmentAsync(RuntimeProjectAttachmentName name, CallSettings callSettings = null)

Gets a runtime project attachment.

Parameters
Name Description
name RuntimeProjectAttachmentName

Required. The name of the API resource to retrieve. Format: projects/{project}/locations/{location}/runtimeProjectAttachments/{runtime_project_attachment}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskRuntimeProjectAttachment

A Task containing the RPC response.

Example
// Create client
RuntimeProjectAttachmentServiceClient runtimeProjectAttachmentServiceClient = await RuntimeProjectAttachmentServiceClient.CreateAsync();
// Initialize request argument(s)
RuntimeProjectAttachmentName name = RuntimeProjectAttachmentName.FromProjectLocationRuntimeProjectAttachment("[PROJECT]", "[LOCATION]", "[RUNTIME_PROJECT_ATTACHMENT]");
// Make the request
RuntimeProjectAttachment response = await runtimeProjectAttachmentServiceClient.GetRuntimeProjectAttachmentAsync(name);

GetRuntimeProjectAttachmentAsync(RuntimeProjectAttachmentName, CancellationToken)

public virtual Task<RuntimeProjectAttachment> GetRuntimeProjectAttachmentAsync(RuntimeProjectAttachmentName name, CancellationToken cancellationToken)

Gets a runtime project attachment.

Parameters
Name Description
name RuntimeProjectAttachmentName

Required. The name of the API resource to retrieve. Format: projects/{project}/locations/{location}/runtimeProjectAttachments/{runtime_project_attachment}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskRuntimeProjectAttachment

A Task containing the RPC response.

Example
// Create client
RuntimeProjectAttachmentServiceClient runtimeProjectAttachmentServiceClient = await RuntimeProjectAttachmentServiceClient.CreateAsync();
// Initialize request argument(s)
RuntimeProjectAttachmentName name = RuntimeProjectAttachmentName.FromProjectLocationRuntimeProjectAttachment("[PROJECT]", "[LOCATION]", "[RUNTIME_PROJECT_ATTACHMENT]");
// Make the request
RuntimeProjectAttachment response = await runtimeProjectAttachmentServiceClient.GetRuntimeProjectAttachmentAsync(name);

GetRuntimeProjectAttachmentAsync(string, CallSettings)

public virtual Task<RuntimeProjectAttachment> GetRuntimeProjectAttachmentAsync(string name, CallSettings callSettings = null)

Gets a runtime project attachment.

Parameters
Name Description
name string

Required. The name of the API resource to retrieve. Format: projects/{project}/locations/{location}/runtimeProjectAttachments/{runtime_project_attachment}

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskRuntimeProjectAttachment

A Task containing the RPC response.

Example
// Create client
RuntimeProjectAttachmentServiceClient runtimeProjectAttachmentServiceClient = await RuntimeProjectAttachmentServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/runtimeProjectAttachments/[RUNTIME_PROJECT_ATTACHMENT]";
// Make the request
RuntimeProjectAttachment response = await runtimeProjectAttachmentServiceClient.GetRuntimeProjectAttachmentAsync(name);

GetRuntimeProjectAttachmentAsync(string, CancellationToken)

public virtual Task<RuntimeProjectAttachment> GetRuntimeProjectAttachmentAsync(string name, CancellationToken cancellationToken)

Gets a runtime project attachment.

Parameters
Name Description
name string

Required. The name of the API resource to retrieve. Format: projects/{project}/locations/{location}/runtimeProjectAttachments/{runtime_project_attachment}

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskRuntimeProjectAttachment

A Task containing the RPC response.

Example
// Create client
RuntimeProjectAttachmentServiceClient runtimeProjectAttachmentServiceClient = await RuntimeProjectAttachmentServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/runtimeProjectAttachments/[RUNTIME_PROJECT_ATTACHMENT]";
// Make the request
RuntimeProjectAttachment response = await runtimeProjectAttachmentServiceClient.GetRuntimeProjectAttachmentAsync(name);

ListRuntimeProjectAttachments(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListRuntimeProjectAttachmentsResponse, RuntimeProjectAttachment> ListRuntimeProjectAttachments(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List runtime projects attached to the host project.

Parameters
Name Description
parent LocationName

Required. The parent, which owns this collection of runtime project attachments. Format: projects/{project}/locations/{location}

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListRuntimeProjectAttachmentsResponseRuntimeProjectAttachment

A pageable sequence of RuntimeProjectAttachment resources.

Example
// Create client
RuntimeProjectAttachmentServiceClient runtimeProjectAttachmentServiceClient = RuntimeProjectAttachmentServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListRuntimeProjectAttachmentsResponse, RuntimeProjectAttachment> response = runtimeProjectAttachmentServiceClient.ListRuntimeProjectAttachments(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (RuntimeProjectAttachment item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListRuntimeProjectAttachmentsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (RuntimeProjectAttachment item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<RuntimeProjectAttachment> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (RuntimeProjectAttachment item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListRuntimeProjectAttachments(ListRuntimeProjectAttachmentsRequest, CallSettings)

public virtual PagedEnumerable<ListRuntimeProjectAttachmentsResponse, RuntimeProjectAttachment> ListRuntimeProjectAttachments(ListRuntimeProjectAttachmentsRequest request, CallSettings callSettings = null)

List runtime projects attached to the host project.

Parameters
Name Description
request ListRuntimeProjectAttachmentsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListRuntimeProjectAttachmentsResponseRuntimeProjectAttachment

A pageable sequence of RuntimeProjectAttachment resources.

Example
// Create client
RuntimeProjectAttachmentServiceClient runtimeProjectAttachmentServiceClient = RuntimeProjectAttachmentServiceClient.Create();
// Initialize request argument(s)
ListRuntimeProjectAttachmentsRequest request = new ListRuntimeProjectAttachmentsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListRuntimeProjectAttachmentsResponse, RuntimeProjectAttachment> response = runtimeProjectAttachmentServiceClient.ListRuntimeProjectAttachments(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (RuntimeProjectAttachment item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListRuntimeProjectAttachmentsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (RuntimeProjectAttachment item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<RuntimeProjectAttachment> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (RuntimeProjectAttachment item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListRuntimeProjectAttachments(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListRuntimeProjectAttachmentsResponse, RuntimeProjectAttachment> ListRuntimeProjectAttachments(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List runtime projects attached to the host project.

Parameters
Name Description
parent string

Required. The parent, which owns this collection of runtime project attachments. Format: projects/{project}/locations/{location}

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListRuntimeProjectAttachmentsResponseRuntimeProjectAttachment

A pageable sequence of RuntimeProjectAttachment resources.

Example
// Create client
RuntimeProjectAttachmentServiceClient runtimeProjectAttachmentServiceClient = RuntimeProjectAttachmentServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListRuntimeProjectAttachmentsResponse, RuntimeProjectAttachment> response = runtimeProjectAttachmentServiceClient.ListRuntimeProjectAttachments(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (RuntimeProjectAttachment item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListRuntimeProjectAttachmentsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (RuntimeProjectAttachment item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<RuntimeProjectAttachment> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (RuntimeProjectAttachment item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListRuntimeProjectAttachmentsAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListRuntimeProjectAttachmentsResponse, RuntimeProjectAttachment> ListRuntimeProjectAttachmentsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List runtime projects attached to the host project.

Parameters
Name Description
parent LocationName

Required. The parent, which owns this collection of runtime project attachments. Format: projects/{project}/locations/{location}

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListRuntimeProjectAttachmentsResponseRuntimeProjectAttachment

A pageable asynchronous sequence of RuntimeProjectAttachment resources.

Example
// Create client
RuntimeProjectAttachmentServiceClient runtimeProjectAttachmentServiceClient = await RuntimeProjectAttachmentServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListRuntimeProjectAttachmentsResponse, RuntimeProjectAttachment> response = runtimeProjectAttachmentServiceClient.ListRuntimeProjectAttachmentsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((RuntimeProjectAttachment item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListRuntimeProjectAttachmentsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (RuntimeProjectAttachment item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<RuntimeProjectAttachment> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (RuntimeProjectAttachment item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListRuntimeProjectAttachmentsAsync(ListRuntimeProjectAttachmentsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListRuntimeProjectAttachmentsResponse, RuntimeProjectAttachment> ListRuntimeProjectAttachmentsAsync(ListRuntimeProjectAttachmentsRequest request, CallSettings callSettings = null)

List runtime projects attached to the host project.

Parameters
Name Description
request ListRuntimeProjectAttachmentsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListRuntimeProjectAttachmentsResponseRuntimeProjectAttachment

A pageable asynchronous sequence of RuntimeProjectAttachment resources.

Example
// Create client
RuntimeProjectAttachmentServiceClient runtimeProjectAttachmentServiceClient = await RuntimeProjectAttachmentServiceClient.CreateAsync();
// Initialize request argument(s)
ListRuntimeProjectAttachmentsRequest request = new ListRuntimeProjectAttachmentsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListRuntimeProjectAttachmentsResponse, RuntimeProjectAttachment> response = runtimeProjectAttachmentServiceClient.ListRuntimeProjectAttachmentsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((RuntimeProjectAttachment item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListRuntimeProjectAttachmentsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (RuntimeProjectAttachment item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<RuntimeProjectAttachment> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (RuntimeProjectAttachment item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListRuntimeProjectAttachmentsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListRuntimeProjectAttachmentsResponse, RuntimeProjectAttachment> ListRuntimeProjectAttachmentsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List runtime projects attached to the host project.

Parameters
Name Description
parent string

Required. The parent, which owns this collection of runtime project attachments. Format: projects/{project}/locations/{location}

pageToken string

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSize int

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListRuntimeProjectAttachmentsResponseRuntimeProjectAttachment

A pageable asynchronous sequence of RuntimeProjectAttachment resources.

Example
// Create client
RuntimeProjectAttachmentServiceClient runtimeProjectAttachmentServiceClient = await RuntimeProjectAttachmentServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListRuntimeProjectAttachmentsResponse, RuntimeProjectAttachment> response = runtimeProjectAttachmentServiceClient.ListRuntimeProjectAttachmentsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((RuntimeProjectAttachment item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListRuntimeProjectAttachmentsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (RuntimeProjectAttachment item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<RuntimeProjectAttachment> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (RuntimeProjectAttachment item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

LookupRuntimeProjectAttachment(LocationName, CallSettings)

public virtual LookupRuntimeProjectAttachmentResponse LookupRuntimeProjectAttachment(LocationName name, CallSettings callSettings = null)

Look up a runtime project attachment. This API can be called in the context of any project.

Parameters
Name Description
name LocationName

Required. Runtime project ID to look up runtime project attachment for. Lookup happens across all regions. Expected format: projects/{project}/locations/{location}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
LookupRuntimeProjectAttachmentResponse

The RPC response.

Example
// Create client
RuntimeProjectAttachmentServiceClient runtimeProjectAttachmentServiceClient = RuntimeProjectAttachmentServiceClient.Create();
// Initialize request argument(s)
LocationName name = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
LookupRuntimeProjectAttachmentResponse response = runtimeProjectAttachmentServiceClient.LookupRuntimeProjectAttachment(name);

LookupRuntimeProjectAttachment(LookupRuntimeProjectAttachmentRequest, CallSettings)

public virtual LookupRuntimeProjectAttachmentResponse LookupRuntimeProjectAttachment(LookupRuntimeProjectAttachmentRequest request, CallSettings callSettings = null)

Look up a runtime project attachment. This API can be called in the context of any project.

Parameters
Name Description
request LookupRuntimeProjectAttachmentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
LookupRuntimeProjectAttachmentResponse

The RPC response.

Example
// Create client
RuntimeProjectAttachmentServiceClient runtimeProjectAttachmentServiceClient = RuntimeProjectAttachmentServiceClient.Create();
// Initialize request argument(s)
LookupRuntimeProjectAttachmentRequest request = new LookupRuntimeProjectAttachmentRequest
{
    LocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
LookupRuntimeProjectAttachmentResponse response = runtimeProjectAttachmentServiceClient.LookupRuntimeProjectAttachment(request);

LookupRuntimeProjectAttachment(string, CallSettings)

public virtual LookupRuntimeProjectAttachmentResponse LookupRuntimeProjectAttachment(string name, CallSettings callSettings = null)

Look up a runtime project attachment. This API can be called in the context of any project.

Parameters
Name Description
name string

Required. Runtime project ID to look up runtime project attachment for. Lookup happens across all regions. Expected format: projects/{project}/locations/{location}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
LookupRuntimeProjectAttachmentResponse

The RPC response.

Example
// Create client
RuntimeProjectAttachmentServiceClient runtimeProjectAttachmentServiceClient = RuntimeProjectAttachmentServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
LookupRuntimeProjectAttachmentResponse response = runtimeProjectAttachmentServiceClient.LookupRuntimeProjectAttachment(name);

LookupRuntimeProjectAttachmentAsync(LocationName, CallSettings)

public virtual Task<LookupRuntimeProjectAttachmentResponse> LookupRuntimeProjectAttachmentAsync(LocationName name, CallSettings callSettings = null)

Look up a runtime project attachment. This API can be called in the context of any project.

Parameters
Name Description
name LocationName

Required. Runtime project ID to look up runtime project attachment for. Lookup happens across all regions. Expected format: projects/{project}/locations/{location}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskLookupRuntimeProjectAttachmentResponse

A Task containing the RPC response.

Example
// Create client
RuntimeProjectAttachmentServiceClient runtimeProjectAttachmentServiceClient = await RuntimeProjectAttachmentServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName name = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
LookupRuntimeProjectAttachmentResponse response = await runtimeProjectAttachmentServiceClient.LookupRuntimeProjectAttachmentAsync(name);

LookupRuntimeProjectAttachmentAsync(LocationName, CancellationToken)

public virtual Task<LookupRuntimeProjectAttachmentResponse> LookupRuntimeProjectAttachmentAsync(LocationName name, CancellationToken cancellationToken)

Look up a runtime project attachment. This API can be called in the context of any project.

Parameters
Name Description
name LocationName

Required. Runtime project ID to look up runtime project attachment for. Lookup happens across all regions. Expected format: projects/{project}/locations/{location}.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskLookupRuntimeProjectAttachmentResponse

A Task containing the RPC response.

Example
// Create client
RuntimeProjectAttachmentServiceClient runtimeProjectAttachmentServiceClient = await RuntimeProjectAttachmentServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName name = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
LookupRuntimeProjectAttachmentResponse response = await runtimeProjectAttachmentServiceClient.LookupRuntimeProjectAttachmentAsync(name);

LookupRuntimeProjectAttachmentAsync(LookupRuntimeProjectAttachmentRequest, CallSettings)

public virtual Task<LookupRuntimeProjectAttachmentResponse> LookupRuntimeProjectAttachmentAsync(LookupRuntimeProjectAttachmentRequest request, CallSettings callSettings = null)

Look up a runtime project attachment. This API can be called in the context of any project.

Parameters
Name Description
request LookupRuntimeProjectAttachmentRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskLookupRuntimeProjectAttachmentResponse

A Task containing the RPC response.

Example
// Create client
RuntimeProjectAttachmentServiceClient runtimeProjectAttachmentServiceClient = await RuntimeProjectAttachmentServiceClient.CreateAsync();
// Initialize request argument(s)
LookupRuntimeProjectAttachmentRequest request = new LookupRuntimeProjectAttachmentRequest
{
    LocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
LookupRuntimeProjectAttachmentResponse response = await runtimeProjectAttachmentServiceClient.LookupRuntimeProjectAttachmentAsync(request);

LookupRuntimeProjectAttachmentAsync(LookupRuntimeProjectAttachmentRequest, CancellationToken)

public virtual Task<LookupRuntimeProjectAttachmentResponse> LookupRuntimeProjectAttachmentAsync(LookupRuntimeProjectAttachmentRequest request, CancellationToken cancellationToken)

Look up a runtime project attachment. This API can be called in the context of any project.

Parameters
Name Description
request LookupRuntimeProjectAttachmentRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskLookupRuntimeProjectAttachmentResponse

A Task containing the RPC response.

Example
// Create client
RuntimeProjectAttachmentServiceClient runtimeProjectAttachmentServiceClient = await RuntimeProjectAttachmentServiceClient.CreateAsync();
// Initialize request argument(s)
LookupRuntimeProjectAttachmentRequest request = new LookupRuntimeProjectAttachmentRequest
{
    LocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
LookupRuntimeProjectAttachmentResponse response = await runtimeProjectAttachmentServiceClient.LookupRuntimeProjectAttachmentAsync(request);

LookupRuntimeProjectAttachmentAsync(string, CallSettings)

public virtual Task<LookupRuntimeProjectAttachmentResponse> LookupRuntimeProjectAttachmentAsync(string name, CallSettings callSettings = null)

Look up a runtime project attachment. This API can be called in the context of any project.

Parameters
Name Description
name string

Required. Runtime project ID to look up runtime project attachment for. Lookup happens across all regions. Expected format: projects/{project}/locations/{location}.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskLookupRuntimeProjectAttachmentResponse

A Task containing the RPC response.

Example
// Create client
RuntimeProjectAttachmentServiceClient runtimeProjectAttachmentServiceClient = await RuntimeProjectAttachmentServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
LookupRuntimeProjectAttachmentResponse response = await runtimeProjectAttachmentServiceClient.LookupRuntimeProjectAttachmentAsync(name);

LookupRuntimeProjectAttachmentAsync(string, CancellationToken)

public virtual Task<LookupRuntimeProjectAttachmentResponse> LookupRuntimeProjectAttachmentAsync(string name, CancellationToken cancellationToken)

Look up a runtime project attachment. This API can be called in the context of any project.

Parameters
Name Description
name string

Required. Runtime project ID to look up runtime project attachment for. Lookup happens across all regions. Expected format: projects/{project}/locations/{location}.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskLookupRuntimeProjectAttachmentResponse

A Task containing the RPC response.

Example
// Create client
RuntimeProjectAttachmentServiceClient runtimeProjectAttachmentServiceClient = await RuntimeProjectAttachmentServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
LookupRuntimeProjectAttachmentResponse response = await runtimeProjectAttachmentServiceClient.LookupRuntimeProjectAttachmentAsync(name);

ShutdownDefaultChannelsAsync()

public static Task ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.

Returns
Type Description
Task

A task representing the asynchronous shutdown operation.

Remarks

After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.