Skip to content

Commit f660310

Browse files
yoshi-automationsofisl
authored andcommitted
feat(artifactregistry): update the API
#### artifactregistry:v1beta2 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 - resources.projects.resources.locations.resources.repositories.resources.packages.methods.patch.description - resources.projects.resources.locations.resources.repositories.resources.packages.methods.patch.flatPath - resources.projects.resources.locations.resources.repositories.resources.packages.methods.patch.httpMethod - resources.projects.resources.locations.resources.repositories.resources.packages.methods.patch.id - resources.projects.resources.locations.resources.repositories.resources.packages.methods.patch.parameterOrder - resources.projects.resources.locations.resources.repositories.resources.packages.methods.patch.parameters.name.description - resources.projects.resources.locations.resources.repositories.resources.packages.methods.patch.parameters.name.location - resources.projects.resources.locations.resources.repositories.resources.packages.methods.patch.parameters.name.pattern - resources.projects.resources.locations.resources.repositories.resources.packages.methods.patch.parameters.name.required - resources.projects.resources.locations.resources.repositories.resources.packages.methods.patch.parameters.name.type - resources.projects.resources.locations.resources.repositories.resources.packages.methods.patch.parameters.updateMask.description - resources.projects.resources.locations.resources.repositories.resources.packages.methods.patch.parameters.updateMask.format - resources.projects.resources.locations.resources.repositories.resources.packages.methods.patch.parameters.updateMask.location - resources.projects.resources.locations.resources.repositories.resources.packages.methods.patch.parameters.updateMask.type - resources.projects.resources.locations.resources.repositories.resources.packages.methods.patch.path - resources.projects.resources.locations.resources.repositories.resources.packages.methods.patch.request.$ref - resources.projects.resources.locations.resources.repositories.resources.packages.methods.patch.response.$ref - resources.projects.resources.locations.resources.repositories.resources.packages.methods.patch.scopes - schemas.DownloadFileResponse.description - schemas.DownloadFileResponse.id - schemas.DownloadFileResponse.type - schemas.Package.properties.annotations.additionalProperties.type - schemas.Package.properties.annotations.description - schemas.Package.properties.annotations.type The following keys were changed: - schemas.ProjectSettings.properties.legacyRedirectionState.enum - schemas.ProjectSettings.properties.legacyRedirectionState.enumDeprecated - schemas.ProjectSettings.properties.legacyRedirectionState.enumDescriptions #### artifactregistry:v1 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 - resources.projects.resources.locations.resources.repositories.resources.packages.methods.patch.description - resources.projects.resources.locations.resources.repositories.resources.packages.methods.patch.flatPath - resources.projects.resources.locations.resources.repositories.resources.packages.methods.patch.httpMethod - resources.projects.resources.locations.resources.repositories.resources.packages.methods.patch.id - resources.projects.resources.locations.resources.repositories.resources.packages.methods.patch.parameterOrder - resources.projects.resources.locations.resources.repositories.resources.packages.methods.patch.parameters.name.description - resources.projects.resources.locations.resources.repositories.resources.packages.methods.patch.parameters.name.location - resources.projects.resources.locations.resources.repositories.resources.packages.methods.patch.parameters.name.pattern - resources.projects.resources.locations.resources.repositories.resources.packages.methods.patch.parameters.name.required - resources.projects.resources.locations.resources.repositories.resources.packages.methods.patch.parameters.name.type - resources.projects.resources.locations.resources.repositories.resources.packages.methods.patch.parameters.updateMask.description - resources.projects.resources.locations.resources.repositories.resources.packages.methods.patch.parameters.updateMask.format - resources.projects.resources.locations.resources.repositories.resources.packages.methods.patch.parameters.updateMask.location - resources.projects.resources.locations.resources.repositories.resources.packages.methods.patch.parameters.updateMask.type - resources.projects.resources.locations.resources.repositories.resources.packages.methods.patch.path - resources.projects.resources.locations.resources.repositories.resources.packages.methods.patch.request.$ref - resources.projects.resources.locations.resources.repositories.resources.packages.methods.patch.response.$ref - resources.projects.resources.locations.resources.repositories.resources.packages.methods.patch.scopes - schemas.AptRepository.properties.customRepository.$ref - schemas.AptRepository.properties.customRepository.description - schemas.DockerRepository.properties.customRepository.$ref - schemas.DockerRepository.properties.customRepository.description - schemas.DownloadFileResponse.description - schemas.DownloadFileResponse.id - schemas.DownloadFileResponse.type - schemas.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigAptRepositoryCustomRepository.description - schemas.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigAptRepositoryCustomRepository.id - schemas.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigAptRepositoryCustomRepository.properties.uri.description - schemas.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigAptRepositoryCustomRepository.properties.uri.type - schemas.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigAptRepositoryCustomRepository.type - schemas.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigDockerRepositoryCustomRepository.description - schemas.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigDockerRepositoryCustomRepository.id - schemas.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigDockerRepositoryCustomRepository.properties.uri.description - schemas.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigDockerRepositoryCustomRepository.properties.uri.type - schemas.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigDockerRepositoryCustomRepository.type - schemas.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigMavenRepositoryCustomRepository.description - schemas.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigMavenRepositoryCustomRepository.id - schemas.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigMavenRepositoryCustomRepository.properties.uri.description - schemas.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigMavenRepositoryCustomRepository.properties.uri.type - schemas.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigMavenRepositoryCustomRepository.type - schemas.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigNpmRepositoryCustomRepository.description - schemas.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigNpmRepositoryCustomRepository.id - schemas.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigNpmRepositoryCustomRepository.properties.uri.description - schemas.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigNpmRepositoryCustomRepository.properties.uri.type - schemas.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigNpmRepositoryCustomRepository.type - schemas.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigPythonRepositoryCustomRepository.description - schemas.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigPythonRepositoryCustomRepository.id - schemas.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigPythonRepositoryCustomRepository.properties.uri.description - schemas.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigPythonRepositoryCustomRepository.properties.uri.type - schemas.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigPythonRepositoryCustomRepository.type - schemas.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigYumRepositoryCustomRepository.description - schemas.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigYumRepositoryCustomRepository.id - schemas.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigYumRepositoryCustomRepository.properties.uri.description - schemas.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigYumRepositoryCustomRepository.properties.uri.type - schemas.GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigYumRepositoryCustomRepository.type - schemas.MavenRepository.properties.customRepository.$ref - schemas.MavenRepository.properties.customRepository.description - schemas.NpmRepository.properties.customRepository.$ref - schemas.NpmRepository.properties.customRepository.description - schemas.Package.properties.annotations.additionalProperties.type - schemas.Package.properties.annotations.description - schemas.Package.properties.annotations.type - schemas.PythonRepository.properties.customRepository.$ref - schemas.PythonRepository.properties.customRepository.description - schemas.RemoteRepositoryConfig.properties.disableUpstreamValidation.description - schemas.RemoteRepositoryConfig.properties.disableUpstreamValidation.type - schemas.YumRepository.properties.customRepository.$ref - schemas.YumRepository.properties.customRepository.description The following keys were changed: - schemas.ProjectSettings.properties.legacyRedirectionState.enum - schemas.ProjectSettings.properties.legacyRedirectionState.enumDeprecated - schemas.ProjectSettings.properties.legacyRedirectionState.enumDescriptions
1 parent 6acbca7 commit f660310

File tree

3 files changed

+566
-8
lines changed

3 files changed

+566
-8
lines changed

discovery/artifactregistry-v1.json

Lines changed: 180 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,38 @@
115115
},
116116
"protocol": "rest",
117117
"resources": {
118+
"media": {
119+
"methods": {
120+
"download": {
121+
"description": "Download a file.",
122+
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/files/{filesId}:download",
123+
"httpMethod": "GET",
124+
"id": "artifactregistry.media.download",
125+
"parameterOrder": [
126+
"name"
127+
],
128+
"parameters": {
129+
"name": {
130+
"description": "Required. The name of the file to download.",
131+
"location": "path",
132+
"pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/files/[^/]+$",
133+
"required": true,
134+
"type": "string"
135+
}
136+
},
137+
"path": "v1/{+name}:download",
138+
"response": {
139+
"$ref": "DownloadFileResponse"
140+
},
141+
"scopes": [
142+
"https://www.googleapis.com/auth/cloud-platform",
143+
"https://www.googleapis.com/auth/cloud-platform.read-only"
144+
],
145+
"supportsMediaDownload": true,
146+
"useMediaDownloadService": true
147+
}
148+
}
149+
},
118150
"projects": {
119151
"methods": {
120152
"getProjectSettings": {
@@ -1193,6 +1225,40 @@
11931225
"https://www.googleapis.com/auth/cloud-platform",
11941226
"https://www.googleapis.com/auth/cloud-platform.read-only"
11951227
]
1228+
},
1229+
"patch": {
1230+
"description": "Updates a package.",
1231+
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/packages/{packagesId}",
1232+
"httpMethod": "PATCH",
1233+
"id": "artifactregistry.projects.locations.repositories.packages.patch",
1234+
"parameterOrder": [
1235+
"name"
1236+
],
1237+
"parameters": {
1238+
"name": {
1239+
"description": "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.",
1240+
"location": "path",
1241+
"pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/packages/[^/]+$",
1242+
"required": true,
1243+
"type": "string"
1244+
},
1245+
"updateMask": {
1246+
"description": "The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask",
1247+
"format": "google-fieldmask",
1248+
"location": "query",
1249+
"type": "string"
1250+
}
1251+
},
1252+
"path": "v1/{+name}",
1253+
"request": {
1254+
"$ref": "Package"
1255+
},
1256+
"response": {
1257+
"$ref": "Package"
1258+
},
1259+
"scopes": [
1260+
"https://www.googleapis.com/auth/cloud-platform"
1261+
]
11961262
}
11971263
},
11981264
"resources": {
@@ -1668,7 +1734,7 @@
16681734
}
16691735
}
16701736
},
1671-
"revision": "20240213",
1737+
"revision": "20240308",
16721738
"rootUrl": "https://artifactregistry.googleapis.com/",
16731739
"schemas": {
16741740
"AptArtifact": {
@@ -1723,6 +1789,10 @@
17231789
"description": "Configuration for an Apt remote repository.",
17241790
"id": "AptRepository",
17251791
"properties": {
1792+
"customRepository": {
1793+
"$ref": "GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigAptRepositoryCustomRepository",
1794+
"description": "Customer-specified remote repository."
1795+
},
17261796
"publicRepository": {
17271797
"$ref": "GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigAptRepositoryPublicRepository",
17281798
"description": "One of the publicly available Apt repositories supported by Artifact Registry."
@@ -1941,6 +2011,10 @@
19412011
"description": "Configuration for a Docker remote repository.",
19422012
"id": "DockerRepository",
19432013
"properties": {
2014+
"customRepository": {
2015+
"$ref": "GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigDockerRepositoryCustomRepository",
2016+
"description": "Customer-specified remote repository."
2017+
},
19442018
"publicRepository": {
19452019
"description": "One of the publicly available Docker repositories supported by Artifact Registry.",
19462020
"enum": [
@@ -1967,6 +2041,12 @@
19672041
},
19682042
"type": "object"
19692043
},
2044+
"DownloadFileResponse": {
2045+
"description": "The response to download a file.",
2046+
"id": "DownloadFileResponse",
2047+
"properties": {},
2048+
"type": "object"
2049+
},
19702050
"Empty": {
19712051
"description": "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); }",
19722052
"id": "Empty",
@@ -2090,6 +2170,17 @@
20902170
},
20912171
"type": "object"
20922172
},
2173+
"GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigAptRepositoryCustomRepository": {
2174+
"description": "Customer-specified publicly available remote repository.",
2175+
"id": "GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigAptRepositoryCustomRepository",
2176+
"properties": {
2177+
"uri": {
2178+
"description": "An http/https uri reference to the upstream remote repository, for ex: \"https://my.apt.registry/\".",
2179+
"type": "string"
2180+
}
2181+
},
2182+
"type": "object"
2183+
},
20932184
"GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigAptRepositoryPublicRepository": {
20942185
"description": "Publicly available Apt repositories constructed from a common repository base and a custom repository path.",
20952186
"id": "GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigAptRepositoryPublicRepository",
@@ -2117,6 +2208,61 @@
21172208
},
21182209
"type": "object"
21192210
},
2211+
"GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigDockerRepositoryCustomRepository": {
2212+
"description": "Customer-specified publicly available remote repository.",
2213+
"id": "GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigDockerRepositoryCustomRepository",
2214+
"properties": {
2215+
"uri": {
2216+
"description": "An http/https uri reference to the custom remote repository, for ex: \"https://registry-1.docker.io\".",
2217+
"type": "string"
2218+
}
2219+
},
2220+
"type": "object"
2221+
},
2222+
"GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigMavenRepositoryCustomRepository": {
2223+
"description": "Customer-specified publicly available remote repository.",
2224+
"id": "GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigMavenRepositoryCustomRepository",
2225+
"properties": {
2226+
"uri": {
2227+
"description": "An http/https uri reference to the upstream remote repository, for ex: \"https://my.maven.registry/\".",
2228+
"type": "string"
2229+
}
2230+
},
2231+
"type": "object"
2232+
},
2233+
"GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigNpmRepositoryCustomRepository": {
2234+
"description": "Customer-specified publicly available remote repository.",
2235+
"id": "GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigNpmRepositoryCustomRepository",
2236+
"properties": {
2237+
"uri": {
2238+
"description": "An http/https uri reference to the upstream remote repository, for ex: \"https://my.npm.registry/\".",
2239+
"type": "string"
2240+
}
2241+
},
2242+
"type": "object"
2243+
},
2244+
"GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigPythonRepositoryCustomRepository": {
2245+
"description": "Customer-specified publicly available remote repository.",
2246+
"id": "GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigPythonRepositoryCustomRepository",
2247+
"properties": {
2248+
"uri": {
2249+
"description": "An http/https uri reference to the upstream remote repository, for ex: \"https://my.python.registry/\".",
2250+
"type": "string"
2251+
}
2252+
},
2253+
"type": "object"
2254+
},
2255+
"GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigYumRepositoryCustomRepository": {
2256+
"description": "Customer-specified publicly available remote repository.",
2257+
"id": "GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigYumRepositoryCustomRepository",
2258+
"properties": {
2259+
"uri": {
2260+
"description": "An http/https uri reference to the upstream remote repository, for ex: \"https://my.yum.registry/\".",
2261+
"type": "string"
2262+
}
2263+
},
2264+
"type": "object"
2265+
},
21202266
"GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigYumRepositoryPublicRepository": {
21212267
"description": "Publicly available Yum repositories constructed from a common repository base and a custom repository path.",
21222268
"id": "GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigYumRepositoryPublicRepository",
@@ -2662,6 +2808,10 @@
26622808
"description": "Configuration for a Maven remote repository.",
26632809
"id": "MavenRepository",
26642810
"properties": {
2811+
"customRepository": {
2812+
"$ref": "GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigMavenRepositoryCustomRepository",
2813+
"description": "Customer-specified remote repository."
2814+
},
26652815
"publicRepository": {
26662816
"description": "One of the publicly available Maven repositories supported by Artifact Registry.",
26672817
"enum": [
@@ -2744,6 +2894,10 @@
27442894
"description": "Configuration for a Npm remote repository.",
27452895
"id": "NpmRepository",
27462896
"properties": {
2897+
"customRepository": {
2898+
"$ref": "GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigNpmRepositoryCustomRepository",
2899+
"description": "Customer-specified remote repository."
2900+
},
27472901
"publicRepository": {
27482902
"description": "One of the publicly available Npm repositories supported by Artifact Registry.",
27492903
"enum": [
@@ -2804,6 +2958,13 @@
28042958
"description": "Packages are named collections of versions.",
28052959
"id": "Package",
28062960
"properties": {
2961+
"annotations": {
2962+
"additionalProperties": {
2963+
"type": "string"
2964+
},
2965+
"description": "Optional. Client specified annotations.",
2966+
"type": "object"
2967+
},
28072968
"createTime": {
28082969
"description": "The time when the package was created.",
28092970
"format": "google-datetime",
@@ -2859,19 +3020,22 @@
28593020
"REDIRECTION_STATE_UNSPECIFIED",
28603021
"REDIRECTION_FROM_GCR_IO_DISABLED",
28613022
"REDIRECTION_FROM_GCR_IO_ENABLED",
2862-
"REDIRECTION_FROM_GCR_IO_FINALIZED"
3023+
"REDIRECTION_FROM_GCR_IO_FINALIZED",
3024+
"REDIRECTION_FROM_GCR_IO_ENABLED_AND_COPYING"
28633025
],
28643026
"enumDeprecated": [
28653027
false,
28663028
false,
28673029
false,
2868-
true
3030+
true,
3031+
false
28693032
],
28703033
"enumDescriptions": [
28713034
"No redirection status has been set.",
28723035
"Redirection is disabled.",
28733036
"Redirection is enabled.",
2874-
"Redirection is enabled, and has been finalized so cannot be reverted."
3037+
"Redirection is enabled, and has been finalized so cannot be reverted.",
3038+
"Redirection is enabled and missing images are copied from GCR"
28753039
],
28763040
"type": "string"
28773041
},
@@ -2921,6 +3085,10 @@
29213085
"description": "Configuration for a Python remote repository.",
29223086
"id": "PythonRepository",
29233087
"properties": {
3088+
"customRepository": {
3089+
"$ref": "GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigPythonRepositoryCustomRepository",
3090+
"description": "Customer-specified remote repository."
3091+
},
29243092
"publicRepository": {
29253093
"description": "One of the publicly available Python repositories supported by Artifact Registry.",
29263094
"enum": [
@@ -2948,6 +3116,10 @@
29483116
"description": "The description of the remote source.",
29493117
"type": "string"
29503118
},
3119+
"disableUpstreamValidation": {
3120+
"description": "Input only. A create/update remote repo option to avoid making a HEAD/GET request to validate a remote repo and any supplied upstream credentials.",
3121+
"type": "boolean"
3122+
},
29513123
"dockerRepository": {
29523124
"$ref": "DockerRepository",
29533125
"description": "Specific settings for a Docker remote repository."
@@ -3516,6 +3688,10 @@
35163688
"description": "Configuration for a Yum remote repository.",
35173689
"id": "YumRepository",
35183690
"properties": {
3691+
"customRepository": {
3692+
"$ref": "GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigYumRepositoryCustomRepository",
3693+
"description": "Customer-specified remote repository."
3694+
},
35193695
"publicRepository": {
35203696
"$ref": "GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigYumRepositoryPublicRepository",
35213697
"description": "One of the publicly available Yum repositories supported by Artifact Registry."

0 commit comments

Comments
 (0)