Skip to content

Commit bc8f3e1

Browse files
yoshi-automationquirogas
authored andcommitted
feat(artifactregistry): update the API
#### artifactregistry:v1 The following keys were added: - schemas.DockerImage.properties.artifactType.description - schemas.DockerImage.properties.artifactType.type - schemas.DockerImage.properties.imageManifests.description - schemas.DockerImage.properties.imageManifests.items.$ref - schemas.DockerImage.properties.imageManifests.type - schemas.ImageManifest.description - schemas.ImageManifest.id - schemas.ImageManifest.properties.architecture.description - schemas.ImageManifest.properties.architecture.type - schemas.ImageManifest.properties.digest.description - schemas.ImageManifest.properties.digest.type - schemas.ImageManifest.properties.mediaType.description - schemas.ImageManifest.properties.mediaType.type - schemas.ImageManifest.properties.os.description - schemas.ImageManifest.properties.os.type - schemas.ImageManifest.properties.osFeatures.description - schemas.ImageManifest.properties.osFeatures.items.type - schemas.ImageManifest.properties.osFeatures.type - schemas.ImageManifest.properties.osVersion.description - schemas.ImageManifest.properties.osVersion.type - schemas.ImageManifest.properties.variant.description - schemas.ImageManifest.properties.variant.type - schemas.ImageManifest.type The following keys were changed: - resources.projects.resources.locations.resources.repositories.methods.exportArtifact.description
1 parent ae58a71 commit bc8f3e1

File tree

2 files changed

+95
-3
lines changed

2 files changed

+95
-3
lines changed

discovery/artifactregistry-v1.json

Lines changed: 51 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@
638638
]
639639
},
640640
"exportArtifact": {
641-
"description": "Exports an artifact.",
641+
"description": "Exports an artifact to a Cloud Storage bucket.",
642642
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}:exportArtifact",
643643
"httpMethod": "POST",
644644
"id": "artifactregistry.projects.locations.repositories.exportArtifact",
@@ -2493,7 +2493,7 @@
24932493
}
24942494
}
24952495
},
2496-
"revision": "20251029",
2496+
"revision": "20251201",
24972497
"rootUrl": "https://artifactregistry.googleapis.com/",
24982498
"schemas": {
24992499
"AptArtifact": {
@@ -2788,11 +2788,22 @@
27882788
"description": "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",
27892789
"id": "DockerImage",
27902790
"properties": {
2791+
"artifactType": {
2792+
"description": "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.",
2793+
"type": "string"
2794+
},
27912795
"buildTime": {
27922796
"description": "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.",
27932797
"format": "google-datetime",
27942798
"type": "string"
27952799
},
2800+
"imageManifests": {
2801+
"description": "Optional. For multi-arch images (manifest lists), this field contains the list of image manifests.",
2802+
"items": {
2803+
"$ref": "ImageManifest"
2804+
},
2805+
"type": "array"
2806+
},
27962807
"imageSizeBytes": {
27972808
"description": "Calculated size of the image. This field is returned as the 'metadata.imageSizeBytes' field in the Version resource.",
27982809
"format": "int64",
@@ -3290,6 +3301,44 @@
32903301
},
32913302
"type": "object"
32923303
},
3304+
"ImageManifest": {
3305+
"description": "Details of a single image manifest within a multi-arch image.",
3306+
"id": "ImageManifest",
3307+
"properties": {
3308+
"architecture": {
3309+
"description": "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.",
3310+
"type": "string"
3311+
},
3312+
"digest": {
3313+
"description": "Optional. The manifest digest, in the format \"sha256:\".",
3314+
"type": "string"
3315+
},
3316+
"mediaType": {
3317+
"description": "Optional. The media type of the manifest, e.g., \"application/vnd.docker.distribution.manifest.v2+json\"",
3318+
"type": "string"
3319+
},
3320+
"os": {
3321+
"description": "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.",
3322+
"type": "string"
3323+
},
3324+
"osFeatures": {
3325+
"description": "Optional. The required OS features for the image, for example on Windows `win32k`.",
3326+
"items": {
3327+
"type": "string"
3328+
},
3329+
"type": "array"
3330+
},
3331+
"osVersion": {
3332+
"description": "Optional. The OS version of the image, for example on Windows `10.0.14393.1066`.",
3333+
"type": "string"
3334+
},
3335+
"variant": {
3336+
"description": "Optional. The variant of the CPU in the image, for example `v7` to specify ARMv7 when architecture is `arm`.",
3337+
"type": "string"
3338+
}
3339+
},
3340+
"type": "object"
3341+
},
32933342
"ImportAptArtifactsErrorInfo": {
32943343
"description": "Error information explaining why a package was not imported.",
32953344
"id": "ImportAptArtifactsErrorInfo",

src/apis/artifactregistry/v1.ts

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,10 +322,18 @@ export namespace artifactregistry_v1 {
322322
* 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
323323
*/
324324
export interface Schema$DockerImage {
325+
/**
326+
* 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.
327+
*/
328+
artifactType?: string | null;
325329
/**
326330
* 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.
327331
*/
328332
buildTime?: string | null;
333+
/**
334+
* Optional. For multi-arch images (manifest lists), this field contains the list of image manifests.
335+
*/
336+
imageManifests?: Schema$ImageManifest[];
329337
/**
330338
* Calculated size of the image. This field is returned as the 'metadata.imageSizeBytes' field in the Version resource.
331339
*/
@@ -669,6 +677,39 @@ export namespace artifactregistry_v1 {
669677
*/
670678
value?: string | null;
671679
}
680+
/**
681+
* Details of a single image manifest within a multi-arch image.
682+
*/
683+
export interface Schema$ImageManifest {
684+
/**
685+
* 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.
686+
*/
687+
architecture?: string | null;
688+
/**
689+
* Optional. The manifest digest, in the format "sha256:".
690+
*/
691+
digest?: string | null;
692+
/**
693+
* Optional. The media type of the manifest, e.g., "application/vnd.docker.distribution.manifest.v2+json"
694+
*/
695+
mediaType?: string | null;
696+
/**
697+
* 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.
698+
*/
699+
os?: string | null;
700+
/**
701+
* Optional. The required OS features for the image, for example on Windows `win32k`.
702+
*/
703+
osFeatures?: string[] | null;
704+
/**
705+
* Optional. The OS version of the image, for example on Windows `10.0.14393.1066`.
706+
*/
707+
osVersion?: string | null;
708+
/**
709+
* Optional. The variant of the CPU in the image, for example `v7` to specify ARMv7 when architecture is `arm`.
710+
*/
711+
variant?: string | null;
712+
}
672713
/**
673714
* Error information explaining why a package was not imported.
674715
*/
@@ -3252,7 +3293,7 @@ export namespace artifactregistry_v1 {
32523293
}
32533294

32543295
/**
3255-
* Exports an artifact.
3296+
* Exports an artifact to a Cloud Storage bucket.
32563297
* @example
32573298
* ```js
32583299
* // Before running the sample:
@@ -5526,7 +5567,9 @@ export namespace artifactregistry_v1 {
55265567
*
55275568
* // Example response
55285569
* // {
5570+
* // "artifactType": "my_artifactType",
55295571
* // "buildTime": "my_buildTime",
5572+
* // "imageManifests": [],
55305573
* // "imageSizeBytes": "my_imageSizeBytes",
55315574
* // "mediaType": "my_mediaType",
55325575
* // "name": "my_name",

0 commit comments

Comments
 (0)