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:
- schemas.Repository.properties.satisfiesPzi.description
- schemas.Repository.properties.satisfiesPzi.readOnly
- schemas.Repository.properties.satisfiesPzi.type

The following keys were changed:
- resources.projects.resources.locations.resources.repositories.methods.patch.parameters.name.description
- schemas.File.properties.name.description
- schemas.Repository.properties.name.description

#### artifactregistry:v1beta2

The following keys were deleted:
- resources.media.methods.download.description
- resources.media.methods.download.flatPath
- resources.media.methods.download.httpMethod
- resources.media.methods.download.id
- resources.media.methods.download.parameterOrder
- resources.media.methods.download.parameters.name.description
- resources.media.methods.download.parameters.name.location
- resources.media.methods.download.parameters.name.pattern
- resources.media.methods.download.parameters.name.required
- resources.media.methods.download.parameters.name.type
- resources.media.methods.download.path
- resources.media.methods.download.response.$ref
- resources.media.methods.download.scopes
- resources.media.methods.download.supportsMediaDownload
- resources.media.methods.download.useMediaDownloadService

The following keys were added:
- resources.projects.resources.locations.resources.repositories.resources.files.methods.download.description
- resources.projects.resources.locations.resources.repositories.resources.files.methods.download.flatPath
- resources.projects.resources.locations.resources.repositories.resources.files.methods.download.httpMethod
- resources.projects.resources.locations.resources.repositories.resources.files.methods.download.id
- resources.projects.resources.locations.resources.repositories.resources.files.methods.download.parameterOrder
- resources.projects.resources.locations.resources.repositories.resources.files.methods.download.parameters.name.description
- resources.projects.resources.locations.resources.repositories.resources.files.methods.download.parameters.name.location
- resources.projects.resources.locations.resources.repositories.resources.files.methods.download.parameters.name.pattern
- resources.projects.resources.locations.resources.repositories.resources.files.methods.download.parameters.name.required
- resources.projects.resources.locations.resources.repositories.resources.files.methods.download.parameters.name.type
- resources.projects.resources.locations.resources.repositories.resources.files.methods.download.path
- resources.projects.resources.locations.resources.repositories.resources.files.methods.download.response.$ref
- resources.projects.resources.locations.resources.repositories.resources.files.methods.download.scopes
- resources.projects.resources.locations.resources.repositories.resources.files.methods.download.supportsMediaDownload
- resources.projects.resources.locations.resources.repositories.resources.files.methods.download.useMediaDownloadService
- schemas.Repository.properties.satisfiesPzi.description
- schemas.Repository.properties.satisfiesPzi.readOnly
- schemas.Repository.properties.satisfiesPzi.type

The following keys were changed:
- resources.projects.resources.locations.resources.repositories.methods.patch.parameters.name.description
- schemas.GoogleDevtoolsArtifactregistryV1beta2File.properties.name.description
- schemas.Repository.properties.name.description
  • Loading branch information
yoshi-automation authored and sofisl committed May 7, 2024
1 parent 925c9eb commit 2c2b2f8
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 43 deletions.
13 changes: 9 additions & 4 deletions discovery/artifactregistry-v1beta1.json
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@
],
"parameters": {
"name": {
"description": "The name of the repository, for example: `projects/p1/locations/us-central1/repositories/repo1`.",
"description": "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.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$",
"required": true,
Expand Down Expand Up @@ -936,7 +936,7 @@
}
}
},
"revision": "20240122",
"revision": "20240501",
"rootUrl": "https://artifactregistry.googleapis.com/",
"schemas": {
"Binding": {
Expand Down Expand Up @@ -1008,7 +1008,7 @@
"type": "array"
},
"name": {
"description": "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.",
"description": "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.",
"type": "string"
},
"owner": {
Expand Down Expand Up @@ -1331,9 +1331,14 @@
"type": "object"
},
"name": {
"description": "The name of the repository, for example: `projects/p1/locations/us-central1/repositories/repo1`.",
"description": "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.",
"type": "string"
},
"satisfiesPzi": {
"description": "Output only. If set, the repository satisfies physical zone isolation.",
"readOnly": true,
"type": "boolean"
},
"satisfiesPzs": {
"description": "Output only. If set, the repository satisfies physical zone separation.",
"readOnly": true,
Expand Down
73 changes: 37 additions & 36 deletions discovery/artifactregistry-v1beta2.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,38 +115,6 @@
},
"protocol": "rest",
"resources": {
"media": {
"methods": {
"download": {
"description": "Download a file.",
"flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/files/{filesId}:download",
"httpMethod": "GET",
"id": "artifactregistry.media.download",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Required. The name of the file to download.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/files/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1beta2/{+name}:download",
"response": {
"$ref": "DownloadFileResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud-platform.read-only"
],
"supportsMediaDownload": true,
"useMediaDownloadService": true
}
}
},
"projects": {
"methods": {
"getProjectSettings": {
Expand Down Expand Up @@ -478,7 +446,7 @@
],
"parameters": {
"name": {
"description": "The name of the repository, for example: `projects/p1/locations/us-central1/repositories/repo1`.",
"description": "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.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$",
"required": true,
Expand Down Expand Up @@ -635,6 +603,34 @@
},
"files": {
"methods": {
"download": {
"description": "Download a file.",
"flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/files/{filesId}:download",
"httpMethod": "GET",
"id": "artifactregistry.projects.locations.repositories.files.download",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Required. The name of the file to download.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/files/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1beta2/{+name}:download",
"response": {
"$ref": "DownloadFileResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud-platform.read-only"
],
"supportsMediaDownload": true,
"useMediaDownloadService": true
},
"get": {
"description": "Gets a file.",
"flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/files/{filesId}",
Expand Down Expand Up @@ -1208,7 +1204,7 @@
}
}
},
"revision": "20240308",
"revision": "20240501",
"rootUrl": "https://artifactregistry.googleapis.com/",
"schemas": {
"AptArtifact": {
Expand Down Expand Up @@ -1334,7 +1330,7 @@
"type": "array"
},
"name": {
"description": "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.",
"description": "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.",
"type": "string"
},
"owner": {
Expand Down Expand Up @@ -1877,9 +1873,14 @@
"description": "Maven repository config contains repository level configuration for the repositories of maven type."
},
"name": {
"description": "The name of the repository, for example: `projects/p1/locations/us-central1/repositories/repo1`.",
"description": "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.",
"type": "string"
},
"satisfiesPzi": {
"description": "Output only. If set, the repository satisfies physical zone isolation.",
"readOnly": true,
"type": "boolean"
},
"satisfiesPzs": {
"description": "Output only. If set, the repository satisfies physical zone separation.",
"readOnly": true,
Expand Down
10 changes: 7 additions & 3 deletions src/apis/artifactregistry/v1beta1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export namespace artifactregistry_v1beta1 {
*/
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.
* 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;
/**
Expand Down Expand Up @@ -399,9 +399,13 @@ export namespace artifactregistry_v1beta1 {
*/
labels?: {[key: string]: string} | null;
/**
* The name of the repository, for example: `projects/p1/locations/us-central1/repositories/repo1`.
* 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.
*/
name?: string | null;
/**
* Output only. If set, the repository satisfies physical zone isolation.
*/
satisfiesPzi?: boolean | null;
/**
* Output only. If set, the repository satisfies physical zone separation.
*/
Expand Down Expand Up @@ -1622,7 +1626,7 @@ export namespace artifactregistry_v1beta1 {
export interface Params$Resource$Projects$Locations$Repositories$Patch
extends StandardParameters {
/**
* The name of the repository, for example: `projects/p1/locations/us-central1/repositories/repo1`.
* 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.
*/
name?: string;
/**
Expand Down

0 comments on commit 2c2b2f8

Please sign in to comment.