pub struct ProjectMethods<'a, C>where
C: 'a,{ /* private fields */ }Expand description
A builder providing access to all methods supported on project resources.
It is not used directly, but through the ArtifactRegistry hub.
§Example
Instantiate a resource builder
extern crate hyper;
extern crate hyper_rustls;
extern crate google_artifactregistry1 as artifactregistry1;
use artifactregistry1::{ArtifactRegistry, FieldMask, hyper_rustls, hyper_util, yup_oauth2};
let secret: yup_oauth2::ApplicationSecret = Default::default();
let connector = hyper_rustls::HttpsConnectorBuilder::new()
.with_native_roots()
.unwrap()
.https_only()
.enable_http2()
.build();
let executor = hyper_util::rt::TokioExecutor::new();
let auth = yup_oauth2::InstalledFlowAuthenticator::with_client(
secret,
yup_oauth2::InstalledFlowReturnMethod::HTTPRedirect,
yup_oauth2::client::CustomHyperClientBuilder::from(
hyper_util::client::legacy::Client::builder(executor).build(connector),
),
).build().await.unwrap();
let client = hyper_util::client::legacy::Client::builder(
hyper_util::rt::TokioExecutor::new()
)
.build(
hyper_rustls::HttpsConnectorBuilder::new()
.with_native_roots()
.unwrap()
.https_or_http()
.enable_http2()
.build()
);
let mut hub = ArtifactRegistry::new(client, auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `get_project_settings(...)`, `locations_get(...)`, `locations_get_vpcsc_config(...)`, `locations_list(...)`, `locations_operations_get(...)`, `locations_repositories_apt_artifacts_import(...)`, `locations_repositories_apt_artifacts_upload(...)`, `locations_repositories_attachments_create(...)`, `locations_repositories_attachments_delete(...)`, `locations_repositories_attachments_get(...)`, `locations_repositories_attachments_list(...)`, `locations_repositories_create(...)`, `locations_repositories_delete(...)`, `locations_repositories_docker_images_get(...)`, `locations_repositories_docker_images_list(...)`, `locations_repositories_export_artifact(...)`, `locations_repositories_files_delete(...)`, `locations_repositories_files_download(...)`, `locations_repositories_files_get(...)`, `locations_repositories_files_list(...)`, `locations_repositories_files_patch(...)`, `locations_repositories_files_upload(...)`, `locations_repositories_generic_artifacts_upload(...)`, `locations_repositories_get(...)`, `locations_repositories_get_iam_policy(...)`, `locations_repositories_go_modules_upload(...)`, `locations_repositories_googet_artifacts_import(...)`, `locations_repositories_googet_artifacts_upload(...)`, `locations_repositories_kfp_artifacts_upload(...)`, `locations_repositories_list(...)`, `locations_repositories_maven_artifacts_get(...)`, `locations_repositories_maven_artifacts_list(...)`, `locations_repositories_npm_packages_get(...)`, `locations_repositories_npm_packages_list(...)`, `locations_repositories_packages_delete(...)`, `locations_repositories_packages_get(...)`, `locations_repositories_packages_list(...)`, `locations_repositories_packages_patch(...)`, `locations_repositories_packages_tags_create(...)`, `locations_repositories_packages_tags_delete(...)`, `locations_repositories_packages_tags_get(...)`, `locations_repositories_packages_tags_list(...)`, `locations_repositories_packages_tags_patch(...)`, `locations_repositories_packages_versions_batch_delete(...)`, `locations_repositories_packages_versions_delete(...)`, `locations_repositories_packages_versions_get(...)`, `locations_repositories_packages_versions_list(...)`, `locations_repositories_packages_versions_patch(...)`, `locations_repositories_patch(...)`, `locations_repositories_python_packages_get(...)`, `locations_repositories_python_packages_list(...)`, `locations_repositories_rules_create(...)`, `locations_repositories_rules_delete(...)`, `locations_repositories_rules_get(...)`, `locations_repositories_rules_list(...)`, `locations_repositories_rules_patch(...)`, `locations_repositories_set_iam_policy(...)`, `locations_repositories_test_iam_permissions(...)`, `locations_repositories_yum_artifacts_import(...)`, `locations_repositories_yum_artifacts_upload(...)`, `locations_update_vpcsc_config(...)` and `update_project_settings(...)`
// to build up your call.
let rb = hub.projects();Implementations§
Source§impl<'a, C> ProjectMethods<'a, C>
impl<'a, C> ProjectMethods<'a, C>
Sourcepub fn locations_operations_get(
&self,
name: &str,
) -> ProjectLocationOperationGetCall<'a, C>
pub fn locations_operations_get( &self, name: &str, ) -> ProjectLocationOperationGetCall<'a, C>
Create a builder to help you perform the following task:
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
§Arguments
name- The name of the operation resource.
Sourcepub fn locations_repositories_apt_artifacts_import(
&self,
request: ImportAptArtifactsRequest,
parent: &str,
) -> ProjectLocationRepositoryAptArtifactImportCall<'a, C>
pub fn locations_repositories_apt_artifacts_import( &self, request: ImportAptArtifactsRequest, parent: &str, ) -> ProjectLocationRepositoryAptArtifactImportCall<'a, C>
Create a builder to help you perform the following task:
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.
§Arguments
request- No description provided.parent- The name of the parent resource where the artifacts will be imported.
Sourcepub fn locations_repositories_apt_artifacts_upload(
&self,
request: UploadAptArtifactRequest,
parent: &str,
) -> ProjectLocationRepositoryAptArtifactUploadCall<'a, C>
pub fn locations_repositories_apt_artifacts_upload( &self, request: UploadAptArtifactRequest, parent: &str, ) -> ProjectLocationRepositoryAptArtifactUploadCall<'a, C>
Create a builder to help you perform the following task:
Directly uploads an Apt artifact. The returned Operation will complete once the resources are uploaded. Package, Version, and File resources are created based on the imported artifact. Imported artifacts that conflict with existing resources are ignored.
§Arguments
request- No description provided.parent- The name of the parent resource where the artifacts will be uploaded.
Sourcepub fn locations_repositories_attachments_create(
&self,
request: Attachment,
parent: &str,
) -> ProjectLocationRepositoryAttachmentCreateCall<'a, C>
pub fn locations_repositories_attachments_create( &self, request: Attachment, parent: &str, ) -> ProjectLocationRepositoryAttachmentCreateCall<'a, C>
Create a builder to help you perform the following task:
Creates an attachment. The returned Operation will finish once the attachment has been created. Its response will be the created attachment.
§Arguments
request- No description provided.parent- Required. The name of the parent resource where the attachment will be created.
Sourcepub fn locations_repositories_attachments_delete(
&self,
name: &str,
) -> ProjectLocationRepositoryAttachmentDeleteCall<'a, C>
pub fn locations_repositories_attachments_delete( &self, name: &str, ) -> ProjectLocationRepositoryAttachmentDeleteCall<'a, C>
Create a builder to help you perform the following task:
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.
§Arguments
name- Required. The name of the attachment to delete.
Sourcepub fn locations_repositories_attachments_get(
&self,
name: &str,
) -> ProjectLocationRepositoryAttachmentGetCall<'a, C>
pub fn locations_repositories_attachments_get( &self, name: &str, ) -> ProjectLocationRepositoryAttachmentGetCall<'a, C>
Create a builder to help you perform the following task:
Gets an attachment.
§Arguments
name- Required. The name of the attachment to retrieve.
Sourcepub fn locations_repositories_attachments_list(
&self,
parent: &str,
) -> ProjectLocationRepositoryAttachmentListCall<'a, C>
pub fn locations_repositories_attachments_list( &self, parent: &str, ) -> ProjectLocationRepositoryAttachmentListCall<'a, C>
Create a builder to help you perform the following task:
Lists attachments.
§Arguments
parent- Required. The name of the parent resource whose attachments will be listed.
Sourcepub fn locations_repositories_docker_images_get(
&self,
name: &str,
) -> ProjectLocationRepositoryDockerImageGetCall<'a, C>
pub fn locations_repositories_docker_images_get( &self, name: &str, ) -> ProjectLocationRepositoryDockerImageGetCall<'a, C>
Create a builder to help you perform the following task:
Gets a docker image.
§Arguments
name- Required. The name of the docker images.
Sourcepub fn locations_repositories_docker_images_list(
&self,
parent: &str,
) -> ProjectLocationRepositoryDockerImageListCall<'a, C>
pub fn locations_repositories_docker_images_list( &self, parent: &str, ) -> ProjectLocationRepositoryDockerImageListCall<'a, C>
Create a builder to help you perform the following task:
Lists docker images.
§Arguments
parent- Required. The name of the parent resource whose docker images will be listed.
Sourcepub fn locations_repositories_files_delete(
&self,
name: &str,
) -> ProjectLocationRepositoryFileDeleteCall<'a, C>
pub fn locations_repositories_files_delete( &self, name: &str, ) -> ProjectLocationRepositoryFileDeleteCall<'a, C>
Create a builder to help you perform the following task:
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.
§Arguments
name- Required. The name of the file to delete.
Sourcepub fn locations_repositories_files_download(
&self,
name: &str,
) -> ProjectLocationRepositoryFileDownloadCall<'a, C>
pub fn locations_repositories_files_download( &self, name: &str, ) -> ProjectLocationRepositoryFileDownloadCall<'a, C>
Create a builder to help you perform the following task:
Download a file.
§Arguments
name- Required. The name of the file to download.
Sourcepub fn locations_repositories_files_get(
&self,
name: &str,
) -> ProjectLocationRepositoryFileGetCall<'a, C>
pub fn locations_repositories_files_get( &self, name: &str, ) -> ProjectLocationRepositoryFileGetCall<'a, C>
Create a builder to help you perform the following task:
Gets a file.
§Arguments
name- Required. The name of the file to retrieve.
Sourcepub fn locations_repositories_files_list(
&self,
parent: &str,
) -> ProjectLocationRepositoryFileListCall<'a, C>
pub fn locations_repositories_files_list( &self, parent: &str, ) -> ProjectLocationRepositoryFileListCall<'a, C>
Create a builder to help you perform the following task:
Lists files.
§Arguments
parent- Required. The name of the repository whose files will be listed. For example: “projects/p1/locations/us-central1/repositories/repo1
Sourcepub fn locations_repositories_files_patch(
&self,
request: GoogleDevtoolsArtifactregistryV1File,
name: &str,
) -> ProjectLocationRepositoryFilePatchCall<'a, C>
pub fn locations_repositories_files_patch( &self, request: GoogleDevtoolsArtifactregistryV1File, name: &str, ) -> ProjectLocationRepositoryFilePatchCall<'a, C>
Create a builder to help you perform the following task:
Updates a file.
§Arguments
request- No description provided.name- The name of the file, for example:projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt. If the file ID part contains slashes, they are escaped.
Sourcepub fn locations_repositories_files_upload(
&self,
request: UploadFileRequest,
parent: &str,
) -> ProjectLocationRepositoryFileUploadCall<'a, C>
pub fn locations_repositories_files_upload( &self, request: UploadFileRequest, parent: &str, ) -> ProjectLocationRepositoryFileUploadCall<'a, C>
Create a builder to help you perform the following task:
Directly uploads a file to a repository. The returned Operation will complete once the resources are uploaded.
§Arguments
request- No description provided.parent- Required. The resource name of the repository where the file will be uploaded.
Sourcepub fn locations_repositories_generic_artifacts_upload(
&self,
request: UploadGenericArtifactRequest,
parent: &str,
) -> ProjectLocationRepositoryGenericArtifactUploadCall<'a, C>
pub fn locations_repositories_generic_artifacts_upload( &self, request: UploadGenericArtifactRequest, parent: &str, ) -> ProjectLocationRepositoryGenericArtifactUploadCall<'a, C>
Create a builder to help you perform the following task:
Directly uploads a Generic artifact. The returned operation will complete once the resources are uploaded. Package, version, and file resources are created based on the uploaded artifact. Uploaded artifacts that conflict with existing resources will raise an ALREADY_EXISTS error.
§Arguments
request- No description provided.parent- The resource name of the repository where the generic artifact will be uploaded.
Sourcepub fn locations_repositories_go_modules_upload(
&self,
request: UploadGoModuleRequest,
parent: &str,
) -> ProjectLocationRepositoryGoModuleUploadCall<'a, C>
pub fn locations_repositories_go_modules_upload( &self, request: UploadGoModuleRequest, parent: &str, ) -> ProjectLocationRepositoryGoModuleUploadCall<'a, C>
Create a builder to help you perform the following task:
Directly uploads a Go module. The returned Operation will complete once the Go module is uploaded. Package, Version, and File resources are created based on the uploaded Go module.
§Arguments
request- No description provided.parent- The resource name of the repository where the Go module will be uploaded.
Sourcepub fn locations_repositories_googet_artifacts_import(
&self,
request: ImportGoogetArtifactsRequest,
parent: &str,
) -> ProjectLocationRepositoryGoogetArtifactImportCall<'a, C>
pub fn locations_repositories_googet_artifacts_import( &self, request: ImportGoogetArtifactsRequest, parent: &str, ) -> ProjectLocationRepositoryGoogetArtifactImportCall<'a, C>
Create a builder to help you perform the following task:
Imports GooGet 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.
§Arguments
request- No description provided.parent- The name of the parent resource where the artifacts will be imported.
Sourcepub fn locations_repositories_googet_artifacts_upload(
&self,
request: UploadGoogetArtifactRequest,
parent: &str,
) -> ProjectLocationRepositoryGoogetArtifactUploadCall<'a, C>
pub fn locations_repositories_googet_artifacts_upload( &self, request: UploadGoogetArtifactRequest, parent: &str, ) -> ProjectLocationRepositoryGoogetArtifactUploadCall<'a, C>
Create a builder to help you perform the following task:
Directly uploads a GooGet artifact. The returned Operation will complete once the resources are uploaded. Package, Version, and File resources are created based on the imported artifact. Imported artifacts that conflict with existing resources are ignored.
§Arguments
request- No description provided.parent- The name of the parent resource where the artifacts will be uploaded.
Sourcepub fn locations_repositories_kfp_artifacts_upload(
&self,
request: UploadKfpArtifactRequest,
parent: &str,
) -> ProjectLocationRepositoryKfpArtifactUploadCall<'a, C>
pub fn locations_repositories_kfp_artifacts_upload( &self, request: UploadKfpArtifactRequest, parent: &str, ) -> ProjectLocationRepositoryKfpArtifactUploadCall<'a, C>
Create a builder to help you perform the following task:
Directly uploads a KFP artifact. The returned Operation will complete once the resource is uploaded. Package, Version, and File resources will be created based on the uploaded artifact. Uploaded artifacts that conflict with existing resources will be overwritten.
§Arguments
request- No description provided.parent- The resource name of the repository where the KFP artifact will be uploaded.
Sourcepub fn locations_repositories_maven_artifacts_get(
&self,
name: &str,
) -> ProjectLocationRepositoryMavenArtifactGetCall<'a, C>
pub fn locations_repositories_maven_artifacts_get( &self, name: &str, ) -> ProjectLocationRepositoryMavenArtifactGetCall<'a, C>
Create a builder to help you perform the following task:
Gets a maven artifact.
§Arguments
name- Required. The name of the maven artifact.
Sourcepub fn locations_repositories_maven_artifacts_list(
&self,
parent: &str,
) -> ProjectLocationRepositoryMavenArtifactListCall<'a, C>
pub fn locations_repositories_maven_artifacts_list( &self, parent: &str, ) -> ProjectLocationRepositoryMavenArtifactListCall<'a, C>
Create a builder to help you perform the following task:
Lists maven artifacts.
§Arguments
parent- Required. The name of the parent resource whose maven artifacts will be listed.
Sourcepub fn locations_repositories_npm_packages_get(
&self,
name: &str,
) -> ProjectLocationRepositoryNpmPackageGetCall<'a, C>
pub fn locations_repositories_npm_packages_get( &self, name: &str, ) -> ProjectLocationRepositoryNpmPackageGetCall<'a, C>
Create a builder to help you perform the following task:
Gets a npm package.
§Arguments
name- Required. The name of the npm package.
Sourcepub fn locations_repositories_npm_packages_list(
&self,
parent: &str,
) -> ProjectLocationRepositoryNpmPackageListCall<'a, C>
pub fn locations_repositories_npm_packages_list( &self, parent: &str, ) -> ProjectLocationRepositoryNpmPackageListCall<'a, C>
Create a builder to help you perform the following task:
Lists npm packages.
§Arguments
parent- Required. The name of the parent resource whose npm packages will be listed.
Create a builder to help you perform the following task:
Creates a tag.
§Arguments
request- No description provided.parent- The name of the parent resource where the tag will be created.
Create a builder to help you perform the following task:
Deletes a tag.
§Arguments
name- The name of the tag to delete.
Create a builder to help you perform the following task:
Gets a tag.
§Arguments
name- The name of the tag to retrieve.
Create a builder to help you perform the following task:
Lists tags.
§Arguments
parent- The name of the parent package whose tags will be listed. For example:projects/p1/locations/us-central1/repositories/repo1/packages/pkg1.
Create a builder to help you perform the following task:
Updates a tag.
§Arguments
request- No description provided.name- The name of the tag, for example: “projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/tags/tag1”. If the package part contains slashes, the slashes are escaped. The tag part can only have characters in [a-zA-Z0-9-._~:@], anything else must be URL encoded.
Sourcepub fn locations_repositories_packages_versions_batch_delete(
&self,
request: BatchDeleteVersionsRequest,
parent: &str,
) -> ProjectLocationRepositoryPackageVersionBatchDeleteCall<'a, C>
pub fn locations_repositories_packages_versions_batch_delete( &self, request: BatchDeleteVersionsRequest, parent: &str, ) -> ProjectLocationRepositoryPackageVersionBatchDeleteCall<'a, C>
Create a builder to help you perform the following task:
Deletes multiple versions across a repository. The returned operation will complete once the versions have been deleted.
§Arguments
request- No description provided.parent- The name of the repository holding all requested versions.
Sourcepub fn locations_repositories_packages_versions_delete(
&self,
name: &str,
) -> ProjectLocationRepositoryPackageVersionDeleteCall<'a, C>
pub fn locations_repositories_packages_versions_delete( &self, name: &str, ) -> ProjectLocationRepositoryPackageVersionDeleteCall<'a, C>
Create a builder to help you perform the following task:
Deletes a version and all of its content. The returned operation will complete once the version has been deleted.
§Arguments
name- The name of the version to delete.
Sourcepub fn locations_repositories_packages_versions_get(
&self,
name: &str,
) -> ProjectLocationRepositoryPackageVersionGetCall<'a, C>
pub fn locations_repositories_packages_versions_get( &self, name: &str, ) -> ProjectLocationRepositoryPackageVersionGetCall<'a, C>
Create a builder to help you perform the following task:
Gets a version
§Arguments
name- The name of the version to retrieve.
Sourcepub fn locations_repositories_packages_versions_list(
&self,
parent: &str,
) -> ProjectLocationRepositoryPackageVersionListCall<'a, C>
pub fn locations_repositories_packages_versions_list( &self, parent: &str, ) -> ProjectLocationRepositoryPackageVersionListCall<'a, C>
Create a builder to help you perform the following task:
Lists versions.
§Arguments
parent- The name of the parent resource whose versions will be listed.
Sourcepub fn locations_repositories_packages_versions_patch(
&self,
request: Version,
name: &str,
) -> ProjectLocationRepositoryPackageVersionPatchCall<'a, C>
pub fn locations_repositories_packages_versions_patch( &self, request: Version, name: &str, ) -> ProjectLocationRepositoryPackageVersionPatchCall<'a, C>
Create a builder to help you perform the following task:
Updates a version.
§Arguments
request- No description provided.name- The name of the version, for example:projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/art1. If the package or version ID parts contain slashes, the slashes are escaped.
Sourcepub fn locations_repositories_packages_delete(
&self,
name: &str,
) -> ProjectLocationRepositoryPackageDeleteCall<'a, C>
pub fn locations_repositories_packages_delete( &self, name: &str, ) -> ProjectLocationRepositoryPackageDeleteCall<'a, C>
Create a builder to help you perform the following task:
Deletes a package and all of its versions and tags. The returned operation will complete once the package has been deleted.
§Arguments
name- Required. The name of the package to delete.
Sourcepub fn locations_repositories_packages_get(
&self,
name: &str,
) -> ProjectLocationRepositoryPackageGetCall<'a, C>
pub fn locations_repositories_packages_get( &self, name: &str, ) -> ProjectLocationRepositoryPackageGetCall<'a, C>
Create a builder to help you perform the following task:
Gets a package.
§Arguments
name- Required. The name of the package to retrieve.
Sourcepub fn locations_repositories_packages_list(
&self,
parent: &str,
) -> ProjectLocationRepositoryPackageListCall<'a, C>
pub fn locations_repositories_packages_list( &self, parent: &str, ) -> ProjectLocationRepositoryPackageListCall<'a, C>
Create a builder to help you perform the following task:
Lists packages.
§Arguments
parent- Required. The name of the parent resource whose packages will be listed.
Sourcepub fn locations_repositories_packages_patch(
&self,
request: Package,
name: &str,
) -> ProjectLocationRepositoryPackagePatchCall<'a, C>
pub fn locations_repositories_packages_patch( &self, request: Package, name: &str, ) -> ProjectLocationRepositoryPackagePatchCall<'a, C>
Create a builder to help you perform the following task:
Updates a package.
§Arguments
request- No description provided.name- The name of the package, for example:projects/p1/locations/us-central1/repositories/repo1/packages/pkg1. If the package ID part contains slashes, the slashes are escaped.
Sourcepub fn locations_repositories_python_packages_get(
&self,
name: &str,
) -> ProjectLocationRepositoryPythonPackageGetCall<'a, C>
pub fn locations_repositories_python_packages_get( &self, name: &str, ) -> ProjectLocationRepositoryPythonPackageGetCall<'a, C>
Create a builder to help you perform the following task:
Gets a python package.
§Arguments
name- Required. The name of the python package.
Sourcepub fn locations_repositories_python_packages_list(
&self,
parent: &str,
) -> ProjectLocationRepositoryPythonPackageListCall<'a, C>
pub fn locations_repositories_python_packages_list( &self, parent: &str, ) -> ProjectLocationRepositoryPythonPackageListCall<'a, C>
Create a builder to help you perform the following task:
Lists python packages.
§Arguments
parent- Required. The name of the parent resource whose python packages will be listed.
Sourcepub fn locations_repositories_rules_create(
&self,
request: GoogleDevtoolsArtifactregistryV1Rule,
parent: &str,
) -> ProjectLocationRepositoryRuleCreateCall<'a, C>
pub fn locations_repositories_rules_create( &self, request: GoogleDevtoolsArtifactregistryV1Rule, parent: &str, ) -> ProjectLocationRepositoryRuleCreateCall<'a, C>
Create a builder to help you perform the following task:
Creates a rule.
§Arguments
request- No description provided.parent- Required. The name of the parent resource where the rule will be created.
Sourcepub fn locations_repositories_rules_delete(
&self,
name: &str,
) -> ProjectLocationRepositoryRuleDeleteCall<'a, C>
pub fn locations_repositories_rules_delete( &self, name: &str, ) -> ProjectLocationRepositoryRuleDeleteCall<'a, C>
Create a builder to help you perform the following task:
Deletes a rule.
§Arguments
name- Required. The name of the rule to delete.
Sourcepub fn locations_repositories_rules_get(
&self,
name: &str,
) -> ProjectLocationRepositoryRuleGetCall<'a, C>
pub fn locations_repositories_rules_get( &self, name: &str, ) -> ProjectLocationRepositoryRuleGetCall<'a, C>
Create a builder to help you perform the following task:
Gets a rule.
§Arguments
name- Required. The name of the rule to retrieve.
Sourcepub fn locations_repositories_rules_list(
&self,
parent: &str,
) -> ProjectLocationRepositoryRuleListCall<'a, C>
pub fn locations_repositories_rules_list( &self, parent: &str, ) -> ProjectLocationRepositoryRuleListCall<'a, C>
Create a builder to help you perform the following task:
Lists rules.
§Arguments
parent- Required. The name of the parent repository whose rules will be listed. For example:projects/p1/locations/us-central1/repositories/repo1.
Sourcepub fn locations_repositories_rules_patch(
&self,
request: GoogleDevtoolsArtifactregistryV1Rule,
name: &str,
) -> ProjectLocationRepositoryRulePatchCall<'a, C>
pub fn locations_repositories_rules_patch( &self, request: GoogleDevtoolsArtifactregistryV1Rule, name: &str, ) -> ProjectLocationRepositoryRulePatchCall<'a, C>
Create a builder to help you perform the following task:
Updates a rule.
§Arguments
request- No description provided.name- The name of the rule, for example:projects/p1/locations/us-central1/repositories/repo1/rules/rule1.
Sourcepub fn locations_repositories_yum_artifacts_import(
&self,
request: ImportYumArtifactsRequest,
parent: &str,
) -> ProjectLocationRepositoryYumArtifactImportCall<'a, C>
pub fn locations_repositories_yum_artifacts_import( &self, request: ImportYumArtifactsRequest, parent: &str, ) -> ProjectLocationRepositoryYumArtifactImportCall<'a, C>
Create a builder to help you perform the following task:
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.
§Arguments
request- No description provided.parent- The name of the parent resource where the artifacts will be imported.
Sourcepub fn locations_repositories_yum_artifacts_upload(
&self,
request: UploadYumArtifactRequest,
parent: &str,
) -> ProjectLocationRepositoryYumArtifactUploadCall<'a, C>
pub fn locations_repositories_yum_artifacts_upload( &self, request: UploadYumArtifactRequest, parent: &str, ) -> ProjectLocationRepositoryYumArtifactUploadCall<'a, C>
Create a builder to help you perform the following task:
Directly uploads a Yum artifact. The returned Operation will complete once the resources are uploaded. Package, Version, and File resources are created based on the imported artifact. Imported artifacts that conflict with existing resources are ignored.
§Arguments
request- No description provided.parent- The name of the parent resource where the artifacts will be uploaded.
Sourcepub fn locations_repositories_create(
&self,
request: Repository,
parent: &str,
) -> ProjectLocationRepositoryCreateCall<'a, C>
pub fn locations_repositories_create( &self, request: Repository, parent: &str, ) -> ProjectLocationRepositoryCreateCall<'a, C>
Create a builder to help you perform the following task:
Creates a repository. The returned Operation will finish once the repository has been created. Its response will be the created Repository.
§Arguments
request- No description provided.parent- Required. The name of the parent resource where the repository will be created.
Sourcepub fn locations_repositories_delete(
&self,
name: &str,
) -> ProjectLocationRepositoryDeleteCall<'a, C>
pub fn locations_repositories_delete( &self, name: &str, ) -> ProjectLocationRepositoryDeleteCall<'a, C>
Create a builder to help you perform the following task:
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.
§Arguments
name- Required. The name of the repository to delete.
Sourcepub fn locations_repositories_export_artifact(
&self,
request: ExportArtifactRequest,
repository: &str,
) -> ProjectLocationRepositoryExportArtifactCall<'a, C>
pub fn locations_repositories_export_artifact( &self, request: ExportArtifactRequest, repository: &str, ) -> ProjectLocationRepositoryExportArtifactCall<'a, C>
Create a builder to help you perform the following task:
Exports an artifact to a Cloud Storage bucket.
§Arguments
request- No description provided.repository- Required. The repository of the artifact to export. Format: projects/{project}/locations/{location}/repositories/{repository}
Sourcepub fn locations_repositories_get(
&self,
name: &str,
) -> ProjectLocationRepositoryGetCall<'a, C>
pub fn locations_repositories_get( &self, name: &str, ) -> ProjectLocationRepositoryGetCall<'a, C>
Create a builder to help you perform the following task:
Gets a repository.
§Arguments
name- Required. The name of the repository to retrieve.
Sourcepub fn locations_repositories_get_iam_policy(
&self,
resource: &str,
) -> ProjectLocationRepositoryGetIamPolicyCall<'a, C>
pub fn locations_repositories_get_iam_policy( &self, resource: &str, ) -> ProjectLocationRepositoryGetIamPolicyCall<'a, C>
Create a builder to help you perform the following task:
Gets the IAM policy for a given resource.
§Arguments
resource- REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.
Sourcepub fn locations_repositories_list(
&self,
parent: &str,
) -> ProjectLocationRepositoryListCall<'a, C>
pub fn locations_repositories_list( &self, parent: &str, ) -> ProjectLocationRepositoryListCall<'a, C>
Create a builder to help you perform the following task:
Lists repositories.
§Arguments
parent- Required. The name of the parent resource whose repositories will be listed.
Sourcepub fn locations_repositories_patch(
&self,
request: Repository,
name: &str,
) -> ProjectLocationRepositoryPatchCall<'a, C>
pub fn locations_repositories_patch( &self, request: Repository, name: &str, ) -> ProjectLocationRepositoryPatchCall<'a, C>
Create a builder to help you perform the following task:
Updates a repository.
§Arguments
request- No description provided.name- The name of the repository, for example:projects/p1/locations/us-central1/repositories/repo1. For each location in a project, repository names must be unique.
Sourcepub fn locations_repositories_set_iam_policy(
&self,
request: SetIamPolicyRequest,
resource: &str,
) -> ProjectLocationRepositorySetIamPolicyCall<'a, C>
pub fn locations_repositories_set_iam_policy( &self, request: SetIamPolicyRequest, resource: &str, ) -> ProjectLocationRepositorySetIamPolicyCall<'a, C>
Create a builder to help you perform the following task:
Updates the IAM policy for a given resource.
§Arguments
request- No description provided.resource- REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.
Sourcepub fn locations_repositories_test_iam_permissions(
&self,
request: TestIamPermissionsRequest,
resource: &str,
) -> ProjectLocationRepositoryTestIamPermissionCall<'a, C>
pub fn locations_repositories_test_iam_permissions( &self, request: TestIamPermissionsRequest, resource: &str, ) -> ProjectLocationRepositoryTestIamPermissionCall<'a, C>
Create a builder to help you perform the following task:
Tests if the caller has a list of permissions on a resource.
§Arguments
request- No description provided.resource- REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.
Sourcepub fn locations_get(&self, name: &str) -> ProjectLocationGetCall<'a, C>
pub fn locations_get(&self, name: &str) -> ProjectLocationGetCall<'a, C>
Create a builder to help you perform the following task:
Gets information about a location.
§Arguments
name- Resource name for the location.
Sourcepub fn locations_get_vpcsc_config(
&self,
name: &str,
) -> ProjectLocationGetVpcscConfigCall<'a, C>
pub fn locations_get_vpcsc_config( &self, name: &str, ) -> ProjectLocationGetVpcscConfigCall<'a, C>
Create a builder to help you perform the following task:
Retrieves the VPCSC Config for the Project.
§Arguments
name- Required. The name of the VPCSCConfig resource.
Sourcepub fn locations_list(&self, name: &str) -> ProjectLocationListCall<'a, C>
pub fn locations_list(&self, name: &str) -> ProjectLocationListCall<'a, C>
Create a builder to help you perform the following task:
Lists information about the supported locations for this service.
§Arguments
name- The resource that owns the locations collection, if applicable.
Sourcepub fn locations_update_vpcsc_config(
&self,
request: VPCSCConfig,
name: &str,
) -> ProjectLocationUpdateVpcscConfigCall<'a, C>
pub fn locations_update_vpcsc_config( &self, request: VPCSCConfig, name: &str, ) -> ProjectLocationUpdateVpcscConfigCall<'a, C>
Create a builder to help you perform the following task:
Updates the VPCSC Config for the Project.
§Arguments
request- No description provided.name- The name of the project’s VPC SC Config. Always of the form: projects/{projectID}/locations/{location}/vpcscConfig In update request: never set In response: always set
Sourcepub fn get_project_settings(
&self,
name: &str,
) -> ProjectGetProjectSettingCall<'a, C>
pub fn get_project_settings( &self, name: &str, ) -> ProjectGetProjectSettingCall<'a, C>
Create a builder to help you perform the following task:
Retrieves the Settings for the Project.
§Arguments
name- Required. The name of the projectSettings resource.
Sourcepub fn update_project_settings(
&self,
request: ProjectSettings,
name: &str,
) -> ProjectUpdateProjectSettingCall<'a, C>
pub fn update_project_settings( &self, request: ProjectSettings, name: &str, ) -> ProjectUpdateProjectSettingCall<'a, C>
Create a builder to help you perform the following task:
Updates the Settings for the Project.
§Arguments
request- No description provided.name- The name of the project’s settings. Always of the form: projects/{project-id}/projectSettings In update request: never set In response: always set