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:v1beta2

The following keys were deleted:
- 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 added:
- 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 changed:
- resources.projects.resources.locations.resources.repositories.methods.patch.parameters.name.description
- schemas.GoogleDevtoolsArtifactregistryV1beta2File.properties.name.description
- schemas.Repository.properties.name.description

#### artifactregistry:v1

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.GoogleDevtoolsArtifactregistryV1File.properties.name.description
- schemas.Repository.properties.name.description
- schemas.VirtualRepositoryConfig.description
  • Loading branch information
yoshi-automation authored and sofisl committed May 8, 2024
1 parent 32afa3e commit 4fba2fd
Show file tree
Hide file tree
Showing 3 changed files with 184 additions and 187 deletions.
75 changes: 38 additions & 37 deletions discovery/artifactregistry-v1.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": "v1/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": "v1/{+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 @@ -538,7 +506,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 @@ -767,6 +735,34 @@
},
"files": {
"methods": {
"download": {
"description": "Download a file.",
"flatPath": "v1/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": "v1/{+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": "v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/files/{filesId}",
Expand Down Expand Up @@ -1782,7 +1778,7 @@
}
}
},
"revision": "20240425",
"revision": "20240501",
"rootUrl": "https://artifactregistry.googleapis.com/",
"schemas": {
"AptArtifact": {
Expand Down Expand Up @@ -2224,7 +2220,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 @@ -3319,13 +3315,18 @@
"type": "string"
},
"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"
},
"remoteRepositoryConfig": {
"$ref": "RemoteRepositoryConfig",
"description": "Configuration specific for a Remote Repository."
},
"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 Expand Up @@ -3754,7 +3755,7 @@
"type": "object"
},
"VirtualRepositoryConfig": {
"description": "Virtual repository configuration.",
"description": "LINT.IfChange Virtual repository configuration.",
"id": "VirtualRepositoryConfig",
"properties": {
"upstreamPolicies": {
Expand Down
73 changes: 36 additions & 37 deletions discovery/artifactregistry-v1beta2.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,38 @@
},
"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 @@ -446,7 +478,7 @@
],
"parameters": {
"name": {
"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.",
"description": "The name of the repository, for example: `projects/p1/locations/us-central1/repositories/repo1`.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$",
"required": true,
Expand Down Expand Up @@ -603,34 +635,6 @@
},
"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 @@ -1204,7 +1208,7 @@
}
}
},
"revision": "20240501",
"revision": "20240425",
"rootUrl": "https://artifactregistry.googleapis.com/",
"schemas": {
"AptArtifact": {
Expand Down Expand Up @@ -1330,7 +1334,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 @@ -1873,14 +1877,9 @@
"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`. For each location in a project, repository names must be unique.",
"description": "The name of the repository, for example: `projects/p1/locations/us-central1/repositories/repo1`.",
"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
Loading

0 comments on commit 4fba2fd

Please sign in to comment.