Skip to content

Commit

Permalink
feat(artifactregistry)!: update the API
Browse files Browse the repository at this point in the history
BREAKING CHANGE: This release has breaking changes.

#### artifactregistry:v1beta1

The following keys were added:
- endpoints

The following keys were changed:
- schemas.Repository.properties.format.description

#### artifactregistry:v1beta2

The following keys were added:
- endpoints

The following keys were changed:
- schemas.Repository.properties.format.description
- schemas.UploadYumArtifactResponse.properties.yumArtifacts.description

#### artifactregistry:v1

The following keys were deleted:
- schemas.Repository.properties.sbomConfig.$ref
- schemas.Repository.properties.sbomConfig.description
- schemas.SbomConfig.description
- schemas.SbomConfig.id
- schemas.SbomConfig.properties.enablementConfig.description
- schemas.SbomConfig.properties.enablementConfig.enum
- schemas.SbomConfig.properties.enablementConfig.enumDescriptions
- schemas.SbomConfig.properties.enablementConfig.type
- schemas.SbomConfig.properties.lastEnableTime.description
- schemas.SbomConfig.properties.lastEnableTime.format
- schemas.SbomConfig.properties.lastEnableTime.readOnly
- schemas.SbomConfig.properties.lastEnableTime.type
- schemas.SbomConfig.type

The following keys were added:
- endpoints

The following keys were changed:
- schemas.Repository.properties.format.description
- schemas.Repository.properties.mode.description
- schemas.UploadYumArtifactResponse.properties.yumArtifacts.description
  • Loading branch information
yoshi-automation authored and sofisl committed Sep 22, 2023
1 parent 7150925 commit e3ac97a
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 61 deletions.
46 changes: 11 additions & 35 deletions discovery/artifactregistry-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@
"description": "Store and manage build artifacts in a scalable and integrated service built on Google infrastructure.",
"discoveryVersion": "v1",
"documentationLink": "https://cloud.google.com/artifacts/docs/",
"endpoints": [
{
"endpointUrl": "https://artifactregistry.me-central2.rep.googleapis.com/",
"location": "me-central2",
"description": "Regional Endpoint"
}
],
"fullyEncodeReservedExpansion": true,
"icons": {
"x16": "http://www.google.com/images/icons/product/search-16.gif",
Expand Down Expand Up @@ -1661,7 +1668,7 @@
}
}
},
"revision": "20230809",
"revision": "20230913",
"rootUrl": "https://artifactregistry.googleapis.com/",
"schemas": {
"AptArtifact": {
Expand Down Expand Up @@ -2998,7 +3005,7 @@
"description": "Docker repository config contains repository level configuration for the repositories of docker type."
},
"format": {
"description": "The format of packages that are stored in the repository.",
"description": "Optional. The format of packages that are stored in the repository.",
"enum": [
"FORMAT_UNSPECIFIED",
"DOCKER",
Expand Down Expand Up @@ -3041,7 +3048,7 @@
"description": "Maven repository config contains repository level configuration for the repositories of maven type."
},
"mode": {
"description": "The mode of the repository.",
"description": "Optional. The mode of the repository.",
"enum": [
"MODE_UNSPECIFIED",
"STANDARD_REPOSITORY",
Expand Down Expand Up @@ -3069,10 +3076,6 @@
"readOnly": true,
"type": "boolean"
},
"sbomConfig": {
"$ref": "SbomConfig",
"description": "Optional. Config and state for sbom generation for resources within this Repository."
},
"sizeBytes": {
"description": "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.",
"format": "int64",
Expand All @@ -3092,33 +3095,6 @@
},
"type": "object"
},
"SbomConfig": {
"description": "Config for whether to generate SBOMs for resources in this repository, as well as output fields describing current state.",
"id": "SbomConfig",
"properties": {
"enablementConfig": {
"description": "Optional. Config for whether this repository has sbom generation disabled.",
"enum": [
"ENABLEMENT_CONFIG_UNSPECIFIED",
"INHERITED",
"DISABLED"
],
"enumDescriptions": [
"Unspecified config was not set. This will be interpreted as DISABLED.",
"Inherited indicates the repository is allowed for SBOM generation, however the actual state will be inherited from the API enablement state.",
"Disabled indicates the repository will not generate SBOMs."
],
"type": "string"
},
"lastEnableTime": {
"description": "Output only. The last time this repository config was set to INHERITED.",
"format": "google-datetime",
"readOnly": true,
"type": "string"
}
},
"type": "object"
},
"SetIamPolicyRequest": {
"description": "Request message for `SetIamPolicy` method.",
"id": "SetIamPolicyRequest",
Expand Down Expand Up @@ -3360,7 +3336,7 @@
"id": "UploadYumArtifactResponse",
"properties": {
"yumArtifacts": {
"description": "The Apt artifacts updated.",
"description": "The Yum artifacts updated.",
"items": {
"$ref": "YumArtifact"
},
Expand Down
11 changes: 9 additions & 2 deletions discovery/artifactregistry-v1beta1.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@
"description": "Store and manage build artifacts in a scalable and integrated service built on Google infrastructure.",
"discoveryVersion": "v1",
"documentationLink": "https://cloud.google.com/artifacts/docs/",
"endpoints": [
{
"description": "Regional Endpoint",
"endpointUrl": "https://artifactregistry.me-central2.rep.googleapis.com/",
"location": "me-central2"
}
],
"fullyEncodeReservedExpansion": true,
"icons": {
"x16": "http://www.google.com/images/icons/product/search-16.gif",
Expand Down Expand Up @@ -929,7 +936,7 @@
}
}
},
"revision": "20230803",
"revision": "20230918",
"rootUrl": "https://artifactregistry.googleapis.com/",
"schemas": {
"Binding": {
Expand Down Expand Up @@ -1289,7 +1296,7 @@
"type": "string"
},
"format": {
"description": "The format of packages that are stored in the repository.",
"description": "Optional. The format of packages that are stored in the repository.",
"enum": [
"FORMAT_UNSPECIFIED",
"DOCKER",
Expand Down
13 changes: 10 additions & 3 deletions discovery/artifactregistry-v1beta2.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@
"description": "Store and manage build artifacts in a scalable and integrated service built on Google infrastructure.",
"discoveryVersion": "v1",
"documentationLink": "https://cloud.google.com/artifacts/docs/",
"endpoints": [
{
"endpointUrl": "https://artifactregistry.me-central2.rep.googleapis.com/",
"description": "Regional Endpoint",
"location": "me-central2"
}
],
"fullyEncodeReservedExpansion": true,
"icons": {
"x16": "http://www.google.com/images/icons/product/search-16.gif",
Expand Down Expand Up @@ -1135,7 +1142,7 @@
}
}
},
"revision": "20230803",
"revision": "20230913",
"rootUrl": "https://artifactregistry.googleapis.com/",
"schemas": {
"AptArtifact": {
Expand Down Expand Up @@ -1749,7 +1756,7 @@
"type": "string"
},
"format": {
"description": "The format of packages that are stored in the repository.",
"description": "Optional. The format of packages that are stored in the repository.",
"enum": [
"FORMAT_UNSPECIFIED",
"DOCKER",
Expand Down Expand Up @@ -1957,7 +1964,7 @@
"id": "UploadYumArtifactResponse",
"properties": {
"yumArtifacts": {
"description": "The Apt artifacts updated.",
"description": "The Yum artifacts updated.",
"items": {
"$ref": "YumArtifact"
},
Expand Down
23 changes: 3 additions & 20 deletions src/apis/artifactregistry/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1051,7 +1051,7 @@ export namespace artifactregistry_v1 {
*/
dockerConfig?: Schema$DockerRepositoryConfig;
/**
* The format of packages that are stored in the repository.
* Optional. The format of packages that are stored in the repository.
*/
format?: string | null;
/**
Expand All @@ -1067,7 +1067,7 @@ export namespace artifactregistry_v1 {
*/
mavenConfig?: Schema$MavenRepositoryConfig;
/**
* The mode of the repository.
* Optional. The mode of the repository.
*/
mode?: string | null;
/**
Expand All @@ -1082,10 +1082,6 @@ export namespace artifactregistry_v1 {
* Output only. If set, the repository satisfies physical zone separation.
*/
satisfiesPzs?: boolean | null;
/**
* Optional. Config and state for sbom generation for resources within this Repository.
*/
sbomConfig?: Schema$SbomConfig;
/**
* 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.
*/
Expand All @@ -1099,19 +1095,6 @@ export namespace artifactregistry_v1 {
*/
virtualRepositoryConfig?: Schema$VirtualRepositoryConfig;
}
/**
* Config for whether to generate SBOMs for resources in this repository, as well as output fields describing current state.
*/
export interface Schema$SbomConfig {
/**
* Optional. Config for whether this repository has sbom generation disabled.
*/
enablementConfig?: string | null;
/**
* Output only. The last time this repository config was set to INHERITED.
*/
lastEnableTime?: string | null;
}
/**
* Request message for `SetIamPolicy` method.
*/
Expand Down Expand Up @@ -1286,7 +1269,7 @@ export namespace artifactregistry_v1 {
*/
export interface Schema$UploadYumArtifactResponse {
/**
* The Apt artifacts updated.
* The Yum artifacts updated.
*/
yumArtifacts?: Schema$YumArtifact[];
}
Expand Down
2 changes: 1 addition & 1 deletion src/apis/artifactregistry/v1beta1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ export namespace artifactregistry_v1beta1 {
*/
description?: string | null;
/**
* The format of packages that are stored in the repository.
* Optional. The format of packages that are stored in the repository.
*/
format?: string | null;
/**
Expand Down

0 comments on commit e3ac97a

Please sign in to comment.