Class StateRequestBuilder.PutQueryParameters

java.lang.Object
io.apicurio.registry.rest.client.groups.item.artifacts.item.versions.item.state.StateRequestBuilder.PutQueryParameters
All Implemented Interfaces:
com.microsoft.kiota.QueryParameters
Enclosing class:
StateRequestBuilder

@Generated("com.microsoft.kiota") public class StateRequestBuilder.PutQueryParameters extends Object implements com.microsoft.kiota.QueryParameters
Updates the state of an artifact version.NOTE: There are some restrictions on state transitions. Notably a version cannot be transitioned to the `DRAFT` state from any other state. The `DRAFT` state can only be entered (optionally) when creating a new artifact/version.A version in `DRAFT` state can only be transitioned to `ENABLED`. When thishappens, any configured content rules will be applied. This may result in afailure to change the state.This operation can fail for the following reasons:* No artifact with this `artifactId` exists (HTTP error `404`)* No version with this `version` exists (HTTP error `404`)* An invalid new state was provided (HTTP error `400`)* The draft content violates one or more of the rules configured for the artifact (HTTP error `409`)* A server error occurred (HTTP error `500`)
  • Field Details

    • dryRun

      @Nullable public Boolean dryRun
      When set to `true`, the operation will not result in any changes. Instead, itwill return a result based on whether the operation **would have succeeded**.
  • Constructor Details

    • PutQueryParameters

      public PutQueryParameters()
  • Method Details

    • toQueryParameters

      @Nonnull public Map<String,Object> toQueryParameters()
      Extracts the query parameters into a map for the URI template parsing.
      Specified by:
      toQueryParameters in interface com.microsoft.kiota.QueryParameters
      Returns:
      a Map<String,Object>