pub struct Repository {Show 20 fields
pub cleanup_policies: Option<HashMap<String, CleanupPolicy>>,
pub cleanup_policy_dry_run: Option<bool>,
pub create_time: Option<DateTime<Utc>>,
pub description: Option<String>,
pub disallow_unspecified_mode: Option<bool>,
pub docker_config: Option<DockerRepositoryConfig>,
pub format: Option<String>,
pub kms_key_name: Option<String>,
pub labels: Option<HashMap<String, String>>,
pub maven_config: Option<MavenRepositoryConfig>,
pub mode: Option<String>,
pub name: Option<String>,
pub registry_uri: Option<String>,
pub remote_repository_config: Option<RemoteRepositoryConfig>,
pub satisfies_pzi: Option<bool>,
pub satisfies_pzs: Option<bool>,
pub size_bytes: Option<i64>,
pub update_time: Option<DateTime<Utc>>,
pub virtual_repository_config: Option<VirtualRepositoryConfig>,
pub vulnerability_scanning_config: Option<VulnerabilityScanningConfig>,
}Expand description
A Repository for storing artifacts with a specific format.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- locations repositories create projects (request)
- locations repositories get projects (response)
- locations repositories patch projects (request|response)
Fields§
§cleanup_policies: Option<HashMap<String, CleanupPolicy>>Optional. Cleanup policies for this repository. Cleanup policies indicate when certain package versions can be automatically deleted. Map keys are policy IDs supplied by users during policy creation. They must unique within a repository and be under 128 characters in length.
cleanup_policy_dry_run: Option<bool>Optional. If true, the cleanup pipeline is prevented from deleting versions in this repository.
create_time: Option<DateTime<Utc>>Output only. The time when the repository was created.
description: Option<String>The user-provided description of the repository.
disallow_unspecified_mode: Option<bool>Optional. If this is true, an unspecified repo type will be treated as error rather than defaulting to standard.
docker_config: Option<DockerRepositoryConfig>Docker repository config contains repository level configuration for the repositories of docker type.
format: Option<String>Optional. The format of packages that are stored in the repository.
kms_key_name: Option<String>The Cloud KMS resource name of the customer managed encryption key that’s used to encrypt the contents of the Repository. Has the form: projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key. This value may not be changed after the Repository has been created.
labels: Option<HashMap<String, String>>Labels with user-defined metadata. This field may contain up to 64 entries. Label keys and values may be no longer than 63 characters. Label keys must begin with a lowercase letter and may only contain lowercase letters, numeric characters, underscores, and dashes.
maven_config: Option<MavenRepositoryConfig>Maven repository config contains repository level configuration for the repositories of maven type.
mode: Option<String>Optional. The mode of the repository.
name: Option<String>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.
registry_uri: Option<String>Output only. The repository endpoint, for example: us-docker.pkg.dev/my-proj/my-repo.
remote_repository_config: Option<RemoteRepositoryConfig>Configuration specific for a Remote Repository.
satisfies_pzi: Option<bool>Output only. Whether or not this repository satisfies PZI.
satisfies_pzs: Option<bool>Output only. Whether or not this repository satisfies PZS.
size_bytes: Option<i64>Output only. The size, in bytes, of all artifact storage in this repository. Repositories that are generally available or in public preview use this to calculate storage costs.
update_time: Option<DateTime<Utc>>Output only. The time when the repository was last updated.
virtual_repository_config: Option<VirtualRepositoryConfig>Configuration specific for a Virtual Repository.
vulnerability_scanning_config: Option<VulnerabilityScanningConfig>Optional. Config and state for vulnerability scanning of resources within this Repository.
Trait Implementations§
Source§impl Clone for Repository
impl Clone for Repository
Source§fn clone(&self) -> Repository
fn clone(&self) -> Repository
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more