Skip to content

Commit

Permalink
feat(all): auto-regenerate discovery clients (#2046)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation authored Jul 2, 2023
1 parent 50d3e98 commit 6711565
Show file tree
Hide file tree
Showing 10 changed files with 1,000 additions and 23 deletions.
170 changes: 169 additions & 1 deletion artifactregistry/v1/artifactregistry-api.json
Original file line number Diff line number Diff line change
Expand Up @@ -1355,6 +1355,34 @@
},
"versions": {
"methods": {
"batchDelete": {
"description": "Deletes multiple versions across a repository. The returned operation will complete once the versions have been deleted.",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/packages/{packagesId}/versions:batchDelete",
"httpMethod": "POST",
"id": "artifactregistry.projects.locations.repositories.packages.versions.batchDelete",
"parameterOrder": [
"parent"
],
"parameters": {
"parent": {
"description": "The name of the repository holding all requested versions.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/packages/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+parent}/versions:batchDelete",
"request": {
"$ref": "BatchDeleteVersionsRequest"
},
"response": {
"$ref": "Operation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"delete": {
"description": "Deletes a version and all of its content. The returned operation will complete once the version has been deleted.",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/packages/{packagesId}/versions/{versionsId}",
Expand Down Expand Up @@ -1633,7 +1661,7 @@
}
}
},
"revision": "20230626",
"revision": "20230628",
"rootUrl": "https://artifactregistry.googleapis.com/",
"schemas": {
"AptArtifact": {
Expand Down Expand Up @@ -1698,6 +1726,24 @@
},
"type": "object"
},
"BatchDeleteVersionsRequest": {
"description": "The request to delete multiple versions across a repository.",
"id": "BatchDeleteVersionsRequest",
"properties": {
"names": {
"description": "Required. The names of the versions to delete. A maximum of 10000 versions can be deleted in a batch.",
"items": {
"type": "string"
},
"type": "array"
},
"validateOnly": {
"description": "If true, the request is performed without deleting data, following AIP-163.",
"type": "boolean"
}
},
"type": "object"
},
"Binding": {
"description": "Associates `members`, or principals, with a `role`.",
"id": "Binding",
Expand All @@ -1720,6 +1766,117 @@
},
"type": "object"
},
"CleanupPolicy": {
"description": "Artifact policy configuration for repository cleanup policies.",
"id": "CleanupPolicy",
"properties": {
"action": {
"description": "Policy action.",
"enum": [
"ACTION_UNSPECIFIED",
"DELETE",
"KEEP"
],
"enumDescriptions": [
"Action not specified.",
"Delete action.",
"Keep action."
],
"type": "string"
},
"condition": {
"$ref": "CleanupPolicyCondition",
"description": "Policy condition for matching versions."
},
"id": {
"description": "The user-provided ID of the cleanup policy.",
"type": "string"
},
"mostRecentVersions": {
"$ref": "CleanupPolicyMostRecentVersions",
"description": "Policy condition for retaining a minimum number of versions. May only be specified with a Keep action."
}
},
"type": "object"
},
"CleanupPolicyCondition": {
"description": "CleanupPolicyCondition is a set of conditions attached to a CleanupPolicy. If multiple entries are set, all must be satisfied for the condition to be satisfied.",
"id": "CleanupPolicyCondition",
"properties": {
"newerThan": {
"description": "Match versions newer than a duration.",
"format": "google-duration",
"type": "string"
},
"olderThan": {
"description": "Match versions older than a duration.",
"format": "google-duration",
"type": "string"
},
"packageNamePrefixes": {
"description": "Match versions by package prefix. Applied on any prefix match.",
"items": {
"type": "string"
},
"type": "array"
},
"tagPrefixes": {
"description": "Match versions by tag prefix. Applied on any prefix match.",
"items": {
"type": "string"
},
"type": "array"
},
"tagState": {
"description": "Match versions by tag status.",
"enum": [
"TAG_STATE_UNSPECIFIED",
"TAGGED",
"UNTAGGED",
"ANY"
],
"enumDescriptions": [
"Tag status not specified.",
"Applies to tagged versions only.",
"Applies to untagged versions only.",
"Applies to all versions."
],
"type": "string"
},
"versionAge": {
"description": "DEPRECATED: Use older_than.",
"format": "google-duration",
"type": "string"
},
"versionNamePrefixes": {
"description": "Match versions by version name prefix. Applied on any prefix match.",
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"CleanupPolicyMostRecentVersions": {
"description": "CleanupPolicyMostRecentVersions is an alternate condition of a CleanupPolicy for retaining a minimum number of versions.",
"id": "CleanupPolicyMostRecentVersions",
"properties": {
"keepCount": {
"description": "Minimum number of versions to keep.",
"format": "int32",
"type": "integer"
},
"packageNamePrefixes": {
"description": "List of package name prefixes that will apply this rule.",
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"DockerImage": {
"description": "DockerImage represents a docker artifact. The following fields are returned as untyped metadata in the Version resource, using camelcase keys (i.e. metadata.imageSizeBytes): * imageSizeBytes * mediaType * buildTime",
"id": "DockerImage",
Expand Down Expand Up @@ -2731,6 +2888,17 @@
"description": "A Repository for storing artifacts with a specific format.",
"id": "Repository",
"properties": {
"cleanupPolicies": {
"additionalProperties": {
"$ref": "CleanupPolicy"
},
"description": "Optional. Cleanup policies for this repository. Cleanup policies indicate when certain package versions can be automatically deleted. Map keys are policy IDs supplied by users during policy creation. They must unique within a repository and be under 128 characters in length.",
"type": "object"
},
"cleanupPolicyDryRun": {
"description": "Optional. If true, the cleanup pipeline is prevented from deleting versions in this repository.",
"type": "boolean"
},
"createTime": {
"description": "Output only. The time when the repository was created.",
"format": "google-datetime",
Expand Down
Loading

0 comments on commit 6711565

Please sign in to comment.