Skip to content

feat(spec): update the sdk to the api spec version 2026-03-24#153

Open
uibm wants to merge 1 commit intomasterfrom
release-2026-03-24
Open

feat(spec): update the sdk to the api spec version 2026-03-24#153
uibm wants to merge 1 commit intomasterfrom
release-2026-03-24

Conversation

@uibm
Copy link
Copy Markdown
Member

@uibm uibm commented Mar 27, 2026

Ran 4027 of 4027 Specs in 110.134 seconds
SUCCESS! -- 4027 Passed | 0 Failed | 0 Pending | 0 Skipped
--- PASS: TestVpcV1 (111.19s)
PASS
ok      github.com/IBM/vpc-go-sdk/vpcv1 112.612s

Volume Jobs Support

Added comprehensive support for volume jobs, enabling asynchronous operations on block storage volumes such as migration between storage tiers.


New API Methods

Volume Job Operations

  • ListVolumeJobs - List all jobs for a volume
  • CreateVolumeJob - Create a new job for a volume
  • GetVolumeJob - Retrieve details of a specific volume job
  • UpdateVolumeJob - Update a volume job
  • DeleteVolumeJob - Delete a volume job
  • CancelVolumeJob - Cancel a running volume job

Context-Aware Variants

All methods include context-aware variants (e.g., ListVolumeJobsWithContext) for better control over request lifecycle.


New Core Models

Volume Job Models

  • VolumeJob - Core volume job resource
  • VolumeJobIntf - Interface for volume job types
  • VolumeJobCollection - Collection of volume jobs with pagination support
  • VolumeJobPatch - Patch model for updating volume jobs
  • VolumeJobStatusReason - Status reason details for job state

Volume Job Prototypes

  • VolumeJobPrototype - Base prototype for creating volume jobs
  • VolumeJobPrototypeIntf - Interface for job prototype types
  • VolumeJobPrototypeVolumeJobTypeMigratePrototype - Prototype for migration jobs

Job Type Specific Models

  • VolumeJobTypeMigrate - Migration job type implementation
  • VolumeJobTypeMigrateParameters - Parameters for volume migration jobs

New Options Structs

  • ListVolumeJobsOptions - Options for listing volume jobs
  • CreateVolumeJobOptions - Options for creating a volume job
  • GetVolumeJobOptions - Options for retrieving a volume job
  • UpdateVolumeJobOptions - Options for updating a volume job
  • DeleteVolumeJobOptions - Options for deleting a volume job
  • CancelVolumeJobOptions - Options for canceling a volume job

Pagination Support

New Pager

  • VolumeJobsPager - Automatic pagination support for listing volume jobs

Job Types

Supported Job Types

  • migrate - Volume migration between storage tiers
    • Constant: VolumeJobPrototypeJobTypeMigrateConst
    • Constant: VolumeJobPrototypeVolumeJobTypeMigratePrototypeJobTypeMigrateConst

Features

  • Full CRUD operations for volume jobs
  • Support for asynchronous volume operations
  • Job status tracking and monitoring
  • Cancellation support for running jobs
  • Pagination support for job listings
  • Type-safe job prototypes with validation
  • Context-aware request handling

Signed-off-by: Ujjwal Kumar <Ujjwal.Kumar1@ibm.com>
@uibm uibm requested a review from deepakibms March 30, 2026 04:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant