Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changes/8417.feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Migrate `Image` legacy GQL mutation to strawberry
195 changes: 195 additions & 0 deletions docs/manager/graphql-reference/supergraph.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,36 @@ type AliasImage
msg: String
}

"""
Added in 26.2.0.

Input for creating an alias for an image by ID.
"""
input AliasImageInputGQL
@join__type(graph: STRAWBERRY)
{
"""The ID of the image to alias."""
imageId: ID!

"""The alias to create."""
alias: String!
}

"""
Added in 26.2.0.

Result of creating an alias for an image.
"""
type AliasImageResult
@join__type(graph: STRAWBERRY)
{
"""The ID of the aliased image."""
imageId: ID!

"""The created alias."""
alias: String!
}

"""Added in 25.3.0."""
input AllowedGroups
@join__type(graph: GRAPHENE)
Expand Down Expand Up @@ -1584,6 +1614,30 @@ type ClearImageCustomResourceLimitPayload
image_node: ImageNode
}

"""
Added in 26.2.0.

Input for clearing custom resource limits for an image.
"""
input ClearImageResourceLimitInputGQL
@join__type(graph: STRAWBERRY)
{
"""The ID of the image to clear resource limits for."""
imageId: ID!
}

"""
Added in 26.2.0.

Result of clearing custom resource limits for an image.
"""
type ClearImageResourceLimitResult
@join__type(graph: STRAWBERRY)
{
"""The image with cleared resource limits."""
image: ImageV2!
}

type ClearImages
@join__type(graph: GRAPHENE)
{
Expand Down Expand Up @@ -2586,6 +2640,33 @@ type DealiasImage
msg: String
}

"""
Added in 26.2.0.

Input for removing an alias from an image.
"""
input DealiasImageInputGQL
@join__type(graph: STRAWBERRY)
{
"""The alias to remove."""
alias: String!
}

"""
Added in 26.2.0.

Result of removing an alias from an image.
"""
type DealiasImageResult
@join__type(graph: STRAWBERRY)
{
"""The ID of the image that had the alias."""
imageId: ID!

"""The removed alias."""
alias: String!
}

"""Decimal (fixed-point)"""
scalar Decimal
@join__type(graph: STRAWBERRY)
Expand Down Expand Up @@ -4229,6 +4310,31 @@ type ForgetImageById
image: ImageNode
}

"""
Added in 26.2.0.

Input for forgetting an image by ID.
"""
input ForgetImageInputGQL
@join__type(graph: STRAWBERRY)
{
"""The ID of the image to forget."""
imageId: ID!
}

"""
Added in 26.2.0.

Result of forgetting an image by ID. The image is marked as DELETED
but not removed from the database.
"""
type ForgetImageResult
@join__type(graph: STRAWBERRY)
{
"""The forgotten image."""
image: ImageV2!
}

"""Added in 25.14.0"""
input GetPresignedDownloadURLInput
@join__type(graph: STRAWBERRY)
Expand Down Expand Up @@ -7132,6 +7238,53 @@ type Mutation
Added in 26.2.0. Permanently delete multiple users (admin only). Requires superadmin privileges. This action is IRREVERSIBLE. All user data will be deleted.
"""
adminPurgeUsers(input: PurgeUsersV2Input!): PurgeUsersV2Payload! @join__field(graph: STRAWBERRY)

"""
Added in 26.2.0.

Mark an image as deleted by its ID.

The image is not removed from the database but its status changes to DELETED.
This is a soft delete operation.
"""
forgetImage(input: ForgetImageInputGQL!): ForgetImageResult! @join__field(graph: STRAWBERRY)

"""
Added in 26.2.0.

Completely purge an image by its ID.

The image is permanently removed from the database. Optionally, the image
can also be untagged from the container registry (HarborV2 only).
"""
purgeImage(input: PurgeImageInputGQL!): PurgeImageResult! @join__field(graph: STRAWBERRY)

"""
Added in 26.2.0.

Create an alias for an image by its ID.

An alias is an alternative name that can be used to reference the image.
Multiple aliases can be created for the same image.
"""
aliasImage(input: AliasImageInputGQL!): AliasImageResult! @join__field(graph: STRAWBERRY)

"""
Added in 26.2.0.

Remove an alias from an image.
"""
dealiasImage(input: DealiasImageInputGQL!): DealiasImageResult! @join__field(graph: STRAWBERRY)

"""
Added in 26.2.0.

Clear custom resource limits for an image by its ID.

This removes any user-defined resource limits and reverts to the defaults
specified in the image labels.
"""
clearImageResourceLimit(input: ClearImageResourceLimitInputGQL!): ClearImageResourceLimitResult! @join__field(graph: STRAWBERRY)
}

"""Added in 24.12.0."""
Expand Down Expand Up @@ -8044,6 +8197,21 @@ type PurgeImageById
image: ImageNode
}

"""
Added in 26.2.0.

Input for purging an image by ID.
"""
input PurgeImageInputGQL
@join__type(graph: STRAWBERRY)
{
"""The ID of the image to purge."""
imageId: ID!

"""Options for purging the image."""
options: PurgeImageOptionsGQL = null
}

"""Added in 25.10.0."""
input PurgeImageOptions
@join__type(graph: GRAPHENE)
Expand All @@ -8054,6 +8222,33 @@ input PurgeImageOptions
remove_from_registry: Boolean = false
}

"""
Added in 26.2.0.

Options for purging an image.
"""
input PurgeImageOptionsGQL
@join__type(graph: STRAWBERRY)
{
"""
Untag the deleted image from the registry. Only available for HarborV2 registries.
"""
removeFromRegistry: Boolean! = false
}

"""
Added in 26.2.0.

Result of purging an image by ID. The image is completely removed
from the database.
"""
type PurgeImageResult
@join__type(graph: STRAWBERRY)
{
"""The purged image data."""
image: ImageV2!
}

"""Added in 25.6.0."""
input PurgeImagesKey
@join__type(graph: GRAPHENE)
Expand Down
Loading
Loading