Skip to content

Commit

Permalink
feat(artifactregistry): update the API
Browse files Browse the repository at this point in the history
#### artifactregistry:v1beta1

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

#### artifactregistry:v1beta2

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

#### artifactregistry:v1

The following keys were added:
- resources.projects.resources.locations.resources.repositories.resources.googetArtifacts.methods.import.description
- resources.projects.resources.locations.resources.repositories.resources.googetArtifacts.methods.import.flatPath
- resources.projects.resources.locations.resources.repositories.resources.googetArtifacts.methods.import.httpMethod
- resources.projects.resources.locations.resources.repositories.resources.googetArtifacts.methods.import.id
- resources.projects.resources.locations.resources.repositories.resources.googetArtifacts.methods.import.parameterOrder
- resources.projects.resources.locations.resources.repositories.resources.googetArtifacts.methods.import.parameters.parent.description
- resources.projects.resources.locations.resources.repositories.resources.googetArtifacts.methods.import.parameters.parent.location
- resources.projects.resources.locations.resources.repositories.resources.googetArtifacts.methods.import.parameters.parent.pattern
- resources.projects.resources.locations.resources.repositories.resources.googetArtifacts.methods.import.parameters.parent.required
- resources.projects.resources.locations.resources.repositories.resources.googetArtifacts.methods.import.parameters.parent.type
- resources.projects.resources.locations.resources.repositories.resources.googetArtifacts.methods.import.path
- resources.projects.resources.locations.resources.repositories.resources.googetArtifacts.methods.import.request.$ref
- resources.projects.resources.locations.resources.repositories.resources.googetArtifacts.methods.import.response.$ref
- resources.projects.resources.locations.resources.repositories.resources.googetArtifacts.methods.import.scopes
- resources.projects.resources.locations.resources.repositories.resources.googetArtifacts.methods.upload.description
- resources.projects.resources.locations.resources.repositories.resources.googetArtifacts.methods.upload.flatPath
- resources.projects.resources.locations.resources.repositories.resources.googetArtifacts.methods.upload.httpMethod
- resources.projects.resources.locations.resources.repositories.resources.googetArtifacts.methods.upload.id
- resources.projects.resources.locations.resources.repositories.resources.googetArtifacts.methods.upload.mediaUpload.accept
- resources.projects.resources.locations.resources.repositories.resources.googetArtifacts.methods.upload.mediaUpload.protocols.simple.multipart
- resources.projects.resources.locations.resources.repositories.resources.googetArtifacts.methods.upload.mediaUpload.protocols.simple.path
- resources.projects.resources.locations.resources.repositories.resources.googetArtifacts.methods.upload.parameterOrder
- resources.projects.resources.locations.resources.repositories.resources.googetArtifacts.methods.upload.parameters.parent.description
- resources.projects.resources.locations.resources.repositories.resources.googetArtifacts.methods.upload.parameters.parent.location
- resources.projects.resources.locations.resources.repositories.resources.googetArtifacts.methods.upload.parameters.parent.pattern
- resources.projects.resources.locations.resources.repositories.resources.googetArtifacts.methods.upload.parameters.parent.required
- resources.projects.resources.locations.resources.repositories.resources.googetArtifacts.methods.upload.parameters.parent.type
- resources.projects.resources.locations.resources.repositories.resources.googetArtifacts.methods.upload.path
- resources.projects.resources.locations.resources.repositories.resources.googetArtifacts.methods.upload.request.$ref
- resources.projects.resources.locations.resources.repositories.resources.googetArtifacts.methods.upload.response.$ref
- resources.projects.resources.locations.resources.repositories.resources.googetArtifacts.methods.upload.scopes
- resources.projects.resources.locations.resources.repositories.resources.googetArtifacts.methods.upload.supportsMediaUpload
- schemas.ImportGoogetArtifactsGcsSource.description
- schemas.ImportGoogetArtifactsGcsSource.id
- schemas.ImportGoogetArtifactsGcsSource.properties.uris.description
- schemas.ImportGoogetArtifactsGcsSource.properties.uris.items.type
- schemas.ImportGoogetArtifactsGcsSource.properties.uris.type
- schemas.ImportGoogetArtifactsGcsSource.properties.useWildcards.description
- schemas.ImportGoogetArtifactsGcsSource.properties.useWildcards.type
- schemas.ImportGoogetArtifactsGcsSource.type
- schemas.ImportGoogetArtifactsRequest.description
- schemas.ImportGoogetArtifactsRequest.id
- schemas.ImportGoogetArtifactsRequest.properties.gcsSource.$ref
- schemas.ImportGoogetArtifactsRequest.properties.gcsSource.description
- schemas.ImportGoogetArtifactsRequest.type
- schemas.UploadGoogetArtifactMediaResponse.description
- schemas.UploadGoogetArtifactMediaResponse.id
- schemas.UploadGoogetArtifactMediaResponse.properties.operation.$ref
- schemas.UploadGoogetArtifactMediaResponse.properties.operation.description
- schemas.UploadGoogetArtifactMediaResponse.type
- schemas.UploadGoogetArtifactRequest.description
- schemas.UploadGoogetArtifactRequest.id
- schemas.UploadGoogetArtifactRequest.type

The following keys were changed:
- schemas.Repository.properties.format.enum
- schemas.Repository.properties.format.enumDescriptions
  • Loading branch information
yoshi-automation authored and sofisl committed May 2, 2023
1 parent 8f35f5c commit b866d65
Show file tree
Hide file tree
Showing 4 changed files with 518 additions and 3 deletions.
122 changes: 121 additions & 1 deletion discovery/artifactregistry-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -803,6 +803,78 @@
}
}
},
"googetArtifacts": {
"methods": {
"import": {
"description": "Imports GooGet artifacts. The returned Operation will complete once the resources are imported. Package, Version, and File resources are created based on the imported artifacts. Imported artifacts that conflict with existing resources are ignored.",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/googetArtifacts:import",
"httpMethod": "POST",
"id": "artifactregistry.projects.locations.repositories.googetArtifacts.import",
"parameterOrder": [
"parent"
],
"parameters": {
"parent": {
"description": "The name of the parent resource where the artifacts will be imported.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+parent}/googetArtifacts:import",
"request": {
"$ref": "ImportGoogetArtifactsRequest"
},
"response": {
"$ref": "Operation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"upload": {
"description": "Directly uploads a GooGet artifact. The returned Operation will complete once the resources are uploaded. Package, Version, and File resources are created based on the imported artifact. Imported artifacts that conflict with existing resources are ignored.",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/googetArtifacts:create",
"httpMethod": "POST",
"id": "artifactregistry.projects.locations.repositories.googetArtifacts.upload",
"mediaUpload": {
"accept": [
"*/*"
],
"protocols": {
"simple": {
"multipart": true,
"path": "/upload/v1/{+parent}/googetArtifacts:create"
}
}
},
"parameterOrder": [
"parent"
],
"parameters": {
"parent": {
"description": "The name of the parent resource where the artifacts will be uploaded.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+parent}/googetArtifacts:create",
"request": {
"$ref": "UploadGoogetArtifactRequest"
},
"response": {
"$ref": "UploadGoogetArtifactMediaResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
],
"supportsMediaUpload": true
}
}
},
"kfpArtifacts": {
"methods": {
"upload": {
Expand Down Expand Up @@ -1517,7 +1589,7 @@
}
}
},
"revision": "20230313",
"revision": "20230427",
"rootUrl": "https://artifactregistry.googleapis.com/",
"schemas": {
"AptArtifact": {
Expand Down Expand Up @@ -1852,6 +1924,35 @@
},
"type": "object"
},
"ImportGoogetArtifactsGcsSource": {
"description": "Google Cloud Storage location where the artifacts currently reside.",
"id": "ImportGoogetArtifactsGcsSource",
"properties": {
"uris": {
"description": "Cloud Storage paths URI (e.g., gs://my_bucket/my_object).",
"items": {
"type": "string"
},
"type": "array"
},
"useWildcards": {
"description": "Supports URI wildcards for matching multiple objects from a single URI.",
"type": "boolean"
}
},
"type": "object"
},
"ImportGoogetArtifactsRequest": {
"description": "The request to import new googet artifacts.",
"id": "ImportGoogetArtifactsRequest",
"properties": {
"gcsSource": {
"$ref": "ImportGoogetArtifactsGcsSource",
"description": "Google Cloud Storage location where input content is located."
}
},
"type": "object"
},
"ImportYumArtifactsErrorInfo": {
"description": "Error information explaining why a package was not imported.",
"id": "ImportYumArtifactsErrorInfo",
Expand Down Expand Up @@ -2518,6 +2619,7 @@
"NPM",
"APT",
"YUM",
"GOOGET",
"PYTHON",
"KFP"
],
Expand All @@ -2528,6 +2630,7 @@
"NPM package format.",
"APT package format.",
"YUM package format.",
"GooGet package format.",
"Python package format.",
"Kubeflow Pipelines package format."
],
Expand Down Expand Up @@ -2714,6 +2817,23 @@
},
"type": "object"
},
"UploadGoogetArtifactMediaResponse": {
"description": "The response to upload an artifact.",
"id": "UploadGoogetArtifactMediaResponse",
"properties": {
"operation": {
"$ref": "Operation",
"description": "Operation to be returned to the user."
}
},
"type": "object"
},
"UploadGoogetArtifactRequest": {
"description": "The request to upload an artifact.",
"id": "UploadGoogetArtifactRequest",
"properties": {},
"type": "object"
},
"UploadKfpArtifactMediaResponse": {
"description": "The response to upload an artifact.",
"id": "UploadKfpArtifactMediaResponse",
Expand Down
4 changes: 3 additions & 1 deletion discovery/artifactregistry-v1beta1.json
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,7 @@
}
}
},
"revision": "20230313",
"revision": "20230427",
"rootUrl": "https://artifactregistry.googleapis.com/",
"schemas": {
"Binding": {
Expand Down Expand Up @@ -1297,6 +1297,7 @@
"NPM",
"APT",
"YUM",
"GOOGET",
"PYTHON"
],
"enumDescriptions": [
Expand All @@ -1306,6 +1307,7 @@
"NPM package format.",
"APT package format.",
"YUM package format.",
"GooGet package format.",
"Python package format."
],
"type": "string"
Expand Down
4 changes: 3 additions & 1 deletion discovery/artifactregistry-v1beta2.json
Original file line number Diff line number Diff line change
Expand Up @@ -1135,7 +1135,7 @@
}
}
},
"revision": "20230313",
"revision": "20230427",
"rootUrl": "https://artifactregistry.googleapis.com/",
"schemas": {
"AptArtifact": {
Expand Down Expand Up @@ -1751,6 +1751,7 @@
"NPM",
"APT",
"YUM",
"GOOGET",
"PYTHON"
],
"enumDescriptions": [
Expand All @@ -1760,6 +1761,7 @@
"NPM package format.",
"APT package format.",
"YUM package format.",
"GooGet package format.",
"Python package format."
],
"type": "string"
Expand Down
Loading

0 comments on commit b866d65

Please sign in to comment.