Apigee Registry v1 API - Class RegistryClient (1.0.0-beta07)

public abstract class RegistryClient

Reference documentation and code samples for the Apigee Registry v1 API class RegistryClient.

Registry client wrapper, for convenient use.

Inheritance

object > RegistryClient

Derived Types

Namespace

Google.Cloud.ApigeeRegistry.V1

Assembly

Google.Cloud.ApigeeRegistry.V1.dll

Remarks

The Registry service allows teams to manage descriptions of APIs.

Properties

DefaultEndpoint

public static string DefaultEndpoint { get; }

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

Property Value
Type Description
string

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default Registry scopes.

Property Value
Type Description
IReadOnlyListstring
Remarks

The default Registry scopes are:

GrpcClient

public virtual Registry.RegistryClient GrpcClient { get; }

The underlying gRPC Registry client

Property Value
Type Description
RegistryRegistryClient

IAMPolicyClient

public virtual IAMPolicyClient IAMPolicyClient { get; }

The IAMPolicyClient associated with this client.

Property Value
Type Description
IAMPolicyClient

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 RegistryClient Create()

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

Returns
Type Description
RegistryClient

The created RegistryClient.

CreateApi(LocationName, Api, string, CallSettings)

public virtual Api CreateApi(LocationName parent, Api api, string apiId, CallSettings callSettings = null)

Creates a specified API.

Parameters
Name Description
parent LocationName

Required. The parent, which owns this collection of APIs. Format: projects/*/locations/*

api Api

Required. The API to create.

apiId string

Required. The ID to use for the API, which will become the final component of the API's resource name.

This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.

Following AIP-162, IDs must not have the form of a UUID.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Api

The RPC response.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
gcav::Api api = new gcav::Api();
string apiId = "";
// Make the request
gcav::Api response = registryClient.CreateApi(parent, api, apiId);

CreateApi(CreateApiRequest, CallSettings)

public virtual Api CreateApi(CreateApiRequest request, CallSettings callSettings = null)

Creates a specified API.

Parameters
Name Description
request CreateApiRequest

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
Api

The RPC response.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::CreateApiRequest request = new gcav::CreateApiRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Api = new gcav::Api(),
    ApiId = "",
};
// Make the request
gcav::Api response = registryClient.CreateApi(request);

CreateApi(string, Api, string, CallSettings)

public virtual Api CreateApi(string parent, Api api, string apiId, CallSettings callSettings = null)

Creates a specified API.

Parameters
Name Description
parent string

Required. The parent, which owns this collection of APIs. Format: projects/*/locations/*

api Api

Required. The API to create.

apiId string

Required. The ID to use for the API, which will become the final component of the API's resource name.

This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.

Following AIP-162, IDs must not have the form of a UUID.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Api

The RPC response.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
gcav::Api api = new gcav::Api();
string apiId = "";
// Make the request
gcav::Api response = registryClient.CreateApi(parent, api, apiId);

CreateApiAsync(LocationName, Api, string, CallSettings)

public virtual Task<Api> CreateApiAsync(LocationName parent, Api api, string apiId, CallSettings callSettings = null)

Creates a specified API.

Parameters
Name Description
parent LocationName

Required. The parent, which owns this collection of APIs. Format: projects/*/locations/*

api Api

Required. The API to create.

apiId string

Required. The ID to use for the API, which will become the final component of the API's resource name.

This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.

Following AIP-162, IDs must not have the form of a UUID.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskApi

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
gcav::Api api = new gcav::Api();
string apiId = "";
// Make the request
gcav::Api response = await registryClient.CreateApiAsync(parent, api, apiId);

CreateApiAsync(LocationName, Api, string, CancellationToken)

public virtual Task<Api> CreateApiAsync(LocationName parent, Api api, string apiId, CancellationToken cancellationToken)

Creates a specified API.

Parameters
Name Description
parent LocationName

Required. The parent, which owns this collection of APIs. Format: projects/*/locations/*

api Api

Required. The API to create.

apiId string

Required. The ID to use for the API, which will become the final component of the API's resource name.

This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.

Following AIP-162, IDs must not have the form of a UUID.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskApi

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
gcav::Api api = new gcav::Api();
string apiId = "";
// Make the request
gcav::Api response = await registryClient.CreateApiAsync(parent, api, apiId);

CreateApiAsync(CreateApiRequest, CallSettings)

public virtual Task<Api> CreateApiAsync(CreateApiRequest request, CallSettings callSettings = null)

Creates a specified API.

Parameters
Name Description
request CreateApiRequest

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
TaskApi

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::CreateApiRequest request = new gcav::CreateApiRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Api = new gcav::Api(),
    ApiId = "",
};
// Make the request
gcav::Api response = await registryClient.CreateApiAsync(request);

CreateApiAsync(CreateApiRequest, CancellationToken)

public virtual Task<Api> CreateApiAsync(CreateApiRequest request, CancellationToken cancellationToken)

Creates a specified API.

Parameters
Name Description
request CreateApiRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskApi

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::CreateApiRequest request = new gcav::CreateApiRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Api = new gcav::Api(),
    ApiId = "",
};
// Make the request
gcav::Api response = await registryClient.CreateApiAsync(request);

CreateApiAsync(string, Api, string, CallSettings)

public virtual Task<Api> CreateApiAsync(string parent, Api api, string apiId, CallSettings callSettings = null)

Creates a specified API.

Parameters
Name Description
parent string

Required. The parent, which owns this collection of APIs. Format: projects/*/locations/*

api Api

Required. The API to create.

apiId string

Required. The ID to use for the API, which will become the final component of the API's resource name.

This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.

Following AIP-162, IDs must not have the form of a UUID.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskApi

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
gcav::Api api = new gcav::Api();
string apiId = "";
// Make the request
gcav::Api response = await registryClient.CreateApiAsync(parent, api, apiId);

CreateApiAsync(string, Api, string, CancellationToken)

public virtual Task<Api> CreateApiAsync(string parent, Api api, string apiId, CancellationToken cancellationToken)

Creates a specified API.

Parameters
Name Description
parent string

Required. The parent, which owns this collection of APIs. Format: projects/*/locations/*

api Api

Required. The API to create.

apiId string

Required. The ID to use for the API, which will become the final component of the API's resource name.

This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.

Following AIP-162, IDs must not have the form of a UUID.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskApi

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
gcav::Api api = new gcav::Api();
string apiId = "";
// Make the request
gcav::Api response = await registryClient.CreateApiAsync(parent, api, apiId);

CreateApiDeployment(ApiName, ApiDeployment, string, CallSettings)

public virtual ApiDeployment CreateApiDeployment(ApiName parent, ApiDeployment apiDeployment, string apiDeploymentId, CallSettings callSettings = null)

Creates a specified deployment.

Parameters
Name Description
parent ApiName

Required. The parent, which owns this collection of deployments. Format: projects/*/locations/*/apis/*

apiDeployment ApiDeployment

Required. The deployment to create.

apiDeploymentId string

Required. The ID to use for the deployment, which will become the final component of the deployment's resource name.

This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.

Following AIP-162, IDs must not have the form of a UUID.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ApiDeployment

The RPC response.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::ApiName parent = gcav::ApiName.FromProjectLocationApi("[PROJECT]", "[LOCATION]", "[API]");
gcav::ApiDeployment apiDeployment = new gcav::ApiDeployment();
string apiDeploymentId = "";
// Make the request
gcav::ApiDeployment response = registryClient.CreateApiDeployment(parent, apiDeployment, apiDeploymentId);

CreateApiDeployment(CreateApiDeploymentRequest, CallSettings)

public virtual ApiDeployment CreateApiDeployment(CreateApiDeploymentRequest request, CallSettings callSettings = null)

Creates a specified deployment.

Parameters
Name Description
request CreateApiDeploymentRequest

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
ApiDeployment

The RPC response.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::CreateApiDeploymentRequest request = new gcav::CreateApiDeploymentRequest
{
    ParentAsApiName = gcav::ApiName.FromProjectLocationApi("[PROJECT]", "[LOCATION]", "[API]"),
    ApiDeployment = new gcav::ApiDeployment(),
    ApiDeploymentId = "",
};
// Make the request
gcav::ApiDeployment response = registryClient.CreateApiDeployment(request);

CreateApiDeployment(string, ApiDeployment, string, CallSettings)

public virtual ApiDeployment CreateApiDeployment(string parent, ApiDeployment apiDeployment, string apiDeploymentId, CallSettings callSettings = null)

Creates a specified deployment.

Parameters
Name Description
parent string

Required. The parent, which owns this collection of deployments. Format: projects/*/locations/*/apis/*

apiDeployment ApiDeployment

Required. The deployment to create.

apiDeploymentId string

Required. The ID to use for the deployment, which will become the final component of the deployment's resource name.

This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.

Following AIP-162, IDs must not have the form of a UUID.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ApiDeployment

The RPC response.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/apis/[API]";
gcav::ApiDeployment apiDeployment = new gcav::ApiDeployment();
string apiDeploymentId = "";
// Make the request
gcav::ApiDeployment response = registryClient.CreateApiDeployment(parent, apiDeployment, apiDeploymentId);

CreateApiDeploymentAsync(ApiName, ApiDeployment, string, CallSettings)

public virtual Task<ApiDeployment> CreateApiDeploymentAsync(ApiName parent, ApiDeployment apiDeployment, string apiDeploymentId, CallSettings callSettings = null)

Creates a specified deployment.

Parameters
Name Description
parent ApiName

Required. The parent, which owns this collection of deployments. Format: projects/*/locations/*/apis/*

apiDeployment ApiDeployment

Required. The deployment to create.

apiDeploymentId string

Required. The ID to use for the deployment, which will become the final component of the deployment's resource name.

This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.

Following AIP-162, IDs must not have the form of a UUID.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskApiDeployment

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ApiName parent = gcav::ApiName.FromProjectLocationApi("[PROJECT]", "[LOCATION]", "[API]");
gcav::ApiDeployment apiDeployment = new gcav::ApiDeployment();
string apiDeploymentId = "";
// Make the request
gcav::ApiDeployment response = await registryClient.CreateApiDeploymentAsync(parent, apiDeployment, apiDeploymentId);

CreateApiDeploymentAsync(ApiName, ApiDeployment, string, CancellationToken)

public virtual Task<ApiDeployment> CreateApiDeploymentAsync(ApiName parent, ApiDeployment apiDeployment, string apiDeploymentId, CancellationToken cancellationToken)

Creates a specified deployment.

Parameters
Name Description
parent ApiName

Required. The parent, which owns this collection of deployments. Format: projects/*/locations/*/apis/*

apiDeployment ApiDeployment

Required. The deployment to create.

apiDeploymentId string

Required. The ID to use for the deployment, which will become the final component of the deployment's resource name.

This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.

Following AIP-162, IDs must not have the form of a UUID.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskApiDeployment

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ApiName parent = gcav::ApiName.FromProjectLocationApi("[PROJECT]", "[LOCATION]", "[API]");
gcav::ApiDeployment apiDeployment = new gcav::ApiDeployment();
string apiDeploymentId = "";
// Make the request
gcav::ApiDeployment response = await registryClient.CreateApiDeploymentAsync(parent, apiDeployment, apiDeploymentId);

CreateApiDeploymentAsync(CreateApiDeploymentRequest, CallSettings)

public virtual Task<ApiDeployment> CreateApiDeploymentAsync(CreateApiDeploymentRequest request, CallSettings callSettings = null)

Creates a specified deployment.

Parameters
Name Description
request CreateApiDeploymentRequest

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
TaskApiDeployment

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::CreateApiDeploymentRequest request = new gcav::CreateApiDeploymentRequest
{
    ParentAsApiName = gcav::ApiName.FromProjectLocationApi("[PROJECT]", "[LOCATION]", "[API]"),
    ApiDeployment = new gcav::ApiDeployment(),
    ApiDeploymentId = "",
};
// Make the request
gcav::ApiDeployment response = await registryClient.CreateApiDeploymentAsync(request);

CreateApiDeploymentAsync(CreateApiDeploymentRequest, CancellationToken)

public virtual Task<ApiDeployment> CreateApiDeploymentAsync(CreateApiDeploymentRequest request, CancellationToken cancellationToken)

Creates a specified deployment.

Parameters
Name Description
request CreateApiDeploymentRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskApiDeployment

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::CreateApiDeploymentRequest request = new gcav::CreateApiDeploymentRequest
{
    ParentAsApiName = gcav::ApiName.FromProjectLocationApi("[PROJECT]", "[LOCATION]", "[API]"),
    ApiDeployment = new gcav::ApiDeployment(),
    ApiDeploymentId = "",
};
// Make the request
gcav::ApiDeployment response = await registryClient.CreateApiDeploymentAsync(request);

CreateApiDeploymentAsync(string, ApiDeployment, string, CallSettings)

public virtual Task<ApiDeployment> CreateApiDeploymentAsync(string parent, ApiDeployment apiDeployment, string apiDeploymentId, CallSettings callSettings = null)

Creates a specified deployment.

Parameters
Name Description
parent string

Required. The parent, which owns this collection of deployments. Format: projects/*/locations/*/apis/*

apiDeployment ApiDeployment

Required. The deployment to create.

apiDeploymentId string

Required. The ID to use for the deployment, which will become the final component of the deployment's resource name.

This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.

Following AIP-162, IDs must not have the form of a UUID.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskApiDeployment

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/apis/[API]";
gcav::ApiDeployment apiDeployment = new gcav::ApiDeployment();
string apiDeploymentId = "";
// Make the request
gcav::ApiDeployment response = await registryClient.CreateApiDeploymentAsync(parent, apiDeployment, apiDeploymentId);

CreateApiDeploymentAsync(string, ApiDeployment, string, CancellationToken)

public virtual Task<ApiDeployment> CreateApiDeploymentAsync(string parent, ApiDeployment apiDeployment, string apiDeploymentId, CancellationToken cancellationToken)

Creates a specified deployment.

Parameters
Name Description
parent string

Required. The parent, which owns this collection of deployments. Format: projects/*/locations/*/apis/*

apiDeployment ApiDeployment

Required. The deployment to create.

apiDeploymentId string

Required. The ID to use for the deployment, which will become the final component of the deployment's resource name.

This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.

Following AIP-162, IDs must not have the form of a UUID.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskApiDeployment

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/apis/[API]";
gcav::ApiDeployment apiDeployment = new gcav::ApiDeployment();
string apiDeploymentId = "";
// Make the request
gcav::ApiDeployment response = await registryClient.CreateApiDeploymentAsync(parent, apiDeployment, apiDeploymentId);

CreateApiSpec(ApiVersionName, ApiSpec, string, CallSettings)

public virtual ApiSpec CreateApiSpec(ApiVersionName parent, ApiSpec apiSpec, string apiSpecId, CallSettings callSettings = null)

Creates a specified spec.

Parameters
Name Description
parent ApiVersionName

Required. The parent, which owns this collection of specs. Format: projects/*/locations/*/apis/*/versions/*

apiSpec ApiSpec

Required. The spec to create.

apiSpecId string

Required. The ID to use for the spec, which will become the final component of the spec's resource name.

This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.

Following AIP-162, IDs must not have the form of a UUID.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ApiSpec

The RPC response.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::ApiVersionName parent = gcav::ApiVersionName.FromProjectLocationApiVersion("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]");
gcav::ApiSpec apiSpec = new gcav::ApiSpec();
string apiSpecId = "";
// Make the request
gcav::ApiSpec response = registryClient.CreateApiSpec(parent, apiSpec, apiSpecId);

CreateApiSpec(CreateApiSpecRequest, CallSettings)

public virtual ApiSpec CreateApiSpec(CreateApiSpecRequest request, CallSettings callSettings = null)

Creates a specified spec.

Parameters
Name Description
request CreateApiSpecRequest

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
ApiSpec

The RPC response.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::CreateApiSpecRequest request = new gcav::CreateApiSpecRequest
{
    ParentAsApiVersionName = gcav::ApiVersionName.FromProjectLocationApiVersion("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]"),
    ApiSpec = new gcav::ApiSpec(),
    ApiSpecId = "",
};
// Make the request
gcav::ApiSpec response = registryClient.CreateApiSpec(request);

CreateApiSpec(string, ApiSpec, string, CallSettings)

public virtual ApiSpec CreateApiSpec(string parent, ApiSpec apiSpec, string apiSpecId, CallSettings callSettings = null)

Creates a specified spec.

Parameters
Name Description
parent string

Required. The parent, which owns this collection of specs. Format: projects/*/locations/*/apis/*/versions/*

apiSpec ApiSpec

Required. The spec to create.

apiSpecId string

Required. The ID to use for the spec, which will become the final component of the spec's resource name.

This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.

Following AIP-162, IDs must not have the form of a UUID.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ApiSpec

The RPC response.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/apis/[API]/versions/[VERSION]";
gcav::ApiSpec apiSpec = new gcav::ApiSpec();
string apiSpecId = "";
// Make the request
gcav::ApiSpec response = registryClient.CreateApiSpec(parent, apiSpec, apiSpecId);

CreateApiSpecAsync(ApiVersionName, ApiSpec, string, CallSettings)

public virtual Task<ApiSpec> CreateApiSpecAsync(ApiVersionName parent, ApiSpec apiSpec, string apiSpecId, CallSettings callSettings = null)

Creates a specified spec.

Parameters
Name Description
parent ApiVersionName

Required. The parent, which owns this collection of specs. Format: projects/*/locations/*/apis/*/versions/*

apiSpec ApiSpec

Required. The spec to create.

apiSpecId string

Required. The ID to use for the spec, which will become the final component of the spec's resource name.

This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.

Following AIP-162, IDs must not have the form of a UUID.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskApiSpec

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ApiVersionName parent = gcav::ApiVersionName.FromProjectLocationApiVersion("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]");
gcav::ApiSpec apiSpec = new gcav::ApiSpec();
string apiSpecId = "";
// Make the request
gcav::ApiSpec response = await registryClient.CreateApiSpecAsync(parent, apiSpec, apiSpecId);

CreateApiSpecAsync(ApiVersionName, ApiSpec, string, CancellationToken)

public virtual Task<ApiSpec> CreateApiSpecAsync(ApiVersionName parent, ApiSpec apiSpec, string apiSpecId, CancellationToken cancellationToken)

Creates a specified spec.

Parameters
Name Description
parent ApiVersionName

Required. The parent, which owns this collection of specs. Format: projects/*/locations/*/apis/*/versions/*

apiSpec ApiSpec

Required. The spec to create.

apiSpecId string

Required. The ID to use for the spec, which will become the final component of the spec's resource name.

This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.

Following AIP-162, IDs must not have the form of a UUID.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskApiSpec

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ApiVersionName parent = gcav::ApiVersionName.FromProjectLocationApiVersion("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]");
gcav::ApiSpec apiSpec = new gcav::ApiSpec();
string apiSpecId = "";
// Make the request
gcav::ApiSpec response = await registryClient.CreateApiSpecAsync(parent, apiSpec, apiSpecId);

CreateApiSpecAsync(CreateApiSpecRequest, CallSettings)

public virtual Task<ApiSpec> CreateApiSpecAsync(CreateApiSpecRequest request, CallSettings callSettings = null)

Creates a specified spec.

Parameters
Name Description
request CreateApiSpecRequest

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
TaskApiSpec

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::CreateApiSpecRequest request = new gcav::CreateApiSpecRequest
{
    ParentAsApiVersionName = gcav::ApiVersionName.FromProjectLocationApiVersion("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]"),
    ApiSpec = new gcav::ApiSpec(),
    ApiSpecId = "",
};
// Make the request
gcav::ApiSpec response = await registryClient.CreateApiSpecAsync(request);

CreateApiSpecAsync(CreateApiSpecRequest, CancellationToken)

public virtual Task<ApiSpec> CreateApiSpecAsync(CreateApiSpecRequest request, CancellationToken cancellationToken)

Creates a specified spec.

Parameters
Name Description
request CreateApiSpecRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskApiSpec

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::CreateApiSpecRequest request = new gcav::CreateApiSpecRequest
{
    ParentAsApiVersionName = gcav::ApiVersionName.FromProjectLocationApiVersion("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]"),
    ApiSpec = new gcav::ApiSpec(),
    ApiSpecId = "",
};
// Make the request
gcav::ApiSpec response = await registryClient.CreateApiSpecAsync(request);

CreateApiSpecAsync(string, ApiSpec, string, CallSettings)

public virtual Task<ApiSpec> CreateApiSpecAsync(string parent, ApiSpec apiSpec, string apiSpecId, CallSettings callSettings = null)

Creates a specified spec.

Parameters
Name Description
parent string

Required. The parent, which owns this collection of specs. Format: projects/*/locations/*/apis/*/versions/*

apiSpec ApiSpec

Required. The spec to create.

apiSpecId string

Required. The ID to use for the spec, which will become the final component of the spec's resource name.

This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.

Following AIP-162, IDs must not have the form of a UUID.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskApiSpec

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/apis/[API]/versions/[VERSION]";
gcav::ApiSpec apiSpec = new gcav::ApiSpec();
string apiSpecId = "";
// Make the request
gcav::ApiSpec response = await registryClient.CreateApiSpecAsync(parent, apiSpec, apiSpecId);

CreateApiSpecAsync(string, ApiSpec, string, CancellationToken)

public virtual Task<ApiSpec> CreateApiSpecAsync(string parent, ApiSpec apiSpec, string apiSpecId, CancellationToken cancellationToken)

Creates a specified spec.

Parameters
Name Description
parent string

Required. The parent, which owns this collection of specs. Format: projects/*/locations/*/apis/*/versions/*

apiSpec ApiSpec

Required. The spec to create.

apiSpecId string

Required. The ID to use for the spec, which will become the final component of the spec's resource name.

This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.

Following AIP-162, IDs must not have the form of a UUID.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskApiSpec

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/apis/[API]/versions/[VERSION]";
gcav::ApiSpec apiSpec = new gcav::ApiSpec();
string apiSpecId = "";
// Make the request
gcav::ApiSpec response = await registryClient.CreateApiSpecAsync(parent, apiSpec, apiSpecId);

CreateApiVersion(ApiName, ApiVersion, string, CallSettings)

public virtual ApiVersion CreateApiVersion(ApiName parent, ApiVersion apiVersion, string apiVersionId, CallSettings callSettings = null)

Creates a specified version.

Parameters
Name Description
parent ApiName

Required. The parent, which owns this collection of versions. Format: projects/*/locations/*/apis/*

apiVersion ApiVersion

Required. The version to create.

apiVersionId string

Required. The ID to use for the version, which will become the final component of the version's resource name.

This value should be 1-63 characters, and valid characters are /[a-z][0-9]-/.

Following AIP-162, IDs must not have the form of a UUID.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ApiVersion

The RPC response.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::ApiName parent = gcav::ApiName.FromProjectLocationApi("[PROJECT]", "[LOCATION]", "[API]");
gcav::ApiVersion apiVersion = new gcav::ApiVersion();
string apiVersionId = "";
// Make the request
gcav::ApiVersion response = registryClient.CreateApiVersion(parent, apiVersion, apiVersionId);

CreateApiVersion(CreateApiVersionRequest, CallSettings)

public virtual ApiVersion CreateApiVersion(CreateApiVersionRequest request, CallSettings callSettings = null)

Creates a specified version.

Parameters
Name Description
request CreateApiVersionRequest

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
ApiVersion

The RPC response.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::CreateApiVersionRequest request = new gcav::CreateApiVersionRequest
{
    ParentAsApiName = gcav::ApiName.FromProjectLocationApi("[PROJECT]", "[LOCATION]", "[API]"),
    ApiVersion = new gcav::ApiVersion(),
    ApiVersionId = "",
};
// Make the request
gcav::ApiVersion response = registryClient.CreateApiVersion(request);

CreateApiVersion(string, ApiVersion, string, CallSettings)

public virtual ApiVersion CreateApiVersion(string parent, ApiVersion apiVersion, string apiVersionId, CallSettings callSettings = null)

Creates a specified version.

Parameters
Name Description
parent string

Required. The parent, which owns this collection of versions. Format: projects/*/locations/*/apis/*

apiVersion ApiVersion

Required. The version to create.

apiVersionId string

Required. The ID to use for the version, which will become the final component of the version's resource name.

This value should be 1-63 characters, and valid characters are /[a-z][0-9]-/.

Following AIP-162, IDs must not have the form of a UUID.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ApiVersion

The RPC response.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/apis/[API]";
gcav::ApiVersion apiVersion = new gcav::ApiVersion();
string apiVersionId = "";
// Make the request
gcav::ApiVersion response = registryClient.CreateApiVersion(parent, apiVersion, apiVersionId);

CreateApiVersionAsync(ApiName, ApiVersion, string, CallSettings)

public virtual Task<ApiVersion> CreateApiVersionAsync(ApiName parent, ApiVersion apiVersion, string apiVersionId, CallSettings callSettings = null)

Creates a specified version.

Parameters
Name Description
parent ApiName

Required. The parent, which owns this collection of versions. Format: projects/*/locations/*/apis/*

apiVersion ApiVersion

Required. The version to create.

apiVersionId string

Required. The ID to use for the version, which will become the final component of the version's resource name.

This value should be 1-63 characters, and valid characters are /[a-z][0-9]-/.

Following AIP-162, IDs must not have the form of a UUID.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskApiVersion

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ApiName parent = gcav::ApiName.FromProjectLocationApi("[PROJECT]", "[LOCATION]", "[API]");
gcav::ApiVersion apiVersion = new gcav::ApiVersion();
string apiVersionId = "";
// Make the request
gcav::ApiVersion response = await registryClient.CreateApiVersionAsync(parent, apiVersion, apiVersionId);

CreateApiVersionAsync(ApiName, ApiVersion, string, CancellationToken)

public virtual Task<ApiVersion> CreateApiVersionAsync(ApiName parent, ApiVersion apiVersion, string apiVersionId, CancellationToken cancellationToken)

Creates a specified version.

Parameters
Name Description
parent ApiName

Required. The parent, which owns this collection of versions. Format: projects/*/locations/*/apis/*

apiVersion ApiVersion

Required. The version to create.

apiVersionId string

Required. The ID to use for the version, which will become the final component of the version's resource name.

This value should be 1-63 characters, and valid characters are /[a-z][0-9]-/.

Following AIP-162, IDs must not have the form of a UUID.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskApiVersion

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ApiName parent = gcav::ApiName.FromProjectLocationApi("[PROJECT]", "[LOCATION]", "[API]");
gcav::ApiVersion apiVersion = new gcav::ApiVersion();
string apiVersionId = "";
// Make the request
gcav::ApiVersion response = await registryClient.CreateApiVersionAsync(parent, apiVersion, apiVersionId);

CreateApiVersionAsync(CreateApiVersionRequest, CallSettings)

public virtual Task<ApiVersion> CreateApiVersionAsync(CreateApiVersionRequest request, CallSettings callSettings = null)

Creates a specified version.

Parameters
Name Description
request CreateApiVersionRequest

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
TaskApiVersion

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::CreateApiVersionRequest request = new gcav::CreateApiVersionRequest
{
    ParentAsApiName = gcav::ApiName.FromProjectLocationApi("[PROJECT]", "[LOCATION]", "[API]"),
    ApiVersion = new gcav::ApiVersion(),
    ApiVersionId = "",
};
// Make the request
gcav::ApiVersion response = await registryClient.CreateApiVersionAsync(request);

CreateApiVersionAsync(CreateApiVersionRequest, CancellationToken)

public virtual Task<ApiVersion> CreateApiVersionAsync(CreateApiVersionRequest request, CancellationToken cancellationToken)

Creates a specified version.

Parameters
Name Description
request CreateApiVersionRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskApiVersion

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::CreateApiVersionRequest request = new gcav::CreateApiVersionRequest
{
    ParentAsApiName = gcav::ApiName.FromProjectLocationApi("[PROJECT]", "[LOCATION]", "[API]"),
    ApiVersion = new gcav::ApiVersion(),
    ApiVersionId = "",
};
// Make the request
gcav::ApiVersion response = await registryClient.CreateApiVersionAsync(request);

CreateApiVersionAsync(string, ApiVersion, string, CallSettings)

public virtual Task<ApiVersion> CreateApiVersionAsync(string parent, ApiVersion apiVersion, string apiVersionId, CallSettings callSettings = null)

Creates a specified version.

Parameters
Name Description
parent string

Required. The parent, which owns this collection of versions. Format: projects/*/locations/*/apis/*

apiVersion ApiVersion

Required. The version to create.

apiVersionId string

Required. The ID to use for the version, which will become the final component of the version's resource name.

This value should be 1-63 characters, and valid characters are /[a-z][0-9]-/.

Following AIP-162, IDs must not have the form of a UUID.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskApiVersion

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/apis/[API]";
gcav::ApiVersion apiVersion = new gcav::ApiVersion();
string apiVersionId = "";
// Make the request
gcav::ApiVersion response = await registryClient.CreateApiVersionAsync(parent, apiVersion, apiVersionId);

CreateApiVersionAsync(string, ApiVersion, string, CancellationToken)

public virtual Task<ApiVersion> CreateApiVersionAsync(string parent, ApiVersion apiVersion, string apiVersionId, CancellationToken cancellationToken)

Creates a specified version.

Parameters
Name Description
parent string

Required. The parent, which owns this collection of versions. Format: projects/*/locations/*/apis/*

apiVersion ApiVersion

Required. The version to create.

apiVersionId string

Required. The ID to use for the version, which will become the final component of the version's resource name.

This value should be 1-63 characters, and valid characters are /[a-z][0-9]-/.

Following AIP-162, IDs must not have the form of a UUID.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskApiVersion

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/apis/[API]";
gcav::ApiVersion apiVersion = new gcav::ApiVersion();
string apiVersionId = "";
// Make the request
gcav::ApiVersion response = await registryClient.CreateApiVersionAsync(parent, apiVersion, apiVersionId);

CreateArtifact(LocationName, Artifact, string, CallSettings)

public virtual Artifact CreateArtifact(LocationName parent, Artifact artifact, string artifactId, CallSettings callSettings = null)

Creates a specified artifact.

Parameters
Name Description
parent LocationName

Required. The parent, which owns this collection of artifacts. Format: {parent}

artifact Artifact

Required. The artifact to create.

artifactId string

Required. The ID to use for the artifact, which will become the final component of the artifact's resource name.

This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.

Following AIP-162, IDs must not have the form of a UUID.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Artifact

The RPC response.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
gcav::Artifact artifact = new gcav::Artifact();
string artifactId = "";
// Make the request
gcav::Artifact response = registryClient.CreateArtifact(parent, artifact, artifactId);

CreateArtifact(ApiDeploymentName, Artifact, string, CallSettings)

public virtual Artifact CreateArtifact(ApiDeploymentName parent, Artifact artifact, string artifactId, CallSettings callSettings = null)

Creates a specified artifact.

Parameters
Name Description
parent ApiDeploymentName

Required. The parent, which owns this collection of artifacts. Format: {parent}

artifact Artifact

Required. The artifact to create.

artifactId string

Required. The ID to use for the artifact, which will become the final component of the artifact's resource name.

This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.

Following AIP-162, IDs must not have the form of a UUID.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Artifact

The RPC response.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::ApiDeploymentName parent = gcav::ApiDeploymentName.FromProjectLocationApiDeployment("[PROJECT]", "[LOCATION]", "[API]", "[DEPLOYMENT]");
gcav::Artifact artifact = new gcav::Artifact();
string artifactId = "";
// Make the request
gcav::Artifact response = registryClient.CreateArtifact(parent, artifact, artifactId);

CreateArtifact(ApiName, Artifact, string, CallSettings)

public virtual Artifact CreateArtifact(ApiName parent, Artifact artifact, string artifactId, CallSettings callSettings = null)

Creates a specified artifact.

Parameters
Name Description
parent ApiName

Required. The parent, which owns this collection of artifacts. Format: {parent}

artifact Artifact

Required. The artifact to create.

artifactId string

Required. The ID to use for the artifact, which will become the final component of the artifact's resource name.

This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.

Following AIP-162, IDs must not have the form of a UUID.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Artifact

The RPC response.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::ApiName parent = gcav::ApiName.FromProjectLocationApi("[PROJECT]", "[LOCATION]", "[API]");
gcav::Artifact artifact = new gcav::Artifact();
string artifactId = "";
// Make the request
gcav::Artifact response = registryClient.CreateArtifact(parent, artifact, artifactId);

CreateArtifact(ApiSpecName, Artifact, string, CallSettings)

public virtual Artifact CreateArtifact(ApiSpecName parent, Artifact artifact, string artifactId, CallSettings callSettings = null)

Creates a specified artifact.

Parameters
Name Description
parent ApiSpecName

Required. The parent, which owns this collection of artifacts. Format: {parent}

artifact Artifact

Required. The artifact to create.

artifactId string

Required. The ID to use for the artifact, which will become the final component of the artifact's resource name.

This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.

Following AIP-162, IDs must not have the form of a UUID.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Artifact

The RPC response.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::ApiSpecName parent = gcav::ApiSpecName.FromProjectLocationApiVersionSpec("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]", "[SPEC]");
gcav::Artifact artifact = new gcav::Artifact();
string artifactId = "";
// Make the request
gcav::Artifact response = registryClient.CreateArtifact(parent, artifact, artifactId);

CreateArtifact(ApiVersionName, Artifact, string, CallSettings)

public virtual Artifact CreateArtifact(ApiVersionName parent, Artifact artifact, string artifactId, CallSettings callSettings = null)

Creates a specified artifact.

Parameters
Name Description
parent ApiVersionName

Required. The parent, which owns this collection of artifacts. Format: {parent}

artifact Artifact

Required. The artifact to create.

artifactId string

Required. The ID to use for the artifact, which will become the final component of the artifact's resource name.

This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.

Following AIP-162, IDs must not have the form of a UUID.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Artifact

The RPC response.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::ApiVersionName parent = gcav::ApiVersionName.FromProjectLocationApiVersion("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]");
gcav::Artifact artifact = new gcav::Artifact();
string artifactId = "";
// Make the request
gcav::Artifact response = registryClient.CreateArtifact(parent, artifact, artifactId);

CreateArtifact(CreateArtifactRequest, CallSettings)

public virtual Artifact CreateArtifact(CreateArtifactRequest request, CallSettings callSettings = null)

Creates a specified artifact.

Parameters
Name Description
request CreateArtifactRequest

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
Artifact

The RPC response.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::CreateArtifactRequest request = new gcav::CreateArtifactRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Artifact = new gcav::Artifact(),
    ArtifactId = "",
};
// Make the request
gcav::Artifact response = registryClient.CreateArtifact(request);

CreateArtifact(string, Artifact, string, CallSettings)

public virtual Artifact CreateArtifact(string parent, Artifact artifact, string artifactId, CallSettings callSettings = null)

Creates a specified artifact.

Parameters
Name Description
parent string

Required. The parent, which owns this collection of artifacts. Format: {parent}

artifact Artifact

Required. The artifact to create.

artifactId string

Required. The ID to use for the artifact, which will become the final component of the artifact's resource name.

This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.

Following AIP-162, IDs must not have the form of a UUID.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Artifact

The RPC response.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
gcav::Artifact artifact = new gcav::Artifact();
string artifactId = "";
// Make the request
gcav::Artifact response = registryClient.CreateArtifact(parent, artifact, artifactId);

CreateArtifactAsync(LocationName, Artifact, string, CallSettings)

public virtual Task<Artifact> CreateArtifactAsync(LocationName parent, Artifact artifact, string artifactId, CallSettings callSettings = null)

Creates a specified artifact.

Parameters
Name Description
parent LocationName

Required. The parent, which owns this collection of artifacts. Format: {parent}

artifact Artifact

Required. The artifact to create.

artifactId string

Required. The ID to use for the artifact, which will become the final component of the artifact's resource name.

This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.

Following AIP-162, IDs must not have the form of a UUID.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskArtifact

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
gcav::Artifact artifact = new gcav::Artifact();
string artifactId = "";
// Make the request
gcav::Artifact response = await registryClient.CreateArtifactAsync(parent, artifact, artifactId);

CreateArtifactAsync(LocationName, Artifact, string, CancellationToken)

public virtual Task<Artifact> CreateArtifactAsync(LocationName parent, Artifact artifact, string artifactId, CancellationToken cancellationToken)

Creates a specified artifact.

Parameters
Name Description
parent LocationName

Required. The parent, which owns this collection of artifacts. Format: {parent}

artifact Artifact

Required. The artifact to create.

artifactId string

Required. The ID to use for the artifact, which will become the final component of the artifact's resource name.

This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.

Following AIP-162, IDs must not have the form of a UUID.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskArtifact

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
gcav::Artifact artifact = new gcav::Artifact();
string artifactId = "";
// Make the request
gcav::Artifact response = await registryClient.CreateArtifactAsync(parent, artifact, artifactId);

CreateArtifactAsync(ApiDeploymentName, Artifact, string, CallSettings)

public virtual Task<Artifact> CreateArtifactAsync(ApiDeploymentName parent, Artifact artifact, string artifactId, CallSettings callSettings = null)

Creates a specified artifact.

Parameters
Name Description
parent ApiDeploymentName

Required. The parent, which owns this collection of artifacts. Format: {parent}

artifact Artifact

Required. The artifact to create.

artifactId string

Required. The ID to use for the artifact, which will become the final component of the artifact's resource name.

This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.

Following AIP-162, IDs must not have the form of a UUID.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskArtifact

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ApiDeploymentName parent = gcav::ApiDeploymentName.FromProjectLocationApiDeployment("[PROJECT]", "[LOCATION]", "[API]", "[DEPLOYMENT]");
gcav::Artifact artifact = new gcav::Artifact();
string artifactId = "";
// Make the request
gcav::Artifact response = await registryClient.CreateArtifactAsync(parent, artifact, artifactId);

CreateArtifactAsync(ApiDeploymentName, Artifact, string, CancellationToken)

public virtual Task<Artifact> CreateArtifactAsync(ApiDeploymentName parent, Artifact artifact, string artifactId, CancellationToken cancellationToken)

Creates a specified artifact.

Parameters
Name Description
parent ApiDeploymentName

Required. The parent, which owns this collection of artifacts. Format: {parent}

artifact Artifact

Required. The artifact to create.

artifactId string

Required. The ID to use for the artifact, which will become the final component of the artifact's resource name.

This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.

Following AIP-162, IDs must not have the form of a UUID.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskArtifact

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ApiDeploymentName parent = gcav::ApiDeploymentName.FromProjectLocationApiDeployment("[PROJECT]", "[LOCATION]", "[API]", "[DEPLOYMENT]");
gcav::Artifact artifact = new gcav::Artifact();
string artifactId = "";
// Make the request
gcav::Artifact response = await registryClient.CreateArtifactAsync(parent, artifact, artifactId);

CreateArtifactAsync(ApiName, Artifact, string, CallSettings)

public virtual Task<Artifact> CreateArtifactAsync(ApiName parent, Artifact artifact, string artifactId, CallSettings callSettings = null)

Creates a specified artifact.

Parameters
Name Description
parent ApiName

Required. The parent, which owns this collection of artifacts. Format: {parent}

artifact Artifact

Required. The artifact to create.

artifactId string

Required. The ID to use for the artifact, which will become the final component of the artifact's resource name.

This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.

Following AIP-162, IDs must not have the form of a UUID.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskArtifact

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ApiName parent = gcav::ApiName.FromProjectLocationApi("[PROJECT]", "[LOCATION]", "[API]");
gcav::Artifact artifact = new gcav::Artifact();
string artifactId = "";
// Make the request
gcav::Artifact response = await registryClient.CreateArtifactAsync(parent, artifact, artifactId);

CreateArtifactAsync(ApiName, Artifact, string, CancellationToken)

public virtual Task<Artifact> CreateArtifactAsync(ApiName parent, Artifact artifact, string artifactId, CancellationToken cancellationToken)

Creates a specified artifact.

Parameters
Name Description
parent ApiName

Required. The parent, which owns this collection of artifacts. Format: {parent}

artifact Artifact

Required. The artifact to create.

artifactId string

Required. The ID to use for the artifact, which will become the final component of the artifact's resource name.

This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.

Following AIP-162, IDs must not have the form of a UUID.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskArtifact

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ApiName parent = gcav::ApiName.FromProjectLocationApi("[PROJECT]", "[LOCATION]", "[API]");
gcav::Artifact artifact = new gcav::Artifact();
string artifactId = "";
// Make the request
gcav::Artifact response = await registryClient.CreateArtifactAsync(parent, artifact, artifactId);

CreateArtifactAsync(ApiSpecName, Artifact, string, CallSettings)

public virtual Task<Artifact> CreateArtifactAsync(ApiSpecName parent, Artifact artifact, string artifactId, CallSettings callSettings = null)

Creates a specified artifact.

Parameters
Name Description
parent ApiSpecName

Required. The parent, which owns this collection of artifacts. Format: {parent}

artifact Artifact

Required. The artifact to create.

artifactId string

Required. The ID to use for the artifact, which will become the final component of the artifact's resource name.

This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.

Following AIP-162, IDs must not have the form of a UUID.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskArtifact

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ApiSpecName parent = gcav::ApiSpecName.FromProjectLocationApiVersionSpec("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]", "[SPEC]");
gcav::Artifact artifact = new gcav::Artifact();
string artifactId = "";
// Make the request
gcav::Artifact response = await registryClient.CreateArtifactAsync(parent, artifact, artifactId);

CreateArtifactAsync(ApiSpecName, Artifact, string, CancellationToken)

public virtual Task<Artifact> CreateArtifactAsync(ApiSpecName parent, Artifact artifact, string artifactId, CancellationToken cancellationToken)

Creates a specified artifact.

Parameters
Name Description
parent ApiSpecName

Required. The parent, which owns this collection of artifacts. Format: {parent}

artifact Artifact

Required. The artifact to create.

artifactId string

Required. The ID to use for the artifact, which will become the final component of the artifact's resource name.

This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.

Following AIP-162, IDs must not have the form of a UUID.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskArtifact

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ApiSpecName parent = gcav::ApiSpecName.FromProjectLocationApiVersionSpec("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]", "[SPEC]");
gcav::Artifact artifact = new gcav::Artifact();
string artifactId = "";
// Make the request
gcav::Artifact response = await registryClient.CreateArtifactAsync(parent, artifact, artifactId);

CreateArtifactAsync(ApiVersionName, Artifact, string, CallSettings)

public virtual Task<Artifact> CreateArtifactAsync(ApiVersionName parent, Artifact artifact, string artifactId, CallSettings callSettings = null)

Creates a specified artifact.

Parameters
Name Description
parent ApiVersionName

Required. The parent, which owns this collection of artifacts. Format: {parent}

artifact Artifact

Required. The artifact to create.

artifactId string

Required. The ID to use for the artifact, which will become the final component of the artifact's resource name.

This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.

Following AIP-162, IDs must not have the form of a UUID.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskArtifact

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ApiVersionName parent = gcav::ApiVersionName.FromProjectLocationApiVersion("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]");
gcav::Artifact artifact = new gcav::Artifact();
string artifactId = "";
// Make the request
gcav::Artifact response = await registryClient.CreateArtifactAsync(parent, artifact, artifactId);

CreateArtifactAsync(ApiVersionName, Artifact, string, CancellationToken)

public virtual Task<Artifact> CreateArtifactAsync(ApiVersionName parent, Artifact artifact, string artifactId, CancellationToken cancellationToken)

Creates a specified artifact.

Parameters
Name Description
parent ApiVersionName

Required. The parent, which owns this collection of artifacts. Format: {parent}

artifact Artifact

Required. The artifact to create.

artifactId string

Required. The ID to use for the artifact, which will become the final component of the artifact's resource name.

This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.

Following AIP-162, IDs must not have the form of a UUID.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskArtifact

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ApiVersionName parent = gcav::ApiVersionName.FromProjectLocationApiVersion("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]");
gcav::Artifact artifact = new gcav::Artifact();
string artifactId = "";
// Make the request
gcav::Artifact response = await registryClient.CreateArtifactAsync(parent, artifact, artifactId);

CreateArtifactAsync(CreateArtifactRequest, CallSettings)

public virtual Task<Artifact> CreateArtifactAsync(CreateArtifactRequest request, CallSettings callSettings = null)

Creates a specified artifact.

Parameters
Name Description
request CreateArtifactRequest

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
TaskArtifact

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::CreateArtifactRequest request = new gcav::CreateArtifactRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Artifact = new gcav::Artifact(),
    ArtifactId = "",
};
// Make the request
gcav::Artifact response = await registryClient.CreateArtifactAsync(request);

CreateArtifactAsync(CreateArtifactRequest, CancellationToken)

public virtual Task<Artifact> CreateArtifactAsync(CreateArtifactRequest request, CancellationToken cancellationToken)

Creates a specified artifact.

Parameters
Name Description
request CreateArtifactRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskArtifact

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::CreateArtifactRequest request = new gcav::CreateArtifactRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Artifact = new gcav::Artifact(),
    ArtifactId = "",
};
// Make the request
gcav::Artifact response = await registryClient.CreateArtifactAsync(request);

CreateArtifactAsync(string, Artifact, string, CallSettings)

public virtual Task<Artifact> CreateArtifactAsync(string parent, Artifact artifact, string artifactId, CallSettings callSettings = null)

Creates a specified artifact.

Parameters
Name Description
parent string

Required. The parent, which owns this collection of artifacts. Format: {parent}

artifact Artifact

Required. The artifact to create.

artifactId string

Required. The ID to use for the artifact, which will become the final component of the artifact's resource name.

This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.

Following AIP-162, IDs must not have the form of a UUID.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskArtifact

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
gcav::Artifact artifact = new gcav::Artifact();
string artifactId = "";
// Make the request
gcav::Artifact response = await registryClient.CreateArtifactAsync(parent, artifact, artifactId);

CreateArtifactAsync(string, Artifact, string, CancellationToken)

public virtual Task<Artifact> CreateArtifactAsync(string parent, Artifact artifact, string artifactId, CancellationToken cancellationToken)

Creates a specified artifact.

Parameters
Name Description
parent string

Required. The parent, which owns this collection of artifacts. Format: {parent}

artifact Artifact

Required. The artifact to create.

artifactId string

Required. The ID to use for the artifact, which will become the final component of the artifact's resource name.

This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/.

Following AIP-162, IDs must not have the form of a UUID.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskArtifact

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
gcav::Artifact artifact = new gcav::Artifact();
string artifactId = "";
// Make the request
gcav::Artifact response = await registryClient.CreateArtifactAsync(parent, artifact, artifactId);

CreateAsync(CancellationToken)

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

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

Parameter
Name Description
cancellationToken CancellationToken

The CancellationToken to use while creating the client.

Returns
Type Description
TaskRegistryClient

The task representing the created RegistryClient.

DeleteApi(ApiName, CallSettings)

public virtual void DeleteApi(ApiName name, CallSettings callSettings = null)

Removes a specified API and all of the resources that it owns.

Parameters
Name Description
name ApiName

Required. The name of the API to delete. Format: projects/*/locations/*/apis/*

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::ApiName name = gcav::ApiName.FromProjectLocationApi("[PROJECT]", "[LOCATION]", "[API]");
// Make the request
registryClient.DeleteApi(name);

DeleteApi(DeleteApiRequest, CallSettings)

public virtual void DeleteApi(DeleteApiRequest request, CallSettings callSettings = null)

Removes a specified API and all of the resources that it owns.

Parameters
Name Description
request DeleteApiRequest

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
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::DeleteApiRequest request = new gcav::DeleteApiRequest
{
    ApiName = gcav::ApiName.FromProjectLocationApi("[PROJECT]", "[LOCATION]", "[API]"),
    Force = false,
};
// Make the request
registryClient.DeleteApi(request);

DeleteApi(string, CallSettings)

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

Removes a specified API and all of the resources that it owns.

Parameters
Name Description
name string

Required. The name of the API to delete. Format: projects/*/locations/*/apis/*

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apis/[API]";
// Make the request
registryClient.DeleteApi(name);

DeleteApiAsync(ApiName, CallSettings)

public virtual Task DeleteApiAsync(ApiName name, CallSettings callSettings = null)

Removes a specified API and all of the resources that it owns.

Parameters
Name Description
name ApiName

Required. The name of the API to delete. Format: projects/*/locations/*/apis/*

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ApiName name = gcav::ApiName.FromProjectLocationApi("[PROJECT]", "[LOCATION]", "[API]");
// Make the request
await registryClient.DeleteApiAsync(name);

DeleteApiAsync(ApiName, CancellationToken)

public virtual Task DeleteApiAsync(ApiName name, CancellationToken cancellationToken)

Removes a specified API and all of the resources that it owns.

Parameters
Name Description
name ApiName

Required. The name of the API to delete. Format: projects/*/locations/*/apis/*

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ApiName name = gcav::ApiName.FromProjectLocationApi("[PROJECT]", "[LOCATION]", "[API]");
// Make the request
await registryClient.DeleteApiAsync(name);

DeleteApiAsync(DeleteApiRequest, CallSettings)

public virtual Task DeleteApiAsync(DeleteApiRequest request, CallSettings callSettings = null)

Removes a specified API and all of the resources that it owns.

Parameters
Name Description
request DeleteApiRequest

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
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::DeleteApiRequest request = new gcav::DeleteApiRequest
{
    ApiName = gcav::ApiName.FromProjectLocationApi("[PROJECT]", "[LOCATION]", "[API]"),
    Force = false,
};
// Make the request
await registryClient.DeleteApiAsync(request);

DeleteApiAsync(DeleteApiRequest, CancellationToken)

public virtual Task DeleteApiAsync(DeleteApiRequest request, CancellationToken cancellationToken)

Removes a specified API and all of the resources that it owns.

Parameters
Name Description
request DeleteApiRequest

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
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::DeleteApiRequest request = new gcav::DeleteApiRequest
{
    ApiName = gcav::ApiName.FromProjectLocationApi("[PROJECT]", "[LOCATION]", "[API]"),
    Force = false,
};
// Make the request
await registryClient.DeleteApiAsync(request);

DeleteApiAsync(string, CallSettings)

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

Removes a specified API and all of the resources that it owns.

Parameters
Name Description
name string

Required. The name of the API to delete. Format: projects/*/locations/*/apis/*

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apis/[API]";
// Make the request
await registryClient.DeleteApiAsync(name);

DeleteApiAsync(string, CancellationToken)

public virtual Task DeleteApiAsync(string name, CancellationToken cancellationToken)

Removes a specified API and all of the resources that it owns.

Parameters
Name Description
name string

Required. The name of the API to delete. Format: projects/*/locations/*/apis/*

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apis/[API]";
// Make the request
await registryClient.DeleteApiAsync(name);

DeleteApiDeployment(ApiDeploymentName, CallSettings)

public virtual void DeleteApiDeployment(ApiDeploymentName name, CallSettings callSettings = null)

Removes a specified deployment, all revisions, and all child resources (e.g., artifacts).

Parameters
Name Description
name ApiDeploymentName

Required. The name of the deployment to delete. Format: projects/*/locations/*/apis/*/deployments/*

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::ApiDeploymentName name = gcav::ApiDeploymentName.FromProjectLocationApiDeployment("[PROJECT]", "[LOCATION]", "[API]", "[DEPLOYMENT]");
// Make the request
registryClient.DeleteApiDeployment(name);

DeleteApiDeployment(DeleteApiDeploymentRequest, CallSettings)

public virtual void DeleteApiDeployment(DeleteApiDeploymentRequest request, CallSettings callSettings = null)

Removes a specified deployment, all revisions, and all child resources (e.g., artifacts).

Parameters
Name Description
request DeleteApiDeploymentRequest

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
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::DeleteApiDeploymentRequest request = new gcav::DeleteApiDeploymentRequest
{
    ApiDeploymentName = gcav::ApiDeploymentName.FromProjectLocationApiDeployment("[PROJECT]", "[LOCATION]", "[API]", "[DEPLOYMENT]"),
    Force = false,
};
// Make the request
registryClient.DeleteApiDeployment(request);

DeleteApiDeployment(string, CallSettings)

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

Removes a specified deployment, all revisions, and all child resources (e.g., artifacts).

Parameters
Name Description
name string

Required. The name of the deployment to delete. Format: projects/*/locations/*/apis/*/deployments/*

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apis/[API]/deployments/[DEPLOYMENT]";
// Make the request
registryClient.DeleteApiDeployment(name);

DeleteApiDeploymentAsync(ApiDeploymentName, CallSettings)

public virtual Task DeleteApiDeploymentAsync(ApiDeploymentName name, CallSettings callSettings = null)

Removes a specified deployment, all revisions, and all child resources (e.g., artifacts).

Parameters
Name Description
name ApiDeploymentName

Required. The name of the deployment to delete. Format: projects/*/locations/*/apis/*/deployments/*

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ApiDeploymentName name = gcav::ApiDeploymentName.FromProjectLocationApiDeployment("[PROJECT]", "[LOCATION]", "[API]", "[DEPLOYMENT]");
// Make the request
await registryClient.DeleteApiDeploymentAsync(name);

DeleteApiDeploymentAsync(ApiDeploymentName, CancellationToken)

public virtual Task DeleteApiDeploymentAsync(ApiDeploymentName name, CancellationToken cancellationToken)

Removes a specified deployment, all revisions, and all child resources (e.g., artifacts).

Parameters
Name Description
name ApiDeploymentName

Required. The name of the deployment to delete. Format: projects/*/locations/*/apis/*/deployments/*

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ApiDeploymentName name = gcav::ApiDeploymentName.FromProjectLocationApiDeployment("[PROJECT]", "[LOCATION]", "[API]", "[DEPLOYMENT]");
// Make the request
await registryClient.DeleteApiDeploymentAsync(name);

DeleteApiDeploymentAsync(DeleteApiDeploymentRequest, CallSettings)

public virtual Task DeleteApiDeploymentAsync(DeleteApiDeploymentRequest request, CallSettings callSettings = null)

Removes a specified deployment, all revisions, and all child resources (e.g., artifacts).

Parameters
Name Description
request DeleteApiDeploymentRequest

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
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::DeleteApiDeploymentRequest request = new gcav::DeleteApiDeploymentRequest
{
    ApiDeploymentName = gcav::ApiDeploymentName.FromProjectLocationApiDeployment("[PROJECT]", "[LOCATION]", "[API]", "[DEPLOYMENT]"),
    Force = false,
};
// Make the request
await registryClient.DeleteApiDeploymentAsync(request);

DeleteApiDeploymentAsync(DeleteApiDeploymentRequest, CancellationToken)

public virtual Task DeleteApiDeploymentAsync(DeleteApiDeploymentRequest request, CancellationToken cancellationToken)

Removes a specified deployment, all revisions, and all child resources (e.g., artifacts).

Parameters
Name Description
request DeleteApiDeploymentRequest

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
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::DeleteApiDeploymentRequest request = new gcav::DeleteApiDeploymentRequest
{
    ApiDeploymentName = gcav::ApiDeploymentName.FromProjectLocationApiDeployment("[PROJECT]", "[LOCATION]", "[API]", "[DEPLOYMENT]"),
    Force = false,
};
// Make the request
await registryClient.DeleteApiDeploymentAsync(request);

DeleteApiDeploymentAsync(string, CallSettings)

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

Removes a specified deployment, all revisions, and all child resources (e.g., artifacts).

Parameters
Name Description
name string

Required. The name of the deployment to delete. Format: projects/*/locations/*/apis/*/deployments/*

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apis/[API]/deployments/[DEPLOYMENT]";
// Make the request
await registryClient.DeleteApiDeploymentAsync(name);

DeleteApiDeploymentAsync(string, CancellationToken)

public virtual Task DeleteApiDeploymentAsync(string name, CancellationToken cancellationToken)

Removes a specified deployment, all revisions, and all child resources (e.g., artifacts).

Parameters
Name Description
name string

Required. The name of the deployment to delete. Format: projects/*/locations/*/apis/*/deployments/*

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apis/[API]/deployments/[DEPLOYMENT]";
// Make the request
await registryClient.DeleteApiDeploymentAsync(name);

DeleteApiDeploymentRevision(ApiDeploymentName, CallSettings)

public virtual ApiDeployment DeleteApiDeploymentRevision(ApiDeploymentName name, CallSettings callSettings = null)

Deletes a revision of a deployment.

Parameters
Name Description
name ApiDeploymentName

Required. The name of the deployment revision to be deleted, with a revision ID explicitly included.

Example: projects/sample/locations/global/apis/petstore/deployments/prod@c7cfa2a8

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ApiDeployment

The RPC response.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::ApiDeploymentName name = gcav::ApiDeploymentName.FromProjectLocationApiDeployment("[PROJECT]", "[LOCATION]", "[API]", "[DEPLOYMENT]");
// Make the request
gcav::ApiDeployment response = registryClient.DeleteApiDeploymentRevision(name);

DeleteApiDeploymentRevision(DeleteApiDeploymentRevisionRequest, CallSettings)

public virtual ApiDeployment DeleteApiDeploymentRevision(DeleteApiDeploymentRevisionRequest request, CallSettings callSettings = null)

Deletes a revision of a deployment.

Parameters
Name Description
request DeleteApiDeploymentRevisionRequest

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
ApiDeployment

The RPC response.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::DeleteApiDeploymentRevisionRequest request = new gcav::DeleteApiDeploymentRevisionRequest
{
    ApiDeploymentName = gcav::ApiDeploymentName.FromProjectLocationApiDeployment("[PROJECT]", "[LOCATION]", "[API]", "[DEPLOYMENT]"),
};
// Make the request
gcav::ApiDeployment response = registryClient.DeleteApiDeploymentRevision(request);

DeleteApiDeploymentRevision(string, CallSettings)

public virtual ApiDeployment DeleteApiDeploymentRevision(string name, CallSettings callSettings = null)

Deletes a revision of a deployment.

Parameters
Name Description
name string

Required. The name of the deployment revision to be deleted, with a revision ID explicitly included.

Example: projects/sample/locations/global/apis/petstore/deployments/prod@c7cfa2a8

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ApiDeployment

The RPC response.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apis/[API]/deployments/[DEPLOYMENT]";
// Make the request
gcav::ApiDeployment response = registryClient.DeleteApiDeploymentRevision(name);

DeleteApiDeploymentRevisionAsync(ApiDeploymentName, CallSettings)

public virtual Task<ApiDeployment> DeleteApiDeploymentRevisionAsync(ApiDeploymentName name, CallSettings callSettings = null)

Deletes a revision of a deployment.

Parameters
Name Description
name ApiDeploymentName

Required. The name of the deployment revision to be deleted, with a revision ID explicitly included.

Example: projects/sample/locations/global/apis/petstore/deployments/prod@c7cfa2a8

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskApiDeployment

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ApiDeploymentName name = gcav::ApiDeploymentName.FromProjectLocationApiDeployment("[PROJECT]", "[LOCATION]", "[API]", "[DEPLOYMENT]");
// Make the request
gcav::ApiDeployment response = await registryClient.DeleteApiDeploymentRevisionAsync(name);

DeleteApiDeploymentRevisionAsync(ApiDeploymentName, CancellationToken)

public virtual Task<ApiDeployment> DeleteApiDeploymentRevisionAsync(ApiDeploymentName name, CancellationToken cancellationToken)

Deletes a revision of a deployment.

Parameters
Name Description
name ApiDeploymentName

Required. The name of the deployment revision to be deleted, with a revision ID explicitly included.

Example: projects/sample/locations/global/apis/petstore/deployments/prod@c7cfa2a8

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskApiDeployment

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ApiDeploymentName name = gcav::ApiDeploymentName.FromProjectLocationApiDeployment("[PROJECT]", "[LOCATION]", "[API]", "[DEPLOYMENT]");
// Make the request
gcav::ApiDeployment response = await registryClient.DeleteApiDeploymentRevisionAsync(name);

DeleteApiDeploymentRevisionAsync(DeleteApiDeploymentRevisionRequest, CallSettings)

public virtual Task<ApiDeployment> DeleteApiDeploymentRevisionAsync(DeleteApiDeploymentRevisionRequest request, CallSettings callSettings = null)

Deletes a revision of a deployment.

Parameters
Name Description
request DeleteApiDeploymentRevisionRequest

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
TaskApiDeployment

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::DeleteApiDeploymentRevisionRequest request = new gcav::DeleteApiDeploymentRevisionRequest
{
    ApiDeploymentName = gcav::ApiDeploymentName.FromProjectLocationApiDeployment("[PROJECT]", "[LOCATION]", "[API]", "[DEPLOYMENT]"),
};
// Make the request
gcav::ApiDeployment response = await registryClient.DeleteApiDeploymentRevisionAsync(request);

DeleteApiDeploymentRevisionAsync(DeleteApiDeploymentRevisionRequest, CancellationToken)

public virtual Task<ApiDeployment> DeleteApiDeploymentRevisionAsync(DeleteApiDeploymentRevisionRequest request, CancellationToken cancellationToken)

Deletes a revision of a deployment.

Parameters
Name Description
request DeleteApiDeploymentRevisionRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskApiDeployment

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::DeleteApiDeploymentRevisionRequest request = new gcav::DeleteApiDeploymentRevisionRequest
{
    ApiDeploymentName = gcav::ApiDeploymentName.FromProjectLocationApiDeployment("[PROJECT]", "[LOCATION]", "[API]", "[DEPLOYMENT]"),
};
// Make the request
gcav::ApiDeployment response = await registryClient.DeleteApiDeploymentRevisionAsync(request);

DeleteApiDeploymentRevisionAsync(string, CallSettings)

public virtual Task<ApiDeployment> DeleteApiDeploymentRevisionAsync(string name, CallSettings callSettings = null)

Deletes a revision of a deployment.

Parameters
Name Description
name string

Required. The name of the deployment revision to be deleted, with a revision ID explicitly included.

Example: projects/sample/locations/global/apis/petstore/deployments/prod@c7cfa2a8

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskApiDeployment

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apis/[API]/deployments/[DEPLOYMENT]";
// Make the request
gcav::ApiDeployment response = await registryClient.DeleteApiDeploymentRevisionAsync(name);

DeleteApiDeploymentRevisionAsync(string, CancellationToken)

public virtual Task<ApiDeployment> DeleteApiDeploymentRevisionAsync(string name, CancellationToken cancellationToken)

Deletes a revision of a deployment.

Parameters
Name Description
name string

Required. The name of the deployment revision to be deleted, with a revision ID explicitly included.

Example: projects/sample/locations/global/apis/petstore/deployments/prod@c7cfa2a8

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskApiDeployment

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apis/[API]/deployments/[DEPLOYMENT]";
// Make the request
gcav::ApiDeployment response = await registryClient.DeleteApiDeploymentRevisionAsync(name);

DeleteApiSpec(ApiSpecName, CallSettings)

public virtual void DeleteApiSpec(ApiSpecName name, CallSettings callSettings = null)

Removes a specified spec, all revisions, and all child resources (e.g., artifacts).

Parameters
Name Description
name ApiSpecName

Required. The name of the spec to delete. Format: projects/*/locations/*/apis/*/versions/*/specs/*

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::ApiSpecName name = gcav::ApiSpecName.FromProjectLocationApiVersionSpec("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]", "[SPEC]");
// Make the request
registryClient.DeleteApiSpec(name);

DeleteApiSpec(DeleteApiSpecRequest, CallSettings)

public virtual void DeleteApiSpec(DeleteApiSpecRequest request, CallSettings callSettings = null)

Removes a specified spec, all revisions, and all child resources (e.g., artifacts).

Parameters
Name Description
request DeleteApiSpecRequest

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
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::DeleteApiSpecRequest request = new gcav::DeleteApiSpecRequest
{
    ApiSpecName = gcav::ApiSpecName.FromProjectLocationApiVersionSpec("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]", "[SPEC]"),
    Force = false,
};
// Make the request
registryClient.DeleteApiSpec(request);

DeleteApiSpec(string, CallSettings)

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

Removes a specified spec, all revisions, and all child resources (e.g., artifacts).

Parameters
Name Description
name string

Required. The name of the spec to delete. Format: projects/*/locations/*/apis/*/versions/*/specs/*

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apis/[API]/versions/[VERSION]/specs/[SPEC]";
// Make the request
registryClient.DeleteApiSpec(name);

DeleteApiSpecAsync(ApiSpecName, CallSettings)

public virtual Task DeleteApiSpecAsync(ApiSpecName name, CallSettings callSettings = null)

Removes a specified spec, all revisions, and all child resources (e.g., artifacts).

Parameters
Name Description
name ApiSpecName

Required. The name of the spec to delete. Format: projects/*/locations/*/apis/*/versions/*/specs/*

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ApiSpecName name = gcav::ApiSpecName.FromProjectLocationApiVersionSpec("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]", "[SPEC]");
// Make the request
await registryClient.DeleteApiSpecAsync(name);

DeleteApiSpecAsync(ApiSpecName, CancellationToken)

public virtual Task DeleteApiSpecAsync(ApiSpecName name, CancellationToken cancellationToken)

Removes a specified spec, all revisions, and all child resources (e.g., artifacts).

Parameters
Name Description
name ApiSpecName

Required. The name of the spec to delete. Format: projects/*/locations/*/apis/*/versions/*/specs/*

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ApiSpecName name = gcav::ApiSpecName.FromProjectLocationApiVersionSpec("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]", "[SPEC]");
// Make the request
await registryClient.DeleteApiSpecAsync(name);

DeleteApiSpecAsync(DeleteApiSpecRequest, CallSettings)

public virtual Task DeleteApiSpecAsync(DeleteApiSpecRequest request, CallSettings callSettings = null)

Removes a specified spec, all revisions, and all child resources (e.g., artifacts).

Parameters
Name Description
request DeleteApiSpecRequest

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
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::DeleteApiSpecRequest request = new gcav::DeleteApiSpecRequest
{
    ApiSpecName = gcav::ApiSpecName.FromProjectLocationApiVersionSpec("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]", "[SPEC]"),
    Force = false,
};
// Make the request
await registryClient.DeleteApiSpecAsync(request);

DeleteApiSpecAsync(DeleteApiSpecRequest, CancellationToken)

public virtual Task DeleteApiSpecAsync(DeleteApiSpecRequest request, CancellationToken cancellationToken)

Removes a specified spec, all revisions, and all child resources (e.g., artifacts).

Parameters
Name Description
request DeleteApiSpecRequest

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
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::DeleteApiSpecRequest request = new gcav::DeleteApiSpecRequest
{
    ApiSpecName = gcav::ApiSpecName.FromProjectLocationApiVersionSpec("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]", "[SPEC]"),
    Force = false,
};
// Make the request
await registryClient.DeleteApiSpecAsync(request);

DeleteApiSpecAsync(string, CallSettings)

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

Removes a specified spec, all revisions, and all child resources (e.g., artifacts).

Parameters
Name Description
name string

Required. The name of the spec to delete. Format: projects/*/locations/*/apis/*/versions/*/specs/*

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apis/[API]/versions/[VERSION]/specs/[SPEC]";
// Make the request
await registryClient.DeleteApiSpecAsync(name);

DeleteApiSpecAsync(string, CancellationToken)

public virtual Task DeleteApiSpecAsync(string name, CancellationToken cancellationToken)

Removes a specified spec, all revisions, and all child resources (e.g., artifacts).

Parameters
Name Description
name string

Required. The name of the spec to delete. Format: projects/*/locations/*/apis/*/versions/*/specs/*

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apis/[API]/versions/[VERSION]/specs/[SPEC]";
// Make the request
await registryClient.DeleteApiSpecAsync(name);

DeleteApiSpecRevision(ApiSpecName, CallSettings)

public virtual ApiSpec DeleteApiSpecRevision(ApiSpecName name, CallSettings callSettings = null)

Deletes a revision of a spec.

Parameters
Name Description
name ApiSpecName

Required. The name of the spec revision to be deleted, with a revision ID explicitly included.

Example: projects/sample/locations/global/apis/petstore/versions/1.0.0/specs/openapi.yaml@c7cfa2a8

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ApiSpec

The RPC response.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::ApiSpecName name = gcav::ApiSpecName.FromProjectLocationApiVersionSpec("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]", "[SPEC]");
// Make the request
gcav::ApiSpec response = registryClient.DeleteApiSpecRevision(name);

DeleteApiSpecRevision(DeleteApiSpecRevisionRequest, CallSettings)

public virtual ApiSpec DeleteApiSpecRevision(DeleteApiSpecRevisionRequest request, CallSettings callSettings = null)

Deletes a revision of a spec.

Parameters
Name Description
request DeleteApiSpecRevisionRequest

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
ApiSpec

The RPC response.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::DeleteApiSpecRevisionRequest request = new gcav::DeleteApiSpecRevisionRequest
{
    ApiSpecName = gcav::ApiSpecName.FromProjectLocationApiVersionSpec("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]", "[SPEC]"),
};
// Make the request
gcav::ApiSpec response = registryClient.DeleteApiSpecRevision(request);

DeleteApiSpecRevision(string, CallSettings)

public virtual ApiSpec DeleteApiSpecRevision(string name, CallSettings callSettings = null)

Deletes a revision of a spec.

Parameters
Name Description
name string

Required. The name of the spec revision to be deleted, with a revision ID explicitly included.

Example: projects/sample/locations/global/apis/petstore/versions/1.0.0/specs/openapi.yaml@c7cfa2a8

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ApiSpec

The RPC response.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apis/[API]/versions/[VERSION]/specs/[SPEC]";
// Make the request
gcav::ApiSpec response = registryClient.DeleteApiSpecRevision(name);

DeleteApiSpecRevisionAsync(ApiSpecName, CallSettings)

public virtual Task<ApiSpec> DeleteApiSpecRevisionAsync(ApiSpecName name, CallSettings callSettings = null)

Deletes a revision of a spec.

Parameters
Name Description
name ApiSpecName

Required. The name of the spec revision to be deleted, with a revision ID explicitly included.

Example: projects/sample/locations/global/apis/petstore/versions/1.0.0/specs/openapi.yaml@c7cfa2a8

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskApiSpec

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ApiSpecName name = gcav::ApiSpecName.FromProjectLocationApiVersionSpec("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]", "[SPEC]");
// Make the request
gcav::ApiSpec response = await registryClient.DeleteApiSpecRevisionAsync(name);

DeleteApiSpecRevisionAsync(ApiSpecName, CancellationToken)

public virtual Task<ApiSpec> DeleteApiSpecRevisionAsync(ApiSpecName name, CancellationToken cancellationToken)

Deletes a revision of a spec.

Parameters
Name Description
name ApiSpecName

Required. The name of the spec revision to be deleted, with a revision ID explicitly included.

Example: projects/sample/locations/global/apis/petstore/versions/1.0.0/specs/openapi.yaml@c7cfa2a8

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskApiSpec

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ApiSpecName name = gcav::ApiSpecName.FromProjectLocationApiVersionSpec("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]", "[SPEC]");
// Make the request
gcav::ApiSpec response = await registryClient.DeleteApiSpecRevisionAsync(name);

DeleteApiSpecRevisionAsync(DeleteApiSpecRevisionRequest, CallSettings)

public virtual Task<ApiSpec> DeleteApiSpecRevisionAsync(DeleteApiSpecRevisionRequest request, CallSettings callSettings = null)

Deletes a revision of a spec.

Parameters
Name Description
request DeleteApiSpecRevisionRequest

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
TaskApiSpec

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::DeleteApiSpecRevisionRequest request = new gcav::DeleteApiSpecRevisionRequest
{
    ApiSpecName = gcav::ApiSpecName.FromProjectLocationApiVersionSpec("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]", "[SPEC]"),
};
// Make the request
gcav::ApiSpec response = await registryClient.DeleteApiSpecRevisionAsync(request);

DeleteApiSpecRevisionAsync(DeleteApiSpecRevisionRequest, CancellationToken)

public virtual Task<ApiSpec> DeleteApiSpecRevisionAsync(DeleteApiSpecRevisionRequest request, CancellationToken cancellationToken)

Deletes a revision of a spec.

Parameters
Name Description
request DeleteApiSpecRevisionRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskApiSpec

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::DeleteApiSpecRevisionRequest request = new gcav::DeleteApiSpecRevisionRequest
{
    ApiSpecName = gcav::ApiSpecName.FromProjectLocationApiVersionSpec("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]", "[SPEC]"),
};
// Make the request
gcav::ApiSpec response = await registryClient.DeleteApiSpecRevisionAsync(request);

DeleteApiSpecRevisionAsync(string, CallSettings)

public virtual Task<ApiSpec> DeleteApiSpecRevisionAsync(string name, CallSettings callSettings = null)

Deletes a revision of a spec.

Parameters
Name Description
name string

Required. The name of the spec revision to be deleted, with a revision ID explicitly included.

Example: projects/sample/locations/global/apis/petstore/versions/1.0.0/specs/openapi.yaml@c7cfa2a8

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskApiSpec

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apis/[API]/versions/[VERSION]/specs/[SPEC]";
// Make the request
gcav::ApiSpec response = await registryClient.DeleteApiSpecRevisionAsync(name);

DeleteApiSpecRevisionAsync(string, CancellationToken)

public virtual Task<ApiSpec> DeleteApiSpecRevisionAsync(string name, CancellationToken cancellationToken)

Deletes a revision of a spec.

Parameters
Name Description
name string

Required. The name of the spec revision to be deleted, with a revision ID explicitly included.

Example: projects/sample/locations/global/apis/petstore/versions/1.0.0/specs/openapi.yaml@c7cfa2a8

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskApiSpec

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apis/[API]/versions/[VERSION]/specs/[SPEC]";
// Make the request
gcav::ApiSpec response = await registryClient.DeleteApiSpecRevisionAsync(name);

DeleteApiVersion(ApiVersionName, CallSettings)

public virtual void DeleteApiVersion(ApiVersionName name, CallSettings callSettings = null)

Removes a specified version and all of the resources that it owns.

Parameters
Name Description
name ApiVersionName

Required. The name of the version to delete. Format: projects/*/locations/*/apis/*/versions/*

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::ApiVersionName name = gcav::ApiVersionName.FromProjectLocationApiVersion("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]");
// Make the request
registryClient.DeleteApiVersion(name);

DeleteApiVersion(DeleteApiVersionRequest, CallSettings)

public virtual void DeleteApiVersion(DeleteApiVersionRequest request, CallSettings callSettings = null)

Removes a specified version and all of the resources that it owns.

Parameters
Name Description
request DeleteApiVersionRequest

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
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::DeleteApiVersionRequest request = new gcav::DeleteApiVersionRequest
{
    ApiVersionName = gcav::ApiVersionName.FromProjectLocationApiVersion("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]"),
    Force = false,
};
// Make the request
registryClient.DeleteApiVersion(request);

DeleteApiVersion(string, CallSettings)

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

Removes a specified version and all of the resources that it owns.

Parameters
Name Description
name string

Required. The name of the version to delete. Format: projects/*/locations/*/apis/*/versions/*

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apis/[API]/versions/[VERSION]";
// Make the request
registryClient.DeleteApiVersion(name);

DeleteApiVersionAsync(ApiVersionName, CallSettings)

public virtual Task DeleteApiVersionAsync(ApiVersionName name, CallSettings callSettings = null)

Removes a specified version and all of the resources that it owns.

Parameters
Name Description
name ApiVersionName

Required. The name of the version to delete. Format: projects/*/locations/*/apis/*/versions/*

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ApiVersionName name = gcav::ApiVersionName.FromProjectLocationApiVersion("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]");
// Make the request
await registryClient.DeleteApiVersionAsync(name);

DeleteApiVersionAsync(ApiVersionName, CancellationToken)

public virtual Task DeleteApiVersionAsync(ApiVersionName name, CancellationToken cancellationToken)

Removes a specified version and all of the resources that it owns.

Parameters
Name Description
name ApiVersionName

Required. The name of the version to delete. Format: projects/*/locations/*/apis/*/versions/*

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ApiVersionName name = gcav::ApiVersionName.FromProjectLocationApiVersion("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]");
// Make the request
await registryClient.DeleteApiVersionAsync(name);

DeleteApiVersionAsync(DeleteApiVersionRequest, CallSettings)

public virtual Task DeleteApiVersionAsync(DeleteApiVersionRequest request, CallSettings callSettings = null)

Removes a specified version and all of the resources that it owns.

Parameters
Name Description
request DeleteApiVersionRequest

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
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::DeleteApiVersionRequest request = new gcav::DeleteApiVersionRequest
{
    ApiVersionName = gcav::ApiVersionName.FromProjectLocationApiVersion("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]"),
    Force = false,
};
// Make the request
await registryClient.DeleteApiVersionAsync(request);

DeleteApiVersionAsync(DeleteApiVersionRequest, CancellationToken)

public virtual Task DeleteApiVersionAsync(DeleteApiVersionRequest request, CancellationToken cancellationToken)

Removes a specified version and all of the resources that it owns.

Parameters
Name Description
request DeleteApiVersionRequest

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
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::DeleteApiVersionRequest request = new gcav::DeleteApiVersionRequest
{
    ApiVersionName = gcav::ApiVersionName.FromProjectLocationApiVersion("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]"),
    Force = false,
};
// Make the request
await registryClient.DeleteApiVersionAsync(request);

DeleteApiVersionAsync(string, CallSettings)

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

Removes a specified version and all of the resources that it owns.

Parameters
Name Description
name string

Required. The name of the version to delete. Format: projects/*/locations/*/apis/*/versions/*

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apis/[API]/versions/[VERSION]";
// Make the request
await registryClient.DeleteApiVersionAsync(name);

DeleteApiVersionAsync(string, CancellationToken)

public virtual Task DeleteApiVersionAsync(string name, CancellationToken cancellationToken)

Removes a specified version and all of the resources that it owns.

Parameters
Name Description
name string

Required. The name of the version to delete. Format: projects/*/locations/*/apis/*/versions/*

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apis/[API]/versions/[VERSION]";
// Make the request
await registryClient.DeleteApiVersionAsync(name);

DeleteArtifact(ArtifactName, CallSettings)

public virtual void DeleteArtifact(ArtifactName name, CallSettings callSettings = null)

Removes a specified artifact.

Parameters
Name Description
name ArtifactName

Required. The name of the artifact to delete. Format: {parent}/artifacts/*

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::ArtifactName name = gcav::ArtifactName.FromProjectLocationArtifact("[PROJECT]", "[LOCATION]", "[ARTIFACT]");
// Make the request
registryClient.DeleteArtifact(name);

DeleteArtifact(DeleteArtifactRequest, CallSettings)

public virtual void DeleteArtifact(DeleteArtifactRequest request, CallSettings callSettings = null)

Removes a specified artifact.

Parameters
Name Description
request DeleteArtifactRequest

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
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::DeleteArtifactRequest request = new gcav::DeleteArtifactRequest
{
    ArtifactName = gcav::ArtifactName.FromProjectLocationArtifact("[PROJECT]", "[LOCATION]", "[ARTIFACT]"),
};
// Make the request
registryClient.DeleteArtifact(request);

DeleteArtifact(string, CallSettings)

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

Removes a specified artifact.

Parameters
Name Description
name string

Required. The name of the artifact to delete. Format: {parent}/artifacts/*

callSettings CallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/artifacts/[ARTIFACT]";
// Make the request
registryClient.DeleteArtifact(name);

DeleteArtifactAsync(ArtifactName, CallSettings)

public virtual Task DeleteArtifactAsync(ArtifactName name, CallSettings callSettings = null)

Removes a specified artifact.

Parameters
Name Description
name ArtifactName

Required. The name of the artifact to delete. Format: {parent}/artifacts/*

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ArtifactName name = gcav::ArtifactName.FromProjectLocationArtifact("[PROJECT]", "[LOCATION]", "[ARTIFACT]");
// Make the request
await registryClient.DeleteArtifactAsync(name);

DeleteArtifactAsync(ArtifactName, CancellationToken)

public virtual Task DeleteArtifactAsync(ArtifactName name, CancellationToken cancellationToken)

Removes a specified artifact.

Parameters
Name Description
name ArtifactName

Required. The name of the artifact to delete. Format: {parent}/artifacts/*

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ArtifactName name = gcav::ArtifactName.FromProjectLocationArtifact("[PROJECT]", "[LOCATION]", "[ARTIFACT]");
// Make the request
await registryClient.DeleteArtifactAsync(name);

DeleteArtifactAsync(DeleteArtifactRequest, CallSettings)

public virtual Task DeleteArtifactAsync(DeleteArtifactRequest request, CallSettings callSettings = null)

Removes a specified artifact.

Parameters
Name Description
request DeleteArtifactRequest

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
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::DeleteArtifactRequest request = new gcav::DeleteArtifactRequest
{
    ArtifactName = gcav::ArtifactName.FromProjectLocationArtifact("[PROJECT]", "[LOCATION]", "[ARTIFACT]"),
};
// Make the request
await registryClient.DeleteArtifactAsync(request);

DeleteArtifactAsync(DeleteArtifactRequest, CancellationToken)

public virtual Task DeleteArtifactAsync(DeleteArtifactRequest request, CancellationToken cancellationToken)

Removes a specified artifact.

Parameters
Name Description
request DeleteArtifactRequest

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
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::DeleteArtifactRequest request = new gcav::DeleteArtifactRequest
{
    ArtifactName = gcav::ArtifactName.FromProjectLocationArtifact("[PROJECT]", "[LOCATION]", "[ARTIFACT]"),
};
// Make the request
await registryClient.DeleteArtifactAsync(request);

DeleteArtifactAsync(string, CallSettings)

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

Removes a specified artifact.

Parameters
Name Description
name string

Required. The name of the artifact to delete. Format: {parent}/artifacts/*

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/artifacts/[ARTIFACT]";
// Make the request
await registryClient.DeleteArtifactAsync(name);

DeleteArtifactAsync(string, CancellationToken)

public virtual Task DeleteArtifactAsync(string name, CancellationToken cancellationToken)

Removes a specified artifact.

Parameters
Name Description
name string

Required. The name of the artifact to delete. Format: {parent}/artifacts/*

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/artifacts/[ARTIFACT]";
// Make the request
await registryClient.DeleteArtifactAsync(name);

GetApi(ApiName, CallSettings)

public virtual Api GetApi(ApiName name, CallSettings callSettings = null)

Returns a specified API.

Parameters
Name Description
name ApiName

Required. The name of the API to retrieve. Format: projects/*/locations/*/apis/*

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Api

The RPC response.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::ApiName name = gcav::ApiName.FromProjectLocationApi("[PROJECT]", "[LOCATION]", "[API]");
// Make the request
gcav::Api response = registryClient.GetApi(name);

GetApi(GetApiRequest, CallSettings)

public virtual Api GetApi(GetApiRequest request, CallSettings callSettings = null)

Returns a specified API.

Parameters
Name Description
request GetApiRequest

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
Api

The RPC response.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::GetApiRequest request = new gcav::GetApiRequest
{
    ApiName = gcav::ApiName.FromProjectLocationApi("[PROJECT]", "[LOCATION]", "[API]"),
};
// Make the request
gcav::Api response = registryClient.GetApi(request);

GetApi(string, CallSettings)

public virtual Api GetApi(string name, CallSettings callSettings = null)

Returns a specified API.

Parameters
Name Description
name string

Required. The name of the API to retrieve. Format: projects/*/locations/*/apis/*

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Api

The RPC response.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apis/[API]";
// Make the request
gcav::Api response = registryClient.GetApi(name);

GetApiAsync(ApiName, CallSettings)

public virtual Task<Api> GetApiAsync(ApiName name, CallSettings callSettings = null)

Returns a specified API.

Parameters
Name Description
name ApiName

Required. The name of the API to retrieve. Format: projects/*/locations/*/apis/*

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskApi

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ApiName name = gcav::ApiName.FromProjectLocationApi("[PROJECT]", "[LOCATION]", "[API]");
// Make the request
gcav::Api response = await registryClient.GetApiAsync(name);

GetApiAsync(ApiName, CancellationToken)

public virtual Task<Api> GetApiAsync(ApiName name, CancellationToken cancellationToken)

Returns a specified API.

Parameters
Name Description
name ApiName

Required. The name of the API to retrieve. Format: projects/*/locations/*/apis/*

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskApi

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ApiName name = gcav::ApiName.FromProjectLocationApi("[PROJECT]", "[LOCATION]", "[API]");
// Make the request
gcav::Api response = await registryClient.GetApiAsync(name);

GetApiAsync(GetApiRequest, CallSettings)

public virtual Task<Api> GetApiAsync(GetApiRequest request, CallSettings callSettings = null)

Returns a specified API.

Parameters
Name Description
request GetApiRequest

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
TaskApi

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::GetApiRequest request = new gcav::GetApiRequest
{
    ApiName = gcav::ApiName.FromProjectLocationApi("[PROJECT]", "[LOCATION]", "[API]"),
};
// Make the request
gcav::Api response = await registryClient.GetApiAsync(request);

GetApiAsync(GetApiRequest, CancellationToken)

public virtual Task<Api> GetApiAsync(GetApiRequest request, CancellationToken cancellationToken)

Returns a specified API.

Parameters
Name Description
request GetApiRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskApi

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::GetApiRequest request = new gcav::GetApiRequest
{
    ApiName = gcav::ApiName.FromProjectLocationApi("[PROJECT]", "[LOCATION]", "[API]"),
};
// Make the request
gcav::Api response = await registryClient.GetApiAsync(request);

GetApiAsync(string, CallSettings)

public virtual Task<Api> GetApiAsync(string name, CallSettings callSettings = null)

Returns a specified API.

Parameters
Name Description
name string

Required. The name of the API to retrieve. Format: projects/*/locations/*/apis/*

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskApi

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apis/[API]";
// Make the request
gcav::Api response = await registryClient.GetApiAsync(name);

GetApiAsync(string, CancellationToken)

public virtual Task<Api> GetApiAsync(string name, CancellationToken cancellationToken)

Returns a specified API.

Parameters
Name Description
name string

Required. The name of the API to retrieve. Format: projects/*/locations/*/apis/*

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskApi

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apis/[API]";
// Make the request
gcav::Api response = await registryClient.GetApiAsync(name);

GetApiDeployment(ApiDeploymentName, CallSettings)

public virtual ApiDeployment GetApiDeployment(ApiDeploymentName name, CallSettings callSettings = null)

Returns a specified deployment.

Parameters
Name Description
name ApiDeploymentName

Required. The name of the deployment to retrieve. Format: projects/*/locations/*/apis/*/deployments/*

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ApiDeployment

The RPC response.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::ApiDeploymentName name = gcav::ApiDeploymentName.FromProjectLocationApiDeployment("[PROJECT]", "[LOCATION]", "[API]", "[DEPLOYMENT]");
// Make the request
gcav::ApiDeployment response = registryClient.GetApiDeployment(name);

GetApiDeployment(GetApiDeploymentRequest, CallSettings)

public virtual ApiDeployment GetApiDeployment(GetApiDeploymentRequest request, CallSettings callSettings = null)

Returns a specified deployment.

Parameters
Name Description
request GetApiDeploymentRequest

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
ApiDeployment

The RPC response.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::GetApiDeploymentRequest request = new gcav::GetApiDeploymentRequest
{
    ApiDeploymentName = gcav::ApiDeploymentName.FromProjectLocationApiDeployment("[PROJECT]", "[LOCATION]", "[API]", "[DEPLOYMENT]"),
};
// Make the request
gcav::ApiDeployment response = registryClient.GetApiDeployment(request);

GetApiDeployment(string, CallSettings)

public virtual ApiDeployment GetApiDeployment(string name, CallSettings callSettings = null)

Returns a specified deployment.

Parameters
Name Description
name string

Required. The name of the deployment to retrieve. Format: projects/*/locations/*/apis/*/deployments/*

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ApiDeployment

The RPC response.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apis/[API]/deployments/[DEPLOYMENT]";
// Make the request
gcav::ApiDeployment response = registryClient.GetApiDeployment(name);

GetApiDeploymentAsync(ApiDeploymentName, CallSettings)

public virtual Task<ApiDeployment> GetApiDeploymentAsync(ApiDeploymentName name, CallSettings callSettings = null)

Returns a specified deployment.

Parameters
Name Description
name ApiDeploymentName

Required. The name of the deployment to retrieve. Format: projects/*/locations/*/apis/*/deployments/*

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskApiDeployment

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ApiDeploymentName name = gcav::ApiDeploymentName.FromProjectLocationApiDeployment("[PROJECT]", "[LOCATION]", "[API]", "[DEPLOYMENT]");
// Make the request
gcav::ApiDeployment response = await registryClient.GetApiDeploymentAsync(name);

GetApiDeploymentAsync(ApiDeploymentName, CancellationToken)

public virtual Task<ApiDeployment> GetApiDeploymentAsync(ApiDeploymentName name, CancellationToken cancellationToken)

Returns a specified deployment.

Parameters
Name Description
name ApiDeploymentName

Required. The name of the deployment to retrieve. Format: projects/*/locations/*/apis/*/deployments/*

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskApiDeployment

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ApiDeploymentName name = gcav::ApiDeploymentName.FromProjectLocationApiDeployment("[PROJECT]", "[LOCATION]", "[API]", "[DEPLOYMENT]");
// Make the request
gcav::ApiDeployment response = await registryClient.GetApiDeploymentAsync(name);

GetApiDeploymentAsync(GetApiDeploymentRequest, CallSettings)

public virtual Task<ApiDeployment> GetApiDeploymentAsync(GetApiDeploymentRequest request, CallSettings callSettings = null)

Returns a specified deployment.

Parameters
Name Description
request GetApiDeploymentRequest

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
TaskApiDeployment

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::GetApiDeploymentRequest request = new gcav::GetApiDeploymentRequest
{
    ApiDeploymentName = gcav::ApiDeploymentName.FromProjectLocationApiDeployment("[PROJECT]", "[LOCATION]", "[API]", "[DEPLOYMENT]"),
};
// Make the request
gcav::ApiDeployment response = await registryClient.GetApiDeploymentAsync(request);

GetApiDeploymentAsync(GetApiDeploymentRequest, CancellationToken)

public virtual Task<ApiDeployment> GetApiDeploymentAsync(GetApiDeploymentRequest request, CancellationToken cancellationToken)

Returns a specified deployment.

Parameters
Name Description
request GetApiDeploymentRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskApiDeployment

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::GetApiDeploymentRequest request = new gcav::GetApiDeploymentRequest
{
    ApiDeploymentName = gcav::ApiDeploymentName.FromProjectLocationApiDeployment("[PROJECT]", "[LOCATION]", "[API]", "[DEPLOYMENT]"),
};
// Make the request
gcav::ApiDeployment response = await registryClient.GetApiDeploymentAsync(request);

GetApiDeploymentAsync(string, CallSettings)

public virtual Task<ApiDeployment> GetApiDeploymentAsync(string name, CallSettings callSettings = null)

Returns a specified deployment.

Parameters
Name Description
name string

Required. The name of the deployment to retrieve. Format: projects/*/locations/*/apis/*/deployments/*

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskApiDeployment

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apis/[API]/deployments/[DEPLOYMENT]";
// Make the request
gcav::ApiDeployment response = await registryClient.GetApiDeploymentAsync(name);

GetApiDeploymentAsync(string, CancellationToken)

public virtual Task<ApiDeployment> GetApiDeploymentAsync(string name, CancellationToken cancellationToken)

Returns a specified deployment.

Parameters
Name Description
name string

Required. The name of the deployment to retrieve. Format: projects/*/locations/*/apis/*/deployments/*

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskApiDeployment

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apis/[API]/deployments/[DEPLOYMENT]";
// Make the request
gcav::ApiDeployment response = await registryClient.GetApiDeploymentAsync(name);

GetApiSpec(ApiSpecName, CallSettings)

public virtual ApiSpec GetApiSpec(ApiSpecName name, CallSettings callSettings = null)

Returns a specified spec.

Parameters
Name Description
name ApiSpecName

Required. The name of the spec to retrieve. Format: projects/*/locations/*/apis/*/versions/*/specs/*

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ApiSpec

The RPC response.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::ApiSpecName name = gcav::ApiSpecName.FromProjectLocationApiVersionSpec("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]", "[SPEC]");
// Make the request
gcav::ApiSpec response = registryClient.GetApiSpec(name);

GetApiSpec(GetApiSpecRequest, CallSettings)

public virtual ApiSpec GetApiSpec(GetApiSpecRequest request, CallSettings callSettings = null)

Returns a specified spec.

Parameters
Name Description
request GetApiSpecRequest

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
ApiSpec

The RPC response.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::GetApiSpecRequest request = new gcav::GetApiSpecRequest
{
    ApiSpecName = gcav::ApiSpecName.FromProjectLocationApiVersionSpec("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]", "[SPEC]"),
};
// Make the request
gcav::ApiSpec response = registryClient.GetApiSpec(request);

GetApiSpec(string, CallSettings)

public virtual ApiSpec GetApiSpec(string name, CallSettings callSettings = null)

Returns a specified spec.

Parameters
Name Description
name string

Required. The name of the spec to retrieve. Format: projects/*/locations/*/apis/*/versions/*/specs/*

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ApiSpec

The RPC response.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apis/[API]/versions/[VERSION]/specs/[SPEC]";
// Make the request
gcav::ApiSpec response = registryClient.GetApiSpec(name);

GetApiSpecAsync(ApiSpecName, CallSettings)

public virtual Task<ApiSpec> GetApiSpecAsync(ApiSpecName name, CallSettings callSettings = null)

Returns a specified spec.

Parameters
Name Description
name ApiSpecName

Required. The name of the spec to retrieve. Format: projects/*/locations/*/apis/*/versions/*/specs/*

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskApiSpec

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ApiSpecName name = gcav::ApiSpecName.FromProjectLocationApiVersionSpec("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]", "[SPEC]");
// Make the request
gcav::ApiSpec response = await registryClient.GetApiSpecAsync(name);

GetApiSpecAsync(ApiSpecName, CancellationToken)

public virtual Task<ApiSpec> GetApiSpecAsync(ApiSpecName name, CancellationToken cancellationToken)

Returns a specified spec.

Parameters
Name Description
name ApiSpecName

Required. The name of the spec to retrieve. Format: projects/*/locations/*/apis/*/versions/*/specs/*

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskApiSpec

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ApiSpecName name = gcav::ApiSpecName.FromProjectLocationApiVersionSpec("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]", "[SPEC]");
// Make the request
gcav::ApiSpec response = await registryClient.GetApiSpecAsync(name);

GetApiSpecAsync(GetApiSpecRequest, CallSettings)

public virtual Task<ApiSpec> GetApiSpecAsync(GetApiSpecRequest request, CallSettings callSettings = null)

Returns a specified spec.

Parameters
Name Description
request GetApiSpecRequest

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
TaskApiSpec

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::GetApiSpecRequest request = new gcav::GetApiSpecRequest
{
    ApiSpecName = gcav::ApiSpecName.FromProjectLocationApiVersionSpec("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]", "[SPEC]"),
};
// Make the request
gcav::ApiSpec response = await registryClient.GetApiSpecAsync(request);

GetApiSpecAsync(GetApiSpecRequest, CancellationToken)

public virtual Task<ApiSpec> GetApiSpecAsync(GetApiSpecRequest request, CancellationToken cancellationToken)

Returns a specified spec.

Parameters
Name Description
request GetApiSpecRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskApiSpec

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::GetApiSpecRequest request = new gcav::GetApiSpecRequest
{
    ApiSpecName = gcav::ApiSpecName.FromProjectLocationApiVersionSpec("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]", "[SPEC]"),
};
// Make the request
gcav::ApiSpec response = await registryClient.GetApiSpecAsync(request);

GetApiSpecAsync(string, CallSettings)

public virtual Task<ApiSpec> GetApiSpecAsync(string name, CallSettings callSettings = null)

Returns a specified spec.

Parameters
Name Description
name string

Required. The name of the spec to retrieve. Format: projects/*/locations/*/apis/*/versions/*/specs/*

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskApiSpec

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apis/[API]/versions/[VERSION]/specs/[SPEC]";
// Make the request
gcav::ApiSpec response = await registryClient.GetApiSpecAsync(name);

GetApiSpecAsync(string, CancellationToken)

public virtual Task<ApiSpec> GetApiSpecAsync(string name, CancellationToken cancellationToken)

Returns a specified spec.

Parameters
Name Description
name string

Required. The name of the spec to retrieve. Format: projects/*/locations/*/apis/*/versions/*/specs/*

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskApiSpec

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apis/[API]/versions/[VERSION]/specs/[SPEC]";
// Make the request
gcav::ApiSpec response = await registryClient.GetApiSpecAsync(name);

GetApiSpecContents(ApiSpecName, CallSettings)

public virtual HttpBody GetApiSpecContents(ApiSpecName name, CallSettings callSettings = null)

Returns the contents of a specified spec. If specs are stored with GZip compression, the default behavior is to return the spec uncompressed (the mime_type response field indicates the exact format returned).

Parameters
Name Description
name ApiSpecName

Required. The name of the spec whose contents should be retrieved. Format: projects/*/locations/*/apis/*/versions/*/specs/*

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
HttpBody

The RPC response.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::ApiSpecName name = gcav::ApiSpecName.FromProjectLocationApiVersionSpec("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]", "[SPEC]");
// Make the request
HttpBody response = registryClient.GetApiSpecContents(name);

GetApiSpecContents(GetApiSpecContentsRequest, CallSettings)

public virtual HttpBody GetApiSpecContents(GetApiSpecContentsRequest request, CallSettings callSettings = null)

Returns the contents of a specified spec. If specs are stored with GZip compression, the default behavior is to return the spec uncompressed (the mime_type response field indicates the exact format returned).

Parameters
Name Description
request GetApiSpecContentsRequest

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
HttpBody

The RPC response.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::GetApiSpecContentsRequest request = new gcav::GetApiSpecContentsRequest
{
    ApiSpecName = gcav::ApiSpecName.FromProjectLocationApiVersionSpec("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]", "[SPEC]"),
};
// Make the request
HttpBody response = registryClient.GetApiSpecContents(request);

GetApiSpecContents(string, CallSettings)

public virtual HttpBody GetApiSpecContents(string name, CallSettings callSettings = null)

Returns the contents of a specified spec. If specs are stored with GZip compression, the default behavior is to return the spec uncompressed (the mime_type response field indicates the exact format returned).

Parameters
Name Description
name string

Required. The name of the spec whose contents should be retrieved. Format: projects/*/locations/*/apis/*/versions/*/specs/*

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
HttpBody

The RPC response.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apis/[API]/versions/[VERSION]/specs/[SPEC]";
// Make the request
HttpBody response = registryClient.GetApiSpecContents(name);

GetApiSpecContentsAsync(ApiSpecName, CallSettings)

public virtual Task<HttpBody> GetApiSpecContentsAsync(ApiSpecName name, CallSettings callSettings = null)

Returns the contents of a specified spec. If specs are stored with GZip compression, the default behavior is to return the spec uncompressed (the mime_type response field indicates the exact format returned).

Parameters
Name Description
name ApiSpecName

Required. The name of the spec whose contents should be retrieved. Format: projects/*/locations/*/apis/*/versions/*/specs/*

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskHttpBody

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ApiSpecName name = gcav::ApiSpecName.FromProjectLocationApiVersionSpec("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]", "[SPEC]");
// Make the request
HttpBody response = await registryClient.GetApiSpecContentsAsync(name);

GetApiSpecContentsAsync(ApiSpecName, CancellationToken)

public virtual Task<HttpBody> GetApiSpecContentsAsync(ApiSpecName name, CancellationToken cancellationToken)

Returns the contents of a specified spec. If specs are stored with GZip compression, the default behavior is to return the spec uncompressed (the mime_type response field indicates the exact format returned).

Parameters
Name Description
name ApiSpecName

Required. The name of the spec whose contents should be retrieved. Format: projects/*/locations/*/apis/*/versions/*/specs/*

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskHttpBody

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ApiSpecName name = gcav::ApiSpecName.FromProjectLocationApiVersionSpec("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]", "[SPEC]");
// Make the request
HttpBody response = await registryClient.GetApiSpecContentsAsync(name);

GetApiSpecContentsAsync(GetApiSpecContentsRequest, CallSettings)

public virtual Task<HttpBody> GetApiSpecContentsAsync(GetApiSpecContentsRequest request, CallSettings callSettings = null)

Returns the contents of a specified spec. If specs are stored with GZip compression, the default behavior is to return the spec uncompressed (the mime_type response field indicates the exact format returned).

Parameters
Name Description
request GetApiSpecContentsRequest

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
TaskHttpBody

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::GetApiSpecContentsRequest request = new gcav::GetApiSpecContentsRequest
{
    ApiSpecName = gcav::ApiSpecName.FromProjectLocationApiVersionSpec("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]", "[SPEC]"),
};
// Make the request
HttpBody response = await registryClient.GetApiSpecContentsAsync(request);

GetApiSpecContentsAsync(GetApiSpecContentsRequest, CancellationToken)

public virtual Task<HttpBody> GetApiSpecContentsAsync(GetApiSpecContentsRequest request, CancellationToken cancellationToken)

Returns the contents of a specified spec. If specs are stored with GZip compression, the default behavior is to return the spec uncompressed (the mime_type response field indicates the exact format returned).

Parameters
Name Description
request GetApiSpecContentsRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskHttpBody

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::GetApiSpecContentsRequest request = new gcav::GetApiSpecContentsRequest
{
    ApiSpecName = gcav::ApiSpecName.FromProjectLocationApiVersionSpec("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]", "[SPEC]"),
};
// Make the request
HttpBody response = await registryClient.GetApiSpecContentsAsync(request);

GetApiSpecContentsAsync(string, CallSettings)

public virtual Task<HttpBody> GetApiSpecContentsAsync(string name, CallSettings callSettings = null)

Returns the contents of a specified spec. If specs are stored with GZip compression, the default behavior is to return the spec uncompressed (the mime_type response field indicates the exact format returned).

Parameters
Name Description
name string

Required. The name of the spec whose contents should be retrieved. Format: projects/*/locations/*/apis/*/versions/*/specs/*

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskHttpBody

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apis/[API]/versions/[VERSION]/specs/[SPEC]";
// Make the request
HttpBody response = await registryClient.GetApiSpecContentsAsync(name);

GetApiSpecContentsAsync(string, CancellationToken)

public virtual Task<HttpBody> GetApiSpecContentsAsync(string name, CancellationToken cancellationToken)

Returns the contents of a specified spec. If specs are stored with GZip compression, the default behavior is to return the spec uncompressed (the mime_type response field indicates the exact format returned).

Parameters
Name Description
name string

Required. The name of the spec whose contents should be retrieved. Format: projects/*/locations/*/apis/*/versions/*/specs/*

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskHttpBody

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apis/[API]/versions/[VERSION]/specs/[SPEC]";
// Make the request
HttpBody response = await registryClient.GetApiSpecContentsAsync(name);

GetApiVersion(ApiVersionName, CallSettings)

public virtual ApiVersion GetApiVersion(ApiVersionName name, CallSettings callSettings = null)

Returns a specified version.

Parameters
Name Description
name ApiVersionName

Required. The name of the version to retrieve. Format: projects/*/locations/*/apis/*/versions/*

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ApiVersion

The RPC response.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::ApiVersionName name = gcav::ApiVersionName.FromProjectLocationApiVersion("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]");
// Make the request
gcav::ApiVersion response = registryClient.GetApiVersion(name);

GetApiVersion(GetApiVersionRequest, CallSettings)

public virtual ApiVersion GetApiVersion(GetApiVersionRequest request, CallSettings callSettings = null)

Returns a specified version.

Parameters
Name Description
request GetApiVersionRequest

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
ApiVersion

The RPC response.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::GetApiVersionRequest request = new gcav::GetApiVersionRequest
{
    ApiVersionName = gcav::ApiVersionName.FromProjectLocationApiVersion("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]"),
};
// Make the request
gcav::ApiVersion response = registryClient.GetApiVersion(request);

GetApiVersion(string, CallSettings)

public virtual ApiVersion GetApiVersion(string name, CallSettings callSettings = null)

Returns a specified version.

Parameters
Name Description
name string

Required. The name of the version to retrieve. Format: projects/*/locations/*/apis/*/versions/*

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ApiVersion

The RPC response.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apis/[API]/versions/[VERSION]";
// Make the request
gcav::ApiVersion response = registryClient.GetApiVersion(name);

GetApiVersionAsync(ApiVersionName, CallSettings)

public virtual Task<ApiVersion> GetApiVersionAsync(ApiVersionName name, CallSettings callSettings = null)

Returns a specified version.

Parameters
Name Description
name ApiVersionName

Required. The name of the version to retrieve. Format: projects/*/locations/*/apis/*/versions/*

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskApiVersion

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ApiVersionName name = gcav::ApiVersionName.FromProjectLocationApiVersion("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]");
// Make the request
gcav::ApiVersion response = await registryClient.GetApiVersionAsync(name);

GetApiVersionAsync(ApiVersionName, CancellationToken)

public virtual Task<ApiVersion> GetApiVersionAsync(ApiVersionName name, CancellationToken cancellationToken)

Returns a specified version.

Parameters
Name Description
name ApiVersionName

Required. The name of the version to retrieve. Format: projects/*/locations/*/apis/*/versions/*

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskApiVersion

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ApiVersionName name = gcav::ApiVersionName.FromProjectLocationApiVersion("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]");
// Make the request
gcav::ApiVersion response = await registryClient.GetApiVersionAsync(name);

GetApiVersionAsync(GetApiVersionRequest, CallSettings)

public virtual Task<ApiVersion> GetApiVersionAsync(GetApiVersionRequest request, CallSettings callSettings = null)

Returns a specified version.

Parameters
Name Description
request GetApiVersionRequest

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
TaskApiVersion

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::GetApiVersionRequest request = new gcav::GetApiVersionRequest
{
    ApiVersionName = gcav::ApiVersionName.FromProjectLocationApiVersion("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]"),
};
// Make the request
gcav::ApiVersion response = await registryClient.GetApiVersionAsync(request);

GetApiVersionAsync(GetApiVersionRequest, CancellationToken)

public virtual Task<ApiVersion> GetApiVersionAsync(GetApiVersionRequest request, CancellationToken cancellationToken)

Returns a specified version.

Parameters
Name Description
request GetApiVersionRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskApiVersion

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::GetApiVersionRequest request = new gcav::GetApiVersionRequest
{
    ApiVersionName = gcav::ApiVersionName.FromProjectLocationApiVersion("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]"),
};
// Make the request
gcav::ApiVersion response = await registryClient.GetApiVersionAsync(request);

GetApiVersionAsync(string, CallSettings)

public virtual Task<ApiVersion> GetApiVersionAsync(string name, CallSettings callSettings = null)

Returns a specified version.

Parameters
Name Description
name string

Required. The name of the version to retrieve. Format: projects/*/locations/*/apis/*/versions/*

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskApiVersion

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apis/[API]/versions/[VERSION]";
// Make the request
gcav::ApiVersion response = await registryClient.GetApiVersionAsync(name);

GetApiVersionAsync(string, CancellationToken)

public virtual Task<ApiVersion> GetApiVersionAsync(string name, CancellationToken cancellationToken)

Returns a specified version.

Parameters
Name Description
name string

Required. The name of the version to retrieve. Format: projects/*/locations/*/apis/*/versions/*

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskApiVersion

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/apis/[API]/versions/[VERSION]";
// Make the request
gcav::ApiVersion response = await registryClient.GetApiVersionAsync(name);

GetArtifact(ArtifactName, CallSettings)

public virtual Artifact GetArtifact(ArtifactName name, CallSettings callSettings = null)

Returns a specified artifact.

Parameters
Name Description
name ArtifactName

Required. The name of the artifact to retrieve. Format: {parent}/artifacts/*

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Artifact

The RPC response.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::ArtifactName name = gcav::ArtifactName.FromProjectLocationArtifact("[PROJECT]", "[LOCATION]", "[ARTIFACT]");
// Make the request
gcav::Artifact response = registryClient.GetArtifact(name);

GetArtifact(GetArtifactRequest, CallSettings)

public virtual Artifact GetArtifact(GetArtifactRequest request, CallSettings callSettings = null)

Returns a specified artifact.

Parameters
Name Description
request GetArtifactRequest

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
Artifact

The RPC response.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::GetArtifactRequest request = new gcav::GetArtifactRequest
{
    ArtifactName = gcav::ArtifactName.FromProjectLocationArtifact("[PROJECT]", "[LOCATION]", "[ARTIFACT]"),
};
// Make the request
gcav::Artifact response = registryClient.GetArtifact(request);

GetArtifact(string, CallSettings)

public virtual Artifact GetArtifact(string name, CallSettings callSettings = null)

Returns a specified artifact.

Parameters
Name Description
name string

Required. The name of the artifact to retrieve. Format: {parent}/artifacts/*

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Artifact

The RPC response.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/artifacts/[ARTIFACT]";
// Make the request
gcav::Artifact response = registryClient.GetArtifact(name);

GetArtifactAsync(ArtifactName, CallSettings)

public virtual Task<Artifact> GetArtifactAsync(ArtifactName name, CallSettings callSettings = null)

Returns a specified artifact.

Parameters
Name Description
name ArtifactName

Required. The name of the artifact to retrieve. Format: {parent}/artifacts/*

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskArtifact

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ArtifactName name = gcav::ArtifactName.FromProjectLocationArtifact("[PROJECT]", "[LOCATION]", "[ARTIFACT]");
// Make the request
gcav::Artifact response = await registryClient.GetArtifactAsync(name);

GetArtifactAsync(ArtifactName, CancellationToken)

public virtual Task<Artifact> GetArtifactAsync(ArtifactName name, CancellationToken cancellationToken)

Returns a specified artifact.

Parameters
Name Description
name ArtifactName

Required. The name of the artifact to retrieve. Format: {parent}/artifacts/*

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskArtifact

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ArtifactName name = gcav::ArtifactName.FromProjectLocationArtifact("[PROJECT]", "[LOCATION]", "[ARTIFACT]");
// Make the request
gcav::Artifact response = await registryClient.GetArtifactAsync(name);

GetArtifactAsync(GetArtifactRequest, CallSettings)

public virtual Task<Artifact> GetArtifactAsync(GetArtifactRequest request, CallSettings callSettings = null)

Returns a specified artifact.

Parameters
Name Description
request GetArtifactRequest

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
TaskArtifact

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::GetArtifactRequest request = new gcav::GetArtifactRequest
{
    ArtifactName = gcav::ArtifactName.FromProjectLocationArtifact("[PROJECT]", "[LOCATION]", "[ARTIFACT]"),
};
// Make the request
gcav::Artifact response = await registryClient.GetArtifactAsync(request);

GetArtifactAsync(GetArtifactRequest, CancellationToken)

public virtual Task<Artifact> GetArtifactAsync(GetArtifactRequest request, CancellationToken cancellationToken)

Returns a specified artifact.

Parameters
Name Description
request GetArtifactRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskArtifact

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::GetArtifactRequest request = new gcav::GetArtifactRequest
{
    ArtifactName = gcav::ArtifactName.FromProjectLocationArtifact("[PROJECT]", "[LOCATION]", "[ARTIFACT]"),
};
// Make the request
gcav::Artifact response = await registryClient.GetArtifactAsync(request);

GetArtifactAsync(string, CallSettings)

public virtual Task<Artifact> GetArtifactAsync(string name, CallSettings callSettings = null)

Returns a specified artifact.

Parameters
Name Description
name string

Required. The name of the artifact to retrieve. Format: {parent}/artifacts/*

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskArtifact

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/artifacts/[ARTIFACT]";
// Make the request
gcav::Artifact response = await registryClient.GetArtifactAsync(name);

GetArtifactAsync(string, CancellationToken)

public virtual Task<Artifact> GetArtifactAsync(string name, CancellationToken cancellationToken)

Returns a specified artifact.

Parameters
Name Description
name string

Required. The name of the artifact to retrieve. Format: {parent}/artifacts/*

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskArtifact

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/artifacts/[ARTIFACT]";
// Make the request
gcav::Artifact response = await registryClient.GetArtifactAsync(name);

GetArtifactContents(ArtifactName, CallSettings)

public virtual HttpBody GetArtifactContents(ArtifactName name, CallSettings callSettings = null)

Returns the contents of a specified artifact. If artifacts are stored with GZip compression, the default behavior is to return the artifact uncompressed (the mime_type response field indicates the exact format returned).

Parameters
Name Description
name ArtifactName

Required. The name of the artifact whose contents should be retrieved. Format: {parent}/artifacts/*

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
HttpBody

The RPC response.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::ArtifactName name = gcav::ArtifactName.FromProjectLocationArtifact("[PROJECT]", "[LOCATION]", "[ARTIFACT]");
// Make the request
HttpBody response = registryClient.GetArtifactContents(name);

GetArtifactContents(GetArtifactContentsRequest, CallSettings)

public virtual HttpBody GetArtifactContents(GetArtifactContentsRequest request, CallSettings callSettings = null)

Returns the contents of a specified artifact. If artifacts are stored with GZip compression, the default behavior is to return the artifact uncompressed (the mime_type response field indicates the exact format returned).

Parameters
Name Description
request GetArtifactContentsRequest

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
HttpBody

The RPC response.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::GetArtifactContentsRequest request = new gcav::GetArtifactContentsRequest
{
    ArtifactName = gcav::ArtifactName.FromProjectLocationArtifact("[PROJECT]", "[LOCATION]", "[ARTIFACT]"),
};
// Make the request
HttpBody response = registryClient.GetArtifactContents(request);

GetArtifactContents(string, CallSettings)

public virtual HttpBody GetArtifactContents(string name, CallSettings callSettings = null)

Returns the contents of a specified artifact. If artifacts are stored with GZip compression, the default behavior is to return the artifact uncompressed (the mime_type response field indicates the exact format returned).

Parameters
Name Description
name string

Required. The name of the artifact whose contents should be retrieved. Format: {parent}/artifacts/*

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
HttpBody

The RPC response.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/artifacts/[ARTIFACT]";
// Make the request
HttpBody response = registryClient.GetArtifactContents(name);

GetArtifactContentsAsync(ArtifactName, CallSettings)

public virtual Task<HttpBody> GetArtifactContentsAsync(ArtifactName name, CallSettings callSettings = null)

Returns the contents of a specified artifact. If artifacts are stored with GZip compression, the default behavior is to return the artifact uncompressed (the mime_type response field indicates the exact format returned).

Parameters
Name Description
name ArtifactName

Required. The name of the artifact whose contents should be retrieved. Format: {parent}/artifacts/*

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskHttpBody

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ArtifactName name = gcav::ArtifactName.FromProjectLocationArtifact("[PROJECT]", "[LOCATION]", "[ARTIFACT]");
// Make the request
HttpBody response = await registryClient.GetArtifactContentsAsync(name);

GetArtifactContentsAsync(ArtifactName, CancellationToken)

public virtual Task<HttpBody> GetArtifactContentsAsync(ArtifactName name, CancellationToken cancellationToken)

Returns the contents of a specified artifact. If artifacts are stored with GZip compression, the default behavior is to return the artifact uncompressed (the mime_type response field indicates the exact format returned).

Parameters
Name Description
name ArtifactName

Required. The name of the artifact whose contents should be retrieved. Format: {parent}/artifacts/*

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskHttpBody

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ArtifactName name = gcav::ArtifactName.FromProjectLocationArtifact("[PROJECT]", "[LOCATION]", "[ARTIFACT]");
// Make the request
HttpBody response = await registryClient.GetArtifactContentsAsync(name);

GetArtifactContentsAsync(GetArtifactContentsRequest, CallSettings)

public virtual Task<HttpBody> GetArtifactContentsAsync(GetArtifactContentsRequest request, CallSettings callSettings = null)

Returns the contents of a specified artifact. If artifacts are stored with GZip compression, the default behavior is to return the artifact uncompressed (the mime_type response field indicates the exact format returned).

Parameters
Name Description
request GetArtifactContentsRequest

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
TaskHttpBody

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::GetArtifactContentsRequest request = new gcav::GetArtifactContentsRequest
{
    ArtifactName = gcav::ArtifactName.FromProjectLocationArtifact("[PROJECT]", "[LOCATION]", "[ARTIFACT]"),
};
// Make the request
HttpBody response = await registryClient.GetArtifactContentsAsync(request);

GetArtifactContentsAsync(GetArtifactContentsRequest, CancellationToken)

public virtual Task<HttpBody> GetArtifactContentsAsync(GetArtifactContentsRequest request, CancellationToken cancellationToken)

Returns the contents of a specified artifact. If artifacts are stored with GZip compression, the default behavior is to return the artifact uncompressed (the mime_type response field indicates the exact format returned).

Parameters
Name Description
request GetArtifactContentsRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskHttpBody

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::GetArtifactContentsRequest request = new gcav::GetArtifactContentsRequest
{
    ArtifactName = gcav::ArtifactName.FromProjectLocationArtifact("[PROJECT]", "[LOCATION]", "[ARTIFACT]"),
};
// Make the request
HttpBody response = await registryClient.GetArtifactContentsAsync(request);

GetArtifactContentsAsync(string, CallSettings)

public virtual Task<HttpBody> GetArtifactContentsAsync(string name, CallSettings callSettings = null)

Returns the contents of a specified artifact. If artifacts are stored with GZip compression, the default behavior is to return the artifact uncompressed (the mime_type response field indicates the exact format returned).

Parameters
Name Description
name string

Required. The name of the artifact whose contents should be retrieved. Format: {parent}/artifacts/*

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskHttpBody

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/artifacts/[ARTIFACT]";
// Make the request
HttpBody response = await registryClient.GetArtifactContentsAsync(name);

GetArtifactContentsAsync(string, CancellationToken)

public virtual Task<HttpBody> GetArtifactContentsAsync(string name, CancellationToken cancellationToken)

Returns the contents of a specified artifact. If artifacts are stored with GZip compression, the default behavior is to return the artifact uncompressed (the mime_type response field indicates the exact format returned).

Parameters
Name Description
name string

Required. The name of the artifact whose contents should be retrieved. Format: {parent}/artifacts/*

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskHttpBody

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/artifacts/[ARTIFACT]";
// Make the request
HttpBody response = await registryClient.GetArtifactContentsAsync(name);

ListApiDeploymentRevisions(ListApiDeploymentRevisionsRequest, CallSettings)

public virtual PagedEnumerable<ListApiDeploymentRevisionsResponse, ApiDeployment> ListApiDeploymentRevisions(ListApiDeploymentRevisionsRequest request, CallSettings callSettings = null)

Lists all revisions of a deployment. Revisions are returned in descending order of revision creation time.

Parameters
Name Description
request ListApiDeploymentRevisionsRequest

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
PagedEnumerableListApiDeploymentRevisionsResponseApiDeployment

A pageable sequence of ApiDeployment resources.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::ListApiDeploymentRevisionsRequest request = new gcav::ListApiDeploymentRevisionsRequest
{
    ApiDeploymentName = gcav::ApiDeploymentName.FromProjectLocationApiDeployment("[PROJECT]", "[LOCATION]", "[API]", "[DEPLOYMENT]"),
};
// Make the request
PagedEnumerable<gcav::ListApiDeploymentRevisionsResponse, gcav::ApiDeployment> response = registryClient.ListApiDeploymentRevisions(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (gcav::ApiDeployment 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 (gcav::ListApiDeploymentRevisionsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcav::ApiDeployment 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<gcav::ApiDeployment> 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 (gcav::ApiDeployment 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;

ListApiDeploymentRevisionsAsync(ListApiDeploymentRevisionsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListApiDeploymentRevisionsResponse, ApiDeployment> ListApiDeploymentRevisionsAsync(ListApiDeploymentRevisionsRequest request, CallSettings callSettings = null)

Lists all revisions of a deployment. Revisions are returned in descending order of revision creation time.

Parameters
Name Description
request ListApiDeploymentRevisionsRequest

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
PagedAsyncEnumerableListApiDeploymentRevisionsResponseApiDeployment

A pageable asynchronous sequence of ApiDeployment resources.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ListApiDeploymentRevisionsRequest request = new gcav::ListApiDeploymentRevisionsRequest
{
    ApiDeploymentName = gcav::ApiDeploymentName.FromProjectLocationApiDeployment("[PROJECT]", "[LOCATION]", "[API]", "[DEPLOYMENT]"),
};
// Make the request
PagedAsyncEnumerable<gcav::ListApiDeploymentRevisionsResponse, gcav::ApiDeployment> response = registryClient.ListApiDeploymentRevisionsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcav::ApiDeployment 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((gcav::ListApiDeploymentRevisionsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcav::ApiDeployment 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<gcav::ApiDeployment> 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 (gcav::ApiDeployment 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;

ListApiDeployments(ApiName, string, int?, CallSettings)

public virtual PagedEnumerable<ListApiDeploymentsResponse, ApiDeployment> ListApiDeployments(ApiName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns matching deployments.

Parameters
Name Description
parent ApiName

Required. The parent, which owns this collection of deployments. Format: projects/*/locations/*/apis/*

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
PagedEnumerableListApiDeploymentsResponseApiDeployment

A pageable sequence of ApiDeployment resources.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::ApiName parent = gcav::ApiName.FromProjectLocationApi("[PROJECT]", "[LOCATION]", "[API]");
// Make the request
PagedEnumerable<gcav::ListApiDeploymentsResponse, gcav::ApiDeployment> response = registryClient.ListApiDeployments(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (gcav::ApiDeployment 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 (gcav::ListApiDeploymentsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcav::ApiDeployment 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<gcav::ApiDeployment> 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 (gcav::ApiDeployment 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;

ListApiDeployments(ListApiDeploymentsRequest, CallSettings)

public virtual PagedEnumerable<ListApiDeploymentsResponse, ApiDeployment> ListApiDeployments(ListApiDeploymentsRequest request, CallSettings callSettings = null)

Returns matching deployments.

Parameters
Name Description
request ListApiDeploymentsRequest

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
PagedEnumerableListApiDeploymentsResponseApiDeployment

A pageable sequence of ApiDeployment resources.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::ListApiDeploymentsRequest request = new gcav::ListApiDeploymentsRequest
{
    ParentAsApiName = gcav::ApiName.FromProjectLocationApi("[PROJECT]", "[LOCATION]", "[API]"),
    Filter = "",
};
// Make the request
PagedEnumerable<gcav::ListApiDeploymentsResponse, gcav::ApiDeployment> response = registryClient.ListApiDeployments(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (gcav::ApiDeployment 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 (gcav::ListApiDeploymentsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcav::ApiDeployment 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<gcav::ApiDeployment> 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 (gcav::ApiDeployment 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;

ListApiDeployments(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListApiDeploymentsResponse, ApiDeployment> ListApiDeployments(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns matching deployments.

Parameters
Name Description
parent string

Required. The parent, which owns this collection of deployments. Format: projects/*/locations/*/apis/*

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
PagedEnumerableListApiDeploymentsResponseApiDeployment

A pageable sequence of ApiDeployment resources.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/apis/[API]";
// Make the request
PagedEnumerable<gcav::ListApiDeploymentsResponse, gcav::ApiDeployment> response = registryClient.ListApiDeployments(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (gcav::ApiDeployment 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 (gcav::ListApiDeploymentsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcav::ApiDeployment 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<gcav::ApiDeployment> 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 (gcav::ApiDeployment 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;

ListApiDeploymentsAsync(ApiName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListApiDeploymentsResponse, ApiDeployment> ListApiDeploymentsAsync(ApiName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns matching deployments.

Parameters
Name Description
parent ApiName

Required. The parent, which owns this collection of deployments. Format: projects/*/locations/*/apis/*

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
PagedAsyncEnumerableListApiDeploymentsResponseApiDeployment

A pageable asynchronous sequence of ApiDeployment resources.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ApiName parent = gcav::ApiName.FromProjectLocationApi("[PROJECT]", "[LOCATION]", "[API]");
// Make the request
PagedAsyncEnumerable<gcav::ListApiDeploymentsResponse, gcav::ApiDeployment> response = registryClient.ListApiDeploymentsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcav::ApiDeployment 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((gcav::ListApiDeploymentsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcav::ApiDeployment 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<gcav::ApiDeployment> 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 (gcav::ApiDeployment 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;

ListApiDeploymentsAsync(ListApiDeploymentsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListApiDeploymentsResponse, ApiDeployment> ListApiDeploymentsAsync(ListApiDeploymentsRequest request, CallSettings callSettings = null)

Returns matching deployments.

Parameters
Name Description
request ListApiDeploymentsRequest

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
PagedAsyncEnumerableListApiDeploymentsResponseApiDeployment

A pageable asynchronous sequence of ApiDeployment resources.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ListApiDeploymentsRequest request = new gcav::ListApiDeploymentsRequest
{
    ParentAsApiName = gcav::ApiName.FromProjectLocationApi("[PROJECT]", "[LOCATION]", "[API]"),
    Filter = "",
};
// Make the request
PagedAsyncEnumerable<gcav::ListApiDeploymentsResponse, gcav::ApiDeployment> response = registryClient.ListApiDeploymentsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcav::ApiDeployment 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((gcav::ListApiDeploymentsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcav::ApiDeployment 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<gcav::ApiDeployment> 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 (gcav::ApiDeployment 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;

ListApiDeploymentsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListApiDeploymentsResponse, ApiDeployment> ListApiDeploymentsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns matching deployments.

Parameters
Name Description
parent string

Required. The parent, which owns this collection of deployments. Format: projects/*/locations/*/apis/*

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
PagedAsyncEnumerableListApiDeploymentsResponseApiDeployment

A pageable asynchronous sequence of ApiDeployment resources.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/apis/[API]";
// Make the request
PagedAsyncEnumerable<gcav::ListApiDeploymentsResponse, gcav::ApiDeployment> response = registryClient.ListApiDeploymentsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcav::ApiDeployment 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((gcav::ListApiDeploymentsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcav::ApiDeployment 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<gcav::ApiDeployment> 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 (gcav::ApiDeployment 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;

ListApiSpecRevisions(ListApiSpecRevisionsRequest, CallSettings)

public virtual PagedEnumerable<ListApiSpecRevisionsResponse, ApiSpec> ListApiSpecRevisions(ListApiSpecRevisionsRequest request, CallSettings callSettings = null)

Lists all revisions of a spec. Revisions are returned in descending order of revision creation time.

Parameters
Name Description
request ListApiSpecRevisionsRequest

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
PagedEnumerableListApiSpecRevisionsResponseApiSpec

A pageable sequence of ApiSpec resources.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::ListApiSpecRevisionsRequest request = new gcav::ListApiSpecRevisionsRequest
{
    ApiSpecName = gcav::ApiSpecName.FromProjectLocationApiVersionSpec("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]", "[SPEC]"),
};
// Make the request
PagedEnumerable<gcav::ListApiSpecRevisionsResponse, gcav::ApiSpec> response = registryClient.ListApiSpecRevisions(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (gcav::ApiSpec 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 (gcav::ListApiSpecRevisionsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcav::ApiSpec 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<gcav::ApiSpec> 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 (gcav::ApiSpec 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;

ListApiSpecRevisionsAsync(ListApiSpecRevisionsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListApiSpecRevisionsResponse, ApiSpec> ListApiSpecRevisionsAsync(ListApiSpecRevisionsRequest request, CallSettings callSettings = null)

Lists all revisions of a spec. Revisions are returned in descending order of revision creation time.

Parameters
Name Description
request ListApiSpecRevisionsRequest

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
PagedAsyncEnumerableListApiSpecRevisionsResponseApiSpec

A pageable asynchronous sequence of ApiSpec resources.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ListApiSpecRevisionsRequest request = new gcav::ListApiSpecRevisionsRequest
{
    ApiSpecName = gcav::ApiSpecName.FromProjectLocationApiVersionSpec("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]", "[SPEC]"),
};
// Make the request
PagedAsyncEnumerable<gcav::ListApiSpecRevisionsResponse, gcav::ApiSpec> response = registryClient.ListApiSpecRevisionsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcav::ApiSpec 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((gcav::ListApiSpecRevisionsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcav::ApiSpec 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<gcav::ApiSpec> 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 (gcav::ApiSpec 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;

ListApiSpecs(ApiVersionName, string, int?, CallSettings)

public virtual PagedEnumerable<ListApiSpecsResponse, ApiSpec> ListApiSpecs(ApiVersionName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns matching specs.

Parameters
Name Description
parent ApiVersionName

Required. The parent, which owns this collection of specs. Format: projects/*/locations/*/apis/*/versions/*

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
PagedEnumerableListApiSpecsResponseApiSpec

A pageable sequence of ApiSpec resources.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::ApiVersionName parent = gcav::ApiVersionName.FromProjectLocationApiVersion("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]");
// Make the request
PagedEnumerable<gcav::ListApiSpecsResponse, gcav::ApiSpec> response = registryClient.ListApiSpecs(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (gcav::ApiSpec 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 (gcav::ListApiSpecsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcav::ApiSpec 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<gcav::ApiSpec> 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 (gcav::ApiSpec 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;

ListApiSpecs(ListApiSpecsRequest, CallSettings)

public virtual PagedEnumerable<ListApiSpecsResponse, ApiSpec> ListApiSpecs(ListApiSpecsRequest request, CallSettings callSettings = null)

Returns matching specs.

Parameters
Name Description
request ListApiSpecsRequest

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
PagedEnumerableListApiSpecsResponseApiSpec

A pageable sequence of ApiSpec resources.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::ListApiSpecsRequest request = new gcav::ListApiSpecsRequest
{
    ParentAsApiVersionName = gcav::ApiVersionName.FromProjectLocationApiVersion("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]"),
    Filter = "",
};
// Make the request
PagedEnumerable<gcav::ListApiSpecsResponse, gcav::ApiSpec> response = registryClient.ListApiSpecs(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (gcav::ApiSpec 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 (gcav::ListApiSpecsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcav::ApiSpec 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<gcav::ApiSpec> 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 (gcav::ApiSpec 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;

ListApiSpecs(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListApiSpecsResponse, ApiSpec> ListApiSpecs(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns matching specs.

Parameters
Name Description
parent string

Required. The parent, which owns this collection of specs. Format: projects/*/locations/*/apis/*/versions/*

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
PagedEnumerableListApiSpecsResponseApiSpec

A pageable sequence of ApiSpec resources.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/apis/[API]/versions/[VERSION]";
// Make the request
PagedEnumerable<gcav::ListApiSpecsResponse, gcav::ApiSpec> response = registryClient.ListApiSpecs(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (gcav::ApiSpec 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 (gcav::ListApiSpecsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcav::ApiSpec 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<gcav::ApiSpec> 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 (gcav::ApiSpec 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;

ListApiSpecsAsync(ApiVersionName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListApiSpecsResponse, ApiSpec> ListApiSpecsAsync(ApiVersionName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns matching specs.

Parameters
Name Description
parent ApiVersionName

Required. The parent, which owns this collection of specs. Format: projects/*/locations/*/apis/*/versions/*

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
PagedAsyncEnumerableListApiSpecsResponseApiSpec

A pageable asynchronous sequence of ApiSpec resources.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ApiVersionName parent = gcav::ApiVersionName.FromProjectLocationApiVersion("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]");
// Make the request
PagedAsyncEnumerable<gcav::ListApiSpecsResponse, gcav::ApiSpec> response = registryClient.ListApiSpecsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcav::ApiSpec 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((gcav::ListApiSpecsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcav::ApiSpec 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<gcav::ApiSpec> 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 (gcav::ApiSpec 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;

ListApiSpecsAsync(ListApiSpecsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListApiSpecsResponse, ApiSpec> ListApiSpecsAsync(ListApiSpecsRequest request, CallSettings callSettings = null)

Returns matching specs.

Parameters
Name Description
request ListApiSpecsRequest

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
PagedAsyncEnumerableListApiSpecsResponseApiSpec

A pageable asynchronous sequence of ApiSpec resources.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ListApiSpecsRequest request = new gcav::ListApiSpecsRequest
{
    ParentAsApiVersionName = gcav::ApiVersionName.FromProjectLocationApiVersion("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]"),
    Filter = "",
};
// Make the request
PagedAsyncEnumerable<gcav::ListApiSpecsResponse, gcav::ApiSpec> response = registryClient.ListApiSpecsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcav::ApiSpec 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((gcav::ListApiSpecsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcav::ApiSpec 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<gcav::ApiSpec> 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 (gcav::ApiSpec 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;

ListApiSpecsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListApiSpecsResponse, ApiSpec> ListApiSpecsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns matching specs.

Parameters
Name Description
parent string

Required. The parent, which owns this collection of specs. Format: projects/*/locations/*/apis/*/versions/*

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
PagedAsyncEnumerableListApiSpecsResponseApiSpec

A pageable asynchronous sequence of ApiSpec resources.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/apis/[API]/versions/[VERSION]";
// Make the request
PagedAsyncEnumerable<gcav::ListApiSpecsResponse, gcav::ApiSpec> response = registryClient.ListApiSpecsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcav::ApiSpec 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((gcav::ListApiSpecsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcav::ApiSpec 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<gcav::ApiSpec> 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 (gcav::ApiSpec 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;

ListApiVersions(ApiName, string, int?, CallSettings)

public virtual PagedEnumerable<ListApiVersionsResponse, ApiVersion> ListApiVersions(ApiName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns matching versions.

Parameters
Name Description
parent ApiName

Required. The parent, which owns this collection of versions. Format: projects/*/locations/*/apis/*

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
PagedEnumerableListApiVersionsResponseApiVersion

A pageable sequence of ApiVersion resources.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::ApiName parent = gcav::ApiName.FromProjectLocationApi("[PROJECT]", "[LOCATION]", "[API]");
// Make the request
PagedEnumerable<gcav::ListApiVersionsResponse, gcav::ApiVersion> response = registryClient.ListApiVersions(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (gcav::ApiVersion 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 (gcav::ListApiVersionsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcav::ApiVersion 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<gcav::ApiVersion> 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 (gcav::ApiVersion 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;

ListApiVersions(ListApiVersionsRequest, CallSettings)

public virtual PagedEnumerable<ListApiVersionsResponse, ApiVersion> ListApiVersions(ListApiVersionsRequest request, CallSettings callSettings = null)

Returns matching versions.

Parameters
Name Description
request ListApiVersionsRequest

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
PagedEnumerableListApiVersionsResponseApiVersion

A pageable sequence of ApiVersion resources.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::ListApiVersionsRequest request = new gcav::ListApiVersionsRequest
{
    ParentAsApiName = gcav::ApiName.FromProjectLocationApi("[PROJECT]", "[LOCATION]", "[API]"),
    Filter = "",
};
// Make the request
PagedEnumerable<gcav::ListApiVersionsResponse, gcav::ApiVersion> response = registryClient.ListApiVersions(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (gcav::ApiVersion 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 (gcav::ListApiVersionsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcav::ApiVersion 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<gcav::ApiVersion> 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 (gcav::ApiVersion 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;

ListApiVersions(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListApiVersionsResponse, ApiVersion> ListApiVersions(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns matching versions.

Parameters
Name Description
parent string

Required. The parent, which owns this collection of versions. Format: projects/*/locations/*/apis/*

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
PagedEnumerableListApiVersionsResponseApiVersion

A pageable sequence of ApiVersion resources.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/apis/[API]";
// Make the request
PagedEnumerable<gcav::ListApiVersionsResponse, gcav::ApiVersion> response = registryClient.ListApiVersions(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (gcav::ApiVersion 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 (gcav::ListApiVersionsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcav::ApiVersion 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<gcav::ApiVersion> 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 (gcav::ApiVersion 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;

ListApiVersionsAsync(ApiName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListApiVersionsResponse, ApiVersion> ListApiVersionsAsync(ApiName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns matching versions.

Parameters
Name Description
parent ApiName

Required. The parent, which owns this collection of versions. Format: projects/*/locations/*/apis/*

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
PagedAsyncEnumerableListApiVersionsResponseApiVersion

A pageable asynchronous sequence of ApiVersion resources.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ApiName parent = gcav::ApiName.FromProjectLocationApi("[PROJECT]", "[LOCATION]", "[API]");
// Make the request
PagedAsyncEnumerable<gcav::ListApiVersionsResponse, gcav::ApiVersion> response = registryClient.ListApiVersionsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcav::ApiVersion 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((gcav::ListApiVersionsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcav::ApiVersion 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<gcav::ApiVersion> 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 (gcav::ApiVersion 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;

ListApiVersionsAsync(ListApiVersionsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListApiVersionsResponse, ApiVersion> ListApiVersionsAsync(ListApiVersionsRequest request, CallSettings callSettings = null)

Returns matching versions.

Parameters
Name Description
request ListApiVersionsRequest

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
PagedAsyncEnumerableListApiVersionsResponseApiVersion

A pageable asynchronous sequence of ApiVersion resources.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ListApiVersionsRequest request = new gcav::ListApiVersionsRequest
{
    ParentAsApiName = gcav::ApiName.FromProjectLocationApi("[PROJECT]", "[LOCATION]", "[API]"),
    Filter = "",
};
// Make the request
PagedAsyncEnumerable<gcav::ListApiVersionsResponse, gcav::ApiVersion> response = registryClient.ListApiVersionsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcav::ApiVersion 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((gcav::ListApiVersionsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcav::ApiVersion 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<gcav::ApiVersion> 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 (gcav::ApiVersion 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;

ListApiVersionsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListApiVersionsResponse, ApiVersion> ListApiVersionsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns matching versions.

Parameters
Name Description
parent string

Required. The parent, which owns this collection of versions. Format: projects/*/locations/*/apis/*

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
PagedAsyncEnumerableListApiVersionsResponseApiVersion

A pageable asynchronous sequence of ApiVersion resources.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/apis/[API]";
// Make the request
PagedAsyncEnumerable<gcav::ListApiVersionsResponse, gcav::ApiVersion> response = registryClient.ListApiVersionsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcav::ApiVersion 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((gcav::ListApiVersionsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcav::ApiVersion 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<gcav::ApiVersion> 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 (gcav::ApiVersion 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;

ListApis(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListApisResponse, Api> ListApis(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns matching APIs.

Parameters
Name Description
parent LocationName

Required. The parent, which owns this collection of APIs. Format: projects/*/locations/*

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
PagedEnumerableListApisResponseApi

A pageable sequence of Api resources.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<gcav::ListApisResponse, gcav::Api> response = registryClient.ListApis(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (gcav::Api 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 (gcav::ListApisResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcav::Api 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<gcav::Api> 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 (gcav::Api 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;

ListApis(ListApisRequest, CallSettings)

public virtual PagedEnumerable<ListApisResponse, Api> ListApis(ListApisRequest request, CallSettings callSettings = null)

Returns matching APIs.

Parameters
Name Description
request ListApisRequest

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
PagedEnumerableListApisResponseApi

A pageable sequence of Api resources.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::ListApisRequest request = new gcav::ListApisRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
};
// Make the request
PagedEnumerable<gcav::ListApisResponse, gcav::Api> response = registryClient.ListApis(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (gcav::Api 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 (gcav::ListApisResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcav::Api 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<gcav::Api> 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 (gcav::Api 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;

ListApis(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListApisResponse, Api> ListApis(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns matching APIs.

Parameters
Name Description
parent string

Required. The parent, which owns this collection of APIs. Format: projects/*/locations/*

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
PagedEnumerableListApisResponseApi

A pageable sequence of Api resources.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<gcav::ListApisResponse, gcav::Api> response = registryClient.ListApis(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (gcav::Api 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 (gcav::ListApisResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcav::Api 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<gcav::Api> 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 (gcav::Api 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;

ListApisAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListApisResponse, Api> ListApisAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns matching APIs.

Parameters
Name Description
parent LocationName

Required. The parent, which owns this collection of APIs. Format: projects/*/locations/*

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
PagedAsyncEnumerableListApisResponseApi

A pageable asynchronous sequence of Api resources.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<gcav::ListApisResponse, gcav::Api> response = registryClient.ListApisAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcav::Api 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((gcav::ListApisResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcav::Api 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<gcav::Api> 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 (gcav::Api 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;

ListApisAsync(ListApisRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListApisResponse, Api> ListApisAsync(ListApisRequest request, CallSettings callSettings = null)

Returns matching APIs.

Parameters
Name Description
request ListApisRequest

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
PagedAsyncEnumerableListApisResponseApi

A pageable asynchronous sequence of Api resources.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ListApisRequest request = new gcav::ListApisRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
};
// Make the request
PagedAsyncEnumerable<gcav::ListApisResponse, gcav::Api> response = registryClient.ListApisAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcav::Api 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((gcav::ListApisResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcav::Api 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<gcav::Api> 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 (gcav::Api 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;

ListApisAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListApisResponse, Api> ListApisAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns matching APIs.

Parameters
Name Description
parent string

Required. The parent, which owns this collection of APIs. Format: projects/*/locations/*

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
PagedAsyncEnumerableListApisResponseApi

A pageable asynchronous sequence of Api resources.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<gcav::ListApisResponse, gcav::Api> response = registryClient.ListApisAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcav::Api 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((gcav::ListApisResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcav::Api 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<gcav::Api> 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 (gcav::Api 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;

ListArtifacts(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListArtifactsResponse, Artifact> ListArtifacts(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns matching artifacts.

Parameters
Name Description
parent LocationName

Required. The parent, which owns this collection of artifacts. Format: {parent}

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
PagedEnumerableListArtifactsResponseArtifact

A pageable sequence of Artifact resources.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<gcav::ListArtifactsResponse, gcav::Artifact> response = registryClient.ListArtifacts(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (gcav::Artifact 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 (gcav::ListArtifactsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcav::Artifact 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<gcav::Artifact> 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 (gcav::Artifact 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;

ListArtifacts(ApiDeploymentName, string, int?, CallSettings)

public virtual PagedEnumerable<ListArtifactsResponse, Artifact> ListArtifacts(ApiDeploymentName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns matching artifacts.

Parameters
Name Description
parent ApiDeploymentName

Required. The parent, which owns this collection of artifacts. Format: {parent}

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
PagedEnumerableListArtifactsResponseArtifact

A pageable sequence of Artifact resources.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::ApiDeploymentName parent = gcav::ApiDeploymentName.FromProjectLocationApiDeployment("[PROJECT]", "[LOCATION]", "[API]", "[DEPLOYMENT]");
// Make the request
PagedEnumerable<gcav::ListArtifactsResponse, gcav::Artifact> response = registryClient.ListArtifacts(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (gcav::Artifact 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 (gcav::ListArtifactsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcav::Artifact 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<gcav::Artifact> 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 (gcav::Artifact 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;

ListArtifacts(ApiName, string, int?, CallSettings)

public virtual PagedEnumerable<ListArtifactsResponse, Artifact> ListArtifacts(ApiName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns matching artifacts.

Parameters
Name Description
parent ApiName

Required. The parent, which owns this collection of artifacts. Format: {parent}

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
PagedEnumerableListArtifactsResponseArtifact

A pageable sequence of Artifact resources.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::ApiName parent = gcav::ApiName.FromProjectLocationApi("[PROJECT]", "[LOCATION]", "[API]");
// Make the request
PagedEnumerable<gcav::ListArtifactsResponse, gcav::Artifact> response = registryClient.ListArtifacts(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (gcav::Artifact 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 (gcav::ListArtifactsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcav::Artifact 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<gcav::Artifact> 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 (gcav::Artifact 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;

ListArtifacts(ApiSpecName, string, int?, CallSettings)

public virtual PagedEnumerable<ListArtifactsResponse, Artifact> ListArtifacts(ApiSpecName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns matching artifacts.

Parameters
Name Description
parent ApiSpecName

Required. The parent, which owns this collection of artifacts. Format: {parent}

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
PagedEnumerableListArtifactsResponseArtifact

A pageable sequence of Artifact resources.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::ApiSpecName parent = gcav::ApiSpecName.FromProjectLocationApiVersionSpec("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]", "[SPEC]");
// Make the request
PagedEnumerable<gcav::ListArtifactsResponse, gcav::Artifact> response = registryClient.ListArtifacts(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (gcav::Artifact 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 (gcav::ListArtifactsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcav::Artifact 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<gcav::Artifact> 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 (gcav::Artifact 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;

ListArtifacts(ApiVersionName, string, int?, CallSettings)

public virtual PagedEnumerable<ListArtifactsResponse, Artifact> ListArtifacts(ApiVersionName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns matching artifacts.

Parameters
Name Description
parent ApiVersionName

Required. The parent, which owns this collection of artifacts. Format: {parent}

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
PagedEnumerableListArtifactsResponseArtifact

A pageable sequence of Artifact resources.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::ApiVersionName parent = gcav::ApiVersionName.FromProjectLocationApiVersion("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]");
// Make the request
PagedEnumerable<gcav::ListArtifactsResponse, gcav::Artifact> response = registryClient.ListArtifacts(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (gcav::Artifact 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 (gcav::ListArtifactsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcav::Artifact 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<gcav::Artifact> 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 (gcav::Artifact 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;

ListArtifacts(ListArtifactsRequest, CallSettings)

public virtual PagedEnumerable<ListArtifactsResponse, Artifact> ListArtifacts(ListArtifactsRequest request, CallSettings callSettings = null)

Returns matching artifacts.

Parameters
Name Description
request ListArtifactsRequest

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
PagedEnumerableListArtifactsResponseArtifact

A pageable sequence of Artifact resources.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::ListArtifactsRequest request = new gcav::ListArtifactsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
};
// Make the request
PagedEnumerable<gcav::ListArtifactsResponse, gcav::Artifact> response = registryClient.ListArtifacts(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (gcav::Artifact 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 (gcav::ListArtifactsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcav::Artifact 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<gcav::Artifact> 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 (gcav::Artifact 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;

ListArtifacts(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListArtifactsResponse, Artifact> ListArtifacts(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns matching artifacts.

Parameters
Name Description
parent string

Required. The parent, which owns this collection of artifacts. Format: {parent}

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
PagedEnumerableListArtifactsResponseArtifact

A pageable sequence of Artifact resources.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<gcav::ListArtifactsResponse, gcav::Artifact> response = registryClient.ListArtifacts(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (gcav::Artifact 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 (gcav::ListArtifactsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcav::Artifact 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<gcav::Artifact> 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 (gcav::Artifact 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;

ListArtifactsAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListArtifactsResponse, Artifact> ListArtifactsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns matching artifacts.

Parameters
Name Description
parent LocationName

Required. The parent, which owns this collection of artifacts. Format: {parent}

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
PagedAsyncEnumerableListArtifactsResponseArtifact

A pageable asynchronous sequence of Artifact resources.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<gcav::ListArtifactsResponse, gcav::Artifact> response = registryClient.ListArtifactsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcav::Artifact 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((gcav::ListArtifactsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcav::Artifact 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<gcav::Artifact> 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 (gcav::Artifact 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;

ListArtifactsAsync(ApiDeploymentName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListArtifactsResponse, Artifact> ListArtifactsAsync(ApiDeploymentName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns matching artifacts.

Parameters
Name Description
parent ApiDeploymentName

Required. The parent, which owns this collection of artifacts. Format: {parent}

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
PagedAsyncEnumerableListArtifactsResponseArtifact

A pageable asynchronous sequence of Artifact resources.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ApiDeploymentName parent = gcav::ApiDeploymentName.FromProjectLocationApiDeployment("[PROJECT]", "[LOCATION]", "[API]", "[DEPLOYMENT]");
// Make the request
PagedAsyncEnumerable<gcav::ListArtifactsResponse, gcav::Artifact> response = registryClient.ListArtifactsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcav::Artifact 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((gcav::ListArtifactsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcav::Artifact 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<gcav::Artifact> 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 (gcav::Artifact 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;

ListArtifactsAsync(ApiName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListArtifactsResponse, Artifact> ListArtifactsAsync(ApiName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns matching artifacts.

Parameters
Name Description
parent ApiName

Required. The parent, which owns this collection of artifacts. Format: {parent}

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
PagedAsyncEnumerableListArtifactsResponseArtifact

A pageable asynchronous sequence of Artifact resources.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ApiName parent = gcav::ApiName.FromProjectLocationApi("[PROJECT]", "[LOCATION]", "[API]");
// Make the request
PagedAsyncEnumerable<gcav::ListArtifactsResponse, gcav::Artifact> response = registryClient.ListArtifactsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcav::Artifact 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((gcav::ListArtifactsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcav::Artifact 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<gcav::Artifact> 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 (gcav::Artifact 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;

ListArtifactsAsync(ApiSpecName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListArtifactsResponse, Artifact> ListArtifactsAsync(ApiSpecName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns matching artifacts.

Parameters
Name Description
parent ApiSpecName

Required. The parent, which owns this collection of artifacts. Format: {parent}

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
PagedAsyncEnumerableListArtifactsResponseArtifact

A pageable asynchronous sequence of Artifact resources.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ApiSpecName parent = gcav::ApiSpecName.FromProjectLocationApiVersionSpec("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]", "[SPEC]");
// Make the request
PagedAsyncEnumerable<gcav::ListArtifactsResponse, gcav::Artifact> response = registryClient.ListArtifactsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcav::Artifact 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((gcav::ListArtifactsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcav::Artifact 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<gcav::Artifact> 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 (gcav::Artifact 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;

ListArtifactsAsync(ApiVersionName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListArtifactsResponse, Artifact> ListArtifactsAsync(ApiVersionName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns matching artifacts.

Parameters
Name Description
parent ApiVersionName

Required. The parent, which owns this collection of artifacts. Format: {parent}

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
PagedAsyncEnumerableListArtifactsResponseArtifact

A pageable asynchronous sequence of Artifact resources.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ApiVersionName parent = gcav::ApiVersionName.FromProjectLocationApiVersion("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]");
// Make the request
PagedAsyncEnumerable<gcav::ListArtifactsResponse, gcav::Artifact> response = registryClient.ListArtifactsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcav::Artifact 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((gcav::ListArtifactsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcav::Artifact 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<gcav::Artifact> 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 (gcav::Artifact 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;

ListArtifactsAsync(ListArtifactsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListArtifactsResponse, Artifact> ListArtifactsAsync(ListArtifactsRequest request, CallSettings callSettings = null)

Returns matching artifacts.

Parameters
Name Description
request ListArtifactsRequest

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
PagedAsyncEnumerableListArtifactsResponseArtifact

A pageable asynchronous sequence of Artifact resources.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ListArtifactsRequest request = new gcav::ListArtifactsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
};
// Make the request
PagedAsyncEnumerable<gcav::ListArtifactsResponse, gcav::Artifact> response = registryClient.ListArtifactsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcav::Artifact 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((gcav::ListArtifactsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcav::Artifact 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<gcav::Artifact> 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 (gcav::Artifact 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;

ListArtifactsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListArtifactsResponse, Artifact> ListArtifactsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns matching artifacts.

Parameters
Name Description
parent string

Required. The parent, which owns this collection of artifacts. Format: {parent}

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
PagedAsyncEnumerableListArtifactsResponseArtifact

A pageable asynchronous sequence of Artifact resources.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<gcav::ListArtifactsResponse, gcav::Artifact> response = registryClient.ListArtifactsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcav::Artifact 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((gcav::ListArtifactsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (gcav::Artifact 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<gcav::Artifact> 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 (gcav::Artifact 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;

ReplaceArtifact(Artifact, CallSettings)

public virtual Artifact ReplaceArtifact(Artifact artifact, CallSettings callSettings = null)

Used to replace a specified artifact.

Parameters
Name Description
artifact Artifact

Required. The artifact to replace.

The name field is used to identify the artifact to replace. Format: {parent}/artifacts/*

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Artifact

The RPC response.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::Artifact artifact = new gcav::Artifact();
// Make the request
gcav::Artifact response = registryClient.ReplaceArtifact(artifact);

ReplaceArtifact(ReplaceArtifactRequest, CallSettings)

public virtual Artifact ReplaceArtifact(ReplaceArtifactRequest request, CallSettings callSettings = null)

Used to replace a specified artifact.

Parameters
Name Description
request ReplaceArtifactRequest

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
Artifact

The RPC response.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::ReplaceArtifactRequest request = new gcav::ReplaceArtifactRequest
{
    Artifact = new gcav::Artifact(),
};
// Make the request
gcav::Artifact response = registryClient.ReplaceArtifact(request);

ReplaceArtifactAsync(Artifact, CallSettings)

public virtual Task<Artifact> ReplaceArtifactAsync(Artifact artifact, CallSettings callSettings = null)

Used to replace a specified artifact.

Parameters
Name Description
artifact Artifact

Required. The artifact to replace.

The name field is used to identify the artifact to replace. Format: {parent}/artifacts/*

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskArtifact

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::Artifact artifact = new gcav::Artifact();
// Make the request
gcav::Artifact response = await registryClient.ReplaceArtifactAsync(artifact);

ReplaceArtifactAsync(Artifact, CancellationToken)

public virtual Task<Artifact> ReplaceArtifactAsync(Artifact artifact, CancellationToken cancellationToken)

Used to replace a specified artifact.

Parameters
Name Description
artifact Artifact

Required. The artifact to replace.

The name field is used to identify the artifact to replace. Format: {parent}/artifacts/*

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskArtifact

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::Artifact artifact = new gcav::Artifact();
// Make the request
gcav::Artifact response = await registryClient.ReplaceArtifactAsync(artifact);

ReplaceArtifactAsync(ReplaceArtifactRequest, CallSettings)

public virtual Task<Artifact> ReplaceArtifactAsync(ReplaceArtifactRequest request, CallSettings callSettings = null)

Used to replace a specified artifact.

Parameters
Name Description
request ReplaceArtifactRequest

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
TaskArtifact

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ReplaceArtifactRequest request = new gcav::ReplaceArtifactRequest
{
    Artifact = new gcav::Artifact(),
};
// Make the request
gcav::Artifact response = await registryClient.ReplaceArtifactAsync(request);

ReplaceArtifactAsync(ReplaceArtifactRequest, CancellationToken)

public virtual Task<Artifact> ReplaceArtifactAsync(ReplaceArtifactRequest request, CancellationToken cancellationToken)

Used to replace a specified artifact.

Parameters
Name Description
request ReplaceArtifactRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskArtifact

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ReplaceArtifactRequest request = new gcav::ReplaceArtifactRequest
{
    Artifact = new gcav::Artifact(),
};
// Make the request
gcav::Artifact response = await registryClient.ReplaceArtifactAsync(request);

RollbackApiDeployment(RollbackApiDeploymentRequest, CallSettings)

public virtual ApiDeployment RollbackApiDeployment(RollbackApiDeploymentRequest request, CallSettings callSettings = null)

Sets the current revision to a specified prior revision. Note that this creates a new revision with a new revision ID.

Parameters
Name Description
request RollbackApiDeploymentRequest

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
ApiDeployment

The RPC response.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::RollbackApiDeploymentRequest request = new gcav::RollbackApiDeploymentRequest
{
    ApiDeploymentName = gcav::ApiDeploymentName.FromProjectLocationApiDeployment("[PROJECT]", "[LOCATION]", "[API]", "[DEPLOYMENT]"),
    RevisionId = "",
};
// Make the request
gcav::ApiDeployment response = registryClient.RollbackApiDeployment(request);

RollbackApiDeploymentAsync(RollbackApiDeploymentRequest, CallSettings)

public virtual Task<ApiDeployment> RollbackApiDeploymentAsync(RollbackApiDeploymentRequest request, CallSettings callSettings = null)

Sets the current revision to a specified prior revision. Note that this creates a new revision with a new revision ID.

Parameters
Name Description
request RollbackApiDeploymentRequest

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
TaskApiDeployment

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::RollbackApiDeploymentRequest request = new gcav::RollbackApiDeploymentRequest
{
    ApiDeploymentName = gcav::ApiDeploymentName.FromProjectLocationApiDeployment("[PROJECT]", "[LOCATION]", "[API]", "[DEPLOYMENT]"),
    RevisionId = "",
};
// Make the request
gcav::ApiDeployment response = await registryClient.RollbackApiDeploymentAsync(request);

RollbackApiDeploymentAsync(RollbackApiDeploymentRequest, CancellationToken)

public virtual Task<ApiDeployment> RollbackApiDeploymentAsync(RollbackApiDeploymentRequest request, CancellationToken cancellationToken)

Sets the current revision to a specified prior revision. Note that this creates a new revision with a new revision ID.

Parameters
Name Description
request RollbackApiDeploymentRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskApiDeployment

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::RollbackApiDeploymentRequest request = new gcav::RollbackApiDeploymentRequest
{
    ApiDeploymentName = gcav::ApiDeploymentName.FromProjectLocationApiDeployment("[PROJECT]", "[LOCATION]", "[API]", "[DEPLOYMENT]"),
    RevisionId = "",
};
// Make the request
gcav::ApiDeployment response = await registryClient.RollbackApiDeploymentAsync(request);

RollbackApiSpec(RollbackApiSpecRequest, CallSettings)

public virtual ApiSpec RollbackApiSpec(RollbackApiSpecRequest request, CallSettings callSettings = null)

Sets the current revision to a specified prior revision. Note that this creates a new revision with a new revision ID.

Parameters
Name Description
request RollbackApiSpecRequest

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
ApiSpec

The RPC response.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::RollbackApiSpecRequest request = new gcav::RollbackApiSpecRequest
{
    ApiSpecName = gcav::ApiSpecName.FromProjectLocationApiVersionSpec("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]", "[SPEC]"),
    RevisionId = "",
};
// Make the request
gcav::ApiSpec response = registryClient.RollbackApiSpec(request);

RollbackApiSpecAsync(RollbackApiSpecRequest, CallSettings)

public virtual Task<ApiSpec> RollbackApiSpecAsync(RollbackApiSpecRequest request, CallSettings callSettings = null)

Sets the current revision to a specified prior revision. Note that this creates a new revision with a new revision ID.

Parameters
Name Description
request RollbackApiSpecRequest

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
TaskApiSpec

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::RollbackApiSpecRequest request = new gcav::RollbackApiSpecRequest
{
    ApiSpecName = gcav::ApiSpecName.FromProjectLocationApiVersionSpec("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]", "[SPEC]"),
    RevisionId = "",
};
// Make the request
gcav::ApiSpec response = await registryClient.RollbackApiSpecAsync(request);

RollbackApiSpecAsync(RollbackApiSpecRequest, CancellationToken)

public virtual Task<ApiSpec> RollbackApiSpecAsync(RollbackApiSpecRequest request, CancellationToken cancellationToken)

Sets the current revision to a specified prior revision. Note that this creates a new revision with a new revision ID.

Parameters
Name Description
request RollbackApiSpecRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskApiSpec

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::RollbackApiSpecRequest request = new gcav::RollbackApiSpecRequest
{
    ApiSpecName = gcav::ApiSpecName.FromProjectLocationApiVersionSpec("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]", "[SPEC]"),
    RevisionId = "",
};
// Make the request
gcav::ApiSpec response = await registryClient.RollbackApiSpecAsync(request);

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.

TagApiDeploymentRevision(TagApiDeploymentRevisionRequest, CallSettings)

public virtual ApiDeployment TagApiDeploymentRevision(TagApiDeploymentRevisionRequest request, CallSettings callSettings = null)

Adds a tag to a specified revision of a deployment.

Parameters
Name Description
request TagApiDeploymentRevisionRequest

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
ApiDeployment

The RPC response.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::TagApiDeploymentRevisionRequest request = new gcav::TagApiDeploymentRevisionRequest
{
    ApiDeploymentName = gcav::ApiDeploymentName.FromProjectLocationApiDeployment("[PROJECT]", "[LOCATION]", "[API]", "[DEPLOYMENT]"),
    Tag = "",
};
// Make the request
gcav::ApiDeployment response = registryClient.TagApiDeploymentRevision(request);

TagApiDeploymentRevisionAsync(TagApiDeploymentRevisionRequest, CallSettings)

public virtual Task<ApiDeployment> TagApiDeploymentRevisionAsync(TagApiDeploymentRevisionRequest request, CallSettings callSettings = null)

Adds a tag to a specified revision of a deployment.

Parameters
Name Description
request TagApiDeploymentRevisionRequest

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
TaskApiDeployment

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::TagApiDeploymentRevisionRequest request = new gcav::TagApiDeploymentRevisionRequest
{
    ApiDeploymentName = gcav::ApiDeploymentName.FromProjectLocationApiDeployment("[PROJECT]", "[LOCATION]", "[API]", "[DEPLOYMENT]"),
    Tag = "",
};
// Make the request
gcav::ApiDeployment response = await registryClient.TagApiDeploymentRevisionAsync(request);

TagApiDeploymentRevisionAsync(TagApiDeploymentRevisionRequest, CancellationToken)

public virtual Task<ApiDeployment> TagApiDeploymentRevisionAsync(TagApiDeploymentRevisionRequest request, CancellationToken cancellationToken)

Adds a tag to a specified revision of a deployment.

Parameters
Name Description
request TagApiDeploymentRevisionRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskApiDeployment

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::TagApiDeploymentRevisionRequest request = new gcav::TagApiDeploymentRevisionRequest
{
    ApiDeploymentName = gcav::ApiDeploymentName.FromProjectLocationApiDeployment("[PROJECT]", "[LOCATION]", "[API]", "[DEPLOYMENT]"),
    Tag = "",
};
// Make the request
gcav::ApiDeployment response = await registryClient.TagApiDeploymentRevisionAsync(request);

TagApiSpecRevision(TagApiSpecRevisionRequest, CallSettings)

public virtual ApiSpec TagApiSpecRevision(TagApiSpecRevisionRequest request, CallSettings callSettings = null)

Adds a tag to a specified revision of a spec.

Parameters
Name Description
request TagApiSpecRevisionRequest

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
ApiSpec

The RPC response.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::TagApiSpecRevisionRequest request = new gcav::TagApiSpecRevisionRequest
{
    ApiSpecName = gcav::ApiSpecName.FromProjectLocationApiVersionSpec("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]", "[SPEC]"),
    Tag = "",
};
// Make the request
gcav::ApiSpec response = registryClient.TagApiSpecRevision(request);

TagApiSpecRevisionAsync(TagApiSpecRevisionRequest, CallSettings)

public virtual Task<ApiSpec> TagApiSpecRevisionAsync(TagApiSpecRevisionRequest request, CallSettings callSettings = null)

Adds a tag to a specified revision of a spec.

Parameters
Name Description
request TagApiSpecRevisionRequest

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
TaskApiSpec

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::TagApiSpecRevisionRequest request = new gcav::TagApiSpecRevisionRequest
{
    ApiSpecName = gcav::ApiSpecName.FromProjectLocationApiVersionSpec("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]", "[SPEC]"),
    Tag = "",
};
// Make the request
gcav::ApiSpec response = await registryClient.TagApiSpecRevisionAsync(request);

TagApiSpecRevisionAsync(TagApiSpecRevisionRequest, CancellationToken)

public virtual Task<ApiSpec> TagApiSpecRevisionAsync(TagApiSpecRevisionRequest request, CancellationToken cancellationToken)

Adds a tag to a specified revision of a spec.

Parameters
Name Description
request TagApiSpecRevisionRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskApiSpec

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::TagApiSpecRevisionRequest request = new gcav::TagApiSpecRevisionRequest
{
    ApiSpecName = gcav::ApiSpecName.FromProjectLocationApiVersionSpec("[PROJECT]", "[LOCATION]", "[API]", "[VERSION]", "[SPEC]"),
    Tag = "",
};
// Make the request
gcav::ApiSpec response = await registryClient.TagApiSpecRevisionAsync(request);

UpdateApi(Api, FieldMask, CallSettings)

public virtual Api UpdateApi(Api api, FieldMask updateMask, CallSettings callSettings = null)

Used to modify a specified API.

Parameters
Name Description
api Api

Required. The API to update.

The name field is used to identify the API to update. Format: projects/*/locations/*/apis/*

updateMask FieldMask

The list of fields to be updated. If omitted, all fields are updated that are set in the request message (fields set to default values are ignored). If an asterisk "*" is specified, all fields are updated, including fields that are unspecified/default in the request.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Api

The RPC response.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::Api api = new gcav::Api();
FieldMask updateMask = new FieldMask();
// Make the request
gcav::Api response = registryClient.UpdateApi(api, updateMask);

UpdateApi(UpdateApiRequest, CallSettings)

public virtual Api UpdateApi(UpdateApiRequest request, CallSettings callSettings = null)

Used to modify a specified API.

Parameters
Name Description
request UpdateApiRequest

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
Api

The RPC response.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::UpdateApiRequest request = new gcav::UpdateApiRequest
{
    Api = new gcav::Api(),
    UpdateMask = new FieldMask(),
    AllowMissing = false,
};
// Make the request
gcav::Api response = registryClient.UpdateApi(request);

UpdateApiAsync(Api, FieldMask, CallSettings)

public virtual Task<Api> UpdateApiAsync(Api api, FieldMask updateMask, CallSettings callSettings = null)

Used to modify a specified API.

Parameters
Name Description
api Api

Required. The API to update.

The name field is used to identify the API to update. Format: projects/*/locations/*/apis/*

updateMask FieldMask

The list of fields to be updated. If omitted, all fields are updated that are set in the request message (fields set to default values are ignored). If an asterisk "*" is specified, all fields are updated, including fields that are unspecified/default in the request.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskApi

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::Api api = new gcav::Api();
FieldMask updateMask = new FieldMask();
// Make the request
gcav::Api response = await registryClient.UpdateApiAsync(api, updateMask);

UpdateApiAsync(Api, FieldMask, CancellationToken)

public virtual Task<Api> UpdateApiAsync(Api api, FieldMask updateMask, CancellationToken cancellationToken)

Used to modify a specified API.

Parameters
Name Description
api Api

Required. The API to update.

The name field is used to identify the API to update. Format: projects/*/locations/*/apis/*

updateMask FieldMask

The list of fields to be updated. If omitted, all fields are updated that are set in the request message (fields set to default values are ignored). If an asterisk "*" is specified, all fields are updated, including fields that are unspecified/default in the request.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskApi

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::Api api = new gcav::Api();
FieldMask updateMask = new FieldMask();
// Make the request
gcav::Api response = await registryClient.UpdateApiAsync(api, updateMask);

UpdateApiAsync(UpdateApiRequest, CallSettings)

public virtual Task<Api> UpdateApiAsync(UpdateApiRequest request, CallSettings callSettings = null)

Used to modify a specified API.

Parameters
Name Description
request UpdateApiRequest

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
TaskApi

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::UpdateApiRequest request = new gcav::UpdateApiRequest
{
    Api = new gcav::Api(),
    UpdateMask = new FieldMask(),
    AllowMissing = false,
};
// Make the request
gcav::Api response = await registryClient.UpdateApiAsync(request);

UpdateApiAsync(UpdateApiRequest, CancellationToken)

public virtual Task<Api> UpdateApiAsync(UpdateApiRequest request, CancellationToken cancellationToken)

Used to modify a specified API.

Parameters
Name Description
request UpdateApiRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskApi

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::UpdateApiRequest request = new gcav::UpdateApiRequest
{
    Api = new gcav::Api(),
    UpdateMask = new FieldMask(),
    AllowMissing = false,
};
// Make the request
gcav::Api response = await registryClient.UpdateApiAsync(request);

UpdateApiDeployment(ApiDeployment, FieldMask, CallSettings)

public virtual ApiDeployment UpdateApiDeployment(ApiDeployment apiDeployment, FieldMask updateMask, CallSettings callSettings = null)

Used to modify a specified deployment.

Parameters
Name Description
apiDeployment ApiDeployment

Required. The deployment to update.

The name field is used to identify the deployment to update. Format: projects/*/locations/*/apis/*/deployments/*

updateMask FieldMask

The list of fields to be updated. If omitted, all fields are updated that are set in the request message (fields set to default values are ignored). If an asterisk "*" is specified, all fields are updated, including fields that are unspecified/default in the request.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ApiDeployment

The RPC response.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::ApiDeployment apiDeployment = new gcav::ApiDeployment();
FieldMask updateMask = new FieldMask();
// Make the request
gcav::ApiDeployment response = registryClient.UpdateApiDeployment(apiDeployment, updateMask);

UpdateApiDeployment(UpdateApiDeploymentRequest, CallSettings)

public virtual ApiDeployment UpdateApiDeployment(UpdateApiDeploymentRequest request, CallSettings callSettings = null)

Used to modify a specified deployment.

Parameters
Name Description
request UpdateApiDeploymentRequest

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
ApiDeployment

The RPC response.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::UpdateApiDeploymentRequest request = new gcav::UpdateApiDeploymentRequest
{
    ApiDeployment = new gcav::ApiDeployment(),
    UpdateMask = new FieldMask(),
    AllowMissing = false,
};
// Make the request
gcav::ApiDeployment response = registryClient.UpdateApiDeployment(request);

UpdateApiDeploymentAsync(ApiDeployment, FieldMask, CallSettings)

public virtual Task<ApiDeployment> UpdateApiDeploymentAsync(ApiDeployment apiDeployment, FieldMask updateMask, CallSettings callSettings = null)

Used to modify a specified deployment.

Parameters
Name Description
apiDeployment ApiDeployment

Required. The deployment to update.

The name field is used to identify the deployment to update. Format: projects/*/locations/*/apis/*/deployments/*

updateMask FieldMask

The list of fields to be updated. If omitted, all fields are updated that are set in the request message (fields set to default values are ignored). If an asterisk "*" is specified, all fields are updated, including fields that are unspecified/default in the request.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskApiDeployment

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ApiDeployment apiDeployment = new gcav::ApiDeployment();
FieldMask updateMask = new FieldMask();
// Make the request
gcav::ApiDeployment response = await registryClient.UpdateApiDeploymentAsync(apiDeployment, updateMask);

UpdateApiDeploymentAsync(ApiDeployment, FieldMask, CancellationToken)

public virtual Task<ApiDeployment> UpdateApiDeploymentAsync(ApiDeployment apiDeployment, FieldMask updateMask, CancellationToken cancellationToken)

Used to modify a specified deployment.

Parameters
Name Description
apiDeployment ApiDeployment

Required. The deployment to update.

The name field is used to identify the deployment to update. Format: projects/*/locations/*/apis/*/deployments/*

updateMask FieldMask

The list of fields to be updated. If omitted, all fields are updated that are set in the request message (fields set to default values are ignored). If an asterisk "*" is specified, all fields are updated, including fields that are unspecified/default in the request.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskApiDeployment

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ApiDeployment apiDeployment = new gcav::ApiDeployment();
FieldMask updateMask = new FieldMask();
// Make the request
gcav::ApiDeployment response = await registryClient.UpdateApiDeploymentAsync(apiDeployment, updateMask);

UpdateApiDeploymentAsync(UpdateApiDeploymentRequest, CallSettings)

public virtual Task<ApiDeployment> UpdateApiDeploymentAsync(UpdateApiDeploymentRequest request, CallSettings callSettings = null)

Used to modify a specified deployment.

Parameters
Name Description
request UpdateApiDeploymentRequest

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
TaskApiDeployment

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::UpdateApiDeploymentRequest request = new gcav::UpdateApiDeploymentRequest
{
    ApiDeployment = new gcav::ApiDeployment(),
    UpdateMask = new FieldMask(),
    AllowMissing = false,
};
// Make the request
gcav::ApiDeployment response = await registryClient.UpdateApiDeploymentAsync(request);

UpdateApiDeploymentAsync(UpdateApiDeploymentRequest, CancellationToken)

public virtual Task<ApiDeployment> UpdateApiDeploymentAsync(UpdateApiDeploymentRequest request, CancellationToken cancellationToken)

Used to modify a specified deployment.

Parameters
Name Description
request UpdateApiDeploymentRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskApiDeployment

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::UpdateApiDeploymentRequest request = new gcav::UpdateApiDeploymentRequest
{
    ApiDeployment = new gcav::ApiDeployment(),
    UpdateMask = new FieldMask(),
    AllowMissing = false,
};
// Make the request
gcav::ApiDeployment response = await registryClient.UpdateApiDeploymentAsync(request);

UpdateApiSpec(ApiSpec, FieldMask, CallSettings)

public virtual ApiSpec UpdateApiSpec(ApiSpec apiSpec, FieldMask updateMask, CallSettings callSettings = null)

Used to modify a specified spec.

Parameters
Name Description
apiSpec ApiSpec

Required. The spec to update.

The name field is used to identify the spec to update. Format: projects/*/locations/*/apis/*/versions/*/specs/*

updateMask FieldMask

The list of fields to be updated. If omitted, all fields are updated that are set in the request message (fields set to default values are ignored). If an asterisk "*" is specified, all fields are updated, including fields that are unspecified/default in the request.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ApiSpec

The RPC response.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::ApiSpec apiSpec = new gcav::ApiSpec();
FieldMask updateMask = new FieldMask();
// Make the request
gcav::ApiSpec response = registryClient.UpdateApiSpec(apiSpec, updateMask);

UpdateApiSpec(UpdateApiSpecRequest, CallSettings)

public virtual ApiSpec UpdateApiSpec(UpdateApiSpecRequest request, CallSettings callSettings = null)

Used to modify a specified spec.

Parameters
Name Description
request UpdateApiSpecRequest

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
ApiSpec

The RPC response.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::UpdateApiSpecRequest request = new gcav::UpdateApiSpecRequest
{
    ApiSpec = new gcav::ApiSpec(),
    UpdateMask = new FieldMask(),
    AllowMissing = false,
};
// Make the request
gcav::ApiSpec response = registryClient.UpdateApiSpec(request);

UpdateApiSpecAsync(ApiSpec, FieldMask, CallSettings)

public virtual Task<ApiSpec> UpdateApiSpecAsync(ApiSpec apiSpec, FieldMask updateMask, CallSettings callSettings = null)

Used to modify a specified spec.

Parameters
Name Description
apiSpec ApiSpec

Required. The spec to update.

The name field is used to identify the spec to update. Format: projects/*/locations/*/apis/*/versions/*/specs/*

updateMask FieldMask

The list of fields to be updated. If omitted, all fields are updated that are set in the request message (fields set to default values are ignored). If an asterisk "*" is specified, all fields are updated, including fields that are unspecified/default in the request.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskApiSpec

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ApiSpec apiSpec = new gcav::ApiSpec();
FieldMask updateMask = new FieldMask();
// Make the request
gcav::ApiSpec response = await registryClient.UpdateApiSpecAsync(apiSpec, updateMask);

UpdateApiSpecAsync(ApiSpec, FieldMask, CancellationToken)

public virtual Task<ApiSpec> UpdateApiSpecAsync(ApiSpec apiSpec, FieldMask updateMask, CancellationToken cancellationToken)

Used to modify a specified spec.

Parameters
Name Description
apiSpec ApiSpec

Required. The spec to update.

The name field is used to identify the spec to update. Format: projects/*/locations/*/apis/*/versions/*/specs/*

updateMask FieldMask

The list of fields to be updated. If omitted, all fields are updated that are set in the request message (fields set to default values are ignored). If an asterisk "*" is specified, all fields are updated, including fields that are unspecified/default in the request.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskApiSpec

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ApiSpec apiSpec = new gcav::ApiSpec();
FieldMask updateMask = new FieldMask();
// Make the request
gcav::ApiSpec response = await registryClient.UpdateApiSpecAsync(apiSpec, updateMask);

UpdateApiSpecAsync(UpdateApiSpecRequest, CallSettings)

public virtual Task<ApiSpec> UpdateApiSpecAsync(UpdateApiSpecRequest request, CallSettings callSettings = null)

Used to modify a specified spec.

Parameters
Name Description
request UpdateApiSpecRequest

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
TaskApiSpec

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::UpdateApiSpecRequest request = new gcav::UpdateApiSpecRequest
{
    ApiSpec = new gcav::ApiSpec(),
    UpdateMask = new FieldMask(),
    AllowMissing = false,
};
// Make the request
gcav::ApiSpec response = await registryClient.UpdateApiSpecAsync(request);

UpdateApiSpecAsync(UpdateApiSpecRequest, CancellationToken)

public virtual Task<ApiSpec> UpdateApiSpecAsync(UpdateApiSpecRequest request, CancellationToken cancellationToken)

Used to modify a specified spec.

Parameters
Name Description
request UpdateApiSpecRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskApiSpec

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::UpdateApiSpecRequest request = new gcav::UpdateApiSpecRequest
{
    ApiSpec = new gcav::ApiSpec(),
    UpdateMask = new FieldMask(),
    AllowMissing = false,
};
// Make the request
gcav::ApiSpec response = await registryClient.UpdateApiSpecAsync(request);

UpdateApiVersion(ApiVersion, FieldMask, CallSettings)

public virtual ApiVersion UpdateApiVersion(ApiVersion apiVersion, FieldMask updateMask, CallSettings callSettings = null)

Used to modify a specified version.

Parameters
Name Description
apiVersion ApiVersion

Required. The version to update.

The name field is used to identify the version to update. Format: projects/*/locations/*/apis/*/versions/*

updateMask FieldMask

The list of fields to be updated. If omitted, all fields are updated that are set in the request message (fields set to default values are ignored). If an asterisk "*" is specified, all fields are updated, including fields that are unspecified/default in the request.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ApiVersion

The RPC response.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::ApiVersion apiVersion = new gcav::ApiVersion();
FieldMask updateMask = new FieldMask();
// Make the request
gcav::ApiVersion response = registryClient.UpdateApiVersion(apiVersion, updateMask);

UpdateApiVersion(UpdateApiVersionRequest, CallSettings)

public virtual ApiVersion UpdateApiVersion(UpdateApiVersionRequest request, CallSettings callSettings = null)

Used to modify a specified version.

Parameters
Name Description
request UpdateApiVersionRequest

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
ApiVersion

The RPC response.

Example
// Create client
gcav::RegistryClient registryClient = gcav::RegistryClient.Create();
// Initialize request argument(s)
gcav::UpdateApiVersionRequest request = new gcav::UpdateApiVersionRequest
{
    ApiVersion = new gcav::ApiVersion(),
    UpdateMask = new FieldMask(),
    AllowMissing = false,
};
// Make the request
gcav::ApiVersion response = registryClient.UpdateApiVersion(request);

UpdateApiVersionAsync(ApiVersion, FieldMask, CallSettings)

public virtual Task<ApiVersion> UpdateApiVersionAsync(ApiVersion apiVersion, FieldMask updateMask, CallSettings callSettings = null)

Used to modify a specified version.

Parameters
Name Description
apiVersion ApiVersion

Required. The version to update.

The name field is used to identify the version to update. Format: projects/*/locations/*/apis/*/versions/*

updateMask FieldMask

The list of fields to be updated. If omitted, all fields are updated that are set in the request message (fields set to default values are ignored). If an asterisk "*" is specified, all fields are updated, including fields that are unspecified/default in the request.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskApiVersion

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ApiVersion apiVersion = new gcav::ApiVersion();
FieldMask updateMask = new FieldMask();
// Make the request
gcav::ApiVersion response = await registryClient.UpdateApiVersionAsync(apiVersion, updateMask);

UpdateApiVersionAsync(ApiVersion, FieldMask, CancellationToken)

public virtual Task<ApiVersion> UpdateApiVersionAsync(ApiVersion apiVersion, FieldMask updateMask, CancellationToken cancellationToken)

Used to modify a specified version.

Parameters
Name Description
apiVersion ApiVersion

Required. The version to update.

The name field is used to identify the version to update. Format: projects/*/locations/*/apis/*/versions/*

updateMask FieldMask

The list of fields to be updated. If omitted, all fields are updated that are set in the request message (fields set to default values are ignored). If an asterisk "*" is specified, all fields are updated, including fields that are unspecified/default in the request.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskApiVersion

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ApiVersion apiVersion = new gcav::ApiVersion();
FieldMask updateMask = new FieldMask();
// Make the request
gcav::ApiVersion response = await registryClient.UpdateApiVersionAsync(apiVersion, updateMask);

UpdateApiVersionAsync(UpdateApiVersionRequest, CallSettings)

public virtual Task<ApiVersion> UpdateApiVersionAsync(UpdateApiVersionRequest request, CallSettings callSettings = null)

Used to modify a specified version.

Parameters
Name Description
request UpdateApiVersionRequest

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
TaskApiVersion

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::UpdateApiVersionRequest request = new gcav::UpdateApiVersionRequest
{
    ApiVersion = new gcav::ApiVersion(),
    UpdateMask = new FieldMask(),
    AllowMissing = false,
};
// Make the request
gcav::ApiVersion response = await registryClient.UpdateApiVersionAsync(request);

UpdateApiVersionAsync(UpdateApiVersionRequest, CancellationToken)

public virtual Task<ApiVersion> UpdateApiVersionAsync(UpdateApiVersionRequest request, CancellationToken cancellationToken)

Used to modify a specified version.

Parameters
Name Description
request UpdateApiVersionRequest

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

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskApiVersion

A Task containing the RPC response.

Example
// Create client
gcav::RegistryClient registryClient = await gcav::RegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::UpdateApiVersionRequest request = new gcav::UpdateApiVersionRequest
{
    ApiVersion = new gcav::ApiVersion(),
    UpdateMask = new FieldMask(),
    AllowMissing = false,
};
// Make the request
gcav::ApiVersion response = await registryClient.UpdateApiVersionAsync(request);