public abstract class ArtifactRegistryClient
Reference documentation and code samples for the Artifact Registry v1 API class ArtifactRegistryClient.
ArtifactRegistry client wrapper, for convenient use.
Derived Types
Namespace
Google.Cloud.ArtifactRegistry.V1Assembly
Google.Cloud.ArtifactRegistry.V1.dll
Remarks
The Artifact Registry API service.
Artifact Registry is an artifact management system for storing artifacts from different package management systems.
The resources managed by this API are:
- Repositories, which group packages and their data.
- Packages, which group versions and their tags.
- Versions, which are specific forms of a package.
- Tags, which represent alternative names for versions.
- Files, which contain content and are optionally associated with a Package or Version.
Properties
BatchDeleteVersionsOperationsClient
public virtual OperationsClient BatchDeleteVersionsOperationsClient { get; }
The long-running operations client for BatchDeleteVersions
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
CreateAttachmentOperationsClient
public virtual OperationsClient CreateAttachmentOperationsClient { get; }
The long-running operations client for CreateAttachment
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
CreateRepositoryOperationsClient
public virtual OperationsClient CreateRepositoryOperationsClient { get; }
The long-running operations client for CreateRepository
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DefaultEndpoint
public static string DefaultEndpoint { get; }
The default endpoint for the ArtifactRegistry service, which is a host of "artifactregistry.googleapis.com" and a port of 443.
Property Value | |
---|---|
Type | Description |
string |
DefaultScopes
public static IReadOnlyList<string> DefaultScopes { get; }
The default ArtifactRegistry scopes.
Property Value | |
---|---|
Type | Description |
IReadOnlyListstring |
The default ArtifactRegistry scopes are:
DeleteAttachmentOperationsClient
public virtual OperationsClient DeleteAttachmentOperationsClient { get; }
The long-running operations client for DeleteAttachment
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DeleteFileOperationsClient
public virtual OperationsClient DeleteFileOperationsClient { get; }
The long-running operations client for DeleteFile
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DeletePackageOperationsClient
public virtual OperationsClient DeletePackageOperationsClient { get; }
The long-running operations client for DeletePackage
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DeleteRepositoryOperationsClient
public virtual OperationsClient DeleteRepositoryOperationsClient { get; }
The long-running operations client for DeleteRepository
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DeleteVersionOperationsClient
public virtual OperationsClient DeleteVersionOperationsClient { get; }
The long-running operations client for DeleteVersion
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
GrpcClient
public virtual ArtifactRegistry.ArtifactRegistryClient GrpcClient { get; }
The underlying gRPC ArtifactRegistry client
Property Value | |
---|---|
Type | Description |
ArtifactRegistryArtifactRegistryClient |
ImportAptArtifactsOperationsClient
public virtual OperationsClient ImportAptArtifactsOperationsClient { get; }
The long-running operations client for ImportAptArtifacts
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
ImportYumArtifactsOperationsClient
public virtual OperationsClient ImportYumArtifactsOperationsClient { get; }
The long-running operations client for ImportYumArtifacts
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
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
BatchDeleteVersions(BatchDeleteVersionsRequest, CallSettings)
public virtual Operation<Empty, BatchDeleteVersionsMetadata> BatchDeleteVersions(BatchDeleteVersionsRequest request, CallSettings callSettings = null)
Deletes multiple versions across a repository. The returned operation will complete once the versions have been deleted.
Parameters | |
---|---|
Name | Description |
request |
BatchDeleteVersionsRequest 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 |
OperationEmptyBatchDeleteVersionsMetadata |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::BatchDeleteVersionsRequest request = new gcav::BatchDeleteVersionsRequest
{
ParentAsPackageName = gcav::PackageName.FromProjectLocationRepositoryPackage("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[PACKAGE]"),
VersionNames =
{
gcav::VersionName.FromProjectLocationRepositoryPackageVersion("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[PACKAGE]", "[VERSION]"),
},
ValidateOnly = false,
};
// Make the request
Operation<Empty, gcav::BatchDeleteVersionsMetadata> response = artifactRegistryClient.BatchDeleteVersions(request);
// Poll until the returned long-running operation is complete
Operation<Empty, gcav::BatchDeleteVersionsMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcav::BatchDeleteVersionsMetadata> retrievedResponse = artifactRegistryClient.PollOnceBatchDeleteVersions(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
BatchDeleteVersions(PackageName, IEnumerable<VersionName>, CallSettings)
public virtual Operation<Empty, BatchDeleteVersionsMetadata> BatchDeleteVersions(PackageName parent, IEnumerable<VersionName> names, CallSettings callSettings = null)
Deletes multiple versions across a repository. The returned operation will complete once the versions have been deleted.
Parameters | |
---|---|
Name | Description |
parent |
PackageName The name of the repository holding all requested versions. |
names |
IEnumerableVersionName Required. The names of the versions to delete. A maximum of 10000 versions can be deleted in a batch. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyBatchDeleteVersionsMetadata |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::PackageName parent = gcav::PackageName.FromProjectLocationRepositoryPackage("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[PACKAGE]");
IEnumerable<gcav::VersionName> names = new gcav::VersionName[]
{
gcav::VersionName.FromProjectLocationRepositoryPackageVersion("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[PACKAGE]", "[VERSION]"),
};
// Make the request
Operation<Empty, gcav::BatchDeleteVersionsMetadata> response = artifactRegistryClient.BatchDeleteVersions(parent, names);
// Poll until the returned long-running operation is complete
Operation<Empty, gcav::BatchDeleteVersionsMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcav::BatchDeleteVersionsMetadata> retrievedResponse = artifactRegistryClient.PollOnceBatchDeleteVersions(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
BatchDeleteVersions(string, IEnumerable<string>, CallSettings)
public virtual Operation<Empty, BatchDeleteVersionsMetadata> BatchDeleteVersions(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Deletes multiple versions across a repository. The returned operation will complete once the versions have been deleted.
Parameters | |
---|---|
Name | Description |
parent |
string The name of the repository holding all requested versions. |
names |
IEnumerablestring Required. The names of the versions to delete. A maximum of 10000 versions can be deleted in a batch. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyBatchDeleteVersionsMetadata |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]/packages/[PACKAGE]";
IEnumerable<string> names = new string[]
{
"projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]/packages/[PACKAGE]/versions/[VERSION]",
};
// Make the request
Operation<Empty, gcav::BatchDeleteVersionsMetadata> response = artifactRegistryClient.BatchDeleteVersions(parent, names);
// Poll until the returned long-running operation is complete
Operation<Empty, gcav::BatchDeleteVersionsMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcav::BatchDeleteVersionsMetadata> retrievedResponse = artifactRegistryClient.PollOnceBatchDeleteVersions(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
BatchDeleteVersionsAsync(BatchDeleteVersionsRequest, CallSettings)
public virtual Task<Operation<Empty, BatchDeleteVersionsMetadata>> BatchDeleteVersionsAsync(BatchDeleteVersionsRequest request, CallSettings callSettings = null)
Deletes multiple versions across a repository. The returned operation will complete once the versions have been deleted.
Parameters | |
---|---|
Name | Description |
request |
BatchDeleteVersionsRequest 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 |
TaskOperationEmptyBatchDeleteVersionsMetadata |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::BatchDeleteVersionsRequest request = new gcav::BatchDeleteVersionsRequest
{
ParentAsPackageName = gcav::PackageName.FromProjectLocationRepositoryPackage("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[PACKAGE]"),
VersionNames =
{
gcav::VersionName.FromProjectLocationRepositoryPackageVersion("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[PACKAGE]", "[VERSION]"),
},
ValidateOnly = false,
};
// Make the request
Operation<Empty, gcav::BatchDeleteVersionsMetadata> response = await artifactRegistryClient.BatchDeleteVersionsAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, gcav::BatchDeleteVersionsMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcav::BatchDeleteVersionsMetadata> retrievedResponse = await artifactRegistryClient.PollOnceBatchDeleteVersionsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
BatchDeleteVersionsAsync(BatchDeleteVersionsRequest, CancellationToken)
public virtual Task<Operation<Empty, BatchDeleteVersionsMetadata>> BatchDeleteVersionsAsync(BatchDeleteVersionsRequest request, CancellationToken cancellationToken)
Deletes multiple versions across a repository. The returned operation will complete once the versions have been deleted.
Parameters | |
---|---|
Name | Description |
request |
BatchDeleteVersionsRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyBatchDeleteVersionsMetadata |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::BatchDeleteVersionsRequest request = new gcav::BatchDeleteVersionsRequest
{
ParentAsPackageName = gcav::PackageName.FromProjectLocationRepositoryPackage("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[PACKAGE]"),
VersionNames =
{
gcav::VersionName.FromProjectLocationRepositoryPackageVersion("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[PACKAGE]", "[VERSION]"),
},
ValidateOnly = false,
};
// Make the request
Operation<Empty, gcav::BatchDeleteVersionsMetadata> response = await artifactRegistryClient.BatchDeleteVersionsAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, gcav::BatchDeleteVersionsMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcav::BatchDeleteVersionsMetadata> retrievedResponse = await artifactRegistryClient.PollOnceBatchDeleteVersionsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
BatchDeleteVersionsAsync(PackageName, IEnumerable<VersionName>, CallSettings)
public virtual Task<Operation<Empty, BatchDeleteVersionsMetadata>> BatchDeleteVersionsAsync(PackageName parent, IEnumerable<VersionName> names, CallSettings callSettings = null)
Deletes multiple versions across a repository. The returned operation will complete once the versions have been deleted.
Parameters | |
---|---|
Name | Description |
parent |
PackageName The name of the repository holding all requested versions. |
names |
IEnumerableVersionName Required. The names of the versions to delete. A maximum of 10000 versions can be deleted in a batch. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyBatchDeleteVersionsMetadata |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::PackageName parent = gcav::PackageName.FromProjectLocationRepositoryPackage("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[PACKAGE]");
IEnumerable<gcav::VersionName> names = new gcav::VersionName[]
{
gcav::VersionName.FromProjectLocationRepositoryPackageVersion("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[PACKAGE]", "[VERSION]"),
};
// Make the request
Operation<Empty, gcav::BatchDeleteVersionsMetadata> response = await artifactRegistryClient.BatchDeleteVersionsAsync(parent, names);
// Poll until the returned long-running operation is complete
Operation<Empty, gcav::BatchDeleteVersionsMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcav::BatchDeleteVersionsMetadata> retrievedResponse = await artifactRegistryClient.PollOnceBatchDeleteVersionsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
BatchDeleteVersionsAsync(PackageName, IEnumerable<VersionName>, CancellationToken)
public virtual Task<Operation<Empty, BatchDeleteVersionsMetadata>> BatchDeleteVersionsAsync(PackageName parent, IEnumerable<VersionName> names, CancellationToken cancellationToken)
Deletes multiple versions across a repository. The returned operation will complete once the versions have been deleted.
Parameters | |
---|---|
Name | Description |
parent |
PackageName The name of the repository holding all requested versions. |
names |
IEnumerableVersionName Required. The names of the versions to delete. A maximum of 10000 versions can be deleted in a batch. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyBatchDeleteVersionsMetadata |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::PackageName parent = gcav::PackageName.FromProjectLocationRepositoryPackage("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[PACKAGE]");
IEnumerable<gcav::VersionName> names = new gcav::VersionName[]
{
gcav::VersionName.FromProjectLocationRepositoryPackageVersion("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[PACKAGE]", "[VERSION]"),
};
// Make the request
Operation<Empty, gcav::BatchDeleteVersionsMetadata> response = await artifactRegistryClient.BatchDeleteVersionsAsync(parent, names);
// Poll until the returned long-running operation is complete
Operation<Empty, gcav::BatchDeleteVersionsMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcav::BatchDeleteVersionsMetadata> retrievedResponse = await artifactRegistryClient.PollOnceBatchDeleteVersionsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
BatchDeleteVersionsAsync(string, IEnumerable<string>, CallSettings)
public virtual Task<Operation<Empty, BatchDeleteVersionsMetadata>> BatchDeleteVersionsAsync(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Deletes multiple versions across a repository. The returned operation will complete once the versions have been deleted.
Parameters | |
---|---|
Name | Description |
parent |
string The name of the repository holding all requested versions. |
names |
IEnumerablestring Required. The names of the versions to delete. A maximum of 10000 versions can be deleted in a batch. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyBatchDeleteVersionsMetadata |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]/packages/[PACKAGE]";
IEnumerable<string> names = new string[]
{
"projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]/packages/[PACKAGE]/versions/[VERSION]",
};
// Make the request
Operation<Empty, gcav::BatchDeleteVersionsMetadata> response = await artifactRegistryClient.BatchDeleteVersionsAsync(parent, names);
// Poll until the returned long-running operation is complete
Operation<Empty, gcav::BatchDeleteVersionsMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcav::BatchDeleteVersionsMetadata> retrievedResponse = await artifactRegistryClient.PollOnceBatchDeleteVersionsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
BatchDeleteVersionsAsync(string, IEnumerable<string>, CancellationToken)
public virtual Task<Operation<Empty, BatchDeleteVersionsMetadata>> BatchDeleteVersionsAsync(string parent, IEnumerable<string> names, CancellationToken cancellationToken)
Deletes multiple versions across a repository. The returned operation will complete once the versions have been deleted.
Parameters | |
---|---|
Name | Description |
parent |
string The name of the repository holding all requested versions. |
names |
IEnumerablestring Required. The names of the versions to delete. A maximum of 10000 versions can be deleted in a batch. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyBatchDeleteVersionsMetadata |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]/packages/[PACKAGE]";
IEnumerable<string> names = new string[]
{
"projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]/packages/[PACKAGE]/versions/[VERSION]",
};
// Make the request
Operation<Empty, gcav::BatchDeleteVersionsMetadata> response = await artifactRegistryClient.BatchDeleteVersionsAsync(parent, names);
// Poll until the returned long-running operation is complete
Operation<Empty, gcav::BatchDeleteVersionsMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcav::BatchDeleteVersionsMetadata> retrievedResponse = await artifactRegistryClient.PollOnceBatchDeleteVersionsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
Create()
public static ArtifactRegistryClient Create()
Synchronously creates a ArtifactRegistryClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use ArtifactRegistryClientBuilder.
Returns | |
---|---|
Type | Description |
ArtifactRegistryClient |
The created ArtifactRegistryClient. |
CreateAsync(CancellationToken)
public static Task<ArtifactRegistryClient> CreateAsync(CancellationToken cancellationToken = default)
Asynchronously creates a ArtifactRegistryClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use ArtifactRegistryClientBuilder.
Parameter | |
---|---|
Name | Description |
cancellationToken |
CancellationToken The CancellationToken to use while creating the client. |
Returns | |
---|---|
Type | Description |
TaskArtifactRegistryClient |
The task representing the created ArtifactRegistryClient. |
CreateAttachment(CreateAttachmentRequest, CallSettings)
public virtual Operation<Attachment, OperationMetadata> CreateAttachment(CreateAttachmentRequest request, CallSettings callSettings = null)
Creates an attachment. The returned Operation will finish once the attachment has been created. Its response will be the created attachment.
Parameters | |
---|---|
Name | Description |
request |
CreateAttachmentRequest 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 |
OperationAttachmentOperationMetadata |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::CreateAttachmentRequest request = new gcav::CreateAttachmentRequest
{
ParentAsRepositoryName = gcav::RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"),
AttachmentId = "",
Attachment = new gcav::Attachment(),
};
// Make the request
Operation<gcav::Attachment, gcav::OperationMetadata> response = artifactRegistryClient.CreateAttachment(request);
// Poll until the returned long-running operation is complete
Operation<gcav::Attachment, gcav::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
gcav::Attachment result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcav::Attachment, gcav::OperationMetadata> retrievedResponse = artifactRegistryClient.PollOnceCreateAttachment(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcav::Attachment retrievedResult = retrievedResponse.Result;
}
CreateAttachment(RepositoryName, Attachment, string, CallSettings)
public virtual Operation<Attachment, OperationMetadata> CreateAttachment(RepositoryName parent, Attachment attachment, string attachmentId, CallSettings callSettings = null)
Creates an attachment. The returned Operation will finish once the attachment has been created. Its response will be the created attachment.
Parameters | |
---|---|
Name | Description |
parent |
RepositoryName Required. The name of the parent resource where the attachment will be created. |
attachment |
Attachment Required. The attachment to be created. |
attachmentId |
string Required. The attachment id to use for this attachment. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationAttachmentOperationMetadata |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::RepositoryName parent = gcav::RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
gcav::Attachment attachment = new gcav::Attachment();
string attachmentId = "";
// Make the request
Operation<gcav::Attachment, gcav::OperationMetadata> response = artifactRegistryClient.CreateAttachment(parent, attachment, attachmentId);
// Poll until the returned long-running operation is complete
Operation<gcav::Attachment, gcav::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
gcav::Attachment result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcav::Attachment, gcav::OperationMetadata> retrievedResponse = artifactRegistryClient.PollOnceCreateAttachment(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcav::Attachment retrievedResult = retrievedResponse.Result;
}
CreateAttachment(string, Attachment, string, CallSettings)
public virtual Operation<Attachment, OperationMetadata> CreateAttachment(string parent, Attachment attachment, string attachmentId, CallSettings callSettings = null)
Creates an attachment. The returned Operation will finish once the attachment has been created. Its response will be the created attachment.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The name of the parent resource where the attachment will be created. |
attachment |
Attachment Required. The attachment to be created. |
attachmentId |
string Required. The attachment id to use for this attachment. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationAttachmentOperationMetadata |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]";
gcav::Attachment attachment = new gcav::Attachment();
string attachmentId = "";
// Make the request
Operation<gcav::Attachment, gcav::OperationMetadata> response = artifactRegistryClient.CreateAttachment(parent, attachment, attachmentId);
// Poll until the returned long-running operation is complete
Operation<gcav::Attachment, gcav::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
gcav::Attachment result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcav::Attachment, gcav::OperationMetadata> retrievedResponse = artifactRegistryClient.PollOnceCreateAttachment(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcav::Attachment retrievedResult = retrievedResponse.Result;
}
CreateAttachmentAsync(CreateAttachmentRequest, CallSettings)
public virtual Task<Operation<Attachment, OperationMetadata>> CreateAttachmentAsync(CreateAttachmentRequest request, CallSettings callSettings = null)
Creates an attachment. The returned Operation will finish once the attachment has been created. Its response will be the created attachment.
Parameters | |
---|---|
Name | Description |
request |
CreateAttachmentRequest 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 |
TaskOperationAttachmentOperationMetadata |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::CreateAttachmentRequest request = new gcav::CreateAttachmentRequest
{
ParentAsRepositoryName = gcav::RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"),
AttachmentId = "",
Attachment = new gcav::Attachment(),
};
// Make the request
Operation<gcav::Attachment, gcav::OperationMetadata> response = await artifactRegistryClient.CreateAttachmentAsync(request);
// Poll until the returned long-running operation is complete
Operation<gcav::Attachment, gcav::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcav::Attachment result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcav::Attachment, gcav::OperationMetadata> retrievedResponse = await artifactRegistryClient.PollOnceCreateAttachmentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcav::Attachment retrievedResult = retrievedResponse.Result;
}
CreateAttachmentAsync(CreateAttachmentRequest, CancellationToken)
public virtual Task<Operation<Attachment, OperationMetadata>> CreateAttachmentAsync(CreateAttachmentRequest request, CancellationToken cancellationToken)
Creates an attachment. The returned Operation will finish once the attachment has been created. Its response will be the created attachment.
Parameters | |
---|---|
Name | Description |
request |
CreateAttachmentRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationAttachmentOperationMetadata |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::CreateAttachmentRequest request = new gcav::CreateAttachmentRequest
{
ParentAsRepositoryName = gcav::RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"),
AttachmentId = "",
Attachment = new gcav::Attachment(),
};
// Make the request
Operation<gcav::Attachment, gcav::OperationMetadata> response = await artifactRegistryClient.CreateAttachmentAsync(request);
// Poll until the returned long-running operation is complete
Operation<gcav::Attachment, gcav::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcav::Attachment result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcav::Attachment, gcav::OperationMetadata> retrievedResponse = await artifactRegistryClient.PollOnceCreateAttachmentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcav::Attachment retrievedResult = retrievedResponse.Result;
}
CreateAttachmentAsync(RepositoryName, Attachment, string, CallSettings)
public virtual Task<Operation<Attachment, OperationMetadata>> CreateAttachmentAsync(RepositoryName parent, Attachment attachment, string attachmentId, CallSettings callSettings = null)
Creates an attachment. The returned Operation will finish once the attachment has been created. Its response will be the created attachment.
Parameters | |
---|---|
Name | Description |
parent |
RepositoryName Required. The name of the parent resource where the attachment will be created. |
attachment |
Attachment Required. The attachment to be created. |
attachmentId |
string Required. The attachment id to use for this attachment. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationAttachmentOperationMetadata |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::RepositoryName parent = gcav::RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
gcav::Attachment attachment = new gcav::Attachment();
string attachmentId = "";
// Make the request
Operation<gcav::Attachment, gcav::OperationMetadata> response = await artifactRegistryClient.CreateAttachmentAsync(parent, attachment, attachmentId);
// Poll until the returned long-running operation is complete
Operation<gcav::Attachment, gcav::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcav::Attachment result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcav::Attachment, gcav::OperationMetadata> retrievedResponse = await artifactRegistryClient.PollOnceCreateAttachmentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcav::Attachment retrievedResult = retrievedResponse.Result;
}
CreateAttachmentAsync(RepositoryName, Attachment, string, CancellationToken)
public virtual Task<Operation<Attachment, OperationMetadata>> CreateAttachmentAsync(RepositoryName parent, Attachment attachment, string attachmentId, CancellationToken cancellationToken)
Creates an attachment. The returned Operation will finish once the attachment has been created. Its response will be the created attachment.
Parameters | |
---|---|
Name | Description |
parent |
RepositoryName Required. The name of the parent resource where the attachment will be created. |
attachment |
Attachment Required. The attachment to be created. |
attachmentId |
string Required. The attachment id to use for this attachment. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationAttachmentOperationMetadata |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::RepositoryName parent = gcav::RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
gcav::Attachment attachment = new gcav::Attachment();
string attachmentId = "";
// Make the request
Operation<gcav::Attachment, gcav::OperationMetadata> response = await artifactRegistryClient.CreateAttachmentAsync(parent, attachment, attachmentId);
// Poll until the returned long-running operation is complete
Operation<gcav::Attachment, gcav::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcav::Attachment result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcav::Attachment, gcav::OperationMetadata> retrievedResponse = await artifactRegistryClient.PollOnceCreateAttachmentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcav::Attachment retrievedResult = retrievedResponse.Result;
}
CreateAttachmentAsync(string, Attachment, string, CallSettings)
public virtual Task<Operation<Attachment, OperationMetadata>> CreateAttachmentAsync(string parent, Attachment attachment, string attachmentId, CallSettings callSettings = null)
Creates an attachment. The returned Operation will finish once the attachment has been created. Its response will be the created attachment.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The name of the parent resource where the attachment will be created. |
attachment |
Attachment Required. The attachment to be created. |
attachmentId |
string Required. The attachment id to use for this attachment. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationAttachmentOperationMetadata |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]";
gcav::Attachment attachment = new gcav::Attachment();
string attachmentId = "";
// Make the request
Operation<gcav::Attachment, gcav::OperationMetadata> response = await artifactRegistryClient.CreateAttachmentAsync(parent, attachment, attachmentId);
// Poll until the returned long-running operation is complete
Operation<gcav::Attachment, gcav::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcav::Attachment result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcav::Attachment, gcav::OperationMetadata> retrievedResponse = await artifactRegistryClient.PollOnceCreateAttachmentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcav::Attachment retrievedResult = retrievedResponse.Result;
}
CreateAttachmentAsync(string, Attachment, string, CancellationToken)
public virtual Task<Operation<Attachment, OperationMetadata>> CreateAttachmentAsync(string parent, Attachment attachment, string attachmentId, CancellationToken cancellationToken)
Creates an attachment. The returned Operation will finish once the attachment has been created. Its response will be the created attachment.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The name of the parent resource where the attachment will be created. |
attachment |
Attachment Required. The attachment to be created. |
attachmentId |
string Required. The attachment id to use for this attachment. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationAttachmentOperationMetadata |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]";
gcav::Attachment attachment = new gcav::Attachment();
string attachmentId = "";
// Make the request
Operation<gcav::Attachment, gcav::OperationMetadata> response = await artifactRegistryClient.CreateAttachmentAsync(parent, attachment, attachmentId);
// Poll until the returned long-running operation is complete
Operation<gcav::Attachment, gcav::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcav::Attachment result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcav::Attachment, gcav::OperationMetadata> retrievedResponse = await artifactRegistryClient.PollOnceCreateAttachmentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcav::Attachment retrievedResult = retrievedResponse.Result;
}
CreateRepository(LocationName, Repository, string, CallSettings)
public virtual Operation<Repository, OperationMetadata> CreateRepository(LocationName parent, Repository repository, string repositoryId, CallSettings callSettings = null)
Creates a repository. The returned Operation will finish once the repository has been created. Its response will be the created Repository.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The name of the parent resource where the repository will be created. |
repository |
Repository Required. The repository to be created. |
repositoryId |
string Required. The repository id to use for this repository. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationRepositoryOperationMetadata |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
gcav::Repository repository = new gcav::Repository();
string repositoryId = "";
// Make the request
Operation<gcav::Repository, gcav::OperationMetadata> response = artifactRegistryClient.CreateRepository(parent, repository, repositoryId);
// Poll until the returned long-running operation is complete
Operation<gcav::Repository, gcav::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
gcav::Repository result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcav::Repository, gcav::OperationMetadata> retrievedResponse = artifactRegistryClient.PollOnceCreateRepository(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcav::Repository retrievedResult = retrievedResponse.Result;
}
CreateRepository(CreateRepositoryRequest, CallSettings)
public virtual Operation<Repository, OperationMetadata> CreateRepository(CreateRepositoryRequest request, CallSettings callSettings = null)
Creates a repository. The returned Operation will finish once the repository has been created. Its response will be the created Repository.
Parameters | |
---|---|
Name | Description |
request |
CreateRepositoryRequest 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 |
OperationRepositoryOperationMetadata |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::CreateRepositoryRequest request = new gcav::CreateRepositoryRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
RepositoryId = "",
Repository = new gcav::Repository(),
};
// Make the request
Operation<gcav::Repository, gcav::OperationMetadata> response = artifactRegistryClient.CreateRepository(request);
// Poll until the returned long-running operation is complete
Operation<gcav::Repository, gcav::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
gcav::Repository result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcav::Repository, gcav::OperationMetadata> retrievedResponse = artifactRegistryClient.PollOnceCreateRepository(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcav::Repository retrievedResult = retrievedResponse.Result;
}
CreateRepository(string, Repository, string, CallSettings)
public virtual Operation<Repository, OperationMetadata> CreateRepository(string parent, Repository repository, string repositoryId, CallSettings callSettings = null)
Creates a repository. The returned Operation will finish once the repository has been created. Its response will be the created Repository.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The name of the parent resource where the repository will be created. |
repository |
Repository Required. The repository to be created. |
repositoryId |
string Required. The repository id to use for this repository. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationRepositoryOperationMetadata |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
gcav::Repository repository = new gcav::Repository();
string repositoryId = "";
// Make the request
Operation<gcav::Repository, gcav::OperationMetadata> response = artifactRegistryClient.CreateRepository(parent, repository, repositoryId);
// Poll until the returned long-running operation is complete
Operation<gcav::Repository, gcav::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
gcav::Repository result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcav::Repository, gcav::OperationMetadata> retrievedResponse = artifactRegistryClient.PollOnceCreateRepository(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcav::Repository retrievedResult = retrievedResponse.Result;
}
CreateRepositoryAsync(LocationName, Repository, string, CallSettings)
public virtual Task<Operation<Repository, OperationMetadata>> CreateRepositoryAsync(LocationName parent, Repository repository, string repositoryId, CallSettings callSettings = null)
Creates a repository. The returned Operation will finish once the repository has been created. Its response will be the created Repository.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The name of the parent resource where the repository will be created. |
repository |
Repository Required. The repository to be created. |
repositoryId |
string Required. The repository id to use for this repository. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationRepositoryOperationMetadata |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
gcav::Repository repository = new gcav::Repository();
string repositoryId = "";
// Make the request
Operation<gcav::Repository, gcav::OperationMetadata> response = await artifactRegistryClient.CreateRepositoryAsync(parent, repository, repositoryId);
// Poll until the returned long-running operation is complete
Operation<gcav::Repository, gcav::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcav::Repository result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcav::Repository, gcav::OperationMetadata> retrievedResponse = await artifactRegistryClient.PollOnceCreateRepositoryAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcav::Repository retrievedResult = retrievedResponse.Result;
}
CreateRepositoryAsync(LocationName, Repository, string, CancellationToken)
public virtual Task<Operation<Repository, OperationMetadata>> CreateRepositoryAsync(LocationName parent, Repository repository, string repositoryId, CancellationToken cancellationToken)
Creates a repository. The returned Operation will finish once the repository has been created. Its response will be the created Repository.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The name of the parent resource where the repository will be created. |
repository |
Repository Required. The repository to be created. |
repositoryId |
string Required. The repository id to use for this repository. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationRepositoryOperationMetadata |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
gcav::Repository repository = new gcav::Repository();
string repositoryId = "";
// Make the request
Operation<gcav::Repository, gcav::OperationMetadata> response = await artifactRegistryClient.CreateRepositoryAsync(parent, repository, repositoryId);
// Poll until the returned long-running operation is complete
Operation<gcav::Repository, gcav::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcav::Repository result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcav::Repository, gcav::OperationMetadata> retrievedResponse = await artifactRegistryClient.PollOnceCreateRepositoryAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcav::Repository retrievedResult = retrievedResponse.Result;
}
CreateRepositoryAsync(CreateRepositoryRequest, CallSettings)
public virtual Task<Operation<Repository, OperationMetadata>> CreateRepositoryAsync(CreateRepositoryRequest request, CallSettings callSettings = null)
Creates a repository. The returned Operation will finish once the repository has been created. Its response will be the created Repository.
Parameters | |
---|---|
Name | Description |
request |
CreateRepositoryRequest 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 |
TaskOperationRepositoryOperationMetadata |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::CreateRepositoryRequest request = new gcav::CreateRepositoryRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
RepositoryId = "",
Repository = new gcav::Repository(),
};
// Make the request
Operation<gcav::Repository, gcav::OperationMetadata> response = await artifactRegistryClient.CreateRepositoryAsync(request);
// Poll until the returned long-running operation is complete
Operation<gcav::Repository, gcav::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcav::Repository result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcav::Repository, gcav::OperationMetadata> retrievedResponse = await artifactRegistryClient.PollOnceCreateRepositoryAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcav::Repository retrievedResult = retrievedResponse.Result;
}
CreateRepositoryAsync(CreateRepositoryRequest, CancellationToken)
public virtual Task<Operation<Repository, OperationMetadata>> CreateRepositoryAsync(CreateRepositoryRequest request, CancellationToken cancellationToken)
Creates a repository. The returned Operation will finish once the repository has been created. Its response will be the created Repository.
Parameters | |
---|---|
Name | Description |
request |
CreateRepositoryRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationRepositoryOperationMetadata |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::CreateRepositoryRequest request = new gcav::CreateRepositoryRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
RepositoryId = "",
Repository = new gcav::Repository(),
};
// Make the request
Operation<gcav::Repository, gcav::OperationMetadata> response = await artifactRegistryClient.CreateRepositoryAsync(request);
// Poll until the returned long-running operation is complete
Operation<gcav::Repository, gcav::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcav::Repository result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcav::Repository, gcav::OperationMetadata> retrievedResponse = await artifactRegistryClient.PollOnceCreateRepositoryAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcav::Repository retrievedResult = retrievedResponse.Result;
}
CreateRepositoryAsync(string, Repository, string, CallSettings)
public virtual Task<Operation<Repository, OperationMetadata>> CreateRepositoryAsync(string parent, Repository repository, string repositoryId, CallSettings callSettings = null)
Creates a repository. The returned Operation will finish once the repository has been created. Its response will be the created Repository.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The name of the parent resource where the repository will be created. |
repository |
Repository Required. The repository to be created. |
repositoryId |
string Required. The repository id to use for this repository. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationRepositoryOperationMetadata |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
gcav::Repository repository = new gcav::Repository();
string repositoryId = "";
// Make the request
Operation<gcav::Repository, gcav::OperationMetadata> response = await artifactRegistryClient.CreateRepositoryAsync(parent, repository, repositoryId);
// Poll until the returned long-running operation is complete
Operation<gcav::Repository, gcav::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcav::Repository result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcav::Repository, gcav::OperationMetadata> retrievedResponse = await artifactRegistryClient.PollOnceCreateRepositoryAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcav::Repository retrievedResult = retrievedResponse.Result;
}
CreateRepositoryAsync(string, Repository, string, CancellationToken)
public virtual Task<Operation<Repository, OperationMetadata>> CreateRepositoryAsync(string parent, Repository repository, string repositoryId, CancellationToken cancellationToken)
Creates a repository. The returned Operation will finish once the repository has been created. Its response will be the created Repository.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The name of the parent resource where the repository will be created. |
repository |
Repository Required. The repository to be created. |
repositoryId |
string Required. The repository id to use for this repository. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationRepositoryOperationMetadata |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
gcav::Repository repository = new gcav::Repository();
string repositoryId = "";
// Make the request
Operation<gcav::Repository, gcav::OperationMetadata> response = await artifactRegistryClient.CreateRepositoryAsync(parent, repository, repositoryId);
// Poll until the returned long-running operation is complete
Operation<gcav::Repository, gcav::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcav::Repository result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcav::Repository, gcav::OperationMetadata> retrievedResponse = await artifactRegistryClient.PollOnceCreateRepositoryAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcav::Repository retrievedResult = retrievedResponse.Result;
}
CreateRule(CreateRuleRequest, CallSettings)
public virtual Rule CreateRule(CreateRuleRequest request, CallSettings callSettings = null)
Creates a rule.
Parameters | |
---|---|
Name | Description |
request |
CreateRuleRequest 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 |
Rule |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::CreateRuleRequest request = new gcav::CreateRuleRequest
{
ParentAsRepositoryName = gcav::RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"),
RuleId = "",
Rule = new gcav::Rule(),
};
// Make the request
gcav::Rule response = artifactRegistryClient.CreateRule(request);
CreateRule(RepositoryName, Rule, string, CallSettings)
public virtual Rule CreateRule(RepositoryName parent, Rule rule, string ruleId, CallSettings callSettings = null)
Creates a rule.
Parameters | |
---|---|
Name | Description |
parent |
RepositoryName Required. The name of the parent resource where the rule will be created. |
rule |
Rule The rule to be created. |
ruleId |
string The rule id to use for this repository. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Rule |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::RepositoryName parent = gcav::RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
gcav::Rule rule = new gcav::Rule();
string ruleId = "";
// Make the request
gcav::Rule response = artifactRegistryClient.CreateRule(parent, rule, ruleId);
CreateRule(string, Rule, string, CallSettings)
public virtual Rule CreateRule(string parent, Rule rule, string ruleId, CallSettings callSettings = null)
Creates a rule.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The name of the parent resource where the rule will be created. |
rule |
Rule The rule to be created. |
ruleId |
string The rule id to use for this repository. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Rule |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]";
gcav::Rule rule = new gcav::Rule();
string ruleId = "";
// Make the request
gcav::Rule response = artifactRegistryClient.CreateRule(parent, rule, ruleId);
CreateRuleAsync(CreateRuleRequest, CallSettings)
public virtual Task<Rule> CreateRuleAsync(CreateRuleRequest request, CallSettings callSettings = null)
Creates a rule.
Parameters | |
---|---|
Name | Description |
request |
CreateRuleRequest 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 |
TaskRule |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::CreateRuleRequest request = new gcav::CreateRuleRequest
{
ParentAsRepositoryName = gcav::RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"),
RuleId = "",
Rule = new gcav::Rule(),
};
// Make the request
gcav::Rule response = await artifactRegistryClient.CreateRuleAsync(request);
CreateRuleAsync(CreateRuleRequest, CancellationToken)
public virtual Task<Rule> CreateRuleAsync(CreateRuleRequest request, CancellationToken cancellationToken)
Creates a rule.
Parameters | |
---|---|
Name | Description |
request |
CreateRuleRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskRule |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::CreateRuleRequest request = new gcav::CreateRuleRequest
{
ParentAsRepositoryName = gcav::RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"),
RuleId = "",
Rule = new gcav::Rule(),
};
// Make the request
gcav::Rule response = await artifactRegistryClient.CreateRuleAsync(request);
CreateRuleAsync(RepositoryName, Rule, string, CallSettings)
public virtual Task<Rule> CreateRuleAsync(RepositoryName parent, Rule rule, string ruleId, CallSettings callSettings = null)
Creates a rule.
Parameters | |
---|---|
Name | Description |
parent |
RepositoryName Required. The name of the parent resource where the rule will be created. |
rule |
Rule The rule to be created. |
ruleId |
string The rule id to use for this repository. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskRule |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::RepositoryName parent = gcav::RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
gcav::Rule rule = new gcav::Rule();
string ruleId = "";
// Make the request
gcav::Rule response = await artifactRegistryClient.CreateRuleAsync(parent, rule, ruleId);
CreateRuleAsync(RepositoryName, Rule, string, CancellationToken)
public virtual Task<Rule> CreateRuleAsync(RepositoryName parent, Rule rule, string ruleId, CancellationToken cancellationToken)
Creates a rule.
Parameters | |
---|---|
Name | Description |
parent |
RepositoryName Required. The name of the parent resource where the rule will be created. |
rule |
Rule The rule to be created. |
ruleId |
string The rule id to use for this repository. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskRule |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::RepositoryName parent = gcav::RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
gcav::Rule rule = new gcav::Rule();
string ruleId = "";
// Make the request
gcav::Rule response = await artifactRegistryClient.CreateRuleAsync(parent, rule, ruleId);
CreateRuleAsync(string, Rule, string, CallSettings)
public virtual Task<Rule> CreateRuleAsync(string parent, Rule rule, string ruleId, CallSettings callSettings = null)
Creates a rule.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The name of the parent resource where the rule will be created. |
rule |
Rule The rule to be created. |
ruleId |
string The rule id to use for this repository. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskRule |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]";
gcav::Rule rule = new gcav::Rule();
string ruleId = "";
// Make the request
gcav::Rule response = await artifactRegistryClient.CreateRuleAsync(parent, rule, ruleId);
CreateRuleAsync(string, Rule, string, CancellationToken)
public virtual Task<Rule> CreateRuleAsync(string parent, Rule rule, string ruleId, CancellationToken cancellationToken)
Creates a rule.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The name of the parent resource where the rule will be created. |
rule |
Rule The rule to be created. |
ruleId |
string The rule id to use for this repository. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskRule |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]";
gcav::Rule rule = new gcav::Rule();
string ruleId = "";
// Make the request
gcav::Rule response = await artifactRegistryClient.CreateRuleAsync(parent, rule, ruleId);
CreateTag(CreateTagRequest, CallSettings)
public virtual Tag CreateTag(CreateTagRequest request, CallSettings callSettings = null)
Creates a tag.
Parameters | |
---|---|
Name | Description |
request |
CreateTagRequest 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 |
Tag |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::CreateTagRequest request = new gcav::CreateTagRequest
{
Parent = "",
TagId = "",
Tag = new gcav::Tag(),
};
// Make the request
gcav::Tag response = artifactRegistryClient.CreateTag(request);
CreateTag(string, Tag, string, CallSettings)
public virtual Tag CreateTag(string parent, Tag tag, string tagId, CallSettings callSettings = null)
Creates a tag.
Parameters | |
---|---|
Name | Description |
parent |
string The name of the parent resource where the tag will be created. |
tag |
Tag The tag to be created. |
tagId |
string The tag id to use for this repository. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Tag |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
string parent = "";
gcav::Tag tag = new gcav::Tag();
string tagId = "";
// Make the request
gcav::Tag response = artifactRegistryClient.CreateTag(parent, tag, tagId);
CreateTagAsync(CreateTagRequest, CallSettings)
public virtual Task<Tag> CreateTagAsync(CreateTagRequest request, CallSettings callSettings = null)
Creates a tag.
Parameters | |
---|---|
Name | Description |
request |
CreateTagRequest 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 |
TaskTag |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::CreateTagRequest request = new gcav::CreateTagRequest
{
Parent = "",
TagId = "",
Tag = new gcav::Tag(),
};
// Make the request
gcav::Tag response = await artifactRegistryClient.CreateTagAsync(request);
CreateTagAsync(CreateTagRequest, CancellationToken)
public virtual Task<Tag> CreateTagAsync(CreateTagRequest request, CancellationToken cancellationToken)
Creates a tag.
Parameters | |
---|---|
Name | Description |
request |
CreateTagRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskTag |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::CreateTagRequest request = new gcav::CreateTagRequest
{
Parent = "",
TagId = "",
Tag = new gcav::Tag(),
};
// Make the request
gcav::Tag response = await artifactRegistryClient.CreateTagAsync(request);
CreateTagAsync(string, Tag, string, CallSettings)
public virtual Task<Tag> CreateTagAsync(string parent, Tag tag, string tagId, CallSettings callSettings = null)
Creates a tag.
Parameters | |
---|---|
Name | Description |
parent |
string The name of the parent resource where the tag will be created. |
tag |
Tag The tag to be created. |
tagId |
string The tag id to use for this repository. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskTag |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
string parent = "";
gcav::Tag tag = new gcav::Tag();
string tagId = "";
// Make the request
gcav::Tag response = await artifactRegistryClient.CreateTagAsync(parent, tag, tagId);
CreateTagAsync(string, Tag, string, CancellationToken)
public virtual Task<Tag> CreateTagAsync(string parent, Tag tag, string tagId, CancellationToken cancellationToken)
Creates a tag.
Parameters | |
---|---|
Name | Description |
parent |
string The name of the parent resource where the tag will be created. |
tag |
Tag The tag to be created. |
tagId |
string The tag id to use for this repository. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskTag |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
string parent = "";
gcav::Tag tag = new gcav::Tag();
string tagId = "";
// Make the request
gcav::Tag response = await artifactRegistryClient.CreateTagAsync(parent, tag, tagId);
DeleteAttachment(AttachmentName, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteAttachment(AttachmentName name, CallSettings callSettings = null)
Deletes an attachment. The returned Operation will
finish once the attachments has been deleted. It will not have any
Operation metadata and will return a google.protobuf.Empty
response.
Parameters | |
---|---|
Name | Description |
name |
AttachmentName Required. The name of the attachment to delete. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::AttachmentName name = gcav::AttachmentName.FromProjectLocationRepositoryAttachment("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[ATTACHMENT]");
// Make the request
Operation<Empty, gcav::OperationMetadata> response = artifactRegistryClient.DeleteAttachment(name);
// Poll until the returned long-running operation is complete
Operation<Empty, gcav::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcav::OperationMetadata> retrievedResponse = artifactRegistryClient.PollOnceDeleteAttachment(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteAttachment(DeleteAttachmentRequest, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteAttachment(DeleteAttachmentRequest request, CallSettings callSettings = null)
Deletes an attachment. The returned Operation will
finish once the attachments has been deleted. It will not have any
Operation metadata and will return a google.protobuf.Empty
response.
Parameters | |
---|---|
Name | Description |
request |
DeleteAttachmentRequest 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 |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::DeleteAttachmentRequest request = new gcav::DeleteAttachmentRequest
{
AttachmentName = gcav::AttachmentName.FromProjectLocationRepositoryAttachment("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[ATTACHMENT]"),
};
// Make the request
Operation<Empty, gcav::OperationMetadata> response = artifactRegistryClient.DeleteAttachment(request);
// Poll until the returned long-running operation is complete
Operation<Empty, gcav::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcav::OperationMetadata> retrievedResponse = artifactRegistryClient.PollOnceDeleteAttachment(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteAttachment(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteAttachment(string name, CallSettings callSettings = null)
Deletes an attachment. The returned Operation will
finish once the attachments has been deleted. It will not have any
Operation metadata and will return a google.protobuf.Empty
response.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the attachment to delete. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]/attachments/[ATTACHMENT]";
// Make the request
Operation<Empty, gcav::OperationMetadata> response = artifactRegistryClient.DeleteAttachment(name);
// Poll until the returned long-running operation is complete
Operation<Empty, gcav::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcav::OperationMetadata> retrievedResponse = artifactRegistryClient.PollOnceDeleteAttachment(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteAttachmentAsync(AttachmentName, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteAttachmentAsync(AttachmentName name, CallSettings callSettings = null)
Deletes an attachment. The returned Operation will
finish once the attachments has been deleted. It will not have any
Operation metadata and will return a google.protobuf.Empty
response.
Parameters | |
---|---|
Name | Description |
name |
AttachmentName Required. The name of the attachment to delete. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::AttachmentName name = gcav::AttachmentName.FromProjectLocationRepositoryAttachment("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[ATTACHMENT]");
// Make the request
Operation<Empty, gcav::OperationMetadata> response = await artifactRegistryClient.DeleteAttachmentAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, gcav::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcav::OperationMetadata> retrievedResponse = await artifactRegistryClient.PollOnceDeleteAttachmentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteAttachmentAsync(AttachmentName, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteAttachmentAsync(AttachmentName name, CancellationToken cancellationToken)
Deletes an attachment. The returned Operation will
finish once the attachments has been deleted. It will not have any
Operation metadata and will return a google.protobuf.Empty
response.
Parameters | |
---|---|
Name | Description |
name |
AttachmentName Required. The name of the attachment to delete. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::AttachmentName name = gcav::AttachmentName.FromProjectLocationRepositoryAttachment("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[ATTACHMENT]");
// Make the request
Operation<Empty, gcav::OperationMetadata> response = await artifactRegistryClient.DeleteAttachmentAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, gcav::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcav::OperationMetadata> retrievedResponse = await artifactRegistryClient.PollOnceDeleteAttachmentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteAttachmentAsync(DeleteAttachmentRequest, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteAttachmentAsync(DeleteAttachmentRequest request, CallSettings callSettings = null)
Deletes an attachment. The returned Operation will
finish once the attachments has been deleted. It will not have any
Operation metadata and will return a google.protobuf.Empty
response.
Parameters | |
---|---|
Name | Description |
request |
DeleteAttachmentRequest 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 |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::DeleteAttachmentRequest request = new gcav::DeleteAttachmentRequest
{
AttachmentName = gcav::AttachmentName.FromProjectLocationRepositoryAttachment("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[ATTACHMENT]"),
};
// Make the request
Operation<Empty, gcav::OperationMetadata> response = await artifactRegistryClient.DeleteAttachmentAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, gcav::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcav::OperationMetadata> retrievedResponse = await artifactRegistryClient.PollOnceDeleteAttachmentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteAttachmentAsync(DeleteAttachmentRequest, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteAttachmentAsync(DeleteAttachmentRequest request, CancellationToken cancellationToken)
Deletes an attachment. The returned Operation will
finish once the attachments has been deleted. It will not have any
Operation metadata and will return a google.protobuf.Empty
response.
Parameters | |
---|---|
Name | Description |
request |
DeleteAttachmentRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::DeleteAttachmentRequest request = new gcav::DeleteAttachmentRequest
{
AttachmentName = gcav::AttachmentName.FromProjectLocationRepositoryAttachment("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[ATTACHMENT]"),
};
// Make the request
Operation<Empty, gcav::OperationMetadata> response = await artifactRegistryClient.DeleteAttachmentAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, gcav::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcav::OperationMetadata> retrievedResponse = await artifactRegistryClient.PollOnceDeleteAttachmentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteAttachmentAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteAttachmentAsync(string name, CallSettings callSettings = null)
Deletes an attachment. The returned Operation will
finish once the attachments has been deleted. It will not have any
Operation metadata and will return a google.protobuf.Empty
response.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the attachment to delete. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]/attachments/[ATTACHMENT]";
// Make the request
Operation<Empty, gcav::OperationMetadata> response = await artifactRegistryClient.DeleteAttachmentAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, gcav::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcav::OperationMetadata> retrievedResponse = await artifactRegistryClient.PollOnceDeleteAttachmentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteAttachmentAsync(string, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteAttachmentAsync(string name, CancellationToken cancellationToken)
Deletes an attachment. The returned Operation will
finish once the attachments has been deleted. It will not have any
Operation metadata and will return a google.protobuf.Empty
response.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the attachment to delete. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]/attachments/[ATTACHMENT]";
// Make the request
Operation<Empty, gcav::OperationMetadata> response = await artifactRegistryClient.DeleteAttachmentAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, gcav::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcav::OperationMetadata> retrievedResponse = await artifactRegistryClient.PollOnceDeleteAttachmentAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteFile(DeleteFileRequest, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteFile(DeleteFileRequest request, CallSettings callSettings = null)
Deletes a file and all of its content. It is only allowed on generic repositories. The returned operation will complete once the file has been deleted.
Parameters | |
---|---|
Name | Description |
request |
DeleteFileRequest 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 |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::DeleteFileRequest request = new gcav::DeleteFileRequest
{
FileName = gcav::FileName.FromProjectLocationRepositoryFile("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[FILE]"),
};
// Make the request
Operation<Empty, gcav::OperationMetadata> response = artifactRegistryClient.DeleteFile(request);
// Poll until the returned long-running operation is complete
Operation<Empty, gcav::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcav::OperationMetadata> retrievedResponse = artifactRegistryClient.PollOnceDeleteFile(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteFile(FileName, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteFile(FileName name, CallSettings callSettings = null)
Deletes a file and all of its content. It is only allowed on generic repositories. The returned operation will complete once the file has been deleted.
Parameters | |
---|---|
Name | Description |
name |
FileName Required. The name of the file to delete. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::FileName name = gcav::FileName.FromProjectLocationRepositoryFile("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[FILE]");
// Make the request
Operation<Empty, gcav::OperationMetadata> response = artifactRegistryClient.DeleteFile(name);
// Poll until the returned long-running operation is complete
Operation<Empty, gcav::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcav::OperationMetadata> retrievedResponse = artifactRegistryClient.PollOnceDeleteFile(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteFile(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteFile(string name, CallSettings callSettings = null)
Deletes a file and all of its content. It is only allowed on generic repositories. The returned operation will complete once the file has been deleted.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the file to delete. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]/files/[FILE]";
// Make the request
Operation<Empty, gcav::OperationMetadata> response = artifactRegistryClient.DeleteFile(name);
// Poll until the returned long-running operation is complete
Operation<Empty, gcav::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcav::OperationMetadata> retrievedResponse = artifactRegistryClient.PollOnceDeleteFile(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteFileAsync(DeleteFileRequest, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteFileAsync(DeleteFileRequest request, CallSettings callSettings = null)
Deletes a file and all of its content. It is only allowed on generic repositories. The returned operation will complete once the file has been deleted.
Parameters | |
---|---|
Name | Description |
request |
DeleteFileRequest 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 |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::DeleteFileRequest request = new gcav::DeleteFileRequest
{
FileName = gcav::FileName.FromProjectLocationRepositoryFile("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[FILE]"),
};
// Make the request
Operation<Empty, gcav::OperationMetadata> response = await artifactRegistryClient.DeleteFileAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, gcav::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcav::OperationMetadata> retrievedResponse = await artifactRegistryClient.PollOnceDeleteFileAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteFileAsync(DeleteFileRequest, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteFileAsync(DeleteFileRequest request, CancellationToken cancellationToken)
Deletes a file and all of its content. It is only allowed on generic repositories. The returned operation will complete once the file has been deleted.
Parameters | |
---|---|
Name | Description |
request |
DeleteFileRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::DeleteFileRequest request = new gcav::DeleteFileRequest
{
FileName = gcav::FileName.FromProjectLocationRepositoryFile("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[FILE]"),
};
// Make the request
Operation<Empty, gcav::OperationMetadata> response = await artifactRegistryClient.DeleteFileAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, gcav::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcav::OperationMetadata> retrievedResponse = await artifactRegistryClient.PollOnceDeleteFileAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteFileAsync(FileName, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteFileAsync(FileName name, CallSettings callSettings = null)
Deletes a file and all of its content. It is only allowed on generic repositories. The returned operation will complete once the file has been deleted.
Parameters | |
---|---|
Name | Description |
name |
FileName Required. The name of the file to delete. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::FileName name = gcav::FileName.FromProjectLocationRepositoryFile("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[FILE]");
// Make the request
Operation<Empty, gcav::OperationMetadata> response = await artifactRegistryClient.DeleteFileAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, gcav::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcav::OperationMetadata> retrievedResponse = await artifactRegistryClient.PollOnceDeleteFileAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteFileAsync(FileName, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteFileAsync(FileName name, CancellationToken cancellationToken)
Deletes a file and all of its content. It is only allowed on generic repositories. The returned operation will complete once the file has been deleted.
Parameters | |
---|---|
Name | Description |
name |
FileName Required. The name of the file to delete. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::FileName name = gcav::FileName.FromProjectLocationRepositoryFile("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[FILE]");
// Make the request
Operation<Empty, gcav::OperationMetadata> response = await artifactRegistryClient.DeleteFileAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, gcav::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcav::OperationMetadata> retrievedResponse = await artifactRegistryClient.PollOnceDeleteFileAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteFileAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteFileAsync(string name, CallSettings callSettings = null)
Deletes a file and all of its content. It is only allowed on generic repositories. The returned operation will complete once the file has been deleted.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the file to delete. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]/files/[FILE]";
// Make the request
Operation<Empty, gcav::OperationMetadata> response = await artifactRegistryClient.DeleteFileAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, gcav::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcav::OperationMetadata> retrievedResponse = await artifactRegistryClient.PollOnceDeleteFileAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteFileAsync(string, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteFileAsync(string name, CancellationToken cancellationToken)
Deletes a file and all of its content. It is only allowed on generic repositories. The returned operation will complete once the file has been deleted.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the file to delete. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]/files/[FILE]";
// Make the request
Operation<Empty, gcav::OperationMetadata> response = await artifactRegistryClient.DeleteFileAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, gcav::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcav::OperationMetadata> retrievedResponse = await artifactRegistryClient.PollOnceDeleteFileAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeletePackage(DeletePackageRequest, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeletePackage(DeletePackageRequest request, CallSettings callSettings = null)
Deletes a package and all of its versions and tags. The returned operation will complete once the package has been deleted.
Parameters | |
---|---|
Name | Description |
request |
DeletePackageRequest 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 |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::DeletePackageRequest request = new gcav::DeletePackageRequest
{
PackageName = gcav::PackageName.FromProjectLocationRepositoryPackage("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[PACKAGE]"),
};
// Make the request
Operation<Empty, gcav::OperationMetadata> response = artifactRegistryClient.DeletePackage(request);
// Poll until the returned long-running operation is complete
Operation<Empty, gcav::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcav::OperationMetadata> retrievedResponse = artifactRegistryClient.PollOnceDeletePackage(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeletePackage(PackageName, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeletePackage(PackageName name, CallSettings callSettings = null)
Deletes a package and all of its versions and tags. The returned operation will complete once the package has been deleted.
Parameters | |
---|---|
Name | Description |
name |
PackageName Required. The name of the package to delete. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::PackageName name = gcav::PackageName.FromProjectLocationRepositoryPackage("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[PACKAGE]");
// Make the request
Operation<Empty, gcav::OperationMetadata> response = artifactRegistryClient.DeletePackage(name);
// Poll until the returned long-running operation is complete
Operation<Empty, gcav::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcav::OperationMetadata> retrievedResponse = artifactRegistryClient.PollOnceDeletePackage(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeletePackage(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeletePackage(string name, CallSettings callSettings = null)
Deletes a package and all of its versions and tags. The returned operation will complete once the package has been deleted.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the package to delete. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]/packages/[PACKAGE]";
// Make the request
Operation<Empty, gcav::OperationMetadata> response = artifactRegistryClient.DeletePackage(name);
// Poll until the returned long-running operation is complete
Operation<Empty, gcav::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcav::OperationMetadata> retrievedResponse = artifactRegistryClient.PollOnceDeletePackage(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeletePackageAsync(DeletePackageRequest, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeletePackageAsync(DeletePackageRequest request, CallSettings callSettings = null)
Deletes a package and all of its versions and tags. The returned operation will complete once the package has been deleted.
Parameters | |
---|---|
Name | Description |
request |
DeletePackageRequest 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 |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::DeletePackageRequest request = new gcav::DeletePackageRequest
{
PackageName = gcav::PackageName.FromProjectLocationRepositoryPackage("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[PACKAGE]"),
};
// Make the request
Operation<Empty, gcav::OperationMetadata> response = await artifactRegistryClient.DeletePackageAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, gcav::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcav::OperationMetadata> retrievedResponse = await artifactRegistryClient.PollOnceDeletePackageAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeletePackageAsync(DeletePackageRequest, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeletePackageAsync(DeletePackageRequest request, CancellationToken cancellationToken)
Deletes a package and all of its versions and tags. The returned operation will complete once the package has been deleted.
Parameters | |
---|---|
Name | Description |
request |
DeletePackageRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::DeletePackageRequest request = new gcav::DeletePackageRequest
{
PackageName = gcav::PackageName.FromProjectLocationRepositoryPackage("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[PACKAGE]"),
};
// Make the request
Operation<Empty, gcav::OperationMetadata> response = await artifactRegistryClient.DeletePackageAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, gcav::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcav::OperationMetadata> retrievedResponse = await artifactRegistryClient.PollOnceDeletePackageAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeletePackageAsync(PackageName, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeletePackageAsync(PackageName name, CallSettings callSettings = null)
Deletes a package and all of its versions and tags. The returned operation will complete once the package has been deleted.
Parameters | |
---|---|
Name | Description |
name |
PackageName Required. The name of the package to delete. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::PackageName name = gcav::PackageName.FromProjectLocationRepositoryPackage("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[PACKAGE]");
// Make the request
Operation<Empty, gcav::OperationMetadata> response = await artifactRegistryClient.DeletePackageAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, gcav::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcav::OperationMetadata> retrievedResponse = await artifactRegistryClient.PollOnceDeletePackageAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeletePackageAsync(PackageName, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeletePackageAsync(PackageName name, CancellationToken cancellationToken)
Deletes a package and all of its versions and tags. The returned operation will complete once the package has been deleted.
Parameters | |
---|---|
Name | Description |
name |
PackageName Required. The name of the package to delete. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::PackageName name = gcav::PackageName.FromProjectLocationRepositoryPackage("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[PACKAGE]");
// Make the request
Operation<Empty, gcav::OperationMetadata> response = await artifactRegistryClient.DeletePackageAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, gcav::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcav::OperationMetadata> retrievedResponse = await artifactRegistryClient.PollOnceDeletePackageAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeletePackageAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeletePackageAsync(string name, CallSettings callSettings = null)
Deletes a package and all of its versions and tags. The returned operation will complete once the package has been deleted.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the package to delete. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]/packages/[PACKAGE]";
// Make the request
Operation<Empty, gcav::OperationMetadata> response = await artifactRegistryClient.DeletePackageAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, gcav::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcav::OperationMetadata> retrievedResponse = await artifactRegistryClient.PollOnceDeletePackageAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeletePackageAsync(string, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeletePackageAsync(string name, CancellationToken cancellationToken)
Deletes a package and all of its versions and tags. The returned operation will complete once the package has been deleted.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the package to delete. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]/packages/[PACKAGE]";
// Make the request
Operation<Empty, gcav::OperationMetadata> response = await artifactRegistryClient.DeletePackageAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, gcav::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcav::OperationMetadata> retrievedResponse = await artifactRegistryClient.PollOnceDeletePackageAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteRepository(DeleteRepositoryRequest, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteRepository(DeleteRepositoryRequest request, CallSettings callSettings = null)
Deletes a repository and all of its contents. The returned Operation will finish once the repository has been deleted. It will not have any Operation metadata and will return a google.protobuf.Empty response.
Parameters | |
---|---|
Name | Description |
request |
DeleteRepositoryRequest 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 |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::DeleteRepositoryRequest request = new gcav::DeleteRepositoryRequest
{
RepositoryName = gcav::RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"),
};
// Make the request
Operation<Empty, gcav::OperationMetadata> response = artifactRegistryClient.DeleteRepository(request);
// Poll until the returned long-running operation is complete
Operation<Empty, gcav::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcav::OperationMetadata> retrievedResponse = artifactRegistryClient.PollOnceDeleteRepository(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteRepository(RepositoryName, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteRepository(RepositoryName name, CallSettings callSettings = null)
Deletes a repository and all of its contents. The returned Operation will finish once the repository has been deleted. It will not have any Operation metadata and will return a google.protobuf.Empty response.
Parameters | |
---|---|
Name | Description |
name |
RepositoryName Required. The name of the repository to delete. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::RepositoryName name = gcav::RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
// Make the request
Operation<Empty, gcav::OperationMetadata> response = artifactRegistryClient.DeleteRepository(name);
// Poll until the returned long-running operation is complete
Operation<Empty, gcav::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcav::OperationMetadata> retrievedResponse = artifactRegistryClient.PollOnceDeleteRepository(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteRepository(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteRepository(string name, CallSettings callSettings = null)
Deletes a repository and all of its contents. The returned Operation will finish once the repository has been deleted. It will not have any Operation metadata and will return a google.protobuf.Empty response.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the repository to delete. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]";
// Make the request
Operation<Empty, gcav::OperationMetadata> response = artifactRegistryClient.DeleteRepository(name);
// Poll until the returned long-running operation is complete
Operation<Empty, gcav::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcav::OperationMetadata> retrievedResponse = artifactRegistryClient.PollOnceDeleteRepository(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteRepositoryAsync(DeleteRepositoryRequest, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteRepositoryAsync(DeleteRepositoryRequest request, CallSettings callSettings = null)
Deletes a repository and all of its contents. The returned Operation will finish once the repository has been deleted. It will not have any Operation metadata and will return a google.protobuf.Empty response.
Parameters | |
---|---|
Name | Description |
request |
DeleteRepositoryRequest 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 |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::DeleteRepositoryRequest request = new gcav::DeleteRepositoryRequest
{
RepositoryName = gcav::RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"),
};
// Make the request
Operation<Empty, gcav::OperationMetadata> response = await artifactRegistryClient.DeleteRepositoryAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, gcav::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcav::OperationMetadata> retrievedResponse = await artifactRegistryClient.PollOnceDeleteRepositoryAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteRepositoryAsync(DeleteRepositoryRequest, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteRepositoryAsync(DeleteRepositoryRequest request, CancellationToken cancellationToken)
Deletes a repository and all of its contents. The returned Operation will finish once the repository has been deleted. It will not have any Operation metadata and will return a google.protobuf.Empty response.
Parameters | |
---|---|
Name | Description |
request |
DeleteRepositoryRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::DeleteRepositoryRequest request = new gcav::DeleteRepositoryRequest
{
RepositoryName = gcav::RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"),
};
// Make the request
Operation<Empty, gcav::OperationMetadata> response = await artifactRegistryClient.DeleteRepositoryAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, gcav::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcav::OperationMetadata> retrievedResponse = await artifactRegistryClient.PollOnceDeleteRepositoryAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteRepositoryAsync(RepositoryName, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteRepositoryAsync(RepositoryName name, CallSettings callSettings = null)
Deletes a repository and all of its contents. The returned Operation will finish once the repository has been deleted. It will not have any Operation metadata and will return a google.protobuf.Empty response.
Parameters | |
---|---|
Name | Description |
name |
RepositoryName Required. The name of the repository to delete. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::RepositoryName name = gcav::RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
// Make the request
Operation<Empty, gcav::OperationMetadata> response = await artifactRegistryClient.DeleteRepositoryAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, gcav::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcav::OperationMetadata> retrievedResponse = await artifactRegistryClient.PollOnceDeleteRepositoryAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteRepositoryAsync(RepositoryName, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteRepositoryAsync(RepositoryName name, CancellationToken cancellationToken)
Deletes a repository and all of its contents. The returned Operation will finish once the repository has been deleted. It will not have any Operation metadata and will return a google.protobuf.Empty response.
Parameters | |
---|---|
Name | Description |
name |
RepositoryName Required. The name of the repository to delete. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::RepositoryName name = gcav::RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
// Make the request
Operation<Empty, gcav::OperationMetadata> response = await artifactRegistryClient.DeleteRepositoryAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, gcav::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcav::OperationMetadata> retrievedResponse = await artifactRegistryClient.PollOnceDeleteRepositoryAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteRepositoryAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteRepositoryAsync(string name, CallSettings callSettings = null)
Deletes a repository and all of its contents. The returned Operation will finish once the repository has been deleted. It will not have any Operation metadata and will return a google.protobuf.Empty response.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the repository to delete. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]";
// Make the request
Operation<Empty, gcav::OperationMetadata> response = await artifactRegistryClient.DeleteRepositoryAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, gcav::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcav::OperationMetadata> retrievedResponse = await artifactRegistryClient.PollOnceDeleteRepositoryAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteRepositoryAsync(string, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteRepositoryAsync(string name, CancellationToken cancellationToken)
Deletes a repository and all of its contents. The returned Operation will finish once the repository has been deleted. It will not have any Operation metadata and will return a google.protobuf.Empty response.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the repository to delete. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]";
// Make the request
Operation<Empty, gcav::OperationMetadata> response = await artifactRegistryClient.DeleteRepositoryAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, gcav::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcav::OperationMetadata> retrievedResponse = await artifactRegistryClient.PollOnceDeleteRepositoryAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteRule(DeleteRuleRequest, CallSettings)
public virtual void DeleteRule(DeleteRuleRequest request, CallSettings callSettings = null)
Deletes a rule.
Parameters | |
---|---|
Name | Description |
request |
DeleteRuleRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::DeleteRuleRequest request = new gcav::DeleteRuleRequest
{
RuleName = gcav::RuleName.FromProjectLocationRepositoryRule("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RULE]"),
};
// Make the request
artifactRegistryClient.DeleteRule(request);
DeleteRule(RuleName, CallSettings)
public virtual void DeleteRule(RuleName name, CallSettings callSettings = null)
Deletes a rule.
Parameters | |
---|---|
Name | Description |
name |
RuleName Required. The name of the rule to delete. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::RuleName name = gcav::RuleName.FromProjectLocationRepositoryRule("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RULE]");
// Make the request
artifactRegistryClient.DeleteRule(name);
DeleteRule(string, CallSettings)
public virtual void DeleteRule(string name, CallSettings callSettings = null)
Deletes a rule.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the rule to delete. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]/rules/[RULE]";
// Make the request
artifactRegistryClient.DeleteRule(name);
DeleteRuleAsync(DeleteRuleRequest, CallSettings)
public virtual Task DeleteRuleAsync(DeleteRuleRequest request, CallSettings callSettings = null)
Deletes a rule.
Parameters | |
---|---|
Name | Description |
request |
DeleteRuleRequest 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. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::DeleteRuleRequest request = new gcav::DeleteRuleRequest
{
RuleName = gcav::RuleName.FromProjectLocationRepositoryRule("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RULE]"),
};
// Make the request
await artifactRegistryClient.DeleteRuleAsync(request);
DeleteRuleAsync(DeleteRuleRequest, CancellationToken)
public virtual Task DeleteRuleAsync(DeleteRuleRequest request, CancellationToken cancellationToken)
Deletes a rule.
Parameters | |
---|---|
Name | Description |
request |
DeleteRuleRequest 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. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::DeleteRuleRequest request = new gcav::DeleteRuleRequest
{
RuleName = gcav::RuleName.FromProjectLocationRepositoryRule("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RULE]"),
};
// Make the request
await artifactRegistryClient.DeleteRuleAsync(request);
DeleteRuleAsync(RuleName, CallSettings)
public virtual Task DeleteRuleAsync(RuleName name, CallSettings callSettings = null)
Deletes a rule.
Parameters | |
---|---|
Name | Description |
name |
RuleName Required. The name of the rule to delete. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::RuleName name = gcav::RuleName.FromProjectLocationRepositoryRule("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RULE]");
// Make the request
await artifactRegistryClient.DeleteRuleAsync(name);
DeleteRuleAsync(RuleName, CancellationToken)
public virtual Task DeleteRuleAsync(RuleName name, CancellationToken cancellationToken)
Deletes a rule.
Parameters | |
---|---|
Name | Description |
name |
RuleName Required. The name of the rule to delete. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::RuleName name = gcav::RuleName.FromProjectLocationRepositoryRule("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RULE]");
// Make the request
await artifactRegistryClient.DeleteRuleAsync(name);
DeleteRuleAsync(string, CallSettings)
public virtual Task DeleteRuleAsync(string name, CallSettings callSettings = null)
Deletes a rule.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the rule to delete. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]/rules/[RULE]";
// Make the request
await artifactRegistryClient.DeleteRuleAsync(name);
DeleteRuleAsync(string, CancellationToken)
public virtual Task DeleteRuleAsync(string name, CancellationToken cancellationToken)
Deletes a rule.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the rule to delete. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]/rules/[RULE]";
// Make the request
await artifactRegistryClient.DeleteRuleAsync(name);
DeleteTag(DeleteTagRequest, CallSettings)
public virtual void DeleteTag(DeleteTagRequest request, CallSettings callSettings = null)
Deletes a tag.
Parameters | |
---|---|
Name | Description |
request |
DeleteTagRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::DeleteTagRequest request = new gcav::DeleteTagRequest { Name = "", };
// Make the request
artifactRegistryClient.DeleteTag(request);
DeleteTag(string, CallSettings)
public virtual void DeleteTag(string name, CallSettings callSettings = null)
Deletes a tag.
Parameters | |
---|---|
Name | Description |
name |
string The name of the tag to delete. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
string name = "";
// Make the request
artifactRegistryClient.DeleteTag(name);
DeleteTagAsync(DeleteTagRequest, CallSettings)
public virtual Task DeleteTagAsync(DeleteTagRequest request, CallSettings callSettings = null)
Deletes a tag.
Parameters | |
---|---|
Name | Description |
request |
DeleteTagRequest 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. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::DeleteTagRequest request = new gcav::DeleteTagRequest { Name = "", };
// Make the request
await artifactRegistryClient.DeleteTagAsync(request);
DeleteTagAsync(DeleteTagRequest, CancellationToken)
public virtual Task DeleteTagAsync(DeleteTagRequest request, CancellationToken cancellationToken)
Deletes a tag.
Parameters | |
---|---|
Name | Description |
request |
DeleteTagRequest 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. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::DeleteTagRequest request = new gcav::DeleteTagRequest { Name = "", };
// Make the request
await artifactRegistryClient.DeleteTagAsync(request);
DeleteTagAsync(string, CallSettings)
public virtual Task DeleteTagAsync(string name, CallSettings callSettings = null)
Deletes a tag.
Parameters | |
---|---|
Name | Description |
name |
string The name of the tag to delete. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "";
// Make the request
await artifactRegistryClient.DeleteTagAsync(name);
DeleteTagAsync(string, CancellationToken)
public virtual Task DeleteTagAsync(string name, CancellationToken cancellationToken)
Deletes a tag.
Parameters | |
---|---|
Name | Description |
name |
string The name of the tag to delete. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "";
// Make the request
await artifactRegistryClient.DeleteTagAsync(name);
DeleteVersion(DeleteVersionRequest, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteVersion(DeleteVersionRequest request, CallSettings callSettings = null)
Deletes a version and all of its content. The returned operation will complete once the version has been deleted.
Parameters | |
---|---|
Name | Description |
request |
DeleteVersionRequest 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 |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::DeleteVersionRequest request = new gcav::DeleteVersionRequest
{
Name = "",
Force = false,
};
// Make the request
Operation<Empty, gcav::OperationMetadata> response = artifactRegistryClient.DeleteVersion(request);
// Poll until the returned long-running operation is complete
Operation<Empty, gcav::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcav::OperationMetadata> retrievedResponse = artifactRegistryClient.PollOnceDeleteVersion(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteVersion(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteVersion(string name, CallSettings callSettings = null)
Deletes a version and all of its content. The returned operation will complete once the version has been deleted.
Parameters | |
---|---|
Name | Description |
name |
string The name of the version to delete. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
string name = "";
// Make the request
Operation<Empty, gcav::OperationMetadata> response = artifactRegistryClient.DeleteVersion(name);
// Poll until the returned long-running operation is complete
Operation<Empty, gcav::OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcav::OperationMetadata> retrievedResponse = artifactRegistryClient.PollOnceDeleteVersion(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteVersionAsync(DeleteVersionRequest, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteVersionAsync(DeleteVersionRequest request, CallSettings callSettings = null)
Deletes a version and all of its content. The returned operation will complete once the version has been deleted.
Parameters | |
---|---|
Name | Description |
request |
DeleteVersionRequest 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 |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::DeleteVersionRequest request = new gcav::DeleteVersionRequest
{
Name = "",
Force = false,
};
// Make the request
Operation<Empty, gcav::OperationMetadata> response = await artifactRegistryClient.DeleteVersionAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, gcav::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcav::OperationMetadata> retrievedResponse = await artifactRegistryClient.PollOnceDeleteVersionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteVersionAsync(DeleteVersionRequest, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteVersionAsync(DeleteVersionRequest request, CancellationToken cancellationToken)
Deletes a version and all of its content. The returned operation will complete once the version has been deleted.
Parameters | |
---|---|
Name | Description |
request |
DeleteVersionRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::DeleteVersionRequest request = new gcav::DeleteVersionRequest
{
Name = "",
Force = false,
};
// Make the request
Operation<Empty, gcav::OperationMetadata> response = await artifactRegistryClient.DeleteVersionAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, gcav::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcav::OperationMetadata> retrievedResponse = await artifactRegistryClient.PollOnceDeleteVersionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteVersionAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteVersionAsync(string name, CallSettings callSettings = null)
Deletes a version and all of its content. The returned operation will complete once the version has been deleted.
Parameters | |
---|---|
Name | Description |
name |
string The name of the version to delete. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "";
// Make the request
Operation<Empty, gcav::OperationMetadata> response = await artifactRegistryClient.DeleteVersionAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, gcav::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcav::OperationMetadata> retrievedResponse = await artifactRegistryClient.PollOnceDeleteVersionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteVersionAsync(string, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteVersionAsync(string name, CancellationToken cancellationToken)
Deletes a version and all of its content. The returned operation will complete once the version has been deleted.
Parameters | |
---|---|
Name | Description |
name |
string The name of the version to delete. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "";
// Make the request
Operation<Empty, gcav::OperationMetadata> response = await artifactRegistryClient.DeleteVersionAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, gcav::OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, gcav::OperationMetadata> retrievedResponse = await artifactRegistryClient.PollOnceDeleteVersionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
GetAttachment(AttachmentName, CallSettings)
public virtual Attachment GetAttachment(AttachmentName name, CallSettings callSettings = null)
Gets an attachment.
Parameters | |
---|---|
Name | Description |
name |
AttachmentName Required. The name of the attachment to retrieve. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Attachment |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::AttachmentName name = gcav::AttachmentName.FromProjectLocationRepositoryAttachment("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[ATTACHMENT]");
// Make the request
gcav::Attachment response = artifactRegistryClient.GetAttachment(name);
GetAttachment(GetAttachmentRequest, CallSettings)
public virtual Attachment GetAttachment(GetAttachmentRequest request, CallSettings callSettings = null)
Gets an attachment.
Parameters | |
---|---|
Name | Description |
request |
GetAttachmentRequest 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 |
Attachment |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::GetAttachmentRequest request = new gcav::GetAttachmentRequest
{
AttachmentName = gcav::AttachmentName.FromProjectLocationRepositoryAttachment("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[ATTACHMENT]"),
};
// Make the request
gcav::Attachment response = artifactRegistryClient.GetAttachment(request);
GetAttachment(string, CallSettings)
public virtual Attachment GetAttachment(string name, CallSettings callSettings = null)
Gets an attachment.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the attachment to retrieve. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Attachment |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]/attachments/[ATTACHMENT]";
// Make the request
gcav::Attachment response = artifactRegistryClient.GetAttachment(name);
GetAttachmentAsync(AttachmentName, CallSettings)
public virtual Task<Attachment> GetAttachmentAsync(AttachmentName name, CallSettings callSettings = null)
Gets an attachment.
Parameters | |
---|---|
Name | Description |
name |
AttachmentName Required. The name of the attachment to retrieve. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskAttachment |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::AttachmentName name = gcav::AttachmentName.FromProjectLocationRepositoryAttachment("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[ATTACHMENT]");
// Make the request
gcav::Attachment response = await artifactRegistryClient.GetAttachmentAsync(name);
GetAttachmentAsync(AttachmentName, CancellationToken)
public virtual Task<Attachment> GetAttachmentAsync(AttachmentName name, CancellationToken cancellationToken)
Gets an attachment.
Parameters | |
---|---|
Name | Description |
name |
AttachmentName Required. The name of the attachment to retrieve. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskAttachment |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::AttachmentName name = gcav::AttachmentName.FromProjectLocationRepositoryAttachment("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[ATTACHMENT]");
// Make the request
gcav::Attachment response = await artifactRegistryClient.GetAttachmentAsync(name);
GetAttachmentAsync(GetAttachmentRequest, CallSettings)
public virtual Task<Attachment> GetAttachmentAsync(GetAttachmentRequest request, CallSettings callSettings = null)
Gets an attachment.
Parameters | |
---|---|
Name | Description |
request |
GetAttachmentRequest 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 |
TaskAttachment |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::GetAttachmentRequest request = new gcav::GetAttachmentRequest
{
AttachmentName = gcav::AttachmentName.FromProjectLocationRepositoryAttachment("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[ATTACHMENT]"),
};
// Make the request
gcav::Attachment response = await artifactRegistryClient.GetAttachmentAsync(request);
GetAttachmentAsync(GetAttachmentRequest, CancellationToken)
public virtual Task<Attachment> GetAttachmentAsync(GetAttachmentRequest request, CancellationToken cancellationToken)
Gets an attachment.
Parameters | |
---|---|
Name | Description |
request |
GetAttachmentRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskAttachment |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::GetAttachmentRequest request = new gcav::GetAttachmentRequest
{
AttachmentName = gcav::AttachmentName.FromProjectLocationRepositoryAttachment("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[ATTACHMENT]"),
};
// Make the request
gcav::Attachment response = await artifactRegistryClient.GetAttachmentAsync(request);
GetAttachmentAsync(string, CallSettings)
public virtual Task<Attachment> GetAttachmentAsync(string name, CallSettings callSettings = null)
Gets an attachment.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the attachment to retrieve. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskAttachment |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]/attachments/[ATTACHMENT]";
// Make the request
gcav::Attachment response = await artifactRegistryClient.GetAttachmentAsync(name);
GetAttachmentAsync(string, CancellationToken)
public virtual Task<Attachment> GetAttachmentAsync(string name, CancellationToken cancellationToken)
Gets an attachment.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the attachment to retrieve. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskAttachment |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]/attachments/[ATTACHMENT]";
// Make the request
gcav::Attachment response = await artifactRegistryClient.GetAttachmentAsync(name);
GetDockerImage(DockerImageName, CallSettings)
public virtual DockerImage GetDockerImage(DockerImageName name, CallSettings callSettings = null)
Gets a docker image.
Parameters | |
---|---|
Name | Description |
name |
DockerImageName Required. The name of the docker images. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
DockerImage |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::DockerImageName name = gcav::DockerImageName.FromProjectLocationRepositoryDockerImage("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[DOCKER_IMAGE]");
// Make the request
gcav::DockerImage response = artifactRegistryClient.GetDockerImage(name);
GetDockerImage(GetDockerImageRequest, CallSettings)
public virtual DockerImage GetDockerImage(GetDockerImageRequest request, CallSettings callSettings = null)
Gets a docker image.
Parameters | |
---|---|
Name | Description |
request |
GetDockerImageRequest 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 |
DockerImage |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::GetDockerImageRequest request = new gcav::GetDockerImageRequest
{
DockerImageName = gcav::DockerImageName.FromProjectLocationRepositoryDockerImage("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[DOCKER_IMAGE]"),
};
// Make the request
gcav::DockerImage response = artifactRegistryClient.GetDockerImage(request);
GetDockerImage(string, CallSettings)
public virtual DockerImage GetDockerImage(string name, CallSettings callSettings = null)
Gets a docker image.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the docker images. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
DockerImage |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]/dockerImages/[DOCKER_IMAGE]";
// Make the request
gcav::DockerImage response = artifactRegistryClient.GetDockerImage(name);
GetDockerImageAsync(DockerImageName, CallSettings)
public virtual Task<DockerImage> GetDockerImageAsync(DockerImageName name, CallSettings callSettings = null)
Gets a docker image.
Parameters | |
---|---|
Name | Description |
name |
DockerImageName Required. The name of the docker images. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskDockerImage |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::DockerImageName name = gcav::DockerImageName.FromProjectLocationRepositoryDockerImage("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[DOCKER_IMAGE]");
// Make the request
gcav::DockerImage response = await artifactRegistryClient.GetDockerImageAsync(name);
GetDockerImageAsync(DockerImageName, CancellationToken)
public virtual Task<DockerImage> GetDockerImageAsync(DockerImageName name, CancellationToken cancellationToken)
Gets a docker image.
Parameters | |
---|---|
Name | Description |
name |
DockerImageName Required. The name of the docker images. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskDockerImage |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::DockerImageName name = gcav::DockerImageName.FromProjectLocationRepositoryDockerImage("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[DOCKER_IMAGE]");
// Make the request
gcav::DockerImage response = await artifactRegistryClient.GetDockerImageAsync(name);
GetDockerImageAsync(GetDockerImageRequest, CallSettings)
public virtual Task<DockerImage> GetDockerImageAsync(GetDockerImageRequest request, CallSettings callSettings = null)
Gets a docker image.
Parameters | |
---|---|
Name | Description |
request |
GetDockerImageRequest 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 |
TaskDockerImage |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::GetDockerImageRequest request = new gcav::GetDockerImageRequest
{
DockerImageName = gcav::DockerImageName.FromProjectLocationRepositoryDockerImage("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[DOCKER_IMAGE]"),
};
// Make the request
gcav::DockerImage response = await artifactRegistryClient.GetDockerImageAsync(request);
GetDockerImageAsync(GetDockerImageRequest, CancellationToken)
public virtual Task<DockerImage> GetDockerImageAsync(GetDockerImageRequest request, CancellationToken cancellationToken)
Gets a docker image.
Parameters | |
---|---|
Name | Description |
request |
GetDockerImageRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskDockerImage |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::GetDockerImageRequest request = new gcav::GetDockerImageRequest
{
DockerImageName = gcav::DockerImageName.FromProjectLocationRepositoryDockerImage("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[DOCKER_IMAGE]"),
};
// Make the request
gcav::DockerImage response = await artifactRegistryClient.GetDockerImageAsync(request);
GetDockerImageAsync(string, CallSettings)
public virtual Task<DockerImage> GetDockerImageAsync(string name, CallSettings callSettings = null)
Gets a docker image.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the docker images. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskDockerImage |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]/dockerImages/[DOCKER_IMAGE]";
// Make the request
gcav::DockerImage response = await artifactRegistryClient.GetDockerImageAsync(name);
GetDockerImageAsync(string, CancellationToken)
public virtual Task<DockerImage> GetDockerImageAsync(string name, CancellationToken cancellationToken)
Gets a docker image.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the docker images. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskDockerImage |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]/dockerImages/[DOCKER_IMAGE]";
// Make the request
gcav::DockerImage response = await artifactRegistryClient.GetDockerImageAsync(name);
GetFile(FileName, CallSettings)
public virtual File GetFile(FileName name, CallSettings callSettings = null)
Gets a file.
Parameters | |
---|---|
Name | Description |
name |
FileName Required. The name of the file to retrieve. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
File |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::FileName name = gcav::FileName.FromProjectLocationRepositoryFile("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[FILE]");
// Make the request
gcav::File response = artifactRegistryClient.GetFile(name);
GetFile(GetFileRequest, CallSettings)
public virtual File GetFile(GetFileRequest request, CallSettings callSettings = null)
Gets a file.
Parameters | |
---|---|
Name | Description |
request |
GetFileRequest 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 |
File |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::GetFileRequest request = new gcav::GetFileRequest
{
FileName = gcav::FileName.FromProjectLocationRepositoryFile("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[FILE]"),
};
// Make the request
gcav::File response = artifactRegistryClient.GetFile(request);
GetFile(string, CallSettings)
public virtual File GetFile(string name, CallSettings callSettings = null)
Gets a file.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the file to retrieve. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
File |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]/files/[FILE]";
// Make the request
gcav::File response = artifactRegistryClient.GetFile(name);
GetFileAsync(FileName, CallSettings)
public virtual Task<File> GetFileAsync(FileName name, CallSettings callSettings = null)
Gets a file.
Parameters | |
---|---|
Name | Description |
name |
FileName Required. The name of the file to retrieve. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskFile |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::FileName name = gcav::FileName.FromProjectLocationRepositoryFile("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[FILE]");
// Make the request
gcav::File response = await artifactRegistryClient.GetFileAsync(name);
GetFileAsync(FileName, CancellationToken)
public virtual Task<File> GetFileAsync(FileName name, CancellationToken cancellationToken)
Gets a file.
Parameters | |
---|---|
Name | Description |
name |
FileName Required. The name of the file to retrieve. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskFile |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::FileName name = gcav::FileName.FromProjectLocationRepositoryFile("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[FILE]");
// Make the request
gcav::File response = await artifactRegistryClient.GetFileAsync(name);
GetFileAsync(GetFileRequest, CallSettings)
public virtual Task<File> GetFileAsync(GetFileRequest request, CallSettings callSettings = null)
Gets a file.
Parameters | |
---|---|
Name | Description |
request |
GetFileRequest 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 |
TaskFile |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::GetFileRequest request = new gcav::GetFileRequest
{
FileName = gcav::FileName.FromProjectLocationRepositoryFile("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[FILE]"),
};
// Make the request
gcav::File response = await artifactRegistryClient.GetFileAsync(request);
GetFileAsync(GetFileRequest, CancellationToken)
public virtual Task<File> GetFileAsync(GetFileRequest request, CancellationToken cancellationToken)
Gets a file.
Parameters | |
---|---|
Name | Description |
request |
GetFileRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskFile |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::GetFileRequest request = new gcav::GetFileRequest
{
FileName = gcav::FileName.FromProjectLocationRepositoryFile("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[FILE]"),
};
// Make the request
gcav::File response = await artifactRegistryClient.GetFileAsync(request);
GetFileAsync(string, CallSettings)
public virtual Task<File> GetFileAsync(string name, CallSettings callSettings = null)
Gets a file.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the file to retrieve. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskFile |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]/files/[FILE]";
// Make the request
gcav::File response = await artifactRegistryClient.GetFileAsync(name);
GetFileAsync(string, CancellationToken)
public virtual Task<File> GetFileAsync(string name, CancellationToken cancellationToken)
Gets a file.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the file to retrieve. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskFile |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]/files/[FILE]";
// Make the request
gcav::File response = await artifactRegistryClient.GetFileAsync(name);
GetIamPolicy(GetIamPolicyRequest, CallSettings)
public virtual Policy GetIamPolicy(GetIamPolicyRequest request, CallSettings callSettings = null)
Gets the IAM policy for a given resource.
Parameters | |
---|---|
Name | Description |
request |
GetIamPolicyRequest 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 |
Policy |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
GetIamPolicyRequest request = new GetIamPolicyRequest
{
ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
Options = new GetPolicyOptions(),
};
// Make the request
Policy response = artifactRegistryClient.GetIamPolicy(request);
GetIamPolicyAsync(GetIamPolicyRequest, CallSettings)
public virtual Task<Policy> GetIamPolicyAsync(GetIamPolicyRequest request, CallSettings callSettings = null)
Gets the IAM policy for a given resource.
Parameters | |
---|---|
Name | Description |
request |
GetIamPolicyRequest 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 |
TaskPolicy |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
GetIamPolicyRequest request = new GetIamPolicyRequest
{
ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
Options = new GetPolicyOptions(),
};
// Make the request
Policy response = await artifactRegistryClient.GetIamPolicyAsync(request);
GetIamPolicyAsync(GetIamPolicyRequest, CancellationToken)
public virtual Task<Policy> GetIamPolicyAsync(GetIamPolicyRequest request, CancellationToken cancellationToken)
Gets the IAM policy for a given resource.
Parameters | |
---|---|
Name | Description |
request |
GetIamPolicyRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskPolicy |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
GetIamPolicyRequest request = new GetIamPolicyRequest
{
ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
Options = new GetPolicyOptions(),
};
// Make the request
Policy response = await artifactRegistryClient.GetIamPolicyAsync(request);
GetMavenArtifact(GetMavenArtifactRequest, CallSettings)
public virtual MavenArtifact GetMavenArtifact(GetMavenArtifactRequest request, CallSettings callSettings = null)
Gets a maven artifact.
Parameters | |
---|---|
Name | Description |
request |
GetMavenArtifactRequest 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 |
MavenArtifact |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::GetMavenArtifactRequest request = new gcav::GetMavenArtifactRequest
{
MavenArtifactName = gcav::MavenArtifactName.FromProjectLocationRepositoryMavenArtifact("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[MAVEN_ARTIFACT]"),
};
// Make the request
gcav::MavenArtifact response = artifactRegistryClient.GetMavenArtifact(request);
GetMavenArtifact(MavenArtifactName, CallSettings)
public virtual MavenArtifact GetMavenArtifact(MavenArtifactName name, CallSettings callSettings = null)
Gets a maven artifact.
Parameters | |
---|---|
Name | Description |
name |
MavenArtifactName Required. The name of the maven artifact. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
MavenArtifact |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::MavenArtifactName name = gcav::MavenArtifactName.FromProjectLocationRepositoryMavenArtifact("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[MAVEN_ARTIFACT]");
// Make the request
gcav::MavenArtifact response = artifactRegistryClient.GetMavenArtifact(name);
GetMavenArtifact(string, CallSettings)
public virtual MavenArtifact GetMavenArtifact(string name, CallSettings callSettings = null)
Gets a maven artifact.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the maven artifact. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
MavenArtifact |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]/mavenArtifacts/[MAVEN_ARTIFACT]";
// Make the request
gcav::MavenArtifact response = artifactRegistryClient.GetMavenArtifact(name);
GetMavenArtifactAsync(GetMavenArtifactRequest, CallSettings)
public virtual Task<MavenArtifact> GetMavenArtifactAsync(GetMavenArtifactRequest request, CallSettings callSettings = null)
Gets a maven artifact.
Parameters | |
---|---|
Name | Description |
request |
GetMavenArtifactRequest 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 |
TaskMavenArtifact |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::GetMavenArtifactRequest request = new gcav::GetMavenArtifactRequest
{
MavenArtifactName = gcav::MavenArtifactName.FromProjectLocationRepositoryMavenArtifact("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[MAVEN_ARTIFACT]"),
};
// Make the request
gcav::MavenArtifact response = await artifactRegistryClient.GetMavenArtifactAsync(request);
GetMavenArtifactAsync(GetMavenArtifactRequest, CancellationToken)
public virtual Task<MavenArtifact> GetMavenArtifactAsync(GetMavenArtifactRequest request, CancellationToken cancellationToken)
Gets a maven artifact.
Parameters | |
---|---|
Name | Description |
request |
GetMavenArtifactRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskMavenArtifact |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::GetMavenArtifactRequest request = new gcav::GetMavenArtifactRequest
{
MavenArtifactName = gcav::MavenArtifactName.FromProjectLocationRepositoryMavenArtifact("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[MAVEN_ARTIFACT]"),
};
// Make the request
gcav::MavenArtifact response = await artifactRegistryClient.GetMavenArtifactAsync(request);
GetMavenArtifactAsync(MavenArtifactName, CallSettings)
public virtual Task<MavenArtifact> GetMavenArtifactAsync(MavenArtifactName name, CallSettings callSettings = null)
Gets a maven artifact.
Parameters | |
---|---|
Name | Description |
name |
MavenArtifactName Required. The name of the maven artifact. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskMavenArtifact |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::MavenArtifactName name = gcav::MavenArtifactName.FromProjectLocationRepositoryMavenArtifact("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[MAVEN_ARTIFACT]");
// Make the request
gcav::MavenArtifact response = await artifactRegistryClient.GetMavenArtifactAsync(name);
GetMavenArtifactAsync(MavenArtifactName, CancellationToken)
public virtual Task<MavenArtifact> GetMavenArtifactAsync(MavenArtifactName name, CancellationToken cancellationToken)
Gets a maven artifact.
Parameters | |
---|---|
Name | Description |
name |
MavenArtifactName Required. The name of the maven artifact. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskMavenArtifact |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::MavenArtifactName name = gcav::MavenArtifactName.FromProjectLocationRepositoryMavenArtifact("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[MAVEN_ARTIFACT]");
// Make the request
gcav::MavenArtifact response = await artifactRegistryClient.GetMavenArtifactAsync(name);
GetMavenArtifactAsync(string, CallSettings)
public virtual Task<MavenArtifact> GetMavenArtifactAsync(string name, CallSettings callSettings = null)
Gets a maven artifact.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the maven artifact. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskMavenArtifact |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]/mavenArtifacts/[MAVEN_ARTIFACT]";
// Make the request
gcav::MavenArtifact response = await artifactRegistryClient.GetMavenArtifactAsync(name);
GetMavenArtifactAsync(string, CancellationToken)
public virtual Task<MavenArtifact> GetMavenArtifactAsync(string name, CancellationToken cancellationToken)
Gets a maven artifact.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the maven artifact. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskMavenArtifact |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]/mavenArtifacts/[MAVEN_ARTIFACT]";
// Make the request
gcav::MavenArtifact response = await artifactRegistryClient.GetMavenArtifactAsync(name);
GetNpmPackage(GetNpmPackageRequest, CallSettings)
public virtual NpmPackage GetNpmPackage(GetNpmPackageRequest request, CallSettings callSettings = null)
Gets a npm package.
Parameters | |
---|---|
Name | Description |
request |
GetNpmPackageRequest 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 |
NpmPackage |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::GetNpmPackageRequest request = new gcav::GetNpmPackageRequest
{
NpmPackageName = gcav::NpmPackageName.FromProjectLocationRepositoryNpmPackage("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[NPM_PACKAGE]"),
};
// Make the request
gcav::NpmPackage response = artifactRegistryClient.GetNpmPackage(request);
GetNpmPackage(NpmPackageName, CallSettings)
public virtual NpmPackage GetNpmPackage(NpmPackageName name, CallSettings callSettings = null)
Gets a npm package.
Parameters | |
---|---|
Name | Description |
name |
NpmPackageName Required. The name of the npm package. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
NpmPackage |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::NpmPackageName name = gcav::NpmPackageName.FromProjectLocationRepositoryNpmPackage("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[NPM_PACKAGE]");
// Make the request
gcav::NpmPackage response = artifactRegistryClient.GetNpmPackage(name);
GetNpmPackage(string, CallSettings)
public virtual NpmPackage GetNpmPackage(string name, CallSettings callSettings = null)
Gets a npm package.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the npm package. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
NpmPackage |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]/npmPackages/[NPM_PACKAGE]";
// Make the request
gcav::NpmPackage response = artifactRegistryClient.GetNpmPackage(name);
GetNpmPackageAsync(GetNpmPackageRequest, CallSettings)
public virtual Task<NpmPackage> GetNpmPackageAsync(GetNpmPackageRequest request, CallSettings callSettings = null)
Gets a npm package.
Parameters | |
---|---|
Name | Description |
request |
GetNpmPackageRequest 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 |
TaskNpmPackage |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::GetNpmPackageRequest request = new gcav::GetNpmPackageRequest
{
NpmPackageName = gcav::NpmPackageName.FromProjectLocationRepositoryNpmPackage("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[NPM_PACKAGE]"),
};
// Make the request
gcav::NpmPackage response = await artifactRegistryClient.GetNpmPackageAsync(request);
GetNpmPackageAsync(GetNpmPackageRequest, CancellationToken)
public virtual Task<NpmPackage> GetNpmPackageAsync(GetNpmPackageRequest request, CancellationToken cancellationToken)
Gets a npm package.
Parameters | |
---|---|
Name | Description |
request |
GetNpmPackageRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskNpmPackage |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::GetNpmPackageRequest request = new gcav::GetNpmPackageRequest
{
NpmPackageName = gcav::NpmPackageName.FromProjectLocationRepositoryNpmPackage("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[NPM_PACKAGE]"),
};
// Make the request
gcav::NpmPackage response = await artifactRegistryClient.GetNpmPackageAsync(request);
GetNpmPackageAsync(NpmPackageName, CallSettings)
public virtual Task<NpmPackage> GetNpmPackageAsync(NpmPackageName name, CallSettings callSettings = null)
Gets a npm package.
Parameters | |
---|---|
Name | Description |
name |
NpmPackageName Required. The name of the npm package. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskNpmPackage |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::NpmPackageName name = gcav::NpmPackageName.FromProjectLocationRepositoryNpmPackage("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[NPM_PACKAGE]");
// Make the request
gcav::NpmPackage response = await artifactRegistryClient.GetNpmPackageAsync(name);
GetNpmPackageAsync(NpmPackageName, CancellationToken)
public virtual Task<NpmPackage> GetNpmPackageAsync(NpmPackageName name, CancellationToken cancellationToken)
Gets a npm package.
Parameters | |
---|---|
Name | Description |
name |
NpmPackageName Required. The name of the npm package. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskNpmPackage |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::NpmPackageName name = gcav::NpmPackageName.FromProjectLocationRepositoryNpmPackage("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[NPM_PACKAGE]");
// Make the request
gcav::NpmPackage response = await artifactRegistryClient.GetNpmPackageAsync(name);
GetNpmPackageAsync(string, CallSettings)
public virtual Task<NpmPackage> GetNpmPackageAsync(string name, CallSettings callSettings = null)
Gets a npm package.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the npm package. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskNpmPackage |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]/npmPackages/[NPM_PACKAGE]";
// Make the request
gcav::NpmPackage response = await artifactRegistryClient.GetNpmPackageAsync(name);
GetNpmPackageAsync(string, CancellationToken)
public virtual Task<NpmPackage> GetNpmPackageAsync(string name, CancellationToken cancellationToken)
Gets a npm package.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the npm package. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskNpmPackage |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]/npmPackages/[NPM_PACKAGE]";
// Make the request
gcav::NpmPackage response = await artifactRegistryClient.GetNpmPackageAsync(name);
GetPackage(GetPackageRequest, CallSettings)
public virtual Package GetPackage(GetPackageRequest request, CallSettings callSettings = null)
Gets a package.
Parameters | |
---|---|
Name | Description |
request |
GetPackageRequest 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 |
Package |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::GetPackageRequest request = new gcav::GetPackageRequest
{
PackageName = gcav::PackageName.FromProjectLocationRepositoryPackage("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[PACKAGE]"),
};
// Make the request
gcav::Package response = artifactRegistryClient.GetPackage(request);
GetPackage(PackageName, CallSettings)
public virtual Package GetPackage(PackageName name, CallSettings callSettings = null)
Gets a package.
Parameters | |
---|---|
Name | Description |
name |
PackageName Required. The name of the package to retrieve. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Package |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::PackageName name = gcav::PackageName.FromProjectLocationRepositoryPackage("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[PACKAGE]");
// Make the request
gcav::Package response = artifactRegistryClient.GetPackage(name);
GetPackage(string, CallSettings)
public virtual Package GetPackage(string name, CallSettings callSettings = null)
Gets a package.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the package to retrieve. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Package |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]/packages/[PACKAGE]";
// Make the request
gcav::Package response = artifactRegistryClient.GetPackage(name);
GetPackageAsync(GetPackageRequest, CallSettings)
public virtual Task<Package> GetPackageAsync(GetPackageRequest request, CallSettings callSettings = null)
Gets a package.
Parameters | |
---|---|
Name | Description |
request |
GetPackageRequest 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 |
TaskPackage |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::GetPackageRequest request = new gcav::GetPackageRequest
{
PackageName = gcav::PackageName.FromProjectLocationRepositoryPackage("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[PACKAGE]"),
};
// Make the request
gcav::Package response = await artifactRegistryClient.GetPackageAsync(request);
GetPackageAsync(GetPackageRequest, CancellationToken)
public virtual Task<Package> GetPackageAsync(GetPackageRequest request, CancellationToken cancellationToken)
Gets a package.
Parameters | |
---|---|
Name | Description |
request |
GetPackageRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskPackage |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::GetPackageRequest request = new gcav::GetPackageRequest
{
PackageName = gcav::PackageName.FromProjectLocationRepositoryPackage("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[PACKAGE]"),
};
// Make the request
gcav::Package response = await artifactRegistryClient.GetPackageAsync(request);
GetPackageAsync(PackageName, CallSettings)
public virtual Task<Package> GetPackageAsync(PackageName name, CallSettings callSettings = null)
Gets a package.
Parameters | |
---|---|
Name | Description |
name |
PackageName Required. The name of the package to retrieve. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskPackage |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::PackageName name = gcav::PackageName.FromProjectLocationRepositoryPackage("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[PACKAGE]");
// Make the request
gcav::Package response = await artifactRegistryClient.GetPackageAsync(name);
GetPackageAsync(PackageName, CancellationToken)
public virtual Task<Package> GetPackageAsync(PackageName name, CancellationToken cancellationToken)
Gets a package.
Parameters | |
---|---|
Name | Description |
name |
PackageName Required. The name of the package to retrieve. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskPackage |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::PackageName name = gcav::PackageName.FromProjectLocationRepositoryPackage("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[PACKAGE]");
// Make the request
gcav::Package response = await artifactRegistryClient.GetPackageAsync(name);
GetPackageAsync(string, CallSettings)
public virtual Task<Package> GetPackageAsync(string name, CallSettings callSettings = null)
Gets a package.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the package to retrieve. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskPackage |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]/packages/[PACKAGE]";
// Make the request
gcav::Package response = await artifactRegistryClient.GetPackageAsync(name);
GetPackageAsync(string, CancellationToken)
public virtual Task<Package> GetPackageAsync(string name, CancellationToken cancellationToken)
Gets a package.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the package to retrieve. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskPackage |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]/packages/[PACKAGE]";
// Make the request
gcav::Package response = await artifactRegistryClient.GetPackageAsync(name);
GetProjectSettings(GetProjectSettingsRequest, CallSettings)
public virtual ProjectSettings GetProjectSettings(GetProjectSettingsRequest request, CallSettings callSettings = null)
Retrieves the Settings for the Project.
Parameters | |
---|---|
Name | Description |
request |
GetProjectSettingsRequest 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 |
ProjectSettings |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::GetProjectSettingsRequest request = new gcav::GetProjectSettingsRequest
{
ProjectSettingsName = gcav::ProjectSettingsName.FromProject("[PROJECT]"),
};
// Make the request
gcav::ProjectSettings response = artifactRegistryClient.GetProjectSettings(request);
GetProjectSettings(ProjectSettingsName, CallSettings)
public virtual ProjectSettings GetProjectSettings(ProjectSettingsName name, CallSettings callSettings = null)
Retrieves the Settings for the Project.
Parameters | |
---|---|
Name | Description |
name |
ProjectSettingsName Required. The name of the projectSettings resource. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
ProjectSettings |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::ProjectSettingsName name = gcav::ProjectSettingsName.FromProject("[PROJECT]");
// Make the request
gcav::ProjectSettings response = artifactRegistryClient.GetProjectSettings(name);
GetProjectSettings(string, CallSettings)
public virtual ProjectSettings GetProjectSettings(string name, CallSettings callSettings = null)
Retrieves the Settings for the Project.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the projectSettings resource. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
ProjectSettings |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/projectSettings";
// Make the request
gcav::ProjectSettings response = artifactRegistryClient.GetProjectSettings(name);
GetProjectSettingsAsync(GetProjectSettingsRequest, CallSettings)
public virtual Task<ProjectSettings> GetProjectSettingsAsync(GetProjectSettingsRequest request, CallSettings callSettings = null)
Retrieves the Settings for the Project.
Parameters | |
---|---|
Name | Description |
request |
GetProjectSettingsRequest 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 |
TaskProjectSettings |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::GetProjectSettingsRequest request = new gcav::GetProjectSettingsRequest
{
ProjectSettingsName = gcav::ProjectSettingsName.FromProject("[PROJECT]"),
};
// Make the request
gcav::ProjectSettings response = await artifactRegistryClient.GetProjectSettingsAsync(request);
GetProjectSettingsAsync(GetProjectSettingsRequest, CancellationToken)
public virtual Task<ProjectSettings> GetProjectSettingsAsync(GetProjectSettingsRequest request, CancellationToken cancellationToken)
Retrieves the Settings for the Project.
Parameters | |
---|---|
Name | Description |
request |
GetProjectSettingsRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskProjectSettings |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::GetProjectSettingsRequest request = new gcav::GetProjectSettingsRequest
{
ProjectSettingsName = gcav::ProjectSettingsName.FromProject("[PROJECT]"),
};
// Make the request
gcav::ProjectSettings response = await artifactRegistryClient.GetProjectSettingsAsync(request);
GetProjectSettingsAsync(ProjectSettingsName, CallSettings)
public virtual Task<ProjectSettings> GetProjectSettingsAsync(ProjectSettingsName name, CallSettings callSettings = null)
Retrieves the Settings for the Project.
Parameters | |
---|---|
Name | Description |
name |
ProjectSettingsName Required. The name of the projectSettings resource. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskProjectSettings |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ProjectSettingsName name = gcav::ProjectSettingsName.FromProject("[PROJECT]");
// Make the request
gcav::ProjectSettings response = await artifactRegistryClient.GetProjectSettingsAsync(name);
GetProjectSettingsAsync(ProjectSettingsName, CancellationToken)
public virtual Task<ProjectSettings> GetProjectSettingsAsync(ProjectSettingsName name, CancellationToken cancellationToken)
Retrieves the Settings for the Project.
Parameters | |
---|---|
Name | Description |
name |
ProjectSettingsName Required. The name of the projectSettings resource. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskProjectSettings |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ProjectSettingsName name = gcav::ProjectSettingsName.FromProject("[PROJECT]");
// Make the request
gcav::ProjectSettings response = await artifactRegistryClient.GetProjectSettingsAsync(name);
GetProjectSettingsAsync(string, CallSettings)
public virtual Task<ProjectSettings> GetProjectSettingsAsync(string name, CallSettings callSettings = null)
Retrieves the Settings for the Project.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the projectSettings resource. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskProjectSettings |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/projectSettings";
// Make the request
gcav::ProjectSettings response = await artifactRegistryClient.GetProjectSettingsAsync(name);
GetProjectSettingsAsync(string, CancellationToken)
public virtual Task<ProjectSettings> GetProjectSettingsAsync(string name, CancellationToken cancellationToken)
Retrieves the Settings for the Project.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the projectSettings resource. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskProjectSettings |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/projectSettings";
// Make the request
gcav::ProjectSettings response = await artifactRegistryClient.GetProjectSettingsAsync(name);
GetPythonPackage(GetPythonPackageRequest, CallSettings)
public virtual PythonPackage GetPythonPackage(GetPythonPackageRequest request, CallSettings callSettings = null)
Gets a python package.
Parameters | |
---|---|
Name | Description |
request |
GetPythonPackageRequest 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 |
PythonPackage |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::GetPythonPackageRequest request = new gcav::GetPythonPackageRequest
{
PythonPackageName = gcav::PythonPackageName.FromProjectLocationRepositoryPythonPackage("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[PYTHON_PACKAGE]"),
};
// Make the request
gcav::PythonPackage response = artifactRegistryClient.GetPythonPackage(request);
GetPythonPackage(PythonPackageName, CallSettings)
public virtual PythonPackage GetPythonPackage(PythonPackageName name, CallSettings callSettings = null)
Gets a python package.
Parameters | |
---|---|
Name | Description |
name |
PythonPackageName Required. The name of the python package. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PythonPackage |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::PythonPackageName name = gcav::PythonPackageName.FromProjectLocationRepositoryPythonPackage("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[PYTHON_PACKAGE]");
// Make the request
gcav::PythonPackage response = artifactRegistryClient.GetPythonPackage(name);
GetPythonPackage(string, CallSettings)
public virtual PythonPackage GetPythonPackage(string name, CallSettings callSettings = null)
Gets a python package.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the python package. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PythonPackage |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]/pythonPackages/[PYTHON_PACKAGE]";
// Make the request
gcav::PythonPackage response = artifactRegistryClient.GetPythonPackage(name);
GetPythonPackageAsync(GetPythonPackageRequest, CallSettings)
public virtual Task<PythonPackage> GetPythonPackageAsync(GetPythonPackageRequest request, CallSettings callSettings = null)
Gets a python package.
Parameters | |
---|---|
Name | Description |
request |
GetPythonPackageRequest 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 |
TaskPythonPackage |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::GetPythonPackageRequest request = new gcav::GetPythonPackageRequest
{
PythonPackageName = gcav::PythonPackageName.FromProjectLocationRepositoryPythonPackage("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[PYTHON_PACKAGE]"),
};
// Make the request
gcav::PythonPackage response = await artifactRegistryClient.GetPythonPackageAsync(request);
GetPythonPackageAsync(GetPythonPackageRequest, CancellationToken)
public virtual Task<PythonPackage> GetPythonPackageAsync(GetPythonPackageRequest request, CancellationToken cancellationToken)
Gets a python package.
Parameters | |
---|---|
Name | Description |
request |
GetPythonPackageRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskPythonPackage |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::GetPythonPackageRequest request = new gcav::GetPythonPackageRequest
{
PythonPackageName = gcav::PythonPackageName.FromProjectLocationRepositoryPythonPackage("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[PYTHON_PACKAGE]"),
};
// Make the request
gcav::PythonPackage response = await artifactRegistryClient.GetPythonPackageAsync(request);
GetPythonPackageAsync(PythonPackageName, CallSettings)
public virtual Task<PythonPackage> GetPythonPackageAsync(PythonPackageName name, CallSettings callSettings = null)
Gets a python package.
Parameters | |
---|---|
Name | Description |
name |
PythonPackageName Required. The name of the python package. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskPythonPackage |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::PythonPackageName name = gcav::PythonPackageName.FromProjectLocationRepositoryPythonPackage("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[PYTHON_PACKAGE]");
// Make the request
gcav::PythonPackage response = await artifactRegistryClient.GetPythonPackageAsync(name);
GetPythonPackageAsync(PythonPackageName, CancellationToken)
public virtual Task<PythonPackage> GetPythonPackageAsync(PythonPackageName name, CancellationToken cancellationToken)
Gets a python package.
Parameters | |
---|---|
Name | Description |
name |
PythonPackageName Required. The name of the python package. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskPythonPackage |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::PythonPackageName name = gcav::PythonPackageName.FromProjectLocationRepositoryPythonPackage("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[PYTHON_PACKAGE]");
// Make the request
gcav::PythonPackage response = await artifactRegistryClient.GetPythonPackageAsync(name);
GetPythonPackageAsync(string, CallSettings)
public virtual Task<PythonPackage> GetPythonPackageAsync(string name, CallSettings callSettings = null)
Gets a python package.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the python package. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskPythonPackage |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]/pythonPackages/[PYTHON_PACKAGE]";
// Make the request
gcav::PythonPackage response = await artifactRegistryClient.GetPythonPackageAsync(name);
GetPythonPackageAsync(string, CancellationToken)
public virtual Task<PythonPackage> GetPythonPackageAsync(string name, CancellationToken cancellationToken)
Gets a python package.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the python package. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskPythonPackage |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]/pythonPackages/[PYTHON_PACKAGE]";
// Make the request
gcav::PythonPackage response = await artifactRegistryClient.GetPythonPackageAsync(name);
GetRepository(GetRepositoryRequest, CallSettings)
public virtual Repository GetRepository(GetRepositoryRequest request, CallSettings callSettings = null)
Gets a repository.
Parameters | |
---|---|
Name | Description |
request |
GetRepositoryRequest 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 |
Repository |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::GetRepositoryRequest request = new gcav::GetRepositoryRequest
{
RepositoryName = gcav::RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"),
};
// Make the request
gcav::Repository response = artifactRegistryClient.GetRepository(request);
GetRepository(RepositoryName, CallSettings)
public virtual Repository GetRepository(RepositoryName name, CallSettings callSettings = null)
Gets a repository.
Parameters | |
---|---|
Name | Description |
name |
RepositoryName Required. The name of the repository to retrieve. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Repository |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::RepositoryName name = gcav::RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
// Make the request
gcav::Repository response = artifactRegistryClient.GetRepository(name);
GetRepository(string, CallSettings)
public virtual Repository GetRepository(string name, CallSettings callSettings = null)
Gets a repository.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the repository to retrieve. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Repository |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]";
// Make the request
gcav::Repository response = artifactRegistryClient.GetRepository(name);
GetRepositoryAsync(GetRepositoryRequest, CallSettings)
public virtual Task<Repository> GetRepositoryAsync(GetRepositoryRequest request, CallSettings callSettings = null)
Gets a repository.
Parameters | |
---|---|
Name | Description |
request |
GetRepositoryRequest 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 |
TaskRepository |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::GetRepositoryRequest request = new gcav::GetRepositoryRequest
{
RepositoryName = gcav::RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"),
};
// Make the request
gcav::Repository response = await artifactRegistryClient.GetRepositoryAsync(request);
GetRepositoryAsync(GetRepositoryRequest, CancellationToken)
public virtual Task<Repository> GetRepositoryAsync(GetRepositoryRequest request, CancellationToken cancellationToken)
Gets a repository.
Parameters | |
---|---|
Name | Description |
request |
GetRepositoryRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskRepository |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::GetRepositoryRequest request = new gcav::GetRepositoryRequest
{
RepositoryName = gcav::RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"),
};
// Make the request
gcav::Repository response = await artifactRegistryClient.GetRepositoryAsync(request);
GetRepositoryAsync(RepositoryName, CallSettings)
public virtual Task<Repository> GetRepositoryAsync(RepositoryName name, CallSettings callSettings = null)
Gets a repository.
Parameters | |
---|---|
Name | Description |
name |
RepositoryName Required. The name of the repository to retrieve. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskRepository |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::RepositoryName name = gcav::RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
// Make the request
gcav::Repository response = await artifactRegistryClient.GetRepositoryAsync(name);
GetRepositoryAsync(RepositoryName, CancellationToken)
public virtual Task<Repository> GetRepositoryAsync(RepositoryName name, CancellationToken cancellationToken)
Gets a repository.
Parameters | |
---|---|
Name | Description |
name |
RepositoryName Required. The name of the repository to retrieve. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskRepository |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::RepositoryName name = gcav::RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
// Make the request
gcav::Repository response = await artifactRegistryClient.GetRepositoryAsync(name);
GetRepositoryAsync(string, CallSettings)
public virtual Task<Repository> GetRepositoryAsync(string name, CallSettings callSettings = null)
Gets a repository.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the repository to retrieve. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskRepository |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]";
// Make the request
gcav::Repository response = await artifactRegistryClient.GetRepositoryAsync(name);
GetRepositoryAsync(string, CancellationToken)
public virtual Task<Repository> GetRepositoryAsync(string name, CancellationToken cancellationToken)
Gets a repository.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the repository to retrieve. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskRepository |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]";
// Make the request
gcav::Repository response = await artifactRegistryClient.GetRepositoryAsync(name);
GetRule(GetRuleRequest, CallSettings)
public virtual Rule GetRule(GetRuleRequest request, CallSettings callSettings = null)
Gets a rule.
Parameters | |
---|---|
Name | Description |
request |
GetRuleRequest 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 |
Rule |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::GetRuleRequest request = new gcav::GetRuleRequest
{
RuleName = gcav::RuleName.FromProjectLocationRepositoryRule("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RULE]"),
};
// Make the request
gcav::Rule response = artifactRegistryClient.GetRule(request);
GetRule(RuleName, CallSettings)
public virtual Rule GetRule(RuleName name, CallSettings callSettings = null)
Gets a rule.
Parameters | |
---|---|
Name | Description |
name |
RuleName Required. The name of the rule to retrieve. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Rule |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::RuleName name = gcav::RuleName.FromProjectLocationRepositoryRule("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RULE]");
// Make the request
gcav::Rule response = artifactRegistryClient.GetRule(name);
GetRule(string, CallSettings)
public virtual Rule GetRule(string name, CallSettings callSettings = null)
Gets a rule.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the rule to retrieve. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Rule |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]/rules/[RULE]";
// Make the request
gcav::Rule response = artifactRegistryClient.GetRule(name);
GetRuleAsync(GetRuleRequest, CallSettings)
public virtual Task<Rule> GetRuleAsync(GetRuleRequest request, CallSettings callSettings = null)
Gets a rule.
Parameters | |
---|---|
Name | Description |
request |
GetRuleRequest 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 |
TaskRule |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::GetRuleRequest request = new gcav::GetRuleRequest
{
RuleName = gcav::RuleName.FromProjectLocationRepositoryRule("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RULE]"),
};
// Make the request
gcav::Rule response = await artifactRegistryClient.GetRuleAsync(request);
GetRuleAsync(GetRuleRequest, CancellationToken)
public virtual Task<Rule> GetRuleAsync(GetRuleRequest request, CancellationToken cancellationToken)
Gets a rule.
Parameters | |
---|---|
Name | Description |
request |
GetRuleRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskRule |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::GetRuleRequest request = new gcav::GetRuleRequest
{
RuleName = gcav::RuleName.FromProjectLocationRepositoryRule("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RULE]"),
};
// Make the request
gcav::Rule response = await artifactRegistryClient.GetRuleAsync(request);
GetRuleAsync(RuleName, CallSettings)
public virtual Task<Rule> GetRuleAsync(RuleName name, CallSettings callSettings = null)
Gets a rule.
Parameters | |
---|---|
Name | Description |
name |
RuleName Required. The name of the rule to retrieve. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskRule |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::RuleName name = gcav::RuleName.FromProjectLocationRepositoryRule("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RULE]");
// Make the request
gcav::Rule response = await artifactRegistryClient.GetRuleAsync(name);
GetRuleAsync(RuleName, CancellationToken)
public virtual Task<Rule> GetRuleAsync(RuleName name, CancellationToken cancellationToken)
Gets a rule.
Parameters | |
---|---|
Name | Description |
name |
RuleName Required. The name of the rule to retrieve. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskRule |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::RuleName name = gcav::RuleName.FromProjectLocationRepositoryRule("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[RULE]");
// Make the request
gcav::Rule response = await artifactRegistryClient.GetRuleAsync(name);
GetRuleAsync(string, CallSettings)
public virtual Task<Rule> GetRuleAsync(string name, CallSettings callSettings = null)
Gets a rule.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the rule to retrieve. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskRule |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]/rules/[RULE]";
// Make the request
gcav::Rule response = await artifactRegistryClient.GetRuleAsync(name);
GetRuleAsync(string, CancellationToken)
public virtual Task<Rule> GetRuleAsync(string name, CancellationToken cancellationToken)
Gets a rule.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the rule to retrieve. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskRule |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]/rules/[RULE]";
// Make the request
gcav::Rule response = await artifactRegistryClient.GetRuleAsync(name);
GetTag(GetTagRequest, CallSettings)
public virtual Tag GetTag(GetTagRequest request, CallSettings callSettings = null)
Gets a tag.
Parameters | |
---|---|
Name | Description |
request |
GetTagRequest 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 |
Tag |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::GetTagRequest request = new gcav::GetTagRequest { Name = "", };
// Make the request
gcav::Tag response = artifactRegistryClient.GetTag(request);
GetTag(string, CallSettings)
public virtual Tag GetTag(string name, CallSettings callSettings = null)
Gets a tag.
Parameters | |
---|---|
Name | Description |
name |
string The name of the tag to retrieve. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Tag |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
string name = "";
// Make the request
gcav::Tag response = artifactRegistryClient.GetTag(name);
GetTagAsync(GetTagRequest, CallSettings)
public virtual Task<Tag> GetTagAsync(GetTagRequest request, CallSettings callSettings = null)
Gets a tag.
Parameters | |
---|---|
Name | Description |
request |
GetTagRequest 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 |
TaskTag |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::GetTagRequest request = new gcav::GetTagRequest { Name = "", };
// Make the request
gcav::Tag response = await artifactRegistryClient.GetTagAsync(request);
GetTagAsync(GetTagRequest, CancellationToken)
public virtual Task<Tag> GetTagAsync(GetTagRequest request, CancellationToken cancellationToken)
Gets a tag.
Parameters | |
---|---|
Name | Description |
request |
GetTagRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskTag |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::GetTagRequest request = new gcav::GetTagRequest { Name = "", };
// Make the request
gcav::Tag response = await artifactRegistryClient.GetTagAsync(request);
GetTagAsync(string, CallSettings)
public virtual Task<Tag> GetTagAsync(string name, CallSettings callSettings = null)
Gets a tag.
Parameters | |
---|---|
Name | Description |
name |
string The name of the tag to retrieve. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskTag |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "";
// Make the request
gcav::Tag response = await artifactRegistryClient.GetTagAsync(name);
GetTagAsync(string, CancellationToken)
public virtual Task<Tag> GetTagAsync(string name, CancellationToken cancellationToken)
Gets a tag.
Parameters | |
---|---|
Name | Description |
name |
string The name of the tag to retrieve. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskTag |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "";
// Make the request
gcav::Tag response = await artifactRegistryClient.GetTagAsync(name);
GetVPCSCConfig(GetVPCSCConfigRequest, CallSettings)
public virtual VPCSCConfig GetVPCSCConfig(GetVPCSCConfigRequest request, CallSettings callSettings = null)
Retrieves the VPCSC Config for the Project.
Parameters | |
---|---|
Name | Description |
request |
GetVPCSCConfigRequest 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 |
VPCSCConfig |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::GetVPCSCConfigRequest request = new gcav::GetVPCSCConfigRequest
{
VpcscConfigName = gcav::VpcscConfigName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
gcav::VPCSCConfig response = artifactRegistryClient.GetVPCSCConfig(request);
GetVPCSCConfig(VpcscConfigName, CallSettings)
public virtual VPCSCConfig GetVPCSCConfig(VpcscConfigName name, CallSettings callSettings = null)
Retrieves the VPCSC Config for the Project.
Parameters | |
---|---|
Name | Description |
name |
VpcscConfigName Required. The name of the VPCSCConfig resource. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
VPCSCConfig |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::VpcscConfigName name = gcav::VpcscConfigName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
gcav::VPCSCConfig response = artifactRegistryClient.GetVPCSCConfig(name);
GetVPCSCConfig(string, CallSettings)
public virtual VPCSCConfig GetVPCSCConfig(string name, CallSettings callSettings = null)
Retrieves the VPCSC Config for the Project.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the VPCSCConfig resource. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
VPCSCConfig |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/vpcscConfig";
// Make the request
gcav::VPCSCConfig response = artifactRegistryClient.GetVPCSCConfig(name);
GetVPCSCConfigAsync(GetVPCSCConfigRequest, CallSettings)
public virtual Task<VPCSCConfig> GetVPCSCConfigAsync(GetVPCSCConfigRequest request, CallSettings callSettings = null)
Retrieves the VPCSC Config for the Project.
Parameters | |
---|---|
Name | Description |
request |
GetVPCSCConfigRequest 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 |
TaskVPCSCConfig |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::GetVPCSCConfigRequest request = new gcav::GetVPCSCConfigRequest
{
VpcscConfigName = gcav::VpcscConfigName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
gcav::VPCSCConfig response = await artifactRegistryClient.GetVPCSCConfigAsync(request);
GetVPCSCConfigAsync(GetVPCSCConfigRequest, CancellationToken)
public virtual Task<VPCSCConfig> GetVPCSCConfigAsync(GetVPCSCConfigRequest request, CancellationToken cancellationToken)
Retrieves the VPCSC Config for the Project.
Parameters | |
---|---|
Name | Description |
request |
GetVPCSCConfigRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskVPCSCConfig |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::GetVPCSCConfigRequest request = new gcav::GetVPCSCConfigRequest
{
VpcscConfigName = gcav::VpcscConfigName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
gcav::VPCSCConfig response = await artifactRegistryClient.GetVPCSCConfigAsync(request);
GetVPCSCConfigAsync(VpcscConfigName, CallSettings)
public virtual Task<VPCSCConfig> GetVPCSCConfigAsync(VpcscConfigName name, CallSettings callSettings = null)
Retrieves the VPCSC Config for the Project.
Parameters | |
---|---|
Name | Description |
name |
VpcscConfigName Required. The name of the VPCSCConfig resource. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskVPCSCConfig |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::VpcscConfigName name = gcav::VpcscConfigName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
gcav::VPCSCConfig response = await artifactRegistryClient.GetVPCSCConfigAsync(name);
GetVPCSCConfigAsync(VpcscConfigName, CancellationToken)
public virtual Task<VPCSCConfig> GetVPCSCConfigAsync(VpcscConfigName name, CancellationToken cancellationToken)
Retrieves the VPCSC Config for the Project.
Parameters | |
---|---|
Name | Description |
name |
VpcscConfigName Required. The name of the VPCSCConfig resource. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskVPCSCConfig |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::VpcscConfigName name = gcav::VpcscConfigName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
gcav::VPCSCConfig response = await artifactRegistryClient.GetVPCSCConfigAsync(name);
GetVPCSCConfigAsync(string, CallSettings)
public virtual Task<VPCSCConfig> GetVPCSCConfigAsync(string name, CallSettings callSettings = null)
Retrieves the VPCSC Config for the Project.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the VPCSCConfig resource. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskVPCSCConfig |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/vpcscConfig";
// Make the request
gcav::VPCSCConfig response = await artifactRegistryClient.GetVPCSCConfigAsync(name);
GetVPCSCConfigAsync(string, CancellationToken)
public virtual Task<VPCSCConfig> GetVPCSCConfigAsync(string name, CancellationToken cancellationToken)
Retrieves the VPCSC Config for the Project.
Parameters | |
---|---|
Name | Description |
name |
string Required. The name of the VPCSCConfig resource. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskVPCSCConfig |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/vpcscConfig";
// Make the request
gcav::VPCSCConfig response = await artifactRegistryClient.GetVPCSCConfigAsync(name);
GetVersion(GetVersionRequest, CallSettings)
public virtual Version GetVersion(GetVersionRequest request, CallSettings callSettings = null)
Gets a version
Parameters | |
---|---|
Name | Description |
request |
GetVersionRequest 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 |
Version |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::GetVersionRequest request = new gcav::GetVersionRequest
{
Name = "",
View = gcav::VersionView.Unspecified,
};
// Make the request
gcav::Version response = artifactRegistryClient.GetVersion(request);
GetVersion(string, CallSettings)
public virtual Version GetVersion(string name, CallSettings callSettings = null)
Gets a version
Parameters | |
---|---|
Name | Description |
name |
string The name of the version to retrieve. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Version |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
string name = "";
// Make the request
gcav::Version response = artifactRegistryClient.GetVersion(name);
GetVersionAsync(GetVersionRequest, CallSettings)
public virtual Task<Version> GetVersionAsync(GetVersionRequest request, CallSettings callSettings = null)
Gets a version
Parameters | |
---|---|
Name | Description |
request |
GetVersionRequest 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 |
TaskVersion |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::GetVersionRequest request = new gcav::GetVersionRequest
{
Name = "",
View = gcav::VersionView.Unspecified,
};
// Make the request
gcav::Version response = await artifactRegistryClient.GetVersionAsync(request);
GetVersionAsync(GetVersionRequest, CancellationToken)
public virtual Task<Version> GetVersionAsync(GetVersionRequest request, CancellationToken cancellationToken)
Gets a version
Parameters | |
---|---|
Name | Description |
request |
GetVersionRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskVersion |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::GetVersionRequest request = new gcav::GetVersionRequest
{
Name = "",
View = gcav::VersionView.Unspecified,
};
// Make the request
gcav::Version response = await artifactRegistryClient.GetVersionAsync(request);
GetVersionAsync(string, CallSettings)
public virtual Task<Version> GetVersionAsync(string name, CallSettings callSettings = null)
Gets a version
Parameters | |
---|---|
Name | Description |
name |
string The name of the version to retrieve. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskVersion |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "";
// Make the request
gcav::Version response = await artifactRegistryClient.GetVersionAsync(name);
GetVersionAsync(string, CancellationToken)
public virtual Task<Version> GetVersionAsync(string name, CancellationToken cancellationToken)
Gets a version
Parameters | |
---|---|
Name | Description |
name |
string The name of the version to retrieve. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskVersion |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
string name = "";
// Make the request
gcav::Version response = await artifactRegistryClient.GetVersionAsync(name);
ImportAptArtifacts(ImportAptArtifactsRequest, CallSettings)
public virtual Operation<ImportAptArtifactsResponse, ImportAptArtifactsMetadata> ImportAptArtifacts(ImportAptArtifactsRequest request, CallSettings callSettings = null)
Imports Apt artifacts. The returned Operation will complete once the resources are imported. Package, Version, and File resources are created based on the imported artifacts. Imported artifacts that conflict with existing resources are ignored.
Parameters | |
---|---|
Name | Description |
request |
ImportAptArtifactsRequest 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 |
OperationImportAptArtifactsResponseImportAptArtifactsMetadata |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::ImportAptArtifactsRequest request = new gcav::ImportAptArtifactsRequest
{
Parent = "",
GcsSource = new gcav::ImportAptArtifactsGcsSource(),
};
// Make the request
Operation<gcav::ImportAptArtifactsResponse, gcav::ImportAptArtifactsMetadata> response = artifactRegistryClient.ImportAptArtifacts(request);
// Poll until the returned long-running operation is complete
Operation<gcav::ImportAptArtifactsResponse, gcav::ImportAptArtifactsMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
gcav::ImportAptArtifactsResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcav::ImportAptArtifactsResponse, gcav::ImportAptArtifactsMetadata> retrievedResponse = artifactRegistryClient.PollOnceImportAptArtifacts(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcav::ImportAptArtifactsResponse retrievedResult = retrievedResponse.Result;
}
ImportAptArtifactsAsync(ImportAptArtifactsRequest, CallSettings)
public virtual Task<Operation<ImportAptArtifactsResponse, ImportAptArtifactsMetadata>> ImportAptArtifactsAsync(ImportAptArtifactsRequest request, CallSettings callSettings = null)
Imports Apt artifacts. The returned Operation will complete once the resources are imported. Package, Version, and File resources are created based on the imported artifacts. Imported artifacts that conflict with existing resources are ignored.
Parameters | |
---|---|
Name | Description |
request |
ImportAptArtifactsRequest 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 |
TaskOperationImportAptArtifactsResponseImportAptArtifactsMetadata |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ImportAptArtifactsRequest request = new gcav::ImportAptArtifactsRequest
{
Parent = "",
GcsSource = new gcav::ImportAptArtifactsGcsSource(),
};
// Make the request
Operation<gcav::ImportAptArtifactsResponse, gcav::ImportAptArtifactsMetadata> response = await artifactRegistryClient.ImportAptArtifactsAsync(request);
// Poll until the returned long-running operation is complete
Operation<gcav::ImportAptArtifactsResponse, gcav::ImportAptArtifactsMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcav::ImportAptArtifactsResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcav::ImportAptArtifactsResponse, gcav::ImportAptArtifactsMetadata> retrievedResponse = await artifactRegistryClient.PollOnceImportAptArtifactsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcav::ImportAptArtifactsResponse retrievedResult = retrievedResponse.Result;
}
ImportAptArtifactsAsync(ImportAptArtifactsRequest, CancellationToken)
public virtual Task<Operation<ImportAptArtifactsResponse, ImportAptArtifactsMetadata>> ImportAptArtifactsAsync(ImportAptArtifactsRequest request, CancellationToken cancellationToken)
Imports Apt artifacts. The returned Operation will complete once the resources are imported. Package, Version, and File resources are created based on the imported artifacts. Imported artifacts that conflict with existing resources are ignored.
Parameters | |
---|---|
Name | Description |
request |
ImportAptArtifactsRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationImportAptArtifactsResponseImportAptArtifactsMetadata |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ImportAptArtifactsRequest request = new gcav::ImportAptArtifactsRequest
{
Parent = "",
GcsSource = new gcav::ImportAptArtifactsGcsSource(),
};
// Make the request
Operation<gcav::ImportAptArtifactsResponse, gcav::ImportAptArtifactsMetadata> response = await artifactRegistryClient.ImportAptArtifactsAsync(request);
// Poll until the returned long-running operation is complete
Operation<gcav::ImportAptArtifactsResponse, gcav::ImportAptArtifactsMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcav::ImportAptArtifactsResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcav::ImportAptArtifactsResponse, gcav::ImportAptArtifactsMetadata> retrievedResponse = await artifactRegistryClient.PollOnceImportAptArtifactsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcav::ImportAptArtifactsResponse retrievedResult = retrievedResponse.Result;
}
ImportYumArtifacts(ImportYumArtifactsRequest, CallSettings)
public virtual Operation<ImportYumArtifactsResponse, ImportYumArtifactsMetadata> ImportYumArtifacts(ImportYumArtifactsRequest request, CallSettings callSettings = null)
Imports Yum (RPM) artifacts. The returned Operation will complete once the resources are imported. Package, Version, and File resources are created based on the imported artifacts. Imported artifacts that conflict with existing resources are ignored.
Parameters | |
---|---|
Name | Description |
request |
ImportYumArtifactsRequest 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 |
OperationImportYumArtifactsResponseImportYumArtifactsMetadata |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::ImportYumArtifactsRequest request = new gcav::ImportYumArtifactsRequest
{
Parent = "",
GcsSource = new gcav::ImportYumArtifactsGcsSource(),
};
// Make the request
Operation<gcav::ImportYumArtifactsResponse, gcav::ImportYumArtifactsMetadata> response = artifactRegistryClient.ImportYumArtifacts(request);
// Poll until the returned long-running operation is complete
Operation<gcav::ImportYumArtifactsResponse, gcav::ImportYumArtifactsMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
gcav::ImportYumArtifactsResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcav::ImportYumArtifactsResponse, gcav::ImportYumArtifactsMetadata> retrievedResponse = artifactRegistryClient.PollOnceImportYumArtifacts(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcav::ImportYumArtifactsResponse retrievedResult = retrievedResponse.Result;
}
ImportYumArtifactsAsync(ImportYumArtifactsRequest, CallSettings)
public virtual Task<Operation<ImportYumArtifactsResponse, ImportYumArtifactsMetadata>> ImportYumArtifactsAsync(ImportYumArtifactsRequest request, CallSettings callSettings = null)
Imports Yum (RPM) artifacts. The returned Operation will complete once the resources are imported. Package, Version, and File resources are created based on the imported artifacts. Imported artifacts that conflict with existing resources are ignored.
Parameters | |
---|---|
Name | Description |
request |
ImportYumArtifactsRequest 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 |
TaskOperationImportYumArtifactsResponseImportYumArtifactsMetadata |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ImportYumArtifactsRequest request = new gcav::ImportYumArtifactsRequest
{
Parent = "",
GcsSource = new gcav::ImportYumArtifactsGcsSource(),
};
// Make the request
Operation<gcav::ImportYumArtifactsResponse, gcav::ImportYumArtifactsMetadata> response = await artifactRegistryClient.ImportYumArtifactsAsync(request);
// Poll until the returned long-running operation is complete
Operation<gcav::ImportYumArtifactsResponse, gcav::ImportYumArtifactsMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcav::ImportYumArtifactsResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcav::ImportYumArtifactsResponse, gcav::ImportYumArtifactsMetadata> retrievedResponse = await artifactRegistryClient.PollOnceImportYumArtifactsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcav::ImportYumArtifactsResponse retrievedResult = retrievedResponse.Result;
}
ImportYumArtifactsAsync(ImportYumArtifactsRequest, CancellationToken)
public virtual Task<Operation<ImportYumArtifactsResponse, ImportYumArtifactsMetadata>> ImportYumArtifactsAsync(ImportYumArtifactsRequest request, CancellationToken cancellationToken)
Imports Yum (RPM) artifacts. The returned Operation will complete once the resources are imported. Package, Version, and File resources are created based on the imported artifacts. Imported artifacts that conflict with existing resources are ignored.
Parameters | |
---|---|
Name | Description |
request |
ImportYumArtifactsRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationImportYumArtifactsResponseImportYumArtifactsMetadata |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ImportYumArtifactsRequest request = new gcav::ImportYumArtifactsRequest
{
Parent = "",
GcsSource = new gcav::ImportYumArtifactsGcsSource(),
};
// Make the request
Operation<gcav::ImportYumArtifactsResponse, gcav::ImportYumArtifactsMetadata> response = await artifactRegistryClient.ImportYumArtifactsAsync(request);
// Poll until the returned long-running operation is complete
Operation<gcav::ImportYumArtifactsResponse, gcav::ImportYumArtifactsMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
gcav::ImportYumArtifactsResponse result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<gcav::ImportYumArtifactsResponse, gcav::ImportYumArtifactsMetadata> retrievedResponse = await artifactRegistryClient.PollOnceImportYumArtifactsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
gcav::ImportYumArtifactsResponse retrievedResult = retrievedResponse.Result;
}
ListAttachments(ListAttachmentsRequest, CallSettings)
public virtual PagedEnumerable<ListAttachmentsResponse, Attachment> ListAttachments(ListAttachmentsRequest request, CallSettings callSettings = null)
Lists attachments.
Parameters | |
---|---|
Name | Description |
request |
ListAttachmentsRequest 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 |
PagedEnumerableListAttachmentsResponseAttachment |
A pageable sequence of Attachment resources. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::ListAttachmentsRequest request = new gcav::ListAttachmentsRequest
{
ParentAsRepositoryName = gcav::RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"),
Filter = "",
};
// Make the request
PagedEnumerable<gcav::ListAttachmentsResponse, gcav::Attachment> response = artifactRegistryClient.ListAttachments(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (gcav::Attachment 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::ListAttachmentsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcav::Attachment 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::Attachment> 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::Attachment 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;
ListAttachments(RepositoryName, string, int?, CallSettings)
public virtual PagedEnumerable<ListAttachmentsResponse, Attachment> ListAttachments(RepositoryName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists attachments.
Parameters | |
---|---|
Name | Description |
parent |
RepositoryName Required. The name of the parent resource whose attachments will be listed. |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListAttachmentsResponseAttachment |
A pageable sequence of Attachment resources. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::RepositoryName parent = gcav::RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
// Make the request
PagedEnumerable<gcav::ListAttachmentsResponse, gcav::Attachment> response = artifactRegistryClient.ListAttachments(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (gcav::Attachment 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::ListAttachmentsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcav::Attachment 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::Attachment> 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::Attachment 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;
ListAttachments(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListAttachmentsResponse, Attachment> ListAttachments(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists attachments.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The name of the parent resource whose attachments will be listed. |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListAttachmentsResponseAttachment |
A pageable sequence of Attachment resources. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]";
// Make the request
PagedEnumerable<gcav::ListAttachmentsResponse, gcav::Attachment> response = artifactRegistryClient.ListAttachments(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (gcav::Attachment 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::ListAttachmentsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcav::Attachment 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::Attachment> 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::Attachment 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;
ListAttachmentsAsync(ListAttachmentsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListAttachmentsResponse, Attachment> ListAttachmentsAsync(ListAttachmentsRequest request, CallSettings callSettings = null)
Lists attachments.
Parameters | |
---|---|
Name | Description |
request |
ListAttachmentsRequest 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 |
PagedAsyncEnumerableListAttachmentsResponseAttachment |
A pageable asynchronous sequence of Attachment resources. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ListAttachmentsRequest request = new gcav::ListAttachmentsRequest
{
ParentAsRepositoryName = gcav::RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"),
Filter = "",
};
// Make the request
PagedAsyncEnumerable<gcav::ListAttachmentsResponse, gcav::Attachment> response = artifactRegistryClient.ListAttachmentsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcav::Attachment 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::ListAttachmentsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcav::Attachment 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::Attachment> 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::Attachment 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;
ListAttachmentsAsync(RepositoryName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListAttachmentsResponse, Attachment> ListAttachmentsAsync(RepositoryName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists attachments.
Parameters | |
---|---|
Name | Description |
parent |
RepositoryName Required. The name of the parent resource whose attachments will be listed. |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListAttachmentsResponseAttachment |
A pageable asynchronous sequence of Attachment resources. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::RepositoryName parent = gcav::RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
// Make the request
PagedAsyncEnumerable<gcav::ListAttachmentsResponse, gcav::Attachment> response = artifactRegistryClient.ListAttachmentsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcav::Attachment 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::ListAttachmentsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcav::Attachment 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::Attachment> 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::Attachment 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;
ListAttachmentsAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListAttachmentsResponse, Attachment> ListAttachmentsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists attachments.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The name of the parent resource whose attachments will be listed. |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListAttachmentsResponseAttachment |
A pageable asynchronous sequence of Attachment resources. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]";
// Make the request
PagedAsyncEnumerable<gcav::ListAttachmentsResponse, gcav::Attachment> response = artifactRegistryClient.ListAttachmentsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcav::Attachment 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::ListAttachmentsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcav::Attachment 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::Attachment> 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::Attachment 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;
ListDockerImages(ListDockerImagesRequest, CallSettings)
public virtual PagedEnumerable<ListDockerImagesResponse, DockerImage> ListDockerImages(ListDockerImagesRequest request, CallSettings callSettings = null)
Lists docker images.
Parameters | |
---|---|
Name | Description |
request |
ListDockerImagesRequest 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 |
PagedEnumerableListDockerImagesResponseDockerImage |
A pageable sequence of DockerImage resources. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::ListDockerImagesRequest request = new gcav::ListDockerImagesRequest
{
Parent = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<gcav::ListDockerImagesResponse, gcav::DockerImage> response = artifactRegistryClient.ListDockerImages(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (gcav::DockerImage 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::ListDockerImagesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcav::DockerImage 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::DockerImage> 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::DockerImage 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;
ListDockerImages(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListDockerImagesResponse, DockerImage> ListDockerImages(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists docker images.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The name of the parent resource whose docker images will be listed. |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListDockerImagesResponseDockerImage |
A pageable sequence of DockerImage resources. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
string parent = "";
// Make the request
PagedEnumerable<gcav::ListDockerImagesResponse, gcav::DockerImage> response = artifactRegistryClient.ListDockerImages(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (gcav::DockerImage 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::ListDockerImagesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcav::DockerImage 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::DockerImage> 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::DockerImage 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;
ListDockerImagesAsync(ListDockerImagesRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListDockerImagesResponse, DockerImage> ListDockerImagesAsync(ListDockerImagesRequest request, CallSettings callSettings = null)
Lists docker images.
Parameters | |
---|---|
Name | Description |
request |
ListDockerImagesRequest 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 |
PagedAsyncEnumerableListDockerImagesResponseDockerImage |
A pageable asynchronous sequence of DockerImage resources. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ListDockerImagesRequest request = new gcav::ListDockerImagesRequest
{
Parent = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<gcav::ListDockerImagesResponse, gcav::DockerImage> response = artifactRegistryClient.ListDockerImagesAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcav::DockerImage 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::ListDockerImagesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcav::DockerImage 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::DockerImage> 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::DockerImage 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;
ListDockerImagesAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListDockerImagesResponse, DockerImage> ListDockerImagesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists docker images.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The name of the parent resource whose docker images will be listed. |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListDockerImagesResponseDockerImage |
A pageable asynchronous sequence of DockerImage resources. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
string parent = "";
// Make the request
PagedAsyncEnumerable<gcav::ListDockerImagesResponse, gcav::DockerImage> response = artifactRegistryClient.ListDockerImagesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcav::DockerImage 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::ListDockerImagesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcav::DockerImage 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::DockerImage> 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::DockerImage 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;
ListFiles(ListFilesRequest, CallSettings)
public virtual PagedEnumerable<ListFilesResponse, File> ListFiles(ListFilesRequest request, CallSettings callSettings = null)
Lists files.
Parameters | |
---|---|
Name | Description |
request |
ListFilesRequest 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 |
PagedEnumerableListFilesResponseFile |
A pageable sequence of File resources. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::ListFilesRequest request = new gcav::ListFilesRequest
{
ParentAsRepositoryName = gcav::RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<gcav::ListFilesResponse, gcav::File> response = artifactRegistryClient.ListFiles(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (gcav::File 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::ListFilesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcav::File 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::File> 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::File 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;
ListFiles(RepositoryName, string, int?, CallSettings)
public virtual PagedEnumerable<ListFilesResponse, File> ListFiles(RepositoryName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists files.
Parameters | |
---|---|
Name | Description |
parent |
RepositoryName Required. The name of the repository whose files will be listed. For example: "projects/p1/locations/us-central1/repositories/repo1 |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListFilesResponseFile |
A pageable sequence of File resources. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::RepositoryName parent = gcav::RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
// Make the request
PagedEnumerable<gcav::ListFilesResponse, gcav::File> response = artifactRegistryClient.ListFiles(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (gcav::File 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::ListFilesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcav::File 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::File> 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::File 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;
ListFiles(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListFilesResponse, File> ListFiles(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists files.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The name of the repository whose files will be listed. For example: "projects/p1/locations/us-central1/repositories/repo1 |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListFilesResponseFile |
A pageable sequence of File resources. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]";
// Make the request
PagedEnumerable<gcav::ListFilesResponse, gcav::File> response = artifactRegistryClient.ListFiles(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (gcav::File 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::ListFilesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcav::File 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::File> 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::File 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;
ListFilesAsync(ListFilesRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListFilesResponse, File> ListFilesAsync(ListFilesRequest request, CallSettings callSettings = null)
Lists files.
Parameters | |
---|---|
Name | Description |
request |
ListFilesRequest 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 |
PagedAsyncEnumerableListFilesResponseFile |
A pageable asynchronous sequence of File resources. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ListFilesRequest request = new gcav::ListFilesRequest
{
ParentAsRepositoryName = gcav::RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<gcav::ListFilesResponse, gcav::File> response = artifactRegistryClient.ListFilesAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcav::File 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::ListFilesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcav::File 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::File> 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::File 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;
ListFilesAsync(RepositoryName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListFilesResponse, File> ListFilesAsync(RepositoryName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists files.
Parameters | |
---|---|
Name | Description |
parent |
RepositoryName Required. The name of the repository whose files will be listed. For example: "projects/p1/locations/us-central1/repositories/repo1 |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListFilesResponseFile |
A pageable asynchronous sequence of File resources. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::RepositoryName parent = gcav::RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
// Make the request
PagedAsyncEnumerable<gcav::ListFilesResponse, gcav::File> response = artifactRegistryClient.ListFilesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcav::File 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::ListFilesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcav::File 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::File> 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::File 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;
ListFilesAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListFilesResponse, File> ListFilesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists files.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The name of the repository whose files will be listed. For example: "projects/p1/locations/us-central1/repositories/repo1 |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListFilesResponseFile |
A pageable asynchronous sequence of File resources. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]";
// Make the request
PagedAsyncEnumerable<gcav::ListFilesResponse, gcav::File> response = artifactRegistryClient.ListFilesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcav::File 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::ListFilesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcav::File 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::File> 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::File 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;
ListMavenArtifacts(ListMavenArtifactsRequest, CallSettings)
public virtual PagedEnumerable<ListMavenArtifactsResponse, MavenArtifact> ListMavenArtifacts(ListMavenArtifactsRequest request, CallSettings callSettings = null)
Lists maven artifacts.
Parameters | |
---|---|
Name | Description |
request |
ListMavenArtifactsRequest 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 |
PagedEnumerableListMavenArtifactsResponseMavenArtifact |
A pageable sequence of MavenArtifact resources. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::ListMavenArtifactsRequest request = new gcav::ListMavenArtifactsRequest
{
ParentAsRepositoryName = gcav::RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"),
};
// Make the request
PagedEnumerable<gcav::ListMavenArtifactsResponse, gcav::MavenArtifact> response = artifactRegistryClient.ListMavenArtifacts(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (gcav::MavenArtifact 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::ListMavenArtifactsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcav::MavenArtifact 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::MavenArtifact> 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::MavenArtifact 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;
ListMavenArtifacts(RepositoryName, string, int?, CallSettings)
public virtual PagedEnumerable<ListMavenArtifactsResponse, MavenArtifact> ListMavenArtifacts(RepositoryName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists maven artifacts.
Parameters | |
---|---|
Name | Description |
parent |
RepositoryName Required. The name of the parent resource whose maven artifacts will be listed. |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListMavenArtifactsResponseMavenArtifact |
A pageable sequence of MavenArtifact resources. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::RepositoryName parent = gcav::RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
// Make the request
PagedEnumerable<gcav::ListMavenArtifactsResponse, gcav::MavenArtifact> response = artifactRegistryClient.ListMavenArtifacts(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (gcav::MavenArtifact 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::ListMavenArtifactsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcav::MavenArtifact 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::MavenArtifact> 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::MavenArtifact 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;
ListMavenArtifacts(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListMavenArtifactsResponse, MavenArtifact> ListMavenArtifacts(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists maven artifacts.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The name of the parent resource whose maven artifacts will be listed. |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListMavenArtifactsResponseMavenArtifact |
A pageable sequence of MavenArtifact resources. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]";
// Make the request
PagedEnumerable<gcav::ListMavenArtifactsResponse, gcav::MavenArtifact> response = artifactRegistryClient.ListMavenArtifacts(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (gcav::MavenArtifact 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::ListMavenArtifactsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcav::MavenArtifact 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::MavenArtifact> 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::MavenArtifact 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;
ListMavenArtifactsAsync(ListMavenArtifactsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListMavenArtifactsResponse, MavenArtifact> ListMavenArtifactsAsync(ListMavenArtifactsRequest request, CallSettings callSettings = null)
Lists maven artifacts.
Parameters | |
---|---|
Name | Description |
request |
ListMavenArtifactsRequest 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 |
PagedAsyncEnumerableListMavenArtifactsResponseMavenArtifact |
A pageable asynchronous sequence of MavenArtifact resources. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ListMavenArtifactsRequest request = new gcav::ListMavenArtifactsRequest
{
ParentAsRepositoryName = gcav::RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"),
};
// Make the request
PagedAsyncEnumerable<gcav::ListMavenArtifactsResponse, gcav::MavenArtifact> response = artifactRegistryClient.ListMavenArtifactsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcav::MavenArtifact 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::ListMavenArtifactsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcav::MavenArtifact 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::MavenArtifact> 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::MavenArtifact 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;
ListMavenArtifactsAsync(RepositoryName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListMavenArtifactsResponse, MavenArtifact> ListMavenArtifactsAsync(RepositoryName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists maven artifacts.
Parameters | |
---|---|
Name | Description |
parent |
RepositoryName Required. The name of the parent resource whose maven artifacts will be listed. |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListMavenArtifactsResponseMavenArtifact |
A pageable asynchronous sequence of MavenArtifact resources. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::RepositoryName parent = gcav::RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
// Make the request
PagedAsyncEnumerable<gcav::ListMavenArtifactsResponse, gcav::MavenArtifact> response = artifactRegistryClient.ListMavenArtifactsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcav::MavenArtifact 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::ListMavenArtifactsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcav::MavenArtifact 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::MavenArtifact> 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::MavenArtifact 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;
ListMavenArtifactsAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListMavenArtifactsResponse, MavenArtifact> ListMavenArtifactsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists maven artifacts.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The name of the parent resource whose maven artifacts will be listed. |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListMavenArtifactsResponseMavenArtifact |
A pageable asynchronous sequence of MavenArtifact resources. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]";
// Make the request
PagedAsyncEnumerable<gcav::ListMavenArtifactsResponse, gcav::MavenArtifact> response = artifactRegistryClient.ListMavenArtifactsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcav::MavenArtifact 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::ListMavenArtifactsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcav::MavenArtifact 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::MavenArtifact> 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::MavenArtifact 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;
ListNpmPackages(ListNpmPackagesRequest, CallSettings)
public virtual PagedEnumerable<ListNpmPackagesResponse, NpmPackage> ListNpmPackages(ListNpmPackagesRequest request, CallSettings callSettings = null)
Lists npm packages.
Parameters | |
---|---|
Name | Description |
request |
ListNpmPackagesRequest 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 |
PagedEnumerableListNpmPackagesResponseNpmPackage |
A pageable sequence of NpmPackage resources. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::ListNpmPackagesRequest request = new gcav::ListNpmPackagesRequest
{
ParentAsRepositoryName = gcav::RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"),
};
// Make the request
PagedEnumerable<gcav::ListNpmPackagesResponse, gcav::NpmPackage> response = artifactRegistryClient.ListNpmPackages(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (gcav::NpmPackage 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::ListNpmPackagesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcav::NpmPackage 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::NpmPackage> 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::NpmPackage 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;
ListNpmPackages(RepositoryName, string, int?, CallSettings)
public virtual PagedEnumerable<ListNpmPackagesResponse, NpmPackage> ListNpmPackages(RepositoryName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists npm packages.
Parameters | |
---|---|
Name | Description |
parent |
RepositoryName Required. The name of the parent resource whose npm packages will be listed. |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListNpmPackagesResponseNpmPackage |
A pageable sequence of NpmPackage resources. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::RepositoryName parent = gcav::RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
// Make the request
PagedEnumerable<gcav::ListNpmPackagesResponse, gcav::NpmPackage> response = artifactRegistryClient.ListNpmPackages(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (gcav::NpmPackage 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::ListNpmPackagesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcav::NpmPackage 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::NpmPackage> 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::NpmPackage 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;
ListNpmPackages(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListNpmPackagesResponse, NpmPackage> ListNpmPackages(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists npm packages.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The name of the parent resource whose npm packages will be listed. |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListNpmPackagesResponseNpmPackage |
A pageable sequence of NpmPackage resources. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]";
// Make the request
PagedEnumerable<gcav::ListNpmPackagesResponse, gcav::NpmPackage> response = artifactRegistryClient.ListNpmPackages(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (gcav::NpmPackage 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::ListNpmPackagesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcav::NpmPackage 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::NpmPackage> 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::NpmPackage 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;
ListNpmPackagesAsync(ListNpmPackagesRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListNpmPackagesResponse, NpmPackage> ListNpmPackagesAsync(ListNpmPackagesRequest request, CallSettings callSettings = null)
Lists npm packages.
Parameters | |
---|---|
Name | Description |
request |
ListNpmPackagesRequest 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 |
PagedAsyncEnumerableListNpmPackagesResponseNpmPackage |
A pageable asynchronous sequence of NpmPackage resources. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ListNpmPackagesRequest request = new gcav::ListNpmPackagesRequest
{
ParentAsRepositoryName = gcav::RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"),
};
// Make the request
PagedAsyncEnumerable<gcav::ListNpmPackagesResponse, gcav::NpmPackage> response = artifactRegistryClient.ListNpmPackagesAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcav::NpmPackage 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::ListNpmPackagesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcav::NpmPackage 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::NpmPackage> 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::NpmPackage 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;
ListNpmPackagesAsync(RepositoryName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListNpmPackagesResponse, NpmPackage> ListNpmPackagesAsync(RepositoryName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists npm packages.
Parameters | |
---|---|
Name | Description |
parent |
RepositoryName Required. The name of the parent resource whose npm packages will be listed. |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListNpmPackagesResponseNpmPackage |
A pageable asynchronous sequence of NpmPackage resources. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::RepositoryName parent = gcav::RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
// Make the request
PagedAsyncEnumerable<gcav::ListNpmPackagesResponse, gcav::NpmPackage> response = artifactRegistryClient.ListNpmPackagesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcav::NpmPackage 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::ListNpmPackagesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcav::NpmPackage 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::NpmPackage> 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::NpmPackage 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;
ListNpmPackagesAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListNpmPackagesResponse, NpmPackage> ListNpmPackagesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists npm packages.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The name of the parent resource whose npm packages will be listed. |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListNpmPackagesResponseNpmPackage |
A pageable asynchronous sequence of NpmPackage resources. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]";
// Make the request
PagedAsyncEnumerable<gcav::ListNpmPackagesResponse, gcav::NpmPackage> response = artifactRegistryClient.ListNpmPackagesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcav::NpmPackage 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::ListNpmPackagesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcav::NpmPackage 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::NpmPackage> 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::NpmPackage 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;
ListPackages(ListPackagesRequest, CallSettings)
public virtual PagedEnumerable<ListPackagesResponse, Package> ListPackages(ListPackagesRequest request, CallSettings callSettings = null)
Lists packages.
Parameters | |
---|---|
Name | Description |
request |
ListPackagesRequest 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 |
PagedEnumerableListPackagesResponsePackage |
A pageable sequence of Package resources. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::ListPackagesRequest request = new gcav::ListPackagesRequest
{
ParentAsRepositoryName = gcav::RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<gcav::ListPackagesResponse, gcav::Package> response = artifactRegistryClient.ListPackages(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (gcav::Package 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::ListPackagesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcav::Package 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::Package> 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::Package 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;
ListPackages(RepositoryName, string, int?, CallSettings)
public virtual PagedEnumerable<ListPackagesResponse, Package> ListPackages(RepositoryName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists packages.
Parameters | |
---|---|
Name | Description |
parent |
RepositoryName Required. The name of the parent resource whose packages will be listed. |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListPackagesResponsePackage |
A pageable sequence of Package resources. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::RepositoryName parent = gcav::RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
// Make the request
PagedEnumerable<gcav::ListPackagesResponse, gcav::Package> response = artifactRegistryClient.ListPackages(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (gcav::Package 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::ListPackagesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcav::Package 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::Package> 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::Package 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;
ListPackages(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListPackagesResponse, Package> ListPackages(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists packages.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The name of the parent resource whose packages will be listed. |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListPackagesResponsePackage |
A pageable sequence of Package resources. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]";
// Make the request
PagedEnumerable<gcav::ListPackagesResponse, gcav::Package> response = artifactRegistryClient.ListPackages(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (gcav::Package 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::ListPackagesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcav::Package 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::Package> 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::Package 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;
ListPackagesAsync(ListPackagesRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListPackagesResponse, Package> ListPackagesAsync(ListPackagesRequest request, CallSettings callSettings = null)
Lists packages.
Parameters | |
---|---|
Name | Description |
request |
ListPackagesRequest 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 |
PagedAsyncEnumerableListPackagesResponsePackage |
A pageable asynchronous sequence of Package resources. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ListPackagesRequest request = new gcav::ListPackagesRequest
{
ParentAsRepositoryName = gcav::RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<gcav::ListPackagesResponse, gcav::Package> response = artifactRegistryClient.ListPackagesAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcav::Package 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::ListPackagesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcav::Package 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::Package> 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::Package 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;
ListPackagesAsync(RepositoryName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListPackagesResponse, Package> ListPackagesAsync(RepositoryName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists packages.
Parameters | |
---|---|
Name | Description |
parent |
RepositoryName Required. The name of the parent resource whose packages will be listed. |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListPackagesResponsePackage |
A pageable asynchronous sequence of Package resources. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::RepositoryName parent = gcav::RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
// Make the request
PagedAsyncEnumerable<gcav::ListPackagesResponse, gcav::Package> response = artifactRegistryClient.ListPackagesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcav::Package 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::ListPackagesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcav::Package 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::Package> 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::Package 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;
ListPackagesAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListPackagesResponse, Package> ListPackagesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists packages.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The name of the parent resource whose packages will be listed. |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListPackagesResponsePackage |
A pageable asynchronous sequence of Package resources. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]";
// Make the request
PagedAsyncEnumerable<gcav::ListPackagesResponse, gcav::Package> response = artifactRegistryClient.ListPackagesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcav::Package 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::ListPackagesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcav::Package 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::Package> 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::Package 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;
ListPythonPackages(ListPythonPackagesRequest, CallSettings)
public virtual PagedEnumerable<ListPythonPackagesResponse, PythonPackage> ListPythonPackages(ListPythonPackagesRequest request, CallSettings callSettings = null)
Lists python packages.
Parameters | |
---|---|
Name | Description |
request |
ListPythonPackagesRequest 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 |
PagedEnumerableListPythonPackagesResponsePythonPackage |
A pageable sequence of PythonPackage resources. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::ListPythonPackagesRequest request = new gcav::ListPythonPackagesRequest
{
ParentAsRepositoryName = gcav::RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"),
};
// Make the request
PagedEnumerable<gcav::ListPythonPackagesResponse, gcav::PythonPackage> response = artifactRegistryClient.ListPythonPackages(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (gcav::PythonPackage 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::ListPythonPackagesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcav::PythonPackage 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::PythonPackage> 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::PythonPackage 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;
ListPythonPackages(RepositoryName, string, int?, CallSettings)
public virtual PagedEnumerable<ListPythonPackagesResponse, PythonPackage> ListPythonPackages(RepositoryName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists python packages.
Parameters | |
---|---|
Name | Description |
parent |
RepositoryName Required. The name of the parent resource whose python packages will be listed. |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListPythonPackagesResponsePythonPackage |
A pageable sequence of PythonPackage resources. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::RepositoryName parent = gcav::RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
// Make the request
PagedEnumerable<gcav::ListPythonPackagesResponse, gcav::PythonPackage> response = artifactRegistryClient.ListPythonPackages(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (gcav::PythonPackage 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::ListPythonPackagesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcav::PythonPackage 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::PythonPackage> 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::PythonPackage 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;
ListPythonPackages(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListPythonPackagesResponse, PythonPackage> ListPythonPackages(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists python packages.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The name of the parent resource whose python packages will be listed. |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListPythonPackagesResponsePythonPackage |
A pageable sequence of PythonPackage resources. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]";
// Make the request
PagedEnumerable<gcav::ListPythonPackagesResponse, gcav::PythonPackage> response = artifactRegistryClient.ListPythonPackages(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (gcav::PythonPackage 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::ListPythonPackagesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcav::PythonPackage 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::PythonPackage> 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::PythonPackage 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;
ListPythonPackagesAsync(ListPythonPackagesRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListPythonPackagesResponse, PythonPackage> ListPythonPackagesAsync(ListPythonPackagesRequest request, CallSettings callSettings = null)
Lists python packages.
Parameters | |
---|---|
Name | Description |
request |
ListPythonPackagesRequest 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 |
PagedAsyncEnumerableListPythonPackagesResponsePythonPackage |
A pageable asynchronous sequence of PythonPackage resources. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ListPythonPackagesRequest request = new gcav::ListPythonPackagesRequest
{
ParentAsRepositoryName = gcav::RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"),
};
// Make the request
PagedAsyncEnumerable<gcav::ListPythonPackagesResponse, gcav::PythonPackage> response = artifactRegistryClient.ListPythonPackagesAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcav::PythonPackage 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::ListPythonPackagesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcav::PythonPackage 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::PythonPackage> 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::PythonPackage 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;
ListPythonPackagesAsync(RepositoryName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListPythonPackagesResponse, PythonPackage> ListPythonPackagesAsync(RepositoryName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists python packages.
Parameters | |
---|---|
Name | Description |
parent |
RepositoryName Required. The name of the parent resource whose python packages will be listed. |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListPythonPackagesResponsePythonPackage |
A pageable asynchronous sequence of PythonPackage resources. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::RepositoryName parent = gcav::RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
// Make the request
PagedAsyncEnumerable<gcav::ListPythonPackagesResponse, gcav::PythonPackage> response = artifactRegistryClient.ListPythonPackagesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcav::PythonPackage 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::ListPythonPackagesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcav::PythonPackage 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::PythonPackage> 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::PythonPackage 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;
ListPythonPackagesAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListPythonPackagesResponse, PythonPackage> ListPythonPackagesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists python packages.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The name of the parent resource whose python packages will be listed. |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListPythonPackagesResponsePythonPackage |
A pageable asynchronous sequence of PythonPackage resources. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]";
// Make the request
PagedAsyncEnumerable<gcav::ListPythonPackagesResponse, gcav::PythonPackage> response = artifactRegistryClient.ListPythonPackagesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcav::PythonPackage 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::ListPythonPackagesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcav::PythonPackage 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::PythonPackage> 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::PythonPackage 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;
ListRepositories(LocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListRepositoriesResponse, Repository> ListRepositories(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists repositories.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The name of the parent resource whose repositories will be listed. |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListRepositoriesResponseRepository |
A pageable sequence of Repository resources. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<gcav::ListRepositoriesResponse, gcav::Repository> response = artifactRegistryClient.ListRepositories(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (gcav::Repository 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::ListRepositoriesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcav::Repository 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::Repository> 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::Repository 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;
ListRepositories(ListRepositoriesRequest, CallSettings)
public virtual PagedEnumerable<ListRepositoriesResponse, Repository> ListRepositories(ListRepositoriesRequest request, CallSettings callSettings = null)
Lists repositories.
Parameters | |
---|---|
Name | Description |
request |
ListRepositoriesRequest 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 |
PagedEnumerableListRepositoriesResponseRepository |
A pageable sequence of Repository resources. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::ListRepositoriesRequest request = new gcav::ListRepositoriesRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<gcav::ListRepositoriesResponse, gcav::Repository> response = artifactRegistryClient.ListRepositories(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (gcav::Repository 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::ListRepositoriesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcav::Repository 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::Repository> 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::Repository 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;
ListRepositories(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListRepositoriesResponse, Repository> ListRepositories(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists repositories.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The name of the parent resource whose repositories will be listed. |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListRepositoriesResponseRepository |
A pageable sequence of Repository resources. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<gcav::ListRepositoriesResponse, gcav::Repository> response = artifactRegistryClient.ListRepositories(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (gcav::Repository 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::ListRepositoriesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcav::Repository 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::Repository> 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::Repository 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;
ListRepositoriesAsync(LocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListRepositoriesResponse, Repository> ListRepositoriesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists repositories.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The name of the parent resource whose repositories will be listed. |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListRepositoriesResponseRepository |
A pageable asynchronous sequence of Repository resources. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<gcav::ListRepositoriesResponse, gcav::Repository> response = artifactRegistryClient.ListRepositoriesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcav::Repository 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::ListRepositoriesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcav::Repository 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::Repository> 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::Repository 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;
ListRepositoriesAsync(ListRepositoriesRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListRepositoriesResponse, Repository> ListRepositoriesAsync(ListRepositoriesRequest request, CallSettings callSettings = null)
Lists repositories.
Parameters | |
---|---|
Name | Description |
request |
ListRepositoriesRequest 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 |
PagedAsyncEnumerableListRepositoriesResponseRepository |
A pageable asynchronous sequence of Repository resources. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ListRepositoriesRequest request = new gcav::ListRepositoriesRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<gcav::ListRepositoriesResponse, gcav::Repository> response = artifactRegistryClient.ListRepositoriesAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcav::Repository 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::ListRepositoriesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcav::Repository 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::Repository> 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::Repository 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;
ListRepositoriesAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListRepositoriesResponse, Repository> ListRepositoriesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists repositories.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The name of the parent resource whose repositories will be listed. |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListRepositoriesResponseRepository |
A pageable asynchronous sequence of Repository resources. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<gcav::ListRepositoriesResponse, gcav::Repository> response = artifactRegistryClient.ListRepositoriesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcav::Repository 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::ListRepositoriesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcav::Repository 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::Repository> 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::Repository 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;
ListRules(ListRulesRequest, CallSettings)
public virtual PagedEnumerable<ListRulesResponse, Rule> ListRules(ListRulesRequest request, CallSettings callSettings = null)
Lists rules.
Parameters | |
---|---|
Name | Description |
request |
ListRulesRequest 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 |
PagedEnumerableListRulesResponseRule |
A pageable sequence of Rule resources. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::ListRulesRequest request = new gcav::ListRulesRequest
{
ParentAsRepositoryName = gcav::RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"),
};
// Make the request
PagedEnumerable<gcav::ListRulesResponse, gcav::Rule> response = artifactRegistryClient.ListRules(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (gcav::Rule 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::ListRulesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcav::Rule 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::Rule> 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::Rule 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;
ListRules(RepositoryName, string, int?, CallSettings)
public virtual PagedEnumerable<ListRulesResponse, Rule> ListRules(RepositoryName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists rules.
Parameters | |
---|---|
Name | Description |
parent |
RepositoryName Required. The name of the parent repository whose rules will be listed.
For example:
|
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListRulesResponseRule |
A pageable sequence of Rule resources. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::RepositoryName parent = gcav::RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
// Make the request
PagedEnumerable<gcav::ListRulesResponse, gcav::Rule> response = artifactRegistryClient.ListRules(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (gcav::Rule 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::ListRulesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcav::Rule 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::Rule> 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::Rule 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;
ListRules(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListRulesResponse, Rule> ListRules(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists rules.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The name of the parent repository whose rules will be listed.
For example:
|
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListRulesResponseRule |
A pageable sequence of Rule resources. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]";
// Make the request
PagedEnumerable<gcav::ListRulesResponse, gcav::Rule> response = artifactRegistryClient.ListRules(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (gcav::Rule 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::ListRulesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcav::Rule 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::Rule> 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::Rule 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;
ListRulesAsync(ListRulesRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListRulesResponse, Rule> ListRulesAsync(ListRulesRequest request, CallSettings callSettings = null)
Lists rules.
Parameters | |
---|---|
Name | Description |
request |
ListRulesRequest 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 |
PagedAsyncEnumerableListRulesResponseRule |
A pageable asynchronous sequence of Rule resources. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ListRulesRequest request = new gcav::ListRulesRequest
{
ParentAsRepositoryName = gcav::RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]"),
};
// Make the request
PagedAsyncEnumerable<gcav::ListRulesResponse, gcav::Rule> response = artifactRegistryClient.ListRulesAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcav::Rule 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::ListRulesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcav::Rule 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::Rule> 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::Rule 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;
ListRulesAsync(RepositoryName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListRulesResponse, Rule> ListRulesAsync(RepositoryName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists rules.
Parameters | |
---|---|
Name | Description |
parent |
RepositoryName Required. The name of the parent repository whose rules will be listed.
For example:
|
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListRulesResponseRule |
A pageable asynchronous sequence of Rule resources. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::RepositoryName parent = gcav::RepositoryName.FromProjectLocationRepository("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
// Make the request
PagedAsyncEnumerable<gcav::ListRulesResponse, gcav::Rule> response = artifactRegistryClient.ListRulesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcav::Rule 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::ListRulesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcav::Rule 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::Rule> 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::Rule 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;
ListRulesAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListRulesResponse, Rule> ListRulesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists rules.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The name of the parent repository whose rules will be listed.
For example:
|
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListRulesResponseRule |
A pageable asynchronous sequence of Rule resources. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/repositories/[REPOSITORY]";
// Make the request
PagedAsyncEnumerable<gcav::ListRulesResponse, gcav::Rule> response = artifactRegistryClient.ListRulesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcav::Rule 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::ListRulesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcav::Rule 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::Rule> 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::Rule 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;
ListTags(ListTagsRequest, CallSettings)
public virtual PagedEnumerable<ListTagsResponse, Tag> ListTags(ListTagsRequest request, CallSettings callSettings = null)
Lists tags.
Parameters | |
---|---|
Name | Description |
request |
ListTagsRequest 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 |
PagedEnumerableListTagsResponseTag |
A pageable sequence of Tag resources. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::ListTagsRequest request = new gcav::ListTagsRequest
{
Parent = "",
Filter = "",
};
// Make the request
PagedEnumerable<gcav::ListTagsResponse, gcav::Tag> response = artifactRegistryClient.ListTags(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (gcav::Tag 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::ListTagsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcav::Tag 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::Tag> 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::Tag 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;
ListTags(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListTagsResponse, Tag> ListTags(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists tags.
Parameters | |
---|---|
Name | Description |
parent |
string The name of the parent package whose tags will be listed.
For example:
|
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListTagsResponseTag |
A pageable sequence of Tag resources. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
string parent = "";
// Make the request
PagedEnumerable<gcav::ListTagsResponse, gcav::Tag> response = artifactRegistryClient.ListTags(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (gcav::Tag 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::ListTagsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcav::Tag 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::Tag> 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::Tag 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;
ListTagsAsync(ListTagsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListTagsResponse, Tag> ListTagsAsync(ListTagsRequest request, CallSettings callSettings = null)
Lists tags.
Parameters | |
---|---|
Name | Description |
request |
ListTagsRequest 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 |
PagedAsyncEnumerableListTagsResponseTag |
A pageable asynchronous sequence of Tag resources. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ListTagsRequest request = new gcav::ListTagsRequest
{
Parent = "",
Filter = "",
};
// Make the request
PagedAsyncEnumerable<gcav::ListTagsResponse, gcav::Tag> response = artifactRegistryClient.ListTagsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcav::Tag 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::ListTagsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcav::Tag 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::Tag> 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::Tag 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;
ListTagsAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListTagsResponse, Tag> ListTagsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists tags.
Parameters | |
---|---|
Name | Description |
parent |
string The name of the parent package whose tags will be listed.
For example:
|
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListTagsResponseTag |
A pageable asynchronous sequence of Tag resources. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
string parent = "";
// Make the request
PagedAsyncEnumerable<gcav::ListTagsResponse, gcav::Tag> response = artifactRegistryClient.ListTagsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcav::Tag 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::ListTagsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcav::Tag 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::Tag> 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::Tag 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;
ListVersions(ListVersionsRequest, CallSettings)
public virtual PagedEnumerable<ListVersionsResponse, Version> ListVersions(ListVersionsRequest request, CallSettings callSettings = null)
Lists versions.
Parameters | |
---|---|
Name | Description |
request |
ListVersionsRequest 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 |
PagedEnumerableListVersionsResponseVersion |
A pageable sequence of Version resources. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::ListVersionsRequest request = new gcav::ListVersionsRequest
{
Parent = "",
View = gcav::VersionView.Unspecified,
OrderBy = "",
Filter = "",
};
// Make the request
PagedEnumerable<gcav::ListVersionsResponse, gcav::Version> response = artifactRegistryClient.ListVersions(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (gcav::Version 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::ListVersionsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcav::Version 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::Version> 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::Version 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;
ListVersions(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListVersionsResponse, Version> ListVersions(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists versions.
Parameters | |
---|---|
Name | Description |
parent |
string The name of the parent resource whose versions will be listed. |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListVersionsResponseVersion |
A pageable sequence of Version resources. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
string parent = "";
// Make the request
PagedEnumerable<gcav::ListVersionsResponse, gcav::Version> response = artifactRegistryClient.ListVersions(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (gcav::Version 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::ListVersionsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcav::Version 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::Version> 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::Version 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;
ListVersionsAsync(ListVersionsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListVersionsResponse, Version> ListVersionsAsync(ListVersionsRequest request, CallSettings callSettings = null)
Lists versions.
Parameters | |
---|---|
Name | Description |
request |
ListVersionsRequest 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 |
PagedAsyncEnumerableListVersionsResponseVersion |
A pageable asynchronous sequence of Version resources. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ListVersionsRequest request = new gcav::ListVersionsRequest
{
Parent = "",
View = gcav::VersionView.Unspecified,
OrderBy = "",
Filter = "",
};
// Make the request
PagedAsyncEnumerable<gcav::ListVersionsResponse, gcav::Version> response = artifactRegistryClient.ListVersionsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcav::Version 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::ListVersionsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcav::Version 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::Version> 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::Version 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;
ListVersionsAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListVersionsResponse, Version> ListVersionsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists versions.
Parameters | |
---|---|
Name | Description |
parent |
string The name of the parent resource whose versions will be listed. |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListVersionsResponseVersion |
A pageable asynchronous sequence of Version resources. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
string parent = "";
// Make the request
PagedAsyncEnumerable<gcav::ListVersionsResponse, gcav::Version> response = artifactRegistryClient.ListVersionsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((gcav::Version 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::ListVersionsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (gcav::Version 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::Version> 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::Version 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;
PollOnceBatchDeleteVersions(string, CallSettings)
public virtual Operation<Empty, BatchDeleteVersionsMetadata> PollOnceBatchDeleteVersions(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of BatchDeleteVersions
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyBatchDeleteVersionsMetadata |
The result of polling the operation. |
PollOnceBatchDeleteVersionsAsync(string, CallSettings)
public virtual Task<Operation<Empty, BatchDeleteVersionsMetadata>> PollOnceBatchDeleteVersionsAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
BatchDeleteVersions
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyBatchDeleteVersionsMetadata |
A task representing the result of polling the operation. |
PollOnceCreateAttachment(string, CallSettings)
public virtual Operation<Attachment, OperationMetadata> PollOnceCreateAttachment(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of CreateAttachment
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationAttachmentOperationMetadata |
The result of polling the operation. |
PollOnceCreateAttachmentAsync(string, CallSettings)
public virtual Task<Operation<Attachment, OperationMetadata>> PollOnceCreateAttachmentAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
CreateAttachment
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationAttachmentOperationMetadata |
A task representing the result of polling the operation. |
PollOnceCreateRepository(string, CallSettings)
public virtual Operation<Repository, OperationMetadata> PollOnceCreateRepository(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of CreateRepository
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationRepositoryOperationMetadata |
The result of polling the operation. |
PollOnceCreateRepositoryAsync(string, CallSettings)
public virtual Task<Operation<Repository, OperationMetadata>> PollOnceCreateRepositoryAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
CreateRepository
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationRepositoryOperationMetadata |
A task representing the result of polling the operation. |
PollOnceDeleteAttachment(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> PollOnceDeleteAttachment(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of DeleteAttachment
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The result of polling the operation. |
PollOnceDeleteAttachmentAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteAttachmentAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
DeleteAttachment
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A task representing the result of polling the operation. |
PollOnceDeleteFile(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> PollOnceDeleteFile(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of DeleteFile
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The result of polling the operation. |
PollOnceDeleteFileAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteFileAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
DeleteFile
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A task representing the result of polling the operation. |
PollOnceDeletePackage(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> PollOnceDeletePackage(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of DeletePackage
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The result of polling the operation. |
PollOnceDeletePackageAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeletePackageAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
DeletePackage
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A task representing the result of polling the operation. |
PollOnceDeleteRepository(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> PollOnceDeleteRepository(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of DeleteRepository
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The result of polling the operation. |
PollOnceDeleteRepositoryAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteRepositoryAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
DeleteRepository
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A task representing the result of polling the operation. |
PollOnceDeleteVersion(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> PollOnceDeleteVersion(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of DeleteVersion
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The result of polling the operation. |
PollOnceDeleteVersionAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteVersionAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
DeleteVersion
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A task representing the result of polling the operation. |
PollOnceImportAptArtifacts(string, CallSettings)
public virtual Operation<ImportAptArtifactsResponse, ImportAptArtifactsMetadata> PollOnceImportAptArtifacts(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of ImportAptArtifacts
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationImportAptArtifactsResponseImportAptArtifactsMetadata |
The result of polling the operation. |
PollOnceImportAptArtifactsAsync(string, CallSettings)
public virtual Task<Operation<ImportAptArtifactsResponse, ImportAptArtifactsMetadata>> PollOnceImportAptArtifactsAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
ImportAptArtifacts
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationImportAptArtifactsResponseImportAptArtifactsMetadata |
A task representing the result of polling the operation. |
PollOnceImportYumArtifacts(string, CallSettings)
public virtual Operation<ImportYumArtifactsResponse, ImportYumArtifactsMetadata> PollOnceImportYumArtifacts(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of ImportYumArtifacts
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationImportYumArtifactsResponseImportYumArtifactsMetadata |
The result of polling the operation. |
PollOnceImportYumArtifactsAsync(string, CallSettings)
public virtual Task<Operation<ImportYumArtifactsResponse, ImportYumArtifactsMetadata>> PollOnceImportYumArtifactsAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
ImportYumArtifacts
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationImportYumArtifactsResponseImportYumArtifactsMetadata |
A task representing the result of polling the operation. |
SetIamPolicy(SetIamPolicyRequest, CallSettings)
public virtual Policy SetIamPolicy(SetIamPolicyRequest request, CallSettings callSettings = null)
Updates the IAM policy for a given resource.
Parameters | |
---|---|
Name | Description |
request |
SetIamPolicyRequest 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 |
Policy |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
SetIamPolicyRequest request = new SetIamPolicyRequest
{
ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
Policy = new Policy(),
UpdateMask = new FieldMask(),
};
// Make the request
Policy response = artifactRegistryClient.SetIamPolicy(request);
SetIamPolicyAsync(SetIamPolicyRequest, CallSettings)
public virtual Task<Policy> SetIamPolicyAsync(SetIamPolicyRequest request, CallSettings callSettings = null)
Updates the IAM policy for a given resource.
Parameters | |
---|---|
Name | Description |
request |
SetIamPolicyRequest 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 |
TaskPolicy |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
SetIamPolicyRequest request = new SetIamPolicyRequest
{
ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
Policy = new Policy(),
UpdateMask = new FieldMask(),
};
// Make the request
Policy response = await artifactRegistryClient.SetIamPolicyAsync(request);
SetIamPolicyAsync(SetIamPolicyRequest, CancellationToken)
public virtual Task<Policy> SetIamPolicyAsync(SetIamPolicyRequest request, CancellationToken cancellationToken)
Updates the IAM policy for a given resource.
Parameters | |
---|---|
Name | Description |
request |
SetIamPolicyRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskPolicy |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
SetIamPolicyRequest request = new SetIamPolicyRequest
{
ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
Policy = new Policy(),
UpdateMask = new FieldMask(),
};
// Make the request
Policy response = await artifactRegistryClient.SetIamPolicyAsync(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. |
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.
TestIamPermissions(TestIamPermissionsRequest, CallSettings)
public virtual TestIamPermissionsResponse TestIamPermissions(TestIamPermissionsRequest request, CallSettings callSettings = null)
Tests if the caller has a list of permissions on a resource.
Parameters | |
---|---|
Name | Description |
request |
TestIamPermissionsRequest 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 |
TestIamPermissionsResponse |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
TestIamPermissionsRequest request = new TestIamPermissionsRequest
{
ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
Permissions = { "", },
};
// Make the request
TestIamPermissionsResponse response = artifactRegistryClient.TestIamPermissions(request);
TestIamPermissionsAsync(TestIamPermissionsRequest, CallSettings)
public virtual Task<TestIamPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsRequest request, CallSettings callSettings = null)
Tests if the caller has a list of permissions on a resource.
Parameters | |
---|---|
Name | Description |
request |
TestIamPermissionsRequest 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 |
TaskTestIamPermissionsResponse |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
TestIamPermissionsRequest request = new TestIamPermissionsRequest
{
ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
Permissions = { "", },
};
// Make the request
TestIamPermissionsResponse response = await artifactRegistryClient.TestIamPermissionsAsync(request);
TestIamPermissionsAsync(TestIamPermissionsRequest, CancellationToken)
public virtual Task<TestIamPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsRequest request, CancellationToken cancellationToken)
Tests if the caller has a list of permissions on a resource.
Parameters | |
---|---|
Name | Description |
request |
TestIamPermissionsRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskTestIamPermissionsResponse |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
TestIamPermissionsRequest request = new TestIamPermissionsRequest
{
ResourceAsResourceName = new UnparsedResourceName("a/wildcard/resource"),
Permissions = { "", },
};
// Make the request
TestIamPermissionsResponse response = await artifactRegistryClient.TestIamPermissionsAsync(request);
UpdateFile(File, FieldMask, CallSettings)
public virtual File UpdateFile(File file, FieldMask updateMask, CallSettings callSettings = null)
Updates a file.
Parameters | |
---|---|
Name | Description |
file |
File Required. The File that replaces the resource on the server. |
updateMask |
FieldMask Required. The update mask applies to the resource. For the |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
File |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::File file = new gcav::File();
FieldMask updateMask = new FieldMask();
// Make the request
gcav::File response = artifactRegistryClient.UpdateFile(file, updateMask);
UpdateFile(UpdateFileRequest, CallSettings)
public virtual File UpdateFile(UpdateFileRequest request, CallSettings callSettings = null)
Updates a file.
Parameters | |
---|---|
Name | Description |
request |
UpdateFileRequest 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 |
File |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::UpdateFileRequest request = new gcav::UpdateFileRequest
{
File = new gcav::File(),
UpdateMask = new FieldMask(),
};
// Make the request
gcav::File response = artifactRegistryClient.UpdateFile(request);
UpdateFileAsync(File, FieldMask, CallSettings)
public virtual Task<File> UpdateFileAsync(File file, FieldMask updateMask, CallSettings callSettings = null)
Updates a file.
Parameters | |
---|---|
Name | Description |
file |
File Required. The File that replaces the resource on the server. |
updateMask |
FieldMask Required. The update mask applies to the resource. For the |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskFile |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::File file = new gcav::File();
FieldMask updateMask = new FieldMask();
// Make the request
gcav::File response = await artifactRegistryClient.UpdateFileAsync(file, updateMask);
UpdateFileAsync(File, FieldMask, CancellationToken)
public virtual Task<File> UpdateFileAsync(File file, FieldMask updateMask, CancellationToken cancellationToken)
Updates a file.
Parameters | |
---|---|
Name | Description |
file |
File Required. The File that replaces the resource on the server. |
updateMask |
FieldMask Required. The update mask applies to the resource. For the |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskFile |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::File file = new gcav::File();
FieldMask updateMask = new FieldMask();
// Make the request
gcav::File response = await artifactRegistryClient.UpdateFileAsync(file, updateMask);
UpdateFileAsync(UpdateFileRequest, CallSettings)
public virtual Task<File> UpdateFileAsync(UpdateFileRequest request, CallSettings callSettings = null)
Updates a file.
Parameters | |
---|---|
Name | Description |
request |
UpdateFileRequest 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 |
TaskFile |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::UpdateFileRequest request = new gcav::UpdateFileRequest
{
File = new gcav::File(),
UpdateMask = new FieldMask(),
};
// Make the request
gcav::File response = await artifactRegistryClient.UpdateFileAsync(request);
UpdateFileAsync(UpdateFileRequest, CancellationToken)
public virtual Task<File> UpdateFileAsync(UpdateFileRequest request, CancellationToken cancellationToken)
Updates a file.
Parameters | |
---|---|
Name | Description |
request |
UpdateFileRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskFile |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::UpdateFileRequest request = new gcav::UpdateFileRequest
{
File = new gcav::File(),
UpdateMask = new FieldMask(),
};
// Make the request
gcav::File response = await artifactRegistryClient.UpdateFileAsync(request);
UpdatePackage(Package, FieldMask, CallSettings)
public virtual Package UpdatePackage(Package package, FieldMask updateMask, CallSettings callSettings = null)
Updates a package.
Parameters | |
---|---|
Name | Description |
package |
Package The package that replaces the resource on the server. |
updateMask |
FieldMask The update mask applies to the resource. For the |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Package |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::Package package = new gcav::Package();
FieldMask updateMask = new FieldMask();
// Make the request
gcav::Package response = artifactRegistryClient.UpdatePackage(package, updateMask);
UpdatePackage(UpdatePackageRequest, CallSettings)
public virtual Package UpdatePackage(UpdatePackageRequest request, CallSettings callSettings = null)
Updates a package.
Parameters | |
---|---|
Name | Description |
request |
UpdatePackageRequest 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 |
Package |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::UpdatePackageRequest request = new gcav::UpdatePackageRequest
{
Package = new gcav::Package(),
UpdateMask = new FieldMask(),
};
// Make the request
gcav::Package response = artifactRegistryClient.UpdatePackage(request);
UpdatePackageAsync(Package, FieldMask, CallSettings)
public virtual Task<Package> UpdatePackageAsync(Package package, FieldMask updateMask, CallSettings callSettings = null)
Updates a package.
Parameters | |
---|---|
Name | Description |
package |
Package The package that replaces the resource on the server. |
updateMask |
FieldMask The update mask applies to the resource. For the |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskPackage |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::Package package = new gcav::Package();
FieldMask updateMask = new FieldMask();
// Make the request
gcav::Package response = await artifactRegistryClient.UpdatePackageAsync(package, updateMask);
UpdatePackageAsync(Package, FieldMask, CancellationToken)
public virtual Task<Package> UpdatePackageAsync(Package package, FieldMask updateMask, CancellationToken cancellationToken)
Updates a package.
Parameters | |
---|---|
Name | Description |
package |
Package The package that replaces the resource on the server. |
updateMask |
FieldMask The update mask applies to the resource. For the |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskPackage |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::Package package = new gcav::Package();
FieldMask updateMask = new FieldMask();
// Make the request
gcav::Package response = await artifactRegistryClient.UpdatePackageAsync(package, updateMask);
UpdatePackageAsync(UpdatePackageRequest, CallSettings)
public virtual Task<Package> UpdatePackageAsync(UpdatePackageRequest request, CallSettings callSettings = null)
Updates a package.
Parameters | |
---|---|
Name | Description |
request |
UpdatePackageRequest 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 |
TaskPackage |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::UpdatePackageRequest request = new gcav::UpdatePackageRequest
{
Package = new gcav::Package(),
UpdateMask = new FieldMask(),
};
// Make the request
gcav::Package response = await artifactRegistryClient.UpdatePackageAsync(request);
UpdatePackageAsync(UpdatePackageRequest, CancellationToken)
public virtual Task<Package> UpdatePackageAsync(UpdatePackageRequest request, CancellationToken cancellationToken)
Updates a package.
Parameters | |
---|---|
Name | Description |
request |
UpdatePackageRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskPackage |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::UpdatePackageRequest request = new gcav::UpdatePackageRequest
{
Package = new gcav::Package(),
UpdateMask = new FieldMask(),
};
// Make the request
gcav::Package response = await artifactRegistryClient.UpdatePackageAsync(request);
UpdateProjectSettings(ProjectSettings, FieldMask, CallSettings)
public virtual ProjectSettings UpdateProjectSettings(ProjectSettings projectSettings, FieldMask updateMask, CallSettings callSettings = null)
Updates the Settings for the Project.
Parameters | |
---|---|
Name | Description |
projectSettings |
ProjectSettings The project settings. |
updateMask |
FieldMask Field mask to support partial updates. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
ProjectSettings |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::ProjectSettings projectSettings = new gcav::ProjectSettings();
FieldMask updateMask = new FieldMask();
// Make the request
gcav::ProjectSettings response = artifactRegistryClient.UpdateProjectSettings(projectSettings, updateMask);
UpdateProjectSettings(UpdateProjectSettingsRequest, CallSettings)
public virtual ProjectSettings UpdateProjectSettings(UpdateProjectSettingsRequest request, CallSettings callSettings = null)
Updates the Settings for the Project.
Parameters | |
---|---|
Name | Description |
request |
UpdateProjectSettingsRequest 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 |
ProjectSettings |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::UpdateProjectSettingsRequest request = new gcav::UpdateProjectSettingsRequest
{
ProjectSettings = new gcav::ProjectSettings(),
UpdateMask = new FieldMask(),
};
// Make the request
gcav::ProjectSettings response = artifactRegistryClient.UpdateProjectSettings(request);
UpdateProjectSettingsAsync(ProjectSettings, FieldMask, CallSettings)
public virtual Task<ProjectSettings> UpdateProjectSettingsAsync(ProjectSettings projectSettings, FieldMask updateMask, CallSettings callSettings = null)
Updates the Settings for the Project.
Parameters | |
---|---|
Name | Description |
projectSettings |
ProjectSettings The project settings. |
updateMask |
FieldMask Field mask to support partial updates. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskProjectSettings |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ProjectSettings projectSettings = new gcav::ProjectSettings();
FieldMask updateMask = new FieldMask();
// Make the request
gcav::ProjectSettings response = await artifactRegistryClient.UpdateProjectSettingsAsync(projectSettings, updateMask);
UpdateProjectSettingsAsync(ProjectSettings, FieldMask, CancellationToken)
public virtual Task<ProjectSettings> UpdateProjectSettingsAsync(ProjectSettings projectSettings, FieldMask updateMask, CancellationToken cancellationToken)
Updates the Settings for the Project.
Parameters | |
---|---|
Name | Description |
projectSettings |
ProjectSettings The project settings. |
updateMask |
FieldMask Field mask to support partial updates. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskProjectSettings |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::ProjectSettings projectSettings = new gcav::ProjectSettings();
FieldMask updateMask = new FieldMask();
// Make the request
gcav::ProjectSettings response = await artifactRegistryClient.UpdateProjectSettingsAsync(projectSettings, updateMask);
UpdateProjectSettingsAsync(UpdateProjectSettingsRequest, CallSettings)
public virtual Task<ProjectSettings> UpdateProjectSettingsAsync(UpdateProjectSettingsRequest request, CallSettings callSettings = null)
Updates the Settings for the Project.
Parameters | |
---|---|
Name | Description |
request |
UpdateProjectSettingsRequest 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 |
TaskProjectSettings |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::UpdateProjectSettingsRequest request = new gcav::UpdateProjectSettingsRequest
{
ProjectSettings = new gcav::ProjectSettings(),
UpdateMask = new FieldMask(),
};
// Make the request
gcav::ProjectSettings response = await artifactRegistryClient.UpdateProjectSettingsAsync(request);
UpdateProjectSettingsAsync(UpdateProjectSettingsRequest, CancellationToken)
public virtual Task<ProjectSettings> UpdateProjectSettingsAsync(UpdateProjectSettingsRequest request, CancellationToken cancellationToken)
Updates the Settings for the Project.
Parameters | |
---|---|
Name | Description |
request |
UpdateProjectSettingsRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskProjectSettings |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::UpdateProjectSettingsRequest request = new gcav::UpdateProjectSettingsRequest
{
ProjectSettings = new gcav::ProjectSettings(),
UpdateMask = new FieldMask(),
};
// Make the request
gcav::ProjectSettings response = await artifactRegistryClient.UpdateProjectSettingsAsync(request);
UpdateRepository(Repository, FieldMask, CallSettings)
public virtual Repository UpdateRepository(Repository repository, FieldMask updateMask, CallSettings callSettings = null)
Updates a repository.
Parameters | |
---|---|
Name | Description |
repository |
Repository The repository that replaces the resource on the server. |
updateMask |
FieldMask The update mask applies to the resource. For the |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Repository |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::Repository repository = new gcav::Repository();
FieldMask updateMask = new FieldMask();
// Make the request
gcav::Repository response = artifactRegistryClient.UpdateRepository(repository, updateMask);
UpdateRepository(UpdateRepositoryRequest, CallSettings)
public virtual Repository UpdateRepository(UpdateRepositoryRequest request, CallSettings callSettings = null)
Updates a repository.
Parameters | |
---|---|
Name | Description |
request |
UpdateRepositoryRequest 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 |
Repository |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::UpdateRepositoryRequest request = new gcav::UpdateRepositoryRequest
{
Repository = new gcav::Repository(),
UpdateMask = new FieldMask(),
};
// Make the request
gcav::Repository response = artifactRegistryClient.UpdateRepository(request);
UpdateRepositoryAsync(Repository, FieldMask, CallSettings)
public virtual Task<Repository> UpdateRepositoryAsync(Repository repository, FieldMask updateMask, CallSettings callSettings = null)
Updates a repository.
Parameters | |
---|---|
Name | Description |
repository |
Repository The repository that replaces the resource on the server. |
updateMask |
FieldMask The update mask applies to the resource. For the |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskRepository |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::Repository repository = new gcav::Repository();
FieldMask updateMask = new FieldMask();
// Make the request
gcav::Repository response = await artifactRegistryClient.UpdateRepositoryAsync(repository, updateMask);
UpdateRepositoryAsync(Repository, FieldMask, CancellationToken)
public virtual Task<Repository> UpdateRepositoryAsync(Repository repository, FieldMask updateMask, CancellationToken cancellationToken)
Updates a repository.
Parameters | |
---|---|
Name | Description |
repository |
Repository The repository that replaces the resource on the server. |
updateMask |
FieldMask The update mask applies to the resource. For the |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskRepository |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::Repository repository = new gcav::Repository();
FieldMask updateMask = new FieldMask();
// Make the request
gcav::Repository response = await artifactRegistryClient.UpdateRepositoryAsync(repository, updateMask);
UpdateRepositoryAsync(UpdateRepositoryRequest, CallSettings)
public virtual Task<Repository> UpdateRepositoryAsync(UpdateRepositoryRequest request, CallSettings callSettings = null)
Updates a repository.
Parameters | |
---|---|
Name | Description |
request |
UpdateRepositoryRequest 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 |
TaskRepository |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::UpdateRepositoryRequest request = new gcav::UpdateRepositoryRequest
{
Repository = new gcav::Repository(),
UpdateMask = new FieldMask(),
};
// Make the request
gcav::Repository response = await artifactRegistryClient.UpdateRepositoryAsync(request);
UpdateRepositoryAsync(UpdateRepositoryRequest, CancellationToken)
public virtual Task<Repository> UpdateRepositoryAsync(UpdateRepositoryRequest request, CancellationToken cancellationToken)
Updates a repository.
Parameters | |
---|---|
Name | Description |
request |
UpdateRepositoryRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskRepository |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::UpdateRepositoryRequest request = new gcav::UpdateRepositoryRequest
{
Repository = new gcav::Repository(),
UpdateMask = new FieldMask(),
};
// Make the request
gcav::Repository response = await artifactRegistryClient.UpdateRepositoryAsync(request);
UpdateRule(Rule, FieldMask, CallSettings)
public virtual Rule UpdateRule(Rule rule, FieldMask updateMask, CallSettings callSettings = null)
Updates a rule.
Parameters | |
---|---|
Name | Description |
rule |
Rule The rule that replaces the resource on the server. |
updateMask |
FieldMask The update mask applies to the resource. For the |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Rule |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::Rule rule = new gcav::Rule();
FieldMask updateMask = new FieldMask();
// Make the request
gcav::Rule response = artifactRegistryClient.UpdateRule(rule, updateMask);
UpdateRule(UpdateRuleRequest, CallSettings)
public virtual Rule UpdateRule(UpdateRuleRequest request, CallSettings callSettings = null)
Updates a rule.
Parameters | |
---|---|
Name | Description |
request |
UpdateRuleRequest 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 |
Rule |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::UpdateRuleRequest request = new gcav::UpdateRuleRequest
{
Rule = new gcav::Rule(),
UpdateMask = new FieldMask(),
};
// Make the request
gcav::Rule response = artifactRegistryClient.UpdateRule(request);
UpdateRuleAsync(Rule, FieldMask, CallSettings)
public virtual Task<Rule> UpdateRuleAsync(Rule rule, FieldMask updateMask, CallSettings callSettings = null)
Updates a rule.
Parameters | |
---|---|
Name | Description |
rule |
Rule The rule that replaces the resource on the server. |
updateMask |
FieldMask The update mask applies to the resource. For the |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskRule |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::Rule rule = new gcav::Rule();
FieldMask updateMask = new FieldMask();
// Make the request
gcav::Rule response = await artifactRegistryClient.UpdateRuleAsync(rule, updateMask);
UpdateRuleAsync(Rule, FieldMask, CancellationToken)
public virtual Task<Rule> UpdateRuleAsync(Rule rule, FieldMask updateMask, CancellationToken cancellationToken)
Updates a rule.
Parameters | |
---|---|
Name | Description |
rule |
Rule The rule that replaces the resource on the server. |
updateMask |
FieldMask The update mask applies to the resource. For the |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskRule |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::Rule rule = new gcav::Rule();
FieldMask updateMask = new FieldMask();
// Make the request
gcav::Rule response = await artifactRegistryClient.UpdateRuleAsync(rule, updateMask);
UpdateRuleAsync(UpdateRuleRequest, CallSettings)
public virtual Task<Rule> UpdateRuleAsync(UpdateRuleRequest request, CallSettings callSettings = null)
Updates a rule.
Parameters | |
---|---|
Name | Description |
request |
UpdateRuleRequest 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 |
TaskRule |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::UpdateRuleRequest request = new gcav::UpdateRuleRequest
{
Rule = new gcav::Rule(),
UpdateMask = new FieldMask(),
};
// Make the request
gcav::Rule response = await artifactRegistryClient.UpdateRuleAsync(request);
UpdateRuleAsync(UpdateRuleRequest, CancellationToken)
public virtual Task<Rule> UpdateRuleAsync(UpdateRuleRequest request, CancellationToken cancellationToken)
Updates a rule.
Parameters | |
---|---|
Name | Description |
request |
UpdateRuleRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskRule |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::UpdateRuleRequest request = new gcav::UpdateRuleRequest
{
Rule = new gcav::Rule(),
UpdateMask = new FieldMask(),
};
// Make the request
gcav::Rule response = await artifactRegistryClient.UpdateRuleAsync(request);
UpdateTag(Tag, FieldMask, CallSettings)
public virtual Tag UpdateTag(Tag tag, FieldMask updateMask, CallSettings callSettings = null)
Updates a tag.
Parameters | |
---|---|
Name | Description |
tag |
Tag The tag that replaces the resource on the server. |
updateMask |
FieldMask The update mask applies to the resource. For the |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Tag |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::Tag tag = new gcav::Tag();
FieldMask updateMask = new FieldMask();
// Make the request
gcav::Tag response = artifactRegistryClient.UpdateTag(tag, updateMask);
UpdateTag(UpdateTagRequest, CallSettings)
public virtual Tag UpdateTag(UpdateTagRequest request, CallSettings callSettings = null)
Updates a tag.
Parameters | |
---|---|
Name | Description |
request |
UpdateTagRequest 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 |
Tag |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::UpdateTagRequest request = new gcav::UpdateTagRequest
{
Tag = new gcav::Tag(),
UpdateMask = new FieldMask(),
};
// Make the request
gcav::Tag response = artifactRegistryClient.UpdateTag(request);
UpdateTagAsync(Tag, FieldMask, CallSettings)
public virtual Task<Tag> UpdateTagAsync(Tag tag, FieldMask updateMask, CallSettings callSettings = null)
Updates a tag.
Parameters | |
---|---|
Name | Description |
tag |
Tag The tag that replaces the resource on the server. |
updateMask |
FieldMask The update mask applies to the resource. For the |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskTag |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::Tag tag = new gcav::Tag();
FieldMask updateMask = new FieldMask();
// Make the request
gcav::Tag response = await artifactRegistryClient.UpdateTagAsync(tag, updateMask);
UpdateTagAsync(Tag, FieldMask, CancellationToken)
public virtual Task<Tag> UpdateTagAsync(Tag tag, FieldMask updateMask, CancellationToken cancellationToken)
Updates a tag.
Parameters | |
---|---|
Name | Description |
tag |
Tag The tag that replaces the resource on the server. |
updateMask |
FieldMask The update mask applies to the resource. For the |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskTag |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::Tag tag = new gcav::Tag();
FieldMask updateMask = new FieldMask();
// Make the request
gcav::Tag response = await artifactRegistryClient.UpdateTagAsync(tag, updateMask);
UpdateTagAsync(UpdateTagRequest, CallSettings)
public virtual Task<Tag> UpdateTagAsync(UpdateTagRequest request, CallSettings callSettings = null)
Updates a tag.
Parameters | |
---|---|
Name | Description |
request |
UpdateTagRequest 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 |
TaskTag |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::UpdateTagRequest request = new gcav::UpdateTagRequest
{
Tag = new gcav::Tag(),
UpdateMask = new FieldMask(),
};
// Make the request
gcav::Tag response = await artifactRegistryClient.UpdateTagAsync(request);
UpdateTagAsync(UpdateTagRequest, CancellationToken)
public virtual Task<Tag> UpdateTagAsync(UpdateTagRequest request, CancellationToken cancellationToken)
Updates a tag.
Parameters | |
---|---|
Name | Description |
request |
UpdateTagRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskTag |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::UpdateTagRequest request = new gcav::UpdateTagRequest
{
Tag = new gcav::Tag(),
UpdateMask = new FieldMask(),
};
// Make the request
gcav::Tag response = await artifactRegistryClient.UpdateTagAsync(request);
UpdateVPCSCConfig(UpdateVPCSCConfigRequest, CallSettings)
public virtual VPCSCConfig UpdateVPCSCConfig(UpdateVPCSCConfigRequest request, CallSettings callSettings = null)
Updates the VPCSC Config for the Project.
Parameters | |
---|---|
Name | Description |
request |
UpdateVPCSCConfigRequest 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 |
VPCSCConfig |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::UpdateVPCSCConfigRequest request = new gcav::UpdateVPCSCConfigRequest
{
VpcscConfig = new gcav::VPCSCConfig(),
UpdateMask = new FieldMask(),
};
// Make the request
gcav::VPCSCConfig response = artifactRegistryClient.UpdateVPCSCConfig(request);
UpdateVPCSCConfig(VPCSCConfig, FieldMask, CallSettings)
public virtual VPCSCConfig UpdateVPCSCConfig(VPCSCConfig vpcscConfig, FieldMask updateMask, CallSettings callSettings = null)
Updates the VPCSC Config for the Project.
Parameters | |
---|---|
Name | Description |
vpcscConfig |
VPCSCConfig The project config. |
updateMask |
FieldMask Field mask to support partial updates. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
VPCSCConfig |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::VPCSCConfig vpcscConfig = new gcav::VPCSCConfig();
FieldMask updateMask = new FieldMask();
// Make the request
gcav::VPCSCConfig response = artifactRegistryClient.UpdateVPCSCConfig(vpcscConfig, updateMask);
UpdateVPCSCConfigAsync(UpdateVPCSCConfigRequest, CallSettings)
public virtual Task<VPCSCConfig> UpdateVPCSCConfigAsync(UpdateVPCSCConfigRequest request, CallSettings callSettings = null)
Updates the VPCSC Config for the Project.
Parameters | |
---|---|
Name | Description |
request |
UpdateVPCSCConfigRequest 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 |
TaskVPCSCConfig |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::UpdateVPCSCConfigRequest request = new gcav::UpdateVPCSCConfigRequest
{
VpcscConfig = new gcav::VPCSCConfig(),
UpdateMask = new FieldMask(),
};
// Make the request
gcav::VPCSCConfig response = await artifactRegistryClient.UpdateVPCSCConfigAsync(request);
UpdateVPCSCConfigAsync(UpdateVPCSCConfigRequest, CancellationToken)
public virtual Task<VPCSCConfig> UpdateVPCSCConfigAsync(UpdateVPCSCConfigRequest request, CancellationToken cancellationToken)
Updates the VPCSC Config for the Project.
Parameters | |
---|---|
Name | Description |
request |
UpdateVPCSCConfigRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskVPCSCConfig |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::UpdateVPCSCConfigRequest request = new gcav::UpdateVPCSCConfigRequest
{
VpcscConfig = new gcav::VPCSCConfig(),
UpdateMask = new FieldMask(),
};
// Make the request
gcav::VPCSCConfig response = await artifactRegistryClient.UpdateVPCSCConfigAsync(request);
UpdateVPCSCConfigAsync(VPCSCConfig, FieldMask, CallSettings)
public virtual Task<VPCSCConfig> UpdateVPCSCConfigAsync(VPCSCConfig vpcscConfig, FieldMask updateMask, CallSettings callSettings = null)
Updates the VPCSC Config for the Project.
Parameters | |
---|---|
Name | Description |
vpcscConfig |
VPCSCConfig The project config. |
updateMask |
FieldMask Field mask to support partial updates. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskVPCSCConfig |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::VPCSCConfig vpcscConfig = new gcav::VPCSCConfig();
FieldMask updateMask = new FieldMask();
// Make the request
gcav::VPCSCConfig response = await artifactRegistryClient.UpdateVPCSCConfigAsync(vpcscConfig, updateMask);
UpdateVPCSCConfigAsync(VPCSCConfig, FieldMask, CancellationToken)
public virtual Task<VPCSCConfig> UpdateVPCSCConfigAsync(VPCSCConfig vpcscConfig, FieldMask updateMask, CancellationToken cancellationToken)
Updates the VPCSC Config for the Project.
Parameters | |
---|---|
Name | Description |
vpcscConfig |
VPCSCConfig The project config. |
updateMask |
FieldMask Field mask to support partial updates. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskVPCSCConfig |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::VPCSCConfig vpcscConfig = new gcav::VPCSCConfig();
FieldMask updateMask = new FieldMask();
// Make the request
gcav::VPCSCConfig response = await artifactRegistryClient.UpdateVPCSCConfigAsync(vpcscConfig, updateMask);
UpdateVersion(UpdateVersionRequest, CallSettings)
public virtual Version UpdateVersion(UpdateVersionRequest request, CallSettings callSettings = null)
Updates a version.
Parameters | |
---|---|
Name | Description |
request |
UpdateVersionRequest 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 |
Version |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::UpdateVersionRequest request = new gcav::UpdateVersionRequest
{
Version = new gcav::Version(),
UpdateMask = new FieldMask(),
};
// Make the request
gcav::Version response = artifactRegistryClient.UpdateVersion(request);
UpdateVersion(Version, FieldMask, CallSettings)
public virtual Version UpdateVersion(Version version, FieldMask updateMask, CallSettings callSettings = null)
Updates a version.
Parameters | |
---|---|
Name | Description |
version |
Version Required. The Version that replaces the resource on the server. |
updateMask |
FieldMask The update mask applies to the resource. For the |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Version |
The RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = gcav::ArtifactRegistryClient.Create();
// Initialize request argument(s)
gcav::Version version = new gcav::Version();
FieldMask updateMask = new FieldMask();
// Make the request
gcav::Version response = artifactRegistryClient.UpdateVersion(version, updateMask);
UpdateVersionAsync(UpdateVersionRequest, CallSettings)
public virtual Task<Version> UpdateVersionAsync(UpdateVersionRequest request, CallSettings callSettings = null)
Updates a version.
Parameters | |
---|---|
Name | Description |
request |
UpdateVersionRequest 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 |
TaskVersion |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::UpdateVersionRequest request = new gcav::UpdateVersionRequest
{
Version = new gcav::Version(),
UpdateMask = new FieldMask(),
};
// Make the request
gcav::Version response = await artifactRegistryClient.UpdateVersionAsync(request);
UpdateVersionAsync(UpdateVersionRequest, CancellationToken)
public virtual Task<Version> UpdateVersionAsync(UpdateVersionRequest request, CancellationToken cancellationToken)
Updates a version.
Parameters | |
---|---|
Name | Description |
request |
UpdateVersionRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskVersion |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::UpdateVersionRequest request = new gcav::UpdateVersionRequest
{
Version = new gcav::Version(),
UpdateMask = new FieldMask(),
};
// Make the request
gcav::Version response = await artifactRegistryClient.UpdateVersionAsync(request);
UpdateVersionAsync(Version, FieldMask, CallSettings)
public virtual Task<Version> UpdateVersionAsync(Version version, FieldMask updateMask, CallSettings callSettings = null)
Updates a version.
Parameters | |
---|---|
Name | Description |
version |
Version Required. The Version that replaces the resource on the server. |
updateMask |
FieldMask The update mask applies to the resource. For the |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskVersion |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::Version version = new gcav::Version();
FieldMask updateMask = new FieldMask();
// Make the request
gcav::Version response = await artifactRegistryClient.UpdateVersionAsync(version, updateMask);
UpdateVersionAsync(Version, FieldMask, CancellationToken)
public virtual Task<Version> UpdateVersionAsync(Version version, FieldMask updateMask, CancellationToken cancellationToken)
Updates a version.
Parameters | |
---|---|
Name | Description |
version |
Version Required. The Version that replaces the resource on the server. |
updateMask |
FieldMask The update mask applies to the resource. For the |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskVersion |
A Task containing the RPC response. |
// Create client
gcav::ArtifactRegistryClient artifactRegistryClient = await gcav::ArtifactRegistryClient.CreateAsync();
// Initialize request argument(s)
gcav::Version version = new gcav::Version();
FieldMask updateMask = new FieldMask();
// Make the request
gcav::Version response = await artifactRegistryClient.UpdateVersionAsync(version, updateMask);