UNPKG

googleapis

Version:
1,185 lines 356 kB
import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common'; import { Readable } from 'stream'; export declare namespace artifactregistry_v1 { export interface Options extends GlobalOptions { version: 'v1'; } interface StandardParameters { /** * Auth client or API Key for the request */ auth?: string | OAuth2Client | JWT | Compute | UserRefreshClient | BaseExternalAccountClient | GoogleAuth; /** * V1 error format. */ '$.xgafv'?: string; /** * OAuth access token. */ access_token?: string; /** * Data format for response. */ alt?: string; /** * JSONP */ callback?: string; /** * Selector specifying which fields to include in a partial response. */ fields?: string; /** * API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** * OAuth 2.0 token for the current user. */ oauth_token?: string; /** * Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** * Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** * Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; /** * Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; } /** * Artifact Registry API * * Store and manage build artifacts in a scalable and integrated service built on Google infrastructure. * * @example * ```js * const {google} = require('googleapis'); * const artifactregistry = google.artifactregistry('v1'); * ``` */ export class Artifactregistry { context: APIRequestContext; projects: Resource$Projects; constructor(options: GlobalOptions, google?: GoogleConfigurable); } /** * A detailed representation of an Apt artifact. Information in the record is derived from the archive's control file. See https://www.debian.org/doc/debian-policy/ch-controlfields.html */ export interface Schema$AptArtifact { /** * Output only. Operating system architecture of the artifact. */ architecture?: string | null; /** * Output only. Repository component of the artifact. */ component?: string | null; /** * Output only. Contents of the artifact's control metadata file. */ controlFile?: string | null; /** * Output only. The Artifact Registry resource name of the artifact. */ name?: string | null; /** * Output only. The Apt package name of the artifact. */ packageName?: string | null; /** * Output only. An artifact is a binary or source package. */ packageType?: string | null; } /** * Configuration for an Apt remote repository. */ export interface Schema$AptRepository { /** * Customer-specified remote repository. */ customRepository?: Schema$GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigAptRepositoryCustomRepository; /** * One of the publicly available Apt repositories supported by Artifact Registry. */ publicRepository?: Schema$GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigAptRepositoryPublicRepository; } /** * An Attachment refers to additional metadata that can be attached to artifacts in Artifact Registry. An attachment consists of one or more files. */ export interface Schema$Attachment { /** * Optional. User annotations. These attributes can only be set and used by the user, and not by Artifact Registry. See https://google.aip.dev/128#annotations for more details such as format and size limitations. */ annotations?: { [key: string]: string; } | null; /** * The namespace this attachment belongs to. E.g. If an attachment is created by artifact analysis, namespace is set to `artifactanalysis.googleapis.com`. */ attachmentNamespace?: string | null; /** * Output only. The time when the attachment was created. */ createTime?: string | null; /** * Required. The files that belong to this attachment. If the file ID part contains slashes, they are escaped. E.g. `projects/p1/locations/us-central1/repositories/repo1/files/sha:`. */ files?: string[] | null; /** * The name of the attachment. E.g. `projects/p1/locations/us/repositories/repo/attachments/sbom`. */ name?: string | null; /** * Output only. The name of the OCI version that this attachment created. Only populated for Docker attachments. E.g. `projects/p1/locations/us-central1/repositories/repo1/packages/p1/versions/v1`. */ ociVersionName?: string | null; /** * Required. The target the attachment is for, can be a Version, Package or Repository. E.g. `projects/p1/locations/us-central1/repositories/repo1/packages/p1/versions/v1`. */ target?: string | null; /** * Type of attachment. E.g. `application/vnd.spdx+json` */ type?: string | null; /** * Output only. The time when the attachment was last updated. */ updateTime?: string | null; } /** * The metadata of an LRO from deleting multiple versions. */ export interface Schema$BatchDeleteVersionsMetadata { /** * The versions the operation failed to delete. */ failedVersions?: string[] | null; } /** * The request to delete multiple versions across a repository. */ export interface Schema$BatchDeleteVersionsRequest { /** * Required. The names of the versions to delete. The maximum number of versions deleted per batch is determined by the service and is dependent on the available resources in the region. */ names?: string[] | null; /** * If true, the request is performed without deleting data, following AIP-163. */ validateOnly?: boolean | null; } /** * Associates `members`, or principals, with a `role`. */ export interface Schema$Binding { /** * The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). */ condition?: Schema$Expr; /** * Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid\}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid\}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid\}.svc.id.goog[{namespace\}/{kubernetes-sa\}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid\}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain\}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id\}/subject/{subject_attribute_value\}`: A single identity in a workforce identity pool. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id\}/group/{group_id\}`: All workforce identities in a group. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id\}/attribute.{attribute_name\}/{attribute_value\}`: All workforce identities with a specific attribute value. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id\}/x`: All identities in a workforce identity pool. * `principal://iam.googleapis.com/projects/{project_number\}/locations/global/workloadIdentityPools/{pool_id\}/subject/{subject_attribute_value\}`: A single identity in a workload identity pool. * `principalSet://iam.googleapis.com/projects/{project_number\}/locations/global/workloadIdentityPools/{pool_id\}/group/{group_id\}`: A workload identity pool group. * `principalSet://iam.googleapis.com/projects/{project_number\}/locations/global/workloadIdentityPools/{pool_id\}/attribute.{attribute_name\}/{attribute_value\}`: All identities in a workload identity pool with a certain attribute. * `principalSet://iam.googleapis.com/projects/{project_number\}/locations/global/workloadIdentityPools/{pool_id\}/x`: All identities in a workload identity pool. * `deleted:user:{emailid\}?uid={uniqueid\}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid\}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid\}?uid={uniqueid\}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid\}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid\}?uid={uniqueid\}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid\}` and the recovered group retains the role in the binding. * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id\}/subject/{subject_attribute_value\}`: Deleted single identity in a workforce identity pool. For example, `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`. */ members?: string[] | null; /** * Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles). */ role?: string | null; } /** * Artifact policy configuration for repository cleanup policies. */ export interface Schema$CleanupPolicy { /** * Policy action. */ action?: string | null; /** * Policy condition for matching versions. */ condition?: Schema$CleanupPolicyCondition; /** * The user-provided ID of the cleanup policy. */ id?: string | null; /** * Policy condition for retaining a minimum number of versions. May only be specified with a Keep action. */ mostRecentVersions?: Schema$CleanupPolicyMostRecentVersions; } /** * CleanupPolicyCondition is a set of conditions attached to a CleanupPolicy. If multiple entries are set, all must be satisfied for the condition to be satisfied. */ export interface Schema$CleanupPolicyCondition { /** * Match versions newer than a duration. */ newerThan?: string | null; /** * Match versions older than a duration. */ olderThan?: string | null; /** * Match versions by package prefix. Applied on any prefix match. */ packageNamePrefixes?: string[] | null; /** * Match versions by tag prefix. Applied on any prefix match. */ tagPrefixes?: string[] | null; /** * Match versions by tag status. */ tagState?: string | null; /** * Match versions by version name prefix. Applied on any prefix match. */ versionNamePrefixes?: string[] | null; } /** * CleanupPolicyMostRecentVersions is an alternate condition of a CleanupPolicy for retaining a minimum number of versions. */ export interface Schema$CleanupPolicyMostRecentVersions { /** * Minimum number of versions to keep. */ keepCount?: number | null; /** * List of package name prefixes that will apply this rule. */ packageNamePrefixes?: string[] | null; } /** * Common remote repository settings type. */ export interface Schema$CommonRemoteRepository { /** * Required. A common public repository base for remote repository. */ uri?: string | null; } /** * DockerImage represents a docker artifact. The following fields are returned as untyped metadata in the Version resource, using camelcase keys (i.e. metadata.imageSizeBytes): * imageSizeBytes * mediaType * buildTime */ export interface Schema$DockerImage { /** * ArtifactType of this image, e.g. "application/vnd.example+type". If the `subject_digest` is set and no `artifact_type` is given, the `media_type` will be considered as the `artifact_type`. This field is returned as the `metadata.artifactType` field in the Version resource. */ artifactType?: string | null; /** * The time this image was built. This field is returned as the 'metadata.buildTime' field in the Version resource. The build time is returned to the client as an RFC 3339 string, which can be easily used with the JavaScript Date constructor. */ buildTime?: string | null; /** * Optional. For multi-arch images (manifest lists), this field contains the list of image manifests. */ imageManifests?: Schema$ImageManifest[]; /** * Calculated size of the image. This field is returned as the 'metadata.imageSizeBytes' field in the Version resource. */ imageSizeBytes?: string | null; /** * Media type of this image, e.g. "application/vnd.docker.distribution.manifest.v2+json". This field is returned as the 'metadata.mediaType' field in the Version resource. */ mediaType?: string | null; /** * Required. registry_location, project_id, repository_name and image id forms a unique image name:`projects//locations//repositories//dockerImages/`. For example, "projects/test-project/locations/us-west4/repositories/test-repo/dockerImages/ nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf", where "us-west4" is the registry_location, "test-project" is the project_id, "test-repo" is the repository_name and "nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf" is the image's digest. */ name?: string | null; /** * Tags attached to this image. */ tags?: string[] | null; /** * Output only. The time when the docker image was last updated. */ updateTime?: string | null; /** * Time the image was uploaded. */ uploadTime?: string | null; /** * Required. URL to access the image. Example: us-west4-docker.pkg.dev/test-project/test-repo/nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf */ uri?: string | null; } /** * Configuration for a Docker remote repository. */ export interface Schema$DockerRepository { /** * Customer-specified remote repository. */ customRepository?: Schema$GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigDockerRepositoryCustomRepository; /** * One of the publicly available Docker repositories supported by Artifact Registry. */ publicRepository?: string | null; } /** * DockerRepositoryConfig is docker related repository details. Provides additional configuration details for repositories of the docker format type. */ export interface Schema$DockerRepositoryConfig { /** * The repository which enabled this flag prevents all tags from being modified, moved or deleted. This does not prevent tags from being created. */ immutableTags?: boolean | null; } /** * The response to download a file. */ export interface Schema$DownloadFileResponse { } /** * A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \} */ export interface Schema$Empty { } /** * The LRO metadata for exporting an artifact. */ export interface Schema$ExportArtifactMetadata { /** * The exported artifact files. */ exportedFiles?: Schema$ExportedFile[]; } /** * The request for exporting an artifact to a destination. */ export interface Schema$ExportArtifactRequest { /** * The Cloud Storage path to export the artifact to. Should start with the bucket name, and optionally have a directory path. Examples: `dst_bucket`, `dst_bucket/sub_dir`. Existing objects with the same path will be overwritten. */ gcsPath?: string | null; /** * The artifact tag to export. Format:projects/{project\}/locations/{location\}/repositories/{repository\}/packages/{package\}/tags/{tag\} */ sourceTag?: string | null; /** * The artifact version to export. Format: projects/{project\}/locations/{location\}/repositories/{repository\}/packages/{package\}/versions/{version\} */ sourceVersion?: string | null; } /** * The response for exporting an artifact to a destination. */ export interface Schema$ExportArtifactResponse { /** * The exported version. Should be the same as the request version with fingerprint resource name. */ exportedVersion?: Schema$Version; } /** * The exported artifact file. */ export interface Schema$ExportedFile { /** * Cloud Storage Object path of the exported file. Examples: `dst_bucket/file1`, `dst_bucket/sub_dir/file1` */ gcsObjectPath?: string | null; /** * The hashes of the file content. */ hashes?: Schema$Hash[]; /** * Name of the exported artifact file. Format: `projects/p1/locations/us/repositories/repo1/files/file1` */ name?: string | null; } /** * Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: "Summary size limit" description: "Determines if a summary is less than 100 chars" expression: "document.summary.size() < 100" Example (Equality): title: "Requestor is owner" description: "Determines if requestor is the document owner" expression: "document.owner == request.auth.claims.email" Example (Logic): title: "Public documents" description: "Determine whether the document should be publicly visible" expression: "document.type != 'private' && document.type != 'internal'" Example (Data Manipulation): title: "Notification string" description: "Create a notification string with a timestamp." expression: "'New message received at ' + string(document.create_time)" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. */ export interface Schema$Expr { /** * Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. */ description?: string | null; /** * Textual representation of an expression in Common Expression Language syntax. */ expression?: string | null; /** * Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file. */ location?: string | null; /** * Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression. */ title?: string | null; } /** * GenericArtifact represents a generic artifact */ export interface Schema$GenericArtifact { /** * Output only. The time when the Generic module is created. */ createTime?: string | null; /** * Resource name of the generic artifact. project, location, repository, package_id and version_id create a unique generic artifact. i.e. "projects/test-project/locations/us-west4/repositories/test-repo/ genericArtifacts/package_id:version_id" */ name?: string | null; /** * Output only. The time when the Generic module is updated. */ updateTime?: string | null; /** * The version of the generic artifact. */ version?: string | null; } /** * GoModule represents a Go module. */ export interface Schema$GoModule { /** * Output only. The time when the Go module is created. */ createTime?: string | null; /** * The resource name of a Go module. */ name?: string | null; /** * Output only. The time when the Go module is updated. */ updateTime?: string | null; /** * The version of the Go module. Must be a valid canonical version as defined in https://go.dev/ref/mod#glos-canonical-version. */ version?: string | null; } /** * A detailed representation of a GooGet artifact. */ export interface Schema$GoogetArtifact { /** * Output only. Operating system architecture of the artifact. */ architecture?: string | null; /** * Output only. The Artifact Registry resource name of the artifact. */ name?: string | null; /** * Output only. The GooGet package name of the artifact. */ packageName?: string | null; } /** * Files store content that is potentially associated with Packages or Versions. */ export interface Schema$GoogleDevtoolsArtifactregistryV1File { /** * Optional. Client specified annotations. */ annotations?: { [key: string]: string; } | null; /** * Output only. The time when the File was created. */ createTime?: string | null; /** * Output only. The time when the last attempt to refresh the file's data was made. Only set when the repository is remote. */ fetchTime?: string | null; /** * The hashes of the file content. */ hashes?: Schema$Hash[]; /** * 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. */ name?: string | null; /** * The name of the Package or Version that owns this file, if any. */ owner?: string | null; /** * The size of the File in bytes. */ sizeBytes?: string | null; /** * Output only. The time when the File was last updated. */ updateTime?: string | null; } /** * Customer-specified publicly available remote repository. */ export interface Schema$GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigAptRepositoryCustomRepository { /** * An http/https uri reference to the upstream remote repository, for ex: "https://my.apt.registry/". */ uri?: string | null; } /** * Publicly available Apt repositories constructed from a common repository base and a custom repository path. */ export interface Schema$GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigAptRepositoryPublicRepository { /** * A common public repository base for Apt. */ repositoryBase?: string | null; /** * A custom field to define a path to a specific repository from the base. */ repositoryPath?: string | null; } /** * Customer-specified publicly available remote repository. */ export interface Schema$GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigDockerRepositoryCustomRepository { /** * An http/https uri reference to the custom remote repository, for ex: "https://registry-1.docker.io". */ uri?: string | null; } /** * Customer-specified publicly available remote repository. */ export interface Schema$GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigMavenRepositoryCustomRepository { /** * An http/https uri reference to the upstream remote repository, for ex: "https://my.maven.registry/". */ uri?: string | null; } /** * Customer-specified publicly available remote repository. */ export interface Schema$GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigNpmRepositoryCustomRepository { /** * An http/https uri reference to the upstream remote repository, for ex: "https://my.npm.registry/". */ uri?: string | null; } /** * Customer-specified publicly available remote repository. */ export interface Schema$GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigPythonRepositoryCustomRepository { /** * An http/https uri reference to the upstream remote repository, for ex: "https://my.python.registry/". */ uri?: string | null; } /** * Customer-specified publicly available remote repository. */ export interface Schema$GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigYumRepositoryCustomRepository { /** * An http/https uri reference to the upstream remote repository, for ex: "https://my.yum.registry/". */ uri?: string | null; } /** * Publicly available Yum repositories constructed from a common repository base and a custom repository path. */ export interface Schema$GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigYumRepositoryPublicRepository { /** * A common public repository base for Yum. */ repositoryBase?: string | null; /** * A custom field to define a path to a specific repository from the base. */ repositoryPath?: string | null; } /** * A rule defines the deny or allow action of the operation it applies to and the conditions required for the rule to apply. You can set one rule for an entire repository and one rule for each package within. */ export interface Schema$GoogleDevtoolsArtifactregistryV1Rule { /** * The action this rule takes. */ action?: string | null; /** * Optional. A CEL expression for conditions that must be met in order for the rule to apply. If not provided, the rule matches all objects. */ condition?: Schema$Expr; /** * The name of the rule, for example: `projects/p1/locations/us-central1/repositories/repo1/rules/rule1`. */ name?: string | null; operation?: string | null; /** * The package ID the rule applies to. If empty, this rule applies to all packages inside the repository. */ packageId?: string | null; } /** * A hash of file content. */ export interface Schema$Hash { /** * The algorithm used to compute the hash value. */ type?: string | null; /** * The hash value. */ value?: string | null; } /** * Details of a single image manifest within a multi-arch image. */ export interface Schema$ImageManifest { /** * Optional. The CPU architecture of the image. Values are provided by the Docker client and are not validated by Artifact Registry. Example values include "amd64", "arm64", "ppc64le", "s390x", "riscv64", "mips64le", etc. */ architecture?: string | null; /** * Optional. The manifest digest, in the format "sha256:". */ digest?: string | null; /** * Optional. The media type of the manifest, e.g., "application/vnd.docker.distribution.manifest.v2+json" */ mediaType?: string | null; /** * Optional. The operating system of the image. Values are provided by the Docker client and are not validated by Artifact Registry. Example values include "linux", "windows", "darwin", "aix", etc. */ os?: string | null; /** * Optional. The required OS features for the image, for example on Windows `win32k`. */ osFeatures?: string[] | null; /** * Optional. The OS version of the image, for example on Windows `10.0.14393.1066`. */ osVersion?: string | null; /** * Optional. The variant of the CPU in the image, for example `v7` to specify ARMv7 when architecture is `arm`. */ variant?: string | null; } /** * Error information explaining why a package was not imported. */ export interface Schema$ImportAptArtifactsErrorInfo { /** * The detailed error status. */ error?: Schema$Status; /** * Google Cloud Storage location requested. */ gcsSource?: Schema$ImportAptArtifactsGcsSource; } /** * Google Cloud Storage location where the artifacts currently reside. */ export interface Schema$ImportAptArtifactsGcsSource { /** * Cloud Storage paths URI (e.g., gs://my_bucket//my_object). */ uris?: string[] | null; /** * Supports URI wildcards for matching multiple objects from a single URI. */ useWildcards?: boolean | null; } /** * The operation metadata for importing artifacts. */ export interface Schema$ImportAptArtifactsMetadata { } /** * The request to import new apt artifacts. */ export interface Schema$ImportAptArtifactsRequest { /** * Google Cloud Storage location where input content is located. */ gcsSource?: Schema$ImportAptArtifactsGcsSource; } /** * The response message from importing APT artifacts. */ export interface Schema$ImportAptArtifactsResponse { /** * The Apt artifacts imported. */ aptArtifacts?: Schema$AptArtifact[]; /** * Detailed error info for packages that were not imported. */ errors?: Schema$ImportAptArtifactsErrorInfo[]; } /** * Error information explaining why a package was not imported. */ export interface Schema$ImportGoogetArtifactsErrorInfo { /** * The detailed error status. */ error?: Schema$Status; /** * Google Cloud Storage location requested. */ gcsSource?: Schema$ImportGoogetArtifactsGcsSource; } /** * Google Cloud Storage location where the artifacts currently reside. */ export interface Schema$ImportGoogetArtifactsGcsSource { /** * Cloud Storage paths URI (e.g., `gs://my_bucket/my_object`). */ uris?: string[] | null; /** * Supports URI wildcards for matching multiple objects from a single URI. */ useWildcards?: boolean | null; } /** * The operation metadata for importing artifacts. */ export interface Schema$ImportGoogetArtifactsMetadata { } /** * The request to import new googet artifacts. */ export interface Schema$ImportGoogetArtifactsRequest { /** * Google Cloud Storage location where input content is located. */ gcsSource?: Schema$ImportGoogetArtifactsGcsSource; } /** * The response message from importing artifacts. */ export interface Schema$ImportGoogetArtifactsResponse { /** * Detailed error info for packages that were not imported. */ errors?: Schema$ImportGoogetArtifactsErrorInfo[]; /** * The GooGet artifacts updated. */ googetArtifacts?: Schema$GoogetArtifact[]; } /** * Error information explaining why a package was not imported. */ export interface Schema$ImportYumArtifactsErrorInfo { /** * The detailed error status. */ error?: Schema$Status; /** * Google Cloud Storage location requested. */ gcsSource?: Schema$ImportYumArtifactsGcsSource; } /** * Google Cloud Storage location where the artifacts currently reside. */ export interface Schema$ImportYumArtifactsGcsSource { /** * Cloud Storage paths URI (e.g., gs://my_bucket//my_object). */ uris?: string[] | null; /** * Supports URI wildcards for matching multiple objects from a single URI. */ useWildcards?: boolean | null; } /** * The operation metadata for importing artifacts. */ export interface Schema$ImportYumArtifactsMetadata { } /** * The request to import new yum artifacts. */ export interface Schema$ImportYumArtifactsRequest { /** * Google Cloud Storage location where input content is located. */ gcsSource?: Schema$ImportYumArtifactsGcsSource; } /** * The response message from importing YUM artifacts. */ export interface Schema$ImportYumArtifactsResponse { /** * Detailed error info for packages that were not imported. */ errors?: Schema$ImportYumArtifactsErrorInfo[]; /** * The yum artifacts imported. */ yumArtifacts?: Schema$YumArtifact[]; } /** * A detailed representation of a KFP artifact. */ export interface Schema$KfpArtifact { /** * Output only. Resource name of the KFP artifact. Since users don't directly interact with this resource, the name will be derived from the associated version. For example, when version = ".../versions/sha256:abcdef...", the name will be ".../kfpArtifacts/sha256:abcdef...". */ name?: string | null; /** * The version associated with the KFP artifact. Must follow the Semantic Versioning standard. */ version?: string | null; } /** * The response from listing attachments. */ export interface Schema$ListAttachmentsResponse { /** * The attachments returned. */ attachments?: Schema$Attachment[]; /** * The token to retrieve the next page of attachments, or empty if there are no more attachments to return. */ nextPageToken?: string | null; } /** * The response from listing docker images. */ export interface Schema$ListDockerImagesResponse { /** * The docker images returned. */ dockerImages?: Schema$DockerImage[]; /** * The token to retrieve the next page of artifacts, or empty if there are no more artifacts to return. */ nextPageToken?: string | null; } /** * The response from listing files. */ export interface Schema$ListFilesResponse { /** * The files returned. */ files?: Schema$GoogleDevtoolsArtifactregistryV1File[]; /** * The token to retrieve the next page of files, or empty if there are no more files to return. */ nextPageToken?: string | null; } /** * The response message for Locations.ListLocations. */ export interface Schema$ListLocationsResponse { /** * A list of locations that matches the specified filter in the request. */ locations?: Schema$Location[]; /** * The standard List next-page token. */ nextPageToken?: string | null; } /** * The response from listing maven artifacts. */ export interface Schema$ListMavenArtifactsResponse { /** * The maven artifacts returned. */ mavenArtifacts?: Schema$MavenArtifact[]; /** * The token to retrieve the next page of artifacts, or empty if there are no more artifacts to return. */ nextPageToken?: string | null; } /** * The response from listing npm packages. */ export interface Schema$ListNpmPackagesResponse { /** * The token to retrieve the next page of artifacts, or empty if there are no more artifacts to return. */ nextPageToken?: string | null; /** * The npm packages returned. */ npmPackages?: Schema$NpmPackage[]; } /** * The response from listing packages. */ export interface Schema$ListPackagesResponse { /** * The token to retrieve the next page of packages, or empty if there are no more packages to return. */ nextPageToken?: string | null; /** * The packages returned. */ packages?: Schema$Package[]; } /** * The response from listing python packages. */ export interface Schema$ListPythonPackagesResponse { /** * The token to retrieve the next page of artifacts, or empty if there are no more artifacts to return. */ nextPageToken?: string | null; /** * The python packages returned. */ pythonPackages?: Schema$PythonPackage[]; } /** * The response from listing repositories. */ export interface Schema$ListRepositoriesResponse { /** * The token to retrieve the next page of repositories, or empty if there are no more repositories to return. */ nextPageToken?: string | null; /** * The repositories returned. */ repositories?: Schema$Repository[]; } /** * The response from listing rules. */ export interface Schema$ListRulesResponse { /** * The token to retrieve the next page of rules, or empty if there are no more rules to return. */ nextPageToken?: string | null; /** * The rules returned. */ rules?: Schema$GoogleDevtoolsArtifactregistryV1Rule[]; } /** * The response from listing tags. */ export interface Schema$ListTagsResponse { /** * The token to retrieve the next page of tags, or empty if there are no more tags to return. */ nextPageToken?: string | null; /** * The tags returned. */ tags?: Schema$Tag[]; } /** * The response from listing versions. */ export interface Schema$ListVersionsResponse { /** * The token to retrieve the next page of versions, or empty if there are no more versions to return. */ nextPageToken?: string | null; /** * The versions returned. */ versions?: Schema$Version[]; } /** * A resource that represents a Google Cloud location. */ export interface Schema$Location { /** * The friendly name for this location, typically a nearby city name. For example, "Tokyo". */ displayName?: string | null; /** * Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"\} */ labels?: { [key: string]: string; } | null; /** * The canonical id for this location. For example: `"us-east1"`. */ locationId?: string | null; /** * Service-specific metadata. For example the available capacity at the given location. */ metadata?: { [key: string]: any; } | null; /** * Resource name for the location, which may vary between implementations. For example: `"projects/example-project/locations/us-east1"` */ name?: string | null; } /** * MavenArtifact represents a maven artifact. */ export interface Schema$MavenArtifact { /** * Artifact ID for the artifact. */ artifactId?: string | null; /** * Output only. Time the artifact was created. */ createTime?: string | null; /** * Group ID for the artifact. Example: com.google.guava */ groupId?: string | null; /** * Required. registry_location, project_id, repository_name and maven_artifact forms a unique artifact For example, "projects/test-project/locations/us-west4/repositories/test-repo/mavenArtifacts/ com.google.guava:guava:31.0-jre", where "us-west4" is the registry_location, "test-project" is the project_id, "test-repo" is the repository_name and "com.google.guava:guava:31.0-jre" is the maven artifact. */ name?: string | null; /** * Required. URL to access the pom file of the artifact. Example: us-west4-maven.pkg.dev/test-project/test-repo/com/google/guava/guava/31.0/guava-31.0.pom */ pomUri?: string | null; /** * Output only. Time the artifact was updated. */ updateTime?: string | null; /** * Version of this artifact. */ version?: string | null; } /** * Configuration for a Maven remote repository. */ export interface Schema$MavenRepository { /** * Customer-specified remote repository. */ customRepository?: Schema$GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigMavenRepositoryCustomRepository; /** * One of the publicly available Maven repositories supported by Artifact Registry. */ publicRepository?: string | null; } /** * MavenRepositoryConfig is maven related repository details. Provides additional configuration details for repositories of the maven format type. */ export interface Schema$MavenRepositoryConfig { /** * The repository with this flag will allow publishing the same snapshot versions. */ allowSnapshotOverwrites?: boolean | null; /** * Version policy defines the versions that the registry will accept. */ versionPolicy?: string | null; } /** * NpmPackage represents an npm artifact. */ export interface Schema$NpmPackage { /** * Output only. Time the package was created. */ createTime?: string | null; /** * Required. registry_location, project_id, repository_name and npm_package forms a unique package For example, "projects/test-project/locations/us-west4/repositories/test-repo/npmPackages/ npm_test:1.0.0", where "us-west4" is the registry_location, "test-project" is the project_id, "test-repo" is the repository_name and npm_test:1.0.0" is the npm package. */ name?: string | null; /** * Package for the artifact. */ packageName?: string | null; /** * Tags attached to this package. */ tags?: string[] | null; /** * Output only. Time the package was updated. */ updateTime?: string | null; /** * Version of this package. */ version?: string | null; } /** * Configuration for a Npm remote repository. */ export interface Schema$NpmRepository { /** * Customer-specified remote repository. */ customRepository?: Schema$GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigNpmRepositoryCustomRepository; /** * One of the publicly available Npm repositories supported by Artifact Registry. */ publicRepository?: string | null; } /** * This resource represents a long-running operation that is the result of a network API call. */ export interface Schema$Operation { /** * If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. */ done?: boolean | null; /** * The error result of the operation in case of failure or cancellation. */ error?: Schema$Status; /** * Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. */ metadata?: { [key: string]: any; } | null; /** * The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id\}`. */ name?: string | null; /** * The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. */ response?: { [key: string]: any; } | null; } /** * Metadata type for longrunning-operations, currently empty. */ export interface Schema$OperationMetadata { } /** * Packages are named collections of versions. */ export interface Schema$Package { /** * Optional. Client specified annotations. */ annotations?: { [key: string]: string; } | null; /** * The time when the package was created. */ createTime?: string | null; /** * The display name of the package. */ displayName?: string | null; /** * 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. */ name?: string | null; /** * The time when the package was last updated. This includes publishing a new version of the package. */ updateTime?: string | null; } /** * An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. F