diff --git a/clients/cloud-packer-service/stable/2021-04-30/client/packer_service/packer_service_client.go b/clients/cloud-packer-service/stable/2021-04-30/client/packer_service/packer_service_client.go index 23157a17..6855fd8a 100644 --- a/clients/cloud-packer-service/stable/2021-04-30/client/packer_service/packer_service_client.go +++ b/clients/cloud-packer-service/stable/2021-04-30/client/packer_service/packer_service_client.go @@ -457,7 +457,7 @@ func (a *Client) PackerServiceGetBucket(params *PackerServiceGetBucketParams, au } /* - PackerServiceGetBuild gets a build with its list of images if the requested build iteration is revoked and the requester is a service principal the image id URL will be omitted from the response and replaced with error revoked to prevent automation scripts from using a revoked image + PackerServiceGetBuild gets a build with its list of images */ func (a *Client) PackerServiceGetBuild(params *PackerServiceGetBuildParams, authInfo runtime.ClientAuthInfoWriter) (*PackerServiceGetBuildOK, error) { // TODO: Validate the params before sending @@ -491,7 +491,7 @@ func (a *Client) PackerServiceGetBuild(params *PackerServiceGetBuildParams, auth } /* - PackerServiceGetChannel gets a channel with the iteration that it is currently assigned if any if the requested iteration is revoked and the requester is a service principal the image id URL will be omitted from the response and replaced with error revoked to prevent automation scripts from using a revoked image + PackerServiceGetChannel gets a channel with the iteration that it is currently assigned if any */ func (a *Client) PackerServiceGetChannel(params *PackerServiceGetChannelParams, authInfo runtime.ClientAuthInfoWriter) (*PackerServiceGetChannelOK, error) { // TODO: Validate the params before sending @@ -525,7 +525,7 @@ func (a *Client) PackerServiceGetChannel(params *PackerServiceGetChannelParams, } /* - PackerServiceGetIteration allows the user to get an iteration using one of the following identifiers iteration id incremental version fingerprint these are supplied as a query parameter e g images bucket slug iteration fingerprint fingerprint if the requested iteration is revoked and the requester is a service principal the image id URL will be omitted from the response and replaced with error revoked to prevent automation scripts from using a revoked image + PackerServiceGetIteration allows the user to get an iteration using one of the following identifiers iteration id incremental version fingerprint these are supplied as a query parameter e g images bucket slug iteration fingerprint fingerprint */ func (a *Client) PackerServiceGetIteration(params *PackerServiceGetIterationParams, authInfo runtime.ClientAuthInfoWriter) (*PackerServiceGetIterationOK, error) { // TODO: Validate the params before sending @@ -661,7 +661,7 @@ func (a *Client) PackerServiceListBuckets(params *PackerServiceListBucketsParams } /* - PackerServiceListBuilds lists every existing build and its images for an iteration if the requested iteration is revoked and the requester is a service principal the image id URL will be omitted from the response and replaced with error revoked to prevent automation scripts from using a revoked image + PackerServiceListBuilds lists every existing build and its images for an iteration */ func (a *Client) PackerServiceListBuilds(params *PackerServiceListBuildsParams, authInfo runtime.ClientAuthInfoWriter) (*PackerServiceListBuildsOK, error) { // TODO: Validate the params before sending diff --git a/clients/cloud-packer-service/stable/2021-04-30/models/hashicorp_cloud_packer_build.go b/clients/cloud-packer-service/stable/2021-04-30/models/hashicorp_cloud_packer_build.go index 33f4903d..6d79a041 100644 --- a/clients/cloud-packer-service/stable/2021-04-30/models/hashicorp_cloud_packer_build.go +++ b/clients/cloud-packer-service/stable/2021-04-30/models/hashicorp_cloud_packer_build.go @@ -50,7 +50,6 @@ type HashicorpCloudPackerBuild struct { // Unique identifier of the HCP Packer registry build used as the source // for this build. Used for tracking dependencies for build pipelines. - // Deprecated SourceBuildUlid string `json:"source_build_ulid,omitempty"` // The ID or URL of the remote cloud source image. Used for tracking image diff --git a/clients/cloud-packer-service/stable/2021-04-30/models/hashicorp_cloud_packer_build_create_body.go b/clients/cloud-packer-service/stable/2021-04-30/models/hashicorp_cloud_packer_build_create_body.go index 0408065f..a88c6d01 100644 --- a/clients/cloud-packer-service/stable/2021-04-30/models/hashicorp_cloud_packer_build_create_body.go +++ b/clients/cloud-packer-service/stable/2021-04-30/models/hashicorp_cloud_packer_build_create_body.go @@ -37,6 +37,10 @@ type HashicorpCloudPackerBuildCreateBody struct { // post-processor, this UUID will match the UUID present there. PackerRunUUID string `json:"packer_run_uuid,omitempty"` + // The ID of the channel that it was used to fetch the source_iteration_id. + // When the source channel ID is set, the source iteration ID should also be set. + SourceChannelID string `json:"source_channel_id,omitempty"` + // The ID or URL of the remote cloud source image. Used for tracking image // dependencies for build pipelines. SourceImageID string `json:"source_image_id,omitempty"` diff --git a/clients/cloud-packer-service/stable/2021-04-30/models/hashicorp_cloud_packer_build_updates.go b/clients/cloud-packer-service/stable/2021-04-30/models/hashicorp_cloud_packer_build_updates.go index 9b157715..c2e746be 100644 --- a/clients/cloud-packer-service/stable/2021-04-30/models/hashicorp_cloud_packer_build_updates.go +++ b/clients/cloud-packer-service/stable/2021-04-30/models/hashicorp_cloud_packer_build_updates.go @@ -34,6 +34,10 @@ type HashicorpCloudPackerBuildUpdates struct { // post-processor, this UUID will match the UUID present there. PackerRunUUID string `json:"packer_run_uuid,omitempty"` + // The ID of the channel that it was used to fetch the source_iteration_id. + // When the source channel ID is set, the source iteration ID should also be set. + SourceChannelID string `json:"source_channel_id,omitempty"` + // The ID or URL of the remote cloud source image. Used for tracking image // dependencies for build pipelines. SourceImageID string `json:"source_image_id,omitempty"` diff --git a/clients/cloud-packer-service/stable/2021-04-30/models/hashicorp_cloud_packer_registry_billing_deprovision_reason.go b/clients/cloud-packer-service/stable/2021-04-30/models/hashicorp_cloud_packer_registry_billing_deprovision_reason.go index 55339d64..5212afed 100644 --- a/clients/cloud-packer-service/stable/2021-04-30/models/hashicorp_cloud_packer_registry_billing_deprovision_reason.go +++ b/clients/cloud-packer-service/stable/2021-04-30/models/hashicorp_cloud_packer_registry_billing_deprovision_reason.go @@ -25,6 +25,9 @@ const ( // HashicorpCloudPackerRegistryBillingDeprovisionReasonUSERREQUEST captures enum value "USER_REQUEST" HashicorpCloudPackerRegistryBillingDeprovisionReasonUSERREQUEST HashicorpCloudPackerRegistryBillingDeprovisionReason = "USER_REQUEST" + + // HashicorpCloudPackerRegistryBillingDeprovisionReasonHASHIADMINREQUEST captures enum value "HASHI_ADMIN_REQUEST" + HashicorpCloudPackerRegistryBillingDeprovisionReasonHASHIADMINREQUEST HashicorpCloudPackerRegistryBillingDeprovisionReason = "HASHI_ADMIN_REQUEST" ) // for schema @@ -32,7 +35,7 @@ var hashicorpCloudPackerRegistryBillingDeprovisionReasonEnum []interface{} func init() { var res []HashicorpCloudPackerRegistryBillingDeprovisionReason - if err := json.Unmarshal([]byte(`["DELINQUENT_BILLING_ACCOUNT","USER_REQUEST"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["DELINQUENT_BILLING_ACCOUNT","USER_REQUEST","HASHI_ADMIN_REQUEST"]`), &res); err != nil { panic(err) } for _, v := range res {