diff --git a/README.md b/README.md index 2a5d5b5..4508d6d 100644 --- a/README.md +++ b/README.md @@ -3,11 +3,11 @@ ![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/IBM/vpc-go-sdk) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) -# IBM Cloud VPC Go SDK Version 0.67.0 +# IBM Cloud VPC Go SDK Version 0.68.0 Go client library to interact with the various [IBM Cloud VPC Services APIs](https://cloud.ibm.com/apidocs?category=vpc). **Note:** Given the current version of all VPC SDKs across supported languages and the current VPC API specification, we retracted the vpc-go-sdk version 1.x to version v0.6.0, which had the same features as v1.0.1. -Consider using v0.67.0 from now on. Refrain from using commands like `go get -u ..` and `go get ..@latest` on go 1.14 and lower as you will not get the latest release. +Consider using v0.68.0 from now on. Refrain from using commands like `go get -u ..` and `go get ..@latest` on go 1.14 and lower as you will not get the latest release. This SDK uses [Semantic Versioning](https://semver.org), and as such there may be backward-incompatible changes for any new `0.y.z` version. ## Table of Contents @@ -64,7 +64,7 @@ Use this command to download and install the VPC Go SDK service to allow your Go use it: ``` -go get github.com/IBM/vpc-go-sdk@v0.67.0 +go get github.com/IBM/vpc-go-sdk@v0.68.0 ``` @@ -90,7 +90,7 @@ to your `Gopkg.toml` file. Here is an example: ``` [[constraint]] name = "github.com/IBM/vpc-go-sdk/" - version = "0.67.0" + version = "0.68.0" ``` Then run `dep ensure`. diff --git a/common/version.go b/common/version.go index 0969866..040a7c6 100644 --- a/common/version.go +++ b/common/version.go @@ -1,4 +1,4 @@ package common // Version of the SDK -const Version = "0.67.0" +const Version = "0.68.0" diff --git a/vpcv1/vpc_v1.go b/vpcv1/vpc_v1.go index 41353b9..16bbc88 100644 --- a/vpcv1/vpc_v1.go +++ b/vpcv1/vpc_v1.go @@ -38,7 +38,7 @@ import ( // VpcV1 : The IBM Cloud Virtual Private Cloud (VPC) API can be used to programmatically provision and manage virtual // server instances, along with subnets, volumes, load balancers, and more. // -// API Version: 2025-04-10 +// API Version: 2025-04-22 type VpcV1 struct { Service *core.BaseService @@ -68,7 +68,7 @@ type VpcV1Options struct { Generation *int64 // The API version, in format `YYYY-MM-DD`. For the API behavior documented here, specify any date between `2025-04-08` - // and `2025-04-10`. + // and `2025-04-23`. Version *string } @@ -133,7 +133,7 @@ func NewVpcV1(options *VpcV1Options) (service *VpcV1, err error) { } if options.Version == nil { - options.Version = core.StringPtr("2025-04-08") + options.Version = core.StringPtr("2025-04-22") } service = &VpcV1{ @@ -151,7 +151,24 @@ func NewVpcV1(options *VpcV1Options) (service *VpcV1, err error) { // GetServiceURLForRegion returns the service URL to be used for the specified region func GetServiceURLForRegion(region string) (string, error) { - return "", core.SDKErrorf(nil, "service does not support regional URLs", "no-regional-support", common.GetComponentInfo()) + var endpoints = map[string]string{ + "au-syd": "https://au-syd.iaas.cloud.ibm.com/v1", // Australia (Sydney) + "br-sao": "https://br-sao.iaas.cloud.ibm.com/v1", // Brazil (Sao Paulo) + "ca-mon": "https://ca-mon.iaas.cloud.ibm.com/v1", // Canada (Montreal) + "ca-tor": "https://ca-tor.iaas.cloud.ibm.com/v1", // Canada (Toronto) + "eu-de": "https://eu-de.iaas.cloud.ibm.com/v1", // Germany (Frankfurt) + "eu-es": "https://eu-es.iaas.cloud.ibm.com/v1", // Spain (Madrid) + "eu-gb": "https://eu-gb.iaas.cloud.ibm.com/v1", // United Kingdom (London) + "jp-osa": "https://jp-osa.iaas.cloud.ibm.com/v1", // Japan (Osaka) + "jp-tok": "https://jp-tok.iaas.cloud.ibm.com/v1", // Japan (Tokyo) + "us-east": "https://us-east.iaas.cloud.ibm.com/v1", // US East (Washington DC) + "us-south": "https://us-south.iaas.cloud.ibm.com/v1", // US South (Dallas) + } + + if url, ok := endpoints[region]; ok { + return url, nil + } + return "", core.SDKErrorf(nil, fmt.Sprintf("service URL for region '%s' not found", region), "invalid-region", common.GetComponentInfo()) } // Clone makes a copy of "vpc" suitable for processing requests. @@ -4254,6 +4271,9 @@ func (vpc *VpcV1) ListImagesWithContext(ctx context.Context, listImagesOptions * if listImagesOptions.UserDataFormat != nil { builder.AddQuery("user_data_format", strings.Join(listImagesOptions.UserDataFormat, ",")) } + if listImagesOptions.OwnerType != nil { + builder.AddQuery("owner_type", fmt.Sprint(*listImagesOptions.OwnerType)) + } request, err := builder.Build() if err != nil { @@ -15668,27 +15688,27 @@ func (vpc *VpcV1) ListVolumesWithContext(ctx context.Context, listVolumesOptions if listVolumesOptions.Limit != nil { builder.AddQuery("limit", fmt.Sprint(*listVolumesOptions.Limit)) } - if listVolumesOptions.Name != nil { - builder.AddQuery("name", fmt.Sprint(*listVolumesOptions.Name)) - } if listVolumesOptions.AttachmentState != nil { builder.AddQuery("attachment_state", fmt.Sprint(*listVolumesOptions.AttachmentState)) } if listVolumesOptions.Encryption != nil { builder.AddQuery("encryption", fmt.Sprint(*listVolumesOptions.Encryption)) } + if listVolumesOptions.Name != nil { + builder.AddQuery("name", fmt.Sprint(*listVolumesOptions.Name)) + } if listVolumesOptions.OperatingSystemFamily != nil { builder.AddQuery("operating_system.family", fmt.Sprint(*listVolumesOptions.OperatingSystemFamily)) } if listVolumesOptions.OperatingSystemArchitecture != nil { builder.AddQuery("operating_system.architecture", fmt.Sprint(*listVolumesOptions.OperatingSystemArchitecture)) } - if listVolumesOptions.ZoneName != nil { - builder.AddQuery("zone.name", fmt.Sprint(*listVolumesOptions.ZoneName)) - } if listVolumesOptions.Tag != nil { builder.AddQuery("tag", fmt.Sprint(*listVolumesOptions.Tag)) } + if listVolumesOptions.ZoneName != nil { + builder.AddQuery("zone.name", fmt.Sprint(*listVolumesOptions.ZoneName)) + } request, err := builder.Build() if err != nil { @@ -18499,12 +18519,9 @@ func (vpc *VpcV1) ListShareSnapshotsWithContext(ctx context.Context, listShareSn // in the same way as a retrieved share snapshot, and contains the information necessary to create the new share // snapshot. // -// The share must have the `access_control_mode` set to `security_group`. -// -// At present, the snapshot's `resource_group` will be inherited from its share, but may be specifiable in the future. +// The share must have an `access_control_mode` of `security_group` and a `replication_role` of `source` or `none`. // -// The new snapshot will inherit the encryption settings from its share, , and must have a -// `replication_role` of `source` or `none`. +// The snapshot will inherit its `resource_group` and encryption settings from the share. // // If the share has a `replication_role` of `source`, a corresponding snapshot on the replica share will be created with // a `status` of `pending`. It will remain in @@ -34052,7 +34069,7 @@ func (vpc *VpcV1) UnpublishPrivatePathServiceGatewayWithContext(ctx context.Cont return } func getServiceComponentInfo() *core.ProblemComponent { - return core.NewProblemComponent(DefaultServiceName, "2025-04-08") + return core.NewProblemComponent(DefaultServiceName, "2025-04-22") } // AccountIdentity : Identifies an account by a unique property. @@ -36873,6 +36890,9 @@ func UnmarshalBareMetalServerBootTarget(m map[string]json.RawMessage, result int // BareMetalServerCpu : The bare metal server CPU configuration. type BareMetalServerCpu struct { // The CPU architecture. + // + // The enumerated values for this property may + // [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) in the future. Architecture *string `json:"architecture" validate:"required"` // The total number of cores. @@ -36885,6 +36905,16 @@ type BareMetalServerCpu struct { ThreadsPerCore *int64 `json:"threads_per_core" validate:"required"` } +// Constants associated with the BareMetalServerCpu.Architecture property. +// The CPU architecture. +// +// The enumerated values for this property may +// [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) in the future. +const ( + BareMetalServerCpuArchitectureAmd64Const = "amd64" + BareMetalServerCpuArchitectureS390xConst = "s390x" +) + // UnmarshalBareMetalServerCpu unmarshals an instance of BareMetalServerCpu from the specified map of raw messages. func UnmarshalBareMetalServerCpu(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(BareMetalServerCpu) @@ -39283,12 +39313,26 @@ type BareMetalServerProfileCpuArchitecture struct { Value *string `json:"value" validate:"required"` } +// Constants associated with the BareMetalServerProfileCpuArchitecture.Default property. +// The default CPU architecture for a bare metal server with this profile. +const ( + BareMetalServerProfileCpuArchitectureDefaultAmd64Const = "amd64" + BareMetalServerProfileCpuArchitectureDefaultS390xConst = "s390x" +) + // Constants associated with the BareMetalServerProfileCpuArchitecture.Type property. // The type for this profile field. const ( BareMetalServerProfileCpuArchitectureTypeFixedConst = "fixed" ) +// Constants associated with the BareMetalServerProfileCpuArchitecture.Value property. +// The CPU architecture for a bare metal server with this profile. +const ( + BareMetalServerProfileCpuArchitectureValueAmd64Const = "amd64" + BareMetalServerProfileCpuArchitectureValueS390xConst = "s390x" +) + // UnmarshalBareMetalServerProfileCpuArchitecture unmarshals an instance of BareMetalServerProfileCpuArchitecture from the specified map of raw messages. func UnmarshalBareMetalServerProfileCpuArchitecture(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(BareMetalServerProfileCpuArchitecture) @@ -49889,6 +49933,13 @@ const ( DedicatedHostProfileVcpuArchitectureTypeFixedConst = "fixed" ) +// Constants associated with the DedicatedHostProfileVcpuArchitecture.Value property. +// The VCPU architecture for a dedicated host with this profile. +const ( + DedicatedHostProfileVcpuArchitectureValueAmd64Const = "amd64" + DedicatedHostProfileVcpuArchitectureValueS390xConst = "s390x" +) + // UnmarshalDedicatedHostProfileVcpuArchitecture unmarshals an instance of DedicatedHostProfileVcpuArchitecture from the specified map of raw messages. func UnmarshalDedicatedHostProfileVcpuArchitecture(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(DedicatedHostProfileVcpuArchitecture) @@ -59655,6 +59706,11 @@ type Image struct { // The operating system included in this image. OperatingSystem *OperatingSystem `json:"operating_system" validate:"required"` + // The owner type of this image: + // - `user`: Owned by this account + // - `provider`: Owned by a different account. + OwnerType *string `json:"owner_type" validate:"required"` + // The resource group for this image. ResourceGroup *ResourceGroupReference `json:"resource_group" validate:"required"` @@ -59704,6 +59760,15 @@ const ( ImageEncryptionUserManagedConst = "user_managed" ) +// Constants associated with the Image.OwnerType property. +// The owner type of this image: +// - `user`: Owned by this account +// - `provider`: Owned by a different account. +const ( + ImageOwnerTypeProviderConst = "provider" + ImageOwnerTypeUserConst = "user" +) + // Constants associated with the Image.ResourceType property. // The resource type. const ( @@ -59824,6 +59889,11 @@ func UnmarshalImage(m map[string]json.RawMessage, result interface{}) (err error err = core.SDKErrorf(err, "", "operating_system-error", common.GetComponentInfo()) return } + err = core.UnmarshalPrimitive(m, "owner_type", &obj.OwnerType) + if err != nil { + err = core.SDKErrorf(err, "", "owner_type-error", common.GetComponentInfo()) + return + } err = core.UnmarshalModel(m, "resource_group", &obj.ResourceGroup, UnmarshalResourceGroupReference) if err != nil { err = core.SDKErrorf(err, "", "resource_group-error", common.GetComponentInfo()) @@ -60594,7 +60664,7 @@ type ImageReference struct { // If present, this property indicates that the resource associated with this reference // is remote and therefore may not be directly retrievable. - Remote *ImageRemote `json:"remote,omitempty"` + Remote *ImageRemoteContextImageReference `json:"remote,omitempty"` // The resource type. ResourceType *string `json:"resource_type" validate:"required"` @@ -60634,7 +60704,7 @@ func UnmarshalImageReference(m map[string]json.RawMessage, result interface{}) ( err = core.SDKErrorf(err, "", "name-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "remote", &obj.Remote, UnmarshalImageRemote) + err = core.UnmarshalModel(m, "remote", &obj.Remote, UnmarshalImageRemoteContextImageReference) if err != nil { err = core.SDKErrorf(err, "", "remote-error", common.GetComponentInfo()) return @@ -60648,9 +60718,9 @@ func UnmarshalImageReference(m map[string]json.RawMessage, result interface{}) ( return } -// ImageRemote : If present, this property indicates that the resource associated with this reference is remote and therefore may not +// ImageRemoteContextImageReference : If present, this property indicates that the resource associated with this reference is remote and therefore may not // be directly retrievable. -type ImageRemote struct { +type ImageRemoteContextImageReference struct { // If present, this property indicates that the referenced resource is remote to this // account, and identifies the owning account. Account *AccountReference `json:"account,omitempty"` @@ -60660,9 +60730,9 @@ type ImageRemote struct { Region *RegionReference `json:"region,omitempty"` } -// UnmarshalImageRemote unmarshals an instance of ImageRemote from the specified map of raw messages. -func UnmarshalImageRemote(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(ImageRemote) +// UnmarshalImageRemoteContextImageReference unmarshals an instance of ImageRemoteContextImageReference from the specified map of raw messages. +func UnmarshalImageRemoteContextImageReference(m map[string]json.RawMessage, result interface{}) (err error) { + obj := new(ImageRemoteContextImageReference) err = core.UnmarshalModel(m, "account", &obj.Account, UnmarshalAccountReference) if err != nil { err = core.SDKErrorf(err, "", "account-error", common.GetComponentInfo()) @@ -67351,6 +67421,13 @@ const ( InstanceProfileVcpuArchitectureTypeFixedConst = "fixed" ) +// Constants associated with the InstanceProfileVcpuArchitecture.Value property. +// The VCPU architecture for an instance with this profile. +const ( + InstanceProfileVcpuArchitectureValueAmd64Const = "amd64" + InstanceProfileVcpuArchitectureValueS390xConst = "s390x" +) + // UnmarshalInstanceProfileVcpuArchitecture unmarshals an instance of InstanceProfileVcpuArchitecture from the specified map of raw messages. func UnmarshalInstanceProfileVcpuArchitecture(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(InstanceProfileVcpuArchitecture) @@ -68822,6 +68899,9 @@ func UnmarshalInstanceTemplateReference(m map[string]json.RawMessage, result int // InstanceVcpu : The virtual server instance VCPU configuration. type InstanceVcpu struct { // The VCPU architecture. + // + // The enumerated values for this property may + // [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) in the future. Architecture *string `json:"architecture" validate:"required"` // The number of VCPUs assigned. @@ -68834,6 +68914,16 @@ type InstanceVcpu struct { Manufacturer *string `json:"manufacturer" validate:"required"` } +// Constants associated with the InstanceVcpu.Architecture property. +// The VCPU architecture. +// +// The enumerated values for this property may +// [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) in the future. +const ( + InstanceVcpuArchitectureAmd64Const = "amd64" + InstanceVcpuArchitectureS390xConst = "s390x" +) + // Constants associated with the InstanceVcpu.Manufacturer property. // The VCPU manufacturer. // @@ -70872,6 +70962,9 @@ type ListImagesOptions struct { // values. UserDataFormat []string `json:"user_data_format,omitempty"` + // Filters the collection to images with an `owner_type` property matching the specified value. + OwnerType *string `json:"owner_type,omitempty"` + // Allows users to set headers on API requests. Headers map[string]string } @@ -70901,6 +70994,13 @@ const ( ListImagesOptionsUserDataFormatIpxeConst = "ipxe" ) +// Constants associated with the ListImagesOptions.OwnerType property. +// Filters the collection to images with an `owner_type` property matching the specified value. +const ( + ListImagesOptionsOwnerTypeProviderConst = "provider" + ListImagesOptionsOwnerTypeUserConst = "user" +) + // NewListImagesOptions : Instantiate ListImagesOptions func (*VpcV1) NewListImagesOptions() *ListImagesOptions { return &ListImagesOptions{} @@ -70948,6 +71048,12 @@ func (_options *ListImagesOptions) SetUserDataFormat(userDataFormat []string) *L return _options } +// SetOwnerType : Allow user to set OwnerType +func (_options *ListImagesOptions) SetOwnerType(ownerType string) *ListImagesOptions { + _options.OwnerType = core.StringPtr(ownerType) + return _options +} + // SetHeaders : Allow user to set Headers func (options *ListImagesOptions) SetHeaders(param map[string]string) *ListImagesOptions { options.Headers = param @@ -73844,15 +73950,15 @@ type ListVolumesOptions struct { // The number of resources to return on a page. Limit *int64 `json:"limit,omitempty"` - // Filters the collection to resources with a `name` property matching the exact specified name. - Name *string `json:"name,omitempty"` - // Filters the collection to volumes with an `attachment_state` property matching the specified value. AttachmentState *string `json:"attachment_state,omitempty"` // Filters the collection to resources with an `encryption` property matching the specified value. Encryption *string `json:"encryption,omitempty"` + // Filters the collection to resources with a `name` property matching the exact specified name. + Name *string `json:"name,omitempty"` + // Filters the collection to resources with an `operating_system.family` property matching the specified operating // system family. // @@ -73867,12 +73973,12 @@ type ListVolumesOptions struct { // operating system or any operating system, respectively. OperatingSystemArchitecture *string `json:"operating_system.architecture,omitempty"` - // Filters the collection to resources with a `zone.name` property matching the exact specified name. - ZoneName *string `json:"zone.name,omitempty"` - // Filters the collection to resources with an item in the `tags` property matching the exact specified tag. Tag *string `json:"tag,omitempty"` + // Filters the collection to resources with a `zone.name` property matching the exact specified name. + ZoneName *string `json:"zone.name,omitempty"` + // Allows users to set headers on API requests. Headers map[string]string } @@ -73909,12 +74015,6 @@ func (_options *ListVolumesOptions) SetLimit(limit int64) *ListVolumesOptions { return _options } -// SetName : Allow user to set Name -func (_options *ListVolumesOptions) SetName(name string) *ListVolumesOptions { - _options.Name = core.StringPtr(name) - return _options -} - // SetAttachmentState : Allow user to set AttachmentState func (_options *ListVolumesOptions) SetAttachmentState(attachmentState string) *ListVolumesOptions { _options.AttachmentState = core.StringPtr(attachmentState) @@ -73927,6 +74027,12 @@ func (_options *ListVolumesOptions) SetEncryption(encryption string) *ListVolume return _options } +// SetName : Allow user to set Name +func (_options *ListVolumesOptions) SetName(name string) *ListVolumesOptions { + _options.Name = core.StringPtr(name) + return _options +} + // SetOperatingSystemFamily : Allow user to set OperatingSystemFamily func (_options *ListVolumesOptions) SetOperatingSystemFamily(operatingSystemFamily string) *ListVolumesOptions { _options.OperatingSystemFamily = core.StringPtr(operatingSystemFamily) @@ -73939,18 +74045,18 @@ func (_options *ListVolumesOptions) SetOperatingSystemArchitecture(operatingSyst return _options } -// SetZoneName : Allow user to set ZoneName -func (_options *ListVolumesOptions) SetZoneName(zoneName string) *ListVolumesOptions { - _options.ZoneName = core.StringPtr(zoneName) - return _options -} - // SetTag : Allow user to set Tag func (_options *ListVolumesOptions) SetTag(tag string) *ListVolumesOptions { _options.Tag = core.StringPtr(tag) return _options } +// SetZoneName : Allow user to set ZoneName +func (_options *ListVolumesOptions) SetZoneName(zoneName string) *ListVolumesOptions { + _options.ZoneName = core.StringPtr(zoneName) + return _options +} + // SetHeaders : Allow user to set Headers func (options *ListVolumesOptions) SetHeaders(param map[string]string) *ListVolumesOptions { options.Headers = param @@ -79422,8 +79528,8 @@ func UnmarshalLoadBalancerProfile(m map[string]json.RawMessage, result interface } err = core.UnmarshalModel(m, "targetable_load_balancer_profiles", &obj.TargetableLoadBalancerProfiles, UnmarshalLoadBalancerProfileReference) if err != nil { - _ = core.SDKErrorf(err, "", "targetable_load_balancer_profiles-error", common.GetComponentInfo()) - // return + err = core.SDKErrorf(err, "", "targetable_load_balancer_profiles-error", common.GetComponentInfo()) + return } err = core.UnmarshalModel(m, "udp_supported", &obj.UDPSupported, UnmarshalLoadBalancerProfileUDPSupported) if err != nil { @@ -88967,7 +89073,12 @@ type Share struct { // with access to this file share's data and its snapshots. AccessorBindings []ShareAccessorBindingReference `json:"accessor_bindings" validate:"required"` - // The transit encryption modes allowed for this share. + // The transit encryption modes allowed for this share: + // - `none`: Not encrypted in transit. + // - `user_managed`: Encrypted in transit using an instance identity certificate. + // + // The enumerated values for this property may + // [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) in the future. AllowedTransitEncryptionModes []string `json:"allowed_transit_encryption_modes" validate:"required"` // The date and time that the file share is created. @@ -89098,7 +89209,7 @@ type Share struct { // Tags for this resource. UserTags []string `json:"user_tags" validate:"required"` - // The zone this file share will reside in. + // The zone this file share resides in. Zone *ZoneReference `json:"zone" validate:"required"` } @@ -89130,12 +89241,6 @@ const ( ) // Constants associated with the Share.AllowedTransitEncryptionModes property. -// An allowed transit encryption mode for this share. -// - `none`: Not encrypted in transit. -// - `user_managed`: Encrypted in transit using an instance identity certificate. -// -// The enumerated values for this property may -// [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) in the future. const ( ShareAllowedTransitEncryptionModesNoneConst = "none" ShareAllowedTransitEncryptionModesUserManagedConst = "user_managed" @@ -90611,16 +90716,19 @@ type SharePatch struct { // `replication_role` must be `none` and `accessor_binding_role` must not be `accessor`. AccessControlMode *string `json:"access_control_mode,omitempty"` - // The transit encryption modes to allow for this share. + // The transit encryption modes to allow for this share + // (replacing the existing allowed transit encryption modes). The specified transit encryption modes must contain all + // transit_encryption modes specified by existing mount targets. // // For this property to be updated, the `accessor_binding_role` must be `none`. AllowedTransitEncryptionModes []string `json:"allowed_transit_encryption_modes,omitempty"` - // The maximum input/output operations per second (IOPS) for the file share. In addition, each client accessing the - // share will be restricted to 48,000 IOPS. + // The maximum input/output operations per second (IOPS) for the file share. // // The maximum IOPS for a share may increase in the future. For this property to be changed, the share - // `accessor_binding_role` must not be `accessor`. + // `accessor_binding_role` must not be `accessor`, the share profile must not have an `iops.type` of `dependent` or + // `fixed`, and the specified value must be within the `iops` range of the share's profile supported by the share's + // size. Iops *int64 `json:"iops,omitempty"` // The name for this share. The name must not be used by another share in the region. @@ -90666,12 +90774,6 @@ const ( ) // Constants associated with the SharePatch.AllowedTransitEncryptionModes property. -// An allowed transit encryption mode for this share. -// - `none`: Not encrypted in transit. -// - `user_managed`: Encrypted in transit using an instance identity certificate. -// -// The enumerated values for this property may -// [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) in the future. const ( SharePatchAllowedTransitEncryptionModesNoneConst = "none" SharePatchAllowedTransitEncryptionModesUserManagedConst = "user_managed" @@ -90988,6 +91090,7 @@ func (resp *ShareProfileCollection) GetNextStart() (*string, error) { // - ShareProfileIopsRange // - ShareProfileIopsEnum // - ShareProfileIopsDependentRange +// - ShareProfileIopsDependent type ShareProfileIops struct { // The type for this profile field. Type *string `json:"type,omitempty"` @@ -91206,10 +91309,11 @@ type SharePrototype struct { // must be performed by a client that has mounted the file share. InitialOwner *ShareInitialOwner `json:"initial_owner,omitempty"` - // The maximum input/output operations per second (IOPS) for the file share. The share must be in the - // `defined_performance` profile family, and the value must be in the range supported by the share's specified size. + // The maximum input/output operations per second (IOPS) for the file share. // - // In addition, each client accessing the share will be restricted to 48,000 IOPS. + // If the share profile has an `iops.type` of `dependent` or `fixed`, this property is system-managed and must not be + // specified. Otherwise, the specified value must be within the `iops` range of the share profile as supported by the + // share's specified size. Iops *int64 `json:"iops,omitempty"` // The [profile](https://cloud.ibm.com/docs/vpc?topic=vpc-file-storage-profiles) to use @@ -91222,6 +91326,9 @@ type SharePrototype struct { // The size of the file share (in gigabytes), excluding share snapshots. // + // The specified value must be within the permitted `capacity` range of the share's profile and supported by the + // share's specified IOPS. + // // The maximum size for a share may increase in the future. Size *int64 `json:"size,omitempty"` @@ -91259,12 +91366,6 @@ type SharePrototype struct { } // Constants associated with the SharePrototype.AllowedTransitEncryptionModes property. -// An allowed transit encryption mode for this share. -// - `none`: Not encrypted in transit. -// - `user_managed`: Encrypted in transit using an instance identity certificate. -// -// The enumerated values for this property may -// [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) in the future. const ( SharePrototypeAllowedTransitEncryptionModesNoneConst = "none" SharePrototypeAllowedTransitEncryptionModesUserManagedConst = "user_managed" @@ -91393,10 +91494,11 @@ type SharePrototypeShareContext struct { // - Otherwise, all `transit_encryption` modes will be allowed. AllowedTransitEncryptionModes []string `json:"allowed_transit_encryption_modes,omitempty"` - // The maximum input/output operations per second (IOPS) for the file share. The share must be in the - // `defined_performance` profile family, and the value must be in the range supported by the share's specified size. + // The maximum input/output operations per second (IOPS) for the file share. // - // In addition, each client accessing the share will be restricted to 48,000 IOPS. + // If the share profile has an `iops.type` of `dependent` or `fixed`, this property is system-managed and must not be + // specified. Otherwise, the specified value must be within the `iops` range of the share profile as supported by the + // share's specified size. Iops *int64 `json:"iops,omitempty"` // The mount targets for this replica file share. Each mount target must be in a unique VPC. @@ -91430,12 +91532,6 @@ type SharePrototypeShareContext struct { } // Constants associated with the SharePrototypeShareContext.AllowedTransitEncryptionModes property. -// An allowed transit encryption mode for this share. -// - `none`: Not encrypted in transit. -// - `user_managed`: Encrypted in transit using an instance identity certificate. -// -// The enumerated values for this property may -// [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) in the future. const ( SharePrototypeShareContextAllowedTransitEncryptionModesNoneConst = "none" SharePrototypeShareContextAllowedTransitEncryptionModesUserManagedConst = "user_managed" @@ -97489,6 +97585,9 @@ func (options *UpdateVPNServerRouteOptions) SetHeaders(param map[string]string) // Vcpu : The VCPU configuration. type Vcpu struct { // The VCPU architecture. + // + // The enumerated values for this property may + // [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) in the future. Architecture *string `json:"architecture" validate:"required"` // The number of VCPUs assigned. @@ -97501,6 +97600,16 @@ type Vcpu struct { Manufacturer *string `json:"manufacturer" validate:"required"` } +// Constants associated with the Vcpu.Architecture property. +// The VCPU architecture. +// +// The enumerated values for this property may +// [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) in the future. +const ( + VcpuArchitectureAmd64Const = "amd64" + VcpuArchitectureS390xConst = "s390x" +) + // Constants associated with the Vcpu.Manufacturer property. // The VCPU manufacturer. // @@ -104532,7 +104641,8 @@ type VolumePatch struct { // of the specified volume profile. Profile VolumeProfileIdentityIntf `json:"profile,omitempty"` - // The [user tags](https://cloud.ibm.com/apidocs/tagging#types-of-tags) associated with this volume. + // The [user tags](https://cloud.ibm.com/apidocs/tagging#types-of-tags) associated with this volume (replacing any + // existing tags). UserTags []string `json:"user_tags,omitempty"` } @@ -130644,7 +130754,6 @@ func UnmarshalShareIdentityByID(m map[string]json.RawMessage, result interface{} // ShareMountTargetPrototypeShareMountTargetByAccessControlModeSecurityGroup : The virtual network interface for this share mount target. The virtual network interface must: // -// - be in the same `zone` as the share // - have `allow_ip_spoofing` set to `false` // - have `enable_infrastructure_nat` set to `true` // - have `protocol_state_filtering_mode` set to `auto` or `enabled` @@ -131192,6 +131301,35 @@ func UnmarshalShareProfileCapacityRange(m map[string]json.RawMessage, result int return } +// ShareProfileIopsDependent : The permitted IOPS for a share with this profile depends on its configuration. +// This model "extends" ShareProfileIops +type ShareProfileIopsDependent struct { + // The type for this profile field. + Type *string `json:"type" validate:"required"` +} + +// Constants associated with the ShareProfileIopsDependent.Type property. +// The type for this profile field. +const ( + ShareProfileIopsDependentTypeDependentConst = "dependent" +) + +func (*ShareProfileIopsDependent) isaShareProfileIops() bool { + return true +} + +// UnmarshalShareProfileIopsDependent unmarshals an instance of ShareProfileIopsDependent from the specified map of raw messages. +func UnmarshalShareProfileIopsDependent(m map[string]json.RawMessage, result interface{}) (err error) { + obj := new(ShareProfileIopsDependent) + err = core.UnmarshalPrimitive(m, "type", &obj.Type) + if err != nil { + err = core.SDKErrorf(err, "", "type-error", common.GetComponentInfo()) + return + } + reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) + return +} + // ShareProfileIopsDependentRange : The permitted IOPS range of a share with this profile depends on its configuration. // This model "extends" ShareProfileIops type ShareProfileIopsDependentRange struct { @@ -131478,8 +131616,9 @@ func (shareProfileIdentityByName *ShareProfileIdentityByName) asPatch() (_patch return } -// SharePrototypeShareByOriginShare : Create an accessor file share for an existing file share. The values for `initial_owner`, -// `access_control_mode`, `encryption_key`, `zone`, `profile`, `iops` and `size` will be inherited from `origin_share`. +// SharePrototypeShareByOriginShare : Create an accessor file share for an existing file share. The values for +// `access_control_mode`, `encryption_key`, `initial_owner`, `iops`, `profile`, `size`, and +// `zone` will be inherited from `origin_share`. // This model "extends" SharePrototype type SharePrototypeShareByOriginShare struct { // The transit encryption modes to allow for this share. If unspecified: @@ -131509,12 +131648,6 @@ type SharePrototypeShareByOriginShare struct { } // Constants associated with the SharePrototypeShareByOriginShare.AllowedTransitEncryptionModes property. -// An allowed transit encryption mode for this share. -// - `none`: Not encrypted in transit. -// - `user_managed`: Encrypted in transit using an instance identity certificate. -// -// The enumerated values for this property may -// [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) in the future. const ( SharePrototypeShareByOriginShareAllowedTransitEncryptionModesNoneConst = "none" SharePrototypeShareByOriginShareAllowedTransitEncryptionModesUserManagedConst = "user_managed" @@ -131614,10 +131747,11 @@ type SharePrototypeShareBySize struct { // must be performed by a client that has mounted the file share. InitialOwner *ShareInitialOwner `json:"initial_owner,omitempty"` - // The maximum input/output operations per second (IOPS) for the file share. The share must be in the - // `defined_performance` profile family, and the value must be in the range supported by the share's specified size. + // The maximum input/output operations per second (IOPS) for the file share. // - // In addition, each client accessing the share will be restricted to 48,000 IOPS. + // If the share profile has an `iops.type` of `dependent` or `fixed`, this property is system-managed and must not be + // specified. Otherwise, the specified value must be within the `iops` range of the share profile as supported by the + // share's specified size. Iops *int64 `json:"iops,omitempty"` // The [profile](https://cloud.ibm.com/docs/vpc?topic=vpc-file-storage-profiles) to use @@ -131630,6 +131764,9 @@ type SharePrototypeShareBySize struct { // The size of the file share (in gigabytes), excluding share snapshots. // + // The specified value must be within the permitted `capacity` range of the share's profile and supported by the + // share's specified IOPS. + // // The maximum size for a share may increase in the future. Size *int64 `json:"size" validate:"required"` @@ -131639,12 +131776,6 @@ type SharePrototypeShareBySize struct { } // Constants associated with the SharePrototypeShareBySize.AllowedTransitEncryptionModes property. -// An allowed transit encryption mode for this share. -// - `none`: Not encrypted in transit. -// - `user_managed`: Encrypted in transit using an instance identity certificate. -// -// The enumerated values for this property may -// [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) in the future. const ( SharePrototypeShareBySizeAllowedTransitEncryptionModesNoneConst = "none" SharePrototypeShareBySizeAllowedTransitEncryptionModesUserManagedConst = "user_managed" @@ -131753,8 +131884,8 @@ func UnmarshalSharePrototypeShareBySize(m map[string]json.RawMessage, result int return } -// SharePrototypeShareBySourceShare : Create a replica file share for an existing file share. The values for `initial_owner`, -// `access_control_mode`, `encryption_key` and `size` will be inherited from `source_share`. +// SharePrototypeShareBySourceShare : Create a replica file share for an existing file share. The values for +// `access_control_mode`, `encryption_key`, `initial_owner`, and `size` will be inherited from `source_share`. // This model "extends" SharePrototype type SharePrototypeShareBySourceShare struct { // The transit encryption modes to allow for this share. If unspecified: @@ -131782,10 +131913,11 @@ type SharePrototypeShareBySourceShare struct { // will be inherited from `source_share`). EncryptionKey EncryptionKeyIdentityIntf `json:"encryption_key,omitempty"` - // The maximum input/output operations per second (IOPS) for the file share. The share must be in the - // `defined_performance` profile family, and the value must be in the range supported by the share's specified size. + // The maximum input/output operations per second (IOPS) for the file share. // - // In addition, each client accessing the share will be restricted to 48,000 IOPS. + // If the share profile has an `iops.type` of `dependent` or `fixed`, this property is system-managed and must not be + // specified. Otherwise, the specified value must be within the `iops` range of the share profile as supported by the + // share's specified size. Iops *int64 `json:"iops,omitempty"` // The [profile](https://cloud.ibm.com/docs/vpc?topic=vpc-file-storage-profiles) to use @@ -131816,12 +131948,6 @@ type SharePrototypeShareBySourceShare struct { } // Constants associated with the SharePrototypeShareBySourceShare.AllowedTransitEncryptionModes property. -// An allowed transit encryption mode for this share. -// - `none`: Not encrypted in transit. -// - `user_managed`: Encrypted in transit using an instance identity certificate. -// -// The enumerated values for this property may -// [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) in the future. const ( SharePrototypeShareBySourceShareAllowedTransitEncryptionModesNoneConst = "none" SharePrototypeShareBySourceShareAllowedTransitEncryptionModesUserManagedConst = "user_managed" @@ -131946,10 +132072,11 @@ type SharePrototypeShareBySourceSnapshot struct { // must be performed by a client that has mounted the file share. InitialOwner *ShareInitialOwner `json:"initial_owner,omitempty"` - // The maximum input/output operations per second (IOPS) for the file share. The share must be in the - // `defined_performance` profile family, and the value must be in the range supported by the share's specified size. + // The maximum input/output operations per second (IOPS) for the file share. // - // In addition, each client accessing the share will be restricted to 48,000 IOPS. + // If the share profile has an `iops.type` of `dependent` or `fixed`, this property is system-managed and must not be + // specified. Otherwise, the specified value must be within the `iops` range of the share profile as supported by the + // share's specified size. Iops *int64 `json:"iops,omitempty"` // The [profile](https://cloud.ibm.com/docs/vpc?topic=vpc-file-storage-profiles) to use @@ -131975,12 +132102,6 @@ type SharePrototypeShareBySourceSnapshot struct { } // Constants associated with the SharePrototypeShareBySourceSnapshot.AllowedTransitEncryptionModes property. -// An allowed transit encryption mode for this share. -// - `none`: Not encrypted in transit. -// - `user_managed`: Encrypted in transit using an instance identity certificate. -// -// The enumerated values for this property may -// [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) in the future. const ( SharePrototypeShareBySourceSnapshotAllowedTransitEncryptionModesNoneConst = "none" SharePrototypeShareBySourceSnapshotAllowedTransitEncryptionModesUserManagedConst = "user_managed" diff --git a/vpcv1/vpc_v1_test.go b/vpcv1/vpc_v1_test.go index 9f0efdc..fb48bb9 100644 --- a/vpcv1/vpc_v1_test.go +++ b/vpcv1/vpc_v1_test.go @@ -174,6 +174,50 @@ var _ = Describe(`VpcV1`, func() { It(`GetServiceURLForRegion(region string)`, func() { var url string var err error + url, err = vpcv1.GetServiceURLForRegion("au-syd") + Expect(url).To(Equal("https://au-syd.iaas.cloud.ibm.com/v1")) + Expect(err).To(BeNil()) + + url, err = vpcv1.GetServiceURLForRegion("br-sao") + Expect(url).To(Equal("https://br-sao.iaas.cloud.ibm.com/v1")) + Expect(err).To(BeNil()) + + url, err = vpcv1.GetServiceURLForRegion("ca-mon") + Expect(url).To(Equal("https://ca-mon.iaas.cloud.ibm.com/v1")) + Expect(err).To(BeNil()) + + url, err = vpcv1.GetServiceURLForRegion("ca-tor") + Expect(url).To(Equal("https://ca-tor.iaas.cloud.ibm.com/v1")) + Expect(err).To(BeNil()) + + url, err = vpcv1.GetServiceURLForRegion("eu-de") + Expect(url).To(Equal("https://eu-de.iaas.cloud.ibm.com/v1")) + Expect(err).To(BeNil()) + + url, err = vpcv1.GetServiceURLForRegion("eu-es") + Expect(url).To(Equal("https://eu-es.iaas.cloud.ibm.com/v1")) + Expect(err).To(BeNil()) + + url, err = vpcv1.GetServiceURLForRegion("eu-gb") + Expect(url).To(Equal("https://eu-gb.iaas.cloud.ibm.com/v1")) + Expect(err).To(BeNil()) + + url, err = vpcv1.GetServiceURLForRegion("jp-osa") + Expect(url).To(Equal("https://jp-osa.iaas.cloud.ibm.com/v1")) + Expect(err).To(BeNil()) + + url, err = vpcv1.GetServiceURLForRegion("jp-tok") + Expect(url).To(Equal("https://jp-tok.iaas.cloud.ibm.com/v1")) + Expect(err).To(BeNil()) + + url, err = vpcv1.GetServiceURLForRegion("us-east") + Expect(url).To(Equal("https://us-east.iaas.cloud.ibm.com/v1")) + Expect(err).To(BeNil()) + + url, err = vpcv1.GetServiceURLForRegion("us-south") + Expect(url).To(Equal("https://us-south.iaas.cloud.ibm.com/v1")) + Expect(err).To(BeNil()) + url, err = vpcv1.GetServiceURLForRegion("INVALID_REGION") Expect(url).To(BeEmpty()) Expect(err).ToNot(BeNil()) @@ -13506,6 +13550,7 @@ var _ = Describe(`VpcV1`, func() { Expect(req.URL.Query()["resource_group.id"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["name"]).To(Equal([]string{"my-name"})) Expect(req.URL.Query()["visibility"]).To(Equal([]string{"private"})) + Expect(req.URL.Query()["owner_type"]).To(Equal([]string{"provider"})) res.Header().Set("Content-type", "application/json") res.WriteHeader(200) fmt.Fprint(res, `} this is not valid json {`) @@ -13529,6 +13574,7 @@ var _ = Describe(`VpcV1`, func() { listImagesOptionsModel.Status = []string{"available"} listImagesOptionsModel.Visibility = core.StringPtr("private") listImagesOptionsModel.UserDataFormat = []string{"cloud_init"} + listImagesOptionsModel.OwnerType = core.StringPtr("provider") listImagesOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Expect response parsing to fail since we are receiving a text/plain response result, response, operationErr := vpcService.ListImages(listImagesOptionsModel) @@ -13567,13 +13613,14 @@ var _ = Describe(`VpcV1`, func() { Expect(req.URL.Query()["resource_group.id"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["name"]).To(Equal([]string{"my-name"})) Expect(req.URL.Query()["visibility"]).To(Equal([]string{"private"})) + Expect(req.URL.Query()["owner_type"]).To(Equal([]string{"provider"})) // Sleep a short time to support a timeout test time.Sleep(100 * time.Millisecond) // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"first": {"href": "Href"}, "images": [{"catalog_offering": {"managed": false, "version": {"crn": "crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:version:00111601-0ec5-41ac-b142-96d1e64e6442/ec66bec2-6a33-42d6-9323-26dd4dc8875d"}}, "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::image:r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8", "deprecation_at": "2019-01-01T12:00:00.000Z", "encryption": "user_managed", "encryption_key": {"crn": "crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179"}, "file": {"checksums": {"sha256": "e992a84f113d3a35d2145ca3e7aca4fc95fe6daf470a08d8af3422ee59c92e15"}, "size": 1}, "href": "https://us-south.iaas.cloud.ibm.com/v1/images/r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8", "id": "r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8", "minimum_provisioned_size": 22, "name": "my-image", "obsolescence_at": "2019-01-01T12:00:00.000Z", "operating_system": {"allow_user_image_creation": true, "architecture": "amd64", "dedicated_host_only": false, "display_name": "Ubuntu Server 16.04 LTS amd64", "family": "Ubuntu Server", "href": "https://us-south.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-24-04-amd64", "name": "ubuntu-24-04-amd64", "user_data_format": "cloud_init", "vendor": "Canonical", "version": "16.04 LTS"}, "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "image", "source_volume": {"crn": "crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/volumes/r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5", "id": "r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5", "name": "my-volume", "remote": {"region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "volume"}, "status": "available", "status_reasons": [{"code": "encryption_key_deleted", "message": "Message", "more_info": "https://cloud.ibm.com/docs/key-protect?topic=key-protect-restore-keys"}], "user_data_format": "cloud_init", "visibility": "private"}], "limit": 20, "next": {"href": "Href"}, "total_count": 132}`) + fmt.Fprintf(res, "%s", `{"first": {"href": "Href"}, "images": [{"catalog_offering": {"managed": false, "version": {"crn": "crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:version:00111601-0ec5-41ac-b142-96d1e64e6442/ec66bec2-6a33-42d6-9323-26dd4dc8875d"}}, "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::image:r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8", "deprecation_at": "2019-01-01T12:00:00.000Z", "encryption": "user_managed", "encryption_key": {"crn": "crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179"}, "file": {"checksums": {"sha256": "e992a84f113d3a35d2145ca3e7aca4fc95fe6daf470a08d8af3422ee59c92e15"}, "size": 1}, "href": "https://us-south.iaas.cloud.ibm.com/v1/images/r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8", "id": "r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8", "minimum_provisioned_size": 22, "name": "my-image", "obsolescence_at": "2019-01-01T12:00:00.000Z", "operating_system": {"allow_user_image_creation": true, "architecture": "amd64", "dedicated_host_only": false, "display_name": "Ubuntu Server 16.04 LTS amd64", "family": "Ubuntu Server", "href": "https://us-south.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-24-04-amd64", "name": "ubuntu-24-04-amd64", "user_data_format": "cloud_init", "vendor": "Canonical", "version": "16.04 LTS"}, "owner_type": "provider", "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "image", "source_volume": {"crn": "crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/volumes/r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5", "id": "r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5", "name": "my-volume", "remote": {"region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "volume"}, "status": "available", "status_reasons": [{"code": "encryption_key_deleted", "message": "Message", "more_info": "https://cloud.ibm.com/docs/key-protect?topic=key-protect-restore-keys"}], "user_data_format": "cloud_init", "visibility": "private"}], "limit": 20, "next": {"href": "Href"}, "total_count": 132}`) })) }) It(`Invoke ListImages successfully with retries`, func() { @@ -13595,6 +13642,7 @@ var _ = Describe(`VpcV1`, func() { listImagesOptionsModel.Status = []string{"available"} listImagesOptionsModel.Visibility = core.StringPtr("private") listImagesOptionsModel.UserDataFormat = []string{"cloud_init"} + listImagesOptionsModel.OwnerType = core.StringPtr("provider") listImagesOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with a Context to test a timeout error @@ -13638,10 +13686,11 @@ var _ = Describe(`VpcV1`, func() { Expect(req.URL.Query()["resource_group.id"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["name"]).To(Equal([]string{"my-name"})) Expect(req.URL.Query()["visibility"]).To(Equal([]string{"private"})) + Expect(req.URL.Query()["owner_type"]).To(Equal([]string{"provider"})) // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"first": {"href": "Href"}, "images": [{"catalog_offering": {"managed": false, "version": {"crn": "crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:version:00111601-0ec5-41ac-b142-96d1e64e6442/ec66bec2-6a33-42d6-9323-26dd4dc8875d"}}, "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::image:r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8", "deprecation_at": "2019-01-01T12:00:00.000Z", "encryption": "user_managed", "encryption_key": {"crn": "crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179"}, "file": {"checksums": {"sha256": "e992a84f113d3a35d2145ca3e7aca4fc95fe6daf470a08d8af3422ee59c92e15"}, "size": 1}, "href": "https://us-south.iaas.cloud.ibm.com/v1/images/r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8", "id": "r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8", "minimum_provisioned_size": 22, "name": "my-image", "obsolescence_at": "2019-01-01T12:00:00.000Z", "operating_system": {"allow_user_image_creation": true, "architecture": "amd64", "dedicated_host_only": false, "display_name": "Ubuntu Server 16.04 LTS amd64", "family": "Ubuntu Server", "href": "https://us-south.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-24-04-amd64", "name": "ubuntu-24-04-amd64", "user_data_format": "cloud_init", "vendor": "Canonical", "version": "16.04 LTS"}, "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "image", "source_volume": {"crn": "crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/volumes/r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5", "id": "r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5", "name": "my-volume", "remote": {"region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "volume"}, "status": "available", "status_reasons": [{"code": "encryption_key_deleted", "message": "Message", "more_info": "https://cloud.ibm.com/docs/key-protect?topic=key-protect-restore-keys"}], "user_data_format": "cloud_init", "visibility": "private"}], "limit": 20, "next": {"href": "Href"}, "total_count": 132}`) + fmt.Fprintf(res, "%s", `{"first": {"href": "Href"}, "images": [{"catalog_offering": {"managed": false, "version": {"crn": "crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:version:00111601-0ec5-41ac-b142-96d1e64e6442/ec66bec2-6a33-42d6-9323-26dd4dc8875d"}}, "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::image:r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8", "deprecation_at": "2019-01-01T12:00:00.000Z", "encryption": "user_managed", "encryption_key": {"crn": "crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179"}, "file": {"checksums": {"sha256": "e992a84f113d3a35d2145ca3e7aca4fc95fe6daf470a08d8af3422ee59c92e15"}, "size": 1}, "href": "https://us-south.iaas.cloud.ibm.com/v1/images/r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8", "id": "r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8", "minimum_provisioned_size": 22, "name": "my-image", "obsolescence_at": "2019-01-01T12:00:00.000Z", "operating_system": {"allow_user_image_creation": true, "architecture": "amd64", "dedicated_host_only": false, "display_name": "Ubuntu Server 16.04 LTS amd64", "family": "Ubuntu Server", "href": "https://us-south.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-24-04-amd64", "name": "ubuntu-24-04-amd64", "user_data_format": "cloud_init", "vendor": "Canonical", "version": "16.04 LTS"}, "owner_type": "provider", "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "image", "source_volume": {"crn": "crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/volumes/r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5", "id": "r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5", "name": "my-volume", "remote": {"region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "volume"}, "status": "available", "status_reasons": [{"code": "encryption_key_deleted", "message": "Message", "more_info": "https://cloud.ibm.com/docs/key-protect?topic=key-protect-restore-keys"}], "user_data_format": "cloud_init", "visibility": "private"}], "limit": 20, "next": {"href": "Href"}, "total_count": 132}`) })) }) It(`Invoke ListImages successfully`, func() { @@ -13668,6 +13717,7 @@ var _ = Describe(`VpcV1`, func() { listImagesOptionsModel.Status = []string{"available"} listImagesOptionsModel.Visibility = core.StringPtr("private") listImagesOptionsModel.UserDataFormat = []string{"cloud_init"} + listImagesOptionsModel.OwnerType = core.StringPtr("provider") listImagesOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with valid options model (positive test) @@ -13695,6 +13745,7 @@ var _ = Describe(`VpcV1`, func() { listImagesOptionsModel.Status = []string{"available"} listImagesOptionsModel.Visibility = core.StringPtr("private") listImagesOptionsModel.UserDataFormat = []string{"cloud_init"} + listImagesOptionsModel.OwnerType = core.StringPtr("provider") listImagesOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with empty URL (negative test) err := vpcService.SetServiceURL("") @@ -13736,6 +13787,7 @@ var _ = Describe(`VpcV1`, func() { listImagesOptionsModel.Status = []string{"available"} listImagesOptionsModel.Visibility = core.StringPtr("private") listImagesOptionsModel.UserDataFormat = []string{"cloud_init"} + listImagesOptionsModel.OwnerType = core.StringPtr("provider") listImagesOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation @@ -13794,9 +13846,9 @@ var _ = Describe(`VpcV1`, func() { res.WriteHeader(200) requestNumber++ if requestNumber == 1 { - fmt.Fprintf(res, "%s", `{"next":{"href":"https://myhost.com/somePath?start=1"},"images":[{"catalog_offering":{"managed":false,"version":{"crn":"crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:version:00111601-0ec5-41ac-b142-96d1e64e6442/ec66bec2-6a33-42d6-9323-26dd4dc8875d"}},"created_at":"2019-01-01T12:00:00.000Z","crn":"crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::image:r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8","deprecation_at":"2019-01-01T12:00:00.000Z","encryption":"user_managed","encryption_key":{"crn":"crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179"},"file":{"checksums":{"sha256":"e992a84f113d3a35d2145ca3e7aca4fc95fe6daf470a08d8af3422ee59c92e15"},"size":1},"href":"https://us-south.iaas.cloud.ibm.com/v1/images/r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8","id":"r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8","minimum_provisioned_size":22,"name":"my-image","obsolescence_at":"2019-01-01T12:00:00.000Z","operating_system":{"allow_user_image_creation":true,"architecture":"amd64","dedicated_host_only":false,"display_name":"Ubuntu Server 16.04 LTS amd64","family":"Ubuntu Server","href":"https://us-south.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-24-04-amd64","name":"ubuntu-24-04-amd64","user_data_format":"cloud_init","vendor":"Canonical","version":"16.04 LTS"},"resource_group":{"href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345","id":"fee82deba12e4c0fb69c3b09d1f12345","name":"my-resource-group"},"resource_type":"image","source_volume":{"crn":"crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5","deleted":{"more_info":"https://cloud.ibm.com/apidocs/vpc#deleted-resources"},"href":"https://us-south.iaas.cloud.ibm.com/v1/volumes/r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5","id":"r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5","name":"my-volume","remote":{"region":{"href":"https://us-south.iaas.cloud.ibm.com/v1/regions/us-south","name":"us-south"}},"resource_type":"volume"},"status":"available","status_reasons":[{"code":"encryption_key_deleted","message":"Message","more_info":"https://cloud.ibm.com/docs/key-protect?topic=key-protect-restore-keys"}],"user_data_format":"cloud_init","visibility":"private"}],"total_count":2,"limit":1}`) + fmt.Fprintf(res, "%s", `{"next":{"href":"https://myhost.com/somePath?start=1"},"images":[{"catalog_offering":{"managed":false,"version":{"crn":"crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:version:00111601-0ec5-41ac-b142-96d1e64e6442/ec66bec2-6a33-42d6-9323-26dd4dc8875d"}},"created_at":"2019-01-01T12:00:00.000Z","crn":"crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::image:r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8","deprecation_at":"2019-01-01T12:00:00.000Z","encryption":"user_managed","encryption_key":{"crn":"crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179"},"file":{"checksums":{"sha256":"e992a84f113d3a35d2145ca3e7aca4fc95fe6daf470a08d8af3422ee59c92e15"},"size":1},"href":"https://us-south.iaas.cloud.ibm.com/v1/images/r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8","id":"r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8","minimum_provisioned_size":22,"name":"my-image","obsolescence_at":"2019-01-01T12:00:00.000Z","operating_system":{"allow_user_image_creation":true,"architecture":"amd64","dedicated_host_only":false,"display_name":"Ubuntu Server 16.04 LTS amd64","family":"Ubuntu Server","href":"https://us-south.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-24-04-amd64","name":"ubuntu-24-04-amd64","user_data_format":"cloud_init","vendor":"Canonical","version":"16.04 LTS"},"owner_type":"provider","resource_group":{"href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345","id":"fee82deba12e4c0fb69c3b09d1f12345","name":"my-resource-group"},"resource_type":"image","source_volume":{"crn":"crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5","deleted":{"more_info":"https://cloud.ibm.com/apidocs/vpc#deleted-resources"},"href":"https://us-south.iaas.cloud.ibm.com/v1/volumes/r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5","id":"r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5","name":"my-volume","remote":{"region":{"href":"https://us-south.iaas.cloud.ibm.com/v1/regions/us-south","name":"us-south"}},"resource_type":"volume"},"status":"available","status_reasons":[{"code":"encryption_key_deleted","message":"Message","more_info":"https://cloud.ibm.com/docs/key-protect?topic=key-protect-restore-keys"}],"user_data_format":"cloud_init","visibility":"private"}],"total_count":2,"limit":1}`) } else if requestNumber == 2 { - fmt.Fprintf(res, "%s", `{"images":[{"catalog_offering":{"managed":false,"version":{"crn":"crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:version:00111601-0ec5-41ac-b142-96d1e64e6442/ec66bec2-6a33-42d6-9323-26dd4dc8875d"}},"created_at":"2019-01-01T12:00:00.000Z","crn":"crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::image:r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8","deprecation_at":"2019-01-01T12:00:00.000Z","encryption":"user_managed","encryption_key":{"crn":"crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179"},"file":{"checksums":{"sha256":"e992a84f113d3a35d2145ca3e7aca4fc95fe6daf470a08d8af3422ee59c92e15"},"size":1},"href":"https://us-south.iaas.cloud.ibm.com/v1/images/r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8","id":"r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8","minimum_provisioned_size":22,"name":"my-image","obsolescence_at":"2019-01-01T12:00:00.000Z","operating_system":{"allow_user_image_creation":true,"architecture":"amd64","dedicated_host_only":false,"display_name":"Ubuntu Server 16.04 LTS amd64","family":"Ubuntu Server","href":"https://us-south.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-24-04-amd64","name":"ubuntu-24-04-amd64","user_data_format":"cloud_init","vendor":"Canonical","version":"16.04 LTS"},"resource_group":{"href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345","id":"fee82deba12e4c0fb69c3b09d1f12345","name":"my-resource-group"},"resource_type":"image","source_volume":{"crn":"crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5","deleted":{"more_info":"https://cloud.ibm.com/apidocs/vpc#deleted-resources"},"href":"https://us-south.iaas.cloud.ibm.com/v1/volumes/r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5","id":"r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5","name":"my-volume","remote":{"region":{"href":"https://us-south.iaas.cloud.ibm.com/v1/regions/us-south","name":"us-south"}},"resource_type":"volume"},"status":"available","status_reasons":[{"code":"encryption_key_deleted","message":"Message","more_info":"https://cloud.ibm.com/docs/key-protect?topic=key-protect-restore-keys"}],"user_data_format":"cloud_init","visibility":"private"}],"total_count":2,"limit":1}`) + fmt.Fprintf(res, "%s", `{"images":[{"catalog_offering":{"managed":false,"version":{"crn":"crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:version:00111601-0ec5-41ac-b142-96d1e64e6442/ec66bec2-6a33-42d6-9323-26dd4dc8875d"}},"created_at":"2019-01-01T12:00:00.000Z","crn":"crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::image:r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8","deprecation_at":"2019-01-01T12:00:00.000Z","encryption":"user_managed","encryption_key":{"crn":"crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179"},"file":{"checksums":{"sha256":"e992a84f113d3a35d2145ca3e7aca4fc95fe6daf470a08d8af3422ee59c92e15"},"size":1},"href":"https://us-south.iaas.cloud.ibm.com/v1/images/r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8","id":"r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8","minimum_provisioned_size":22,"name":"my-image","obsolescence_at":"2019-01-01T12:00:00.000Z","operating_system":{"allow_user_image_creation":true,"architecture":"amd64","dedicated_host_only":false,"display_name":"Ubuntu Server 16.04 LTS amd64","family":"Ubuntu Server","href":"https://us-south.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-24-04-amd64","name":"ubuntu-24-04-amd64","user_data_format":"cloud_init","vendor":"Canonical","version":"16.04 LTS"},"owner_type":"provider","resource_group":{"href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345","id":"fee82deba12e4c0fb69c3b09d1f12345","name":"my-resource-group"},"resource_type":"image","source_volume":{"crn":"crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5","deleted":{"more_info":"https://cloud.ibm.com/apidocs/vpc#deleted-resources"},"href":"https://us-south.iaas.cloud.ibm.com/v1/volumes/r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5","id":"r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5","name":"my-volume","remote":{"region":{"href":"https://us-south.iaas.cloud.ibm.com/v1/regions/us-south","name":"us-south"}},"resource_type":"volume"},"status":"available","status_reasons":[{"code":"encryption_key_deleted","message":"Message","more_info":"https://cloud.ibm.com/docs/key-protect?topic=key-protect-restore-keys"}],"user_data_format":"cloud_init","visibility":"private"}],"total_count":2,"limit":1}`) } else { res.WriteHeader(400) } @@ -13818,6 +13870,7 @@ var _ = Describe(`VpcV1`, func() { Status: []string{"available"}, Visibility: core.StringPtr("private"), UserDataFormat: []string{"cloud_init"}, + OwnerType: core.StringPtr("provider"), } pager, err := vpcService.NewImagesPager(listImagesOptionsModel) @@ -13849,6 +13902,7 @@ var _ = Describe(`VpcV1`, func() { Status: []string{"available"}, Visibility: core.StringPtr("private"), UserDataFormat: []string{"cloud_init"}, + OwnerType: core.StringPtr("provider"), } pager, err := vpcService.NewImagesPager(listImagesOptionsModel) @@ -13974,7 +14028,7 @@ var _ = Describe(`VpcV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(201) - fmt.Fprintf(res, "%s", `{"catalog_offering": {"managed": false, "version": {"crn": "crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:version:00111601-0ec5-41ac-b142-96d1e64e6442/ec66bec2-6a33-42d6-9323-26dd4dc8875d"}}, "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::image:r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8", "deprecation_at": "2019-01-01T12:00:00.000Z", "encryption": "user_managed", "encryption_key": {"crn": "crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179"}, "file": {"checksums": {"sha256": "e992a84f113d3a35d2145ca3e7aca4fc95fe6daf470a08d8af3422ee59c92e15"}, "size": 1}, "href": "https://us-south.iaas.cloud.ibm.com/v1/images/r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8", "id": "r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8", "minimum_provisioned_size": 22, "name": "my-image", "obsolescence_at": "2019-01-01T12:00:00.000Z", "operating_system": {"allow_user_image_creation": true, "architecture": "amd64", "dedicated_host_only": false, "display_name": "Ubuntu Server 16.04 LTS amd64", "family": "Ubuntu Server", "href": "https://us-south.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-24-04-amd64", "name": "ubuntu-24-04-amd64", "user_data_format": "cloud_init", "vendor": "Canonical", "version": "16.04 LTS"}, "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "image", "source_volume": {"crn": "crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/volumes/r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5", "id": "r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5", "name": "my-volume", "remote": {"region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "volume"}, "status": "available", "status_reasons": [{"code": "encryption_key_deleted", "message": "Message", "more_info": "https://cloud.ibm.com/docs/key-protect?topic=key-protect-restore-keys"}], "user_data_format": "cloud_init", "visibility": "private"}`) + fmt.Fprintf(res, "%s", `{"catalog_offering": {"managed": false, "version": {"crn": "crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:version:00111601-0ec5-41ac-b142-96d1e64e6442/ec66bec2-6a33-42d6-9323-26dd4dc8875d"}}, "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::image:r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8", "deprecation_at": "2019-01-01T12:00:00.000Z", "encryption": "user_managed", "encryption_key": {"crn": "crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179"}, "file": {"checksums": {"sha256": "e992a84f113d3a35d2145ca3e7aca4fc95fe6daf470a08d8af3422ee59c92e15"}, "size": 1}, "href": "https://us-south.iaas.cloud.ibm.com/v1/images/r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8", "id": "r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8", "minimum_provisioned_size": 22, "name": "my-image", "obsolescence_at": "2019-01-01T12:00:00.000Z", "operating_system": {"allow_user_image_creation": true, "architecture": "amd64", "dedicated_host_only": false, "display_name": "Ubuntu Server 16.04 LTS amd64", "family": "Ubuntu Server", "href": "https://us-south.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-24-04-amd64", "name": "ubuntu-24-04-amd64", "user_data_format": "cloud_init", "vendor": "Canonical", "version": "16.04 LTS"}, "owner_type": "provider", "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "image", "source_volume": {"crn": "crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/volumes/r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5", "id": "r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5", "name": "my-volume", "remote": {"region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "volume"}, "status": "available", "status_reasons": [{"code": "encryption_key_deleted", "message": "Message", "more_info": "https://cloud.ibm.com/docs/key-protect?topic=key-protect-restore-keys"}], "user_data_format": "cloud_init", "visibility": "private"}`) })) }) It(`Invoke CreateImage successfully with retries`, func() { @@ -14074,7 +14128,7 @@ var _ = Describe(`VpcV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(201) - fmt.Fprintf(res, "%s", `{"catalog_offering": {"managed": false, "version": {"crn": "crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:version:00111601-0ec5-41ac-b142-96d1e64e6442/ec66bec2-6a33-42d6-9323-26dd4dc8875d"}}, "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::image:r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8", "deprecation_at": "2019-01-01T12:00:00.000Z", "encryption": "user_managed", "encryption_key": {"crn": "crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179"}, "file": {"checksums": {"sha256": "e992a84f113d3a35d2145ca3e7aca4fc95fe6daf470a08d8af3422ee59c92e15"}, "size": 1}, "href": "https://us-south.iaas.cloud.ibm.com/v1/images/r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8", "id": "r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8", "minimum_provisioned_size": 22, "name": "my-image", "obsolescence_at": "2019-01-01T12:00:00.000Z", "operating_system": {"allow_user_image_creation": true, "architecture": "amd64", "dedicated_host_only": false, "display_name": "Ubuntu Server 16.04 LTS amd64", "family": "Ubuntu Server", "href": "https://us-south.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-24-04-amd64", "name": "ubuntu-24-04-amd64", "user_data_format": "cloud_init", "vendor": "Canonical", "version": "16.04 LTS"}, "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "image", "source_volume": {"crn": "crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/volumes/r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5", "id": "r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5", "name": "my-volume", "remote": {"region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "volume"}, "status": "available", "status_reasons": [{"code": "encryption_key_deleted", "message": "Message", "more_info": "https://cloud.ibm.com/docs/key-protect?topic=key-protect-restore-keys"}], "user_data_format": "cloud_init", "visibility": "private"}`) + fmt.Fprintf(res, "%s", `{"catalog_offering": {"managed": false, "version": {"crn": "crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:version:00111601-0ec5-41ac-b142-96d1e64e6442/ec66bec2-6a33-42d6-9323-26dd4dc8875d"}}, "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::image:r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8", "deprecation_at": "2019-01-01T12:00:00.000Z", "encryption": "user_managed", "encryption_key": {"crn": "crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179"}, "file": {"checksums": {"sha256": "e992a84f113d3a35d2145ca3e7aca4fc95fe6daf470a08d8af3422ee59c92e15"}, "size": 1}, "href": "https://us-south.iaas.cloud.ibm.com/v1/images/r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8", "id": "r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8", "minimum_provisioned_size": 22, "name": "my-image", "obsolescence_at": "2019-01-01T12:00:00.000Z", "operating_system": {"allow_user_image_creation": true, "architecture": "amd64", "dedicated_host_only": false, "display_name": "Ubuntu Server 16.04 LTS amd64", "family": "Ubuntu Server", "href": "https://us-south.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-24-04-amd64", "name": "ubuntu-24-04-amd64", "user_data_format": "cloud_init", "vendor": "Canonical", "version": "16.04 LTS"}, "owner_type": "provider", "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "image", "source_volume": {"crn": "crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/volumes/r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5", "id": "r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5", "name": "my-volume", "remote": {"region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "volume"}, "status": "available", "status_reasons": [{"code": "encryption_key_deleted", "message": "Message", "more_info": "https://cloud.ibm.com/docs/key-protect?topic=key-protect-restore-keys"}], "user_data_format": "cloud_init", "visibility": "private"}`) })) }) It(`Invoke CreateImage successfully`, func() { @@ -14396,7 +14450,7 @@ var _ = Describe(`VpcV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"catalog_offering": {"managed": false, "version": {"crn": "crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:version:00111601-0ec5-41ac-b142-96d1e64e6442/ec66bec2-6a33-42d6-9323-26dd4dc8875d"}}, "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::image:r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8", "deprecation_at": "2019-01-01T12:00:00.000Z", "encryption": "user_managed", "encryption_key": {"crn": "crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179"}, "file": {"checksums": {"sha256": "e992a84f113d3a35d2145ca3e7aca4fc95fe6daf470a08d8af3422ee59c92e15"}, "size": 1}, "href": "https://us-south.iaas.cloud.ibm.com/v1/images/r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8", "id": "r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8", "minimum_provisioned_size": 22, "name": "my-image", "obsolescence_at": "2019-01-01T12:00:00.000Z", "operating_system": {"allow_user_image_creation": true, "architecture": "amd64", "dedicated_host_only": false, "display_name": "Ubuntu Server 16.04 LTS amd64", "family": "Ubuntu Server", "href": "https://us-south.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-24-04-amd64", "name": "ubuntu-24-04-amd64", "user_data_format": "cloud_init", "vendor": "Canonical", "version": "16.04 LTS"}, "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "image", "source_volume": {"crn": "crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/volumes/r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5", "id": "r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5", "name": "my-volume", "remote": {"region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "volume"}, "status": "available", "status_reasons": [{"code": "encryption_key_deleted", "message": "Message", "more_info": "https://cloud.ibm.com/docs/key-protect?topic=key-protect-restore-keys"}], "user_data_format": "cloud_init", "visibility": "private"}`) + fmt.Fprintf(res, "%s", `{"catalog_offering": {"managed": false, "version": {"crn": "crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:version:00111601-0ec5-41ac-b142-96d1e64e6442/ec66bec2-6a33-42d6-9323-26dd4dc8875d"}}, "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::image:r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8", "deprecation_at": "2019-01-01T12:00:00.000Z", "encryption": "user_managed", "encryption_key": {"crn": "crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179"}, "file": {"checksums": {"sha256": "e992a84f113d3a35d2145ca3e7aca4fc95fe6daf470a08d8af3422ee59c92e15"}, "size": 1}, "href": "https://us-south.iaas.cloud.ibm.com/v1/images/r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8", "id": "r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8", "minimum_provisioned_size": 22, "name": "my-image", "obsolescence_at": "2019-01-01T12:00:00.000Z", "operating_system": {"allow_user_image_creation": true, "architecture": "amd64", "dedicated_host_only": false, "display_name": "Ubuntu Server 16.04 LTS amd64", "family": "Ubuntu Server", "href": "https://us-south.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-24-04-amd64", "name": "ubuntu-24-04-amd64", "user_data_format": "cloud_init", "vendor": "Canonical", "version": "16.04 LTS"}, "owner_type": "provider", "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "image", "source_volume": {"crn": "crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/volumes/r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5", "id": "r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5", "name": "my-volume", "remote": {"region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "volume"}, "status": "available", "status_reasons": [{"code": "encryption_key_deleted", "message": "Message", "more_info": "https://cloud.ibm.com/docs/key-protect?topic=key-protect-restore-keys"}], "user_data_format": "cloud_init", "visibility": "private"}`) })) }) It(`Invoke GetImage successfully with retries`, func() { @@ -14453,7 +14507,7 @@ var _ = Describe(`VpcV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"catalog_offering": {"managed": false, "version": {"crn": "crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:version:00111601-0ec5-41ac-b142-96d1e64e6442/ec66bec2-6a33-42d6-9323-26dd4dc8875d"}}, "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::image:r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8", "deprecation_at": "2019-01-01T12:00:00.000Z", "encryption": "user_managed", "encryption_key": {"crn": "crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179"}, "file": {"checksums": {"sha256": "e992a84f113d3a35d2145ca3e7aca4fc95fe6daf470a08d8af3422ee59c92e15"}, "size": 1}, "href": "https://us-south.iaas.cloud.ibm.com/v1/images/r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8", "id": "r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8", "minimum_provisioned_size": 22, "name": "my-image", "obsolescence_at": "2019-01-01T12:00:00.000Z", "operating_system": {"allow_user_image_creation": true, "architecture": "amd64", "dedicated_host_only": false, "display_name": "Ubuntu Server 16.04 LTS amd64", "family": "Ubuntu Server", "href": "https://us-south.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-24-04-amd64", "name": "ubuntu-24-04-amd64", "user_data_format": "cloud_init", "vendor": "Canonical", "version": "16.04 LTS"}, "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "image", "source_volume": {"crn": "crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/volumes/r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5", "id": "r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5", "name": "my-volume", "remote": {"region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "volume"}, "status": "available", "status_reasons": [{"code": "encryption_key_deleted", "message": "Message", "more_info": "https://cloud.ibm.com/docs/key-protect?topic=key-protect-restore-keys"}], "user_data_format": "cloud_init", "visibility": "private"}`) + fmt.Fprintf(res, "%s", `{"catalog_offering": {"managed": false, "version": {"crn": "crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:version:00111601-0ec5-41ac-b142-96d1e64e6442/ec66bec2-6a33-42d6-9323-26dd4dc8875d"}}, "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::image:r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8", "deprecation_at": "2019-01-01T12:00:00.000Z", "encryption": "user_managed", "encryption_key": {"crn": "crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179"}, "file": {"checksums": {"sha256": "e992a84f113d3a35d2145ca3e7aca4fc95fe6daf470a08d8af3422ee59c92e15"}, "size": 1}, "href": "https://us-south.iaas.cloud.ibm.com/v1/images/r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8", "id": "r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8", "minimum_provisioned_size": 22, "name": "my-image", "obsolescence_at": "2019-01-01T12:00:00.000Z", "operating_system": {"allow_user_image_creation": true, "architecture": "amd64", "dedicated_host_only": false, "display_name": "Ubuntu Server 16.04 LTS amd64", "family": "Ubuntu Server", "href": "https://us-south.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-24-04-amd64", "name": "ubuntu-24-04-amd64", "user_data_format": "cloud_init", "vendor": "Canonical", "version": "16.04 LTS"}, "owner_type": "provider", "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "image", "source_volume": {"crn": "crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/volumes/r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5", "id": "r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5", "name": "my-volume", "remote": {"region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "volume"}, "status": "available", "status_reasons": [{"code": "encryption_key_deleted", "message": "Message", "more_info": "https://cloud.ibm.com/docs/key-protect?topic=key-protect-restore-keys"}], "user_data_format": "cloud_init", "visibility": "private"}`) })) }) It(`Invoke GetImage successfully`, func() { @@ -14646,7 +14700,7 @@ var _ = Describe(`VpcV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"catalog_offering": {"managed": false, "version": {"crn": "crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:version:00111601-0ec5-41ac-b142-96d1e64e6442/ec66bec2-6a33-42d6-9323-26dd4dc8875d"}}, "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::image:r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8", "deprecation_at": "2019-01-01T12:00:00.000Z", "encryption": "user_managed", "encryption_key": {"crn": "crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179"}, "file": {"checksums": {"sha256": "e992a84f113d3a35d2145ca3e7aca4fc95fe6daf470a08d8af3422ee59c92e15"}, "size": 1}, "href": "https://us-south.iaas.cloud.ibm.com/v1/images/r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8", "id": "r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8", "minimum_provisioned_size": 22, "name": "my-image", "obsolescence_at": "2019-01-01T12:00:00.000Z", "operating_system": {"allow_user_image_creation": true, "architecture": "amd64", "dedicated_host_only": false, "display_name": "Ubuntu Server 16.04 LTS amd64", "family": "Ubuntu Server", "href": "https://us-south.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-24-04-amd64", "name": "ubuntu-24-04-amd64", "user_data_format": "cloud_init", "vendor": "Canonical", "version": "16.04 LTS"}, "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "image", "source_volume": {"crn": "crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/volumes/r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5", "id": "r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5", "name": "my-volume", "remote": {"region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "volume"}, "status": "available", "status_reasons": [{"code": "encryption_key_deleted", "message": "Message", "more_info": "https://cloud.ibm.com/docs/key-protect?topic=key-protect-restore-keys"}], "user_data_format": "cloud_init", "visibility": "private"}`) + fmt.Fprintf(res, "%s", `{"catalog_offering": {"managed": false, "version": {"crn": "crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:version:00111601-0ec5-41ac-b142-96d1e64e6442/ec66bec2-6a33-42d6-9323-26dd4dc8875d"}}, "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::image:r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8", "deprecation_at": "2019-01-01T12:00:00.000Z", "encryption": "user_managed", "encryption_key": {"crn": "crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179"}, "file": {"checksums": {"sha256": "e992a84f113d3a35d2145ca3e7aca4fc95fe6daf470a08d8af3422ee59c92e15"}, "size": 1}, "href": "https://us-south.iaas.cloud.ibm.com/v1/images/r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8", "id": "r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8", "minimum_provisioned_size": 22, "name": "my-image", "obsolescence_at": "2019-01-01T12:00:00.000Z", "operating_system": {"allow_user_image_creation": true, "architecture": "amd64", "dedicated_host_only": false, "display_name": "Ubuntu Server 16.04 LTS amd64", "family": "Ubuntu Server", "href": "https://us-south.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-24-04-amd64", "name": "ubuntu-24-04-amd64", "user_data_format": "cloud_init", "vendor": "Canonical", "version": "16.04 LTS"}, "owner_type": "provider", "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "image", "source_volume": {"crn": "crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/volumes/r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5", "id": "r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5", "name": "my-volume", "remote": {"region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "volume"}, "status": "available", "status_reasons": [{"code": "encryption_key_deleted", "message": "Message", "more_info": "https://cloud.ibm.com/docs/key-protect?topic=key-protect-restore-keys"}], "user_data_format": "cloud_init", "visibility": "private"}`) })) }) It(`Invoke UpdateImage successfully with retries`, func() { @@ -14728,7 +14782,7 @@ var _ = Describe(`VpcV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"catalog_offering": {"managed": false, "version": {"crn": "crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:version:00111601-0ec5-41ac-b142-96d1e64e6442/ec66bec2-6a33-42d6-9323-26dd4dc8875d"}}, "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::image:r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8", "deprecation_at": "2019-01-01T12:00:00.000Z", "encryption": "user_managed", "encryption_key": {"crn": "crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179"}, "file": {"checksums": {"sha256": "e992a84f113d3a35d2145ca3e7aca4fc95fe6daf470a08d8af3422ee59c92e15"}, "size": 1}, "href": "https://us-south.iaas.cloud.ibm.com/v1/images/r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8", "id": "r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8", "minimum_provisioned_size": 22, "name": "my-image", "obsolescence_at": "2019-01-01T12:00:00.000Z", "operating_system": {"allow_user_image_creation": true, "architecture": "amd64", "dedicated_host_only": false, "display_name": "Ubuntu Server 16.04 LTS amd64", "family": "Ubuntu Server", "href": "https://us-south.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-24-04-amd64", "name": "ubuntu-24-04-amd64", "user_data_format": "cloud_init", "vendor": "Canonical", "version": "16.04 LTS"}, "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "image", "source_volume": {"crn": "crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/volumes/r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5", "id": "r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5", "name": "my-volume", "remote": {"region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "volume"}, "status": "available", "status_reasons": [{"code": "encryption_key_deleted", "message": "Message", "more_info": "https://cloud.ibm.com/docs/key-protect?topic=key-protect-restore-keys"}], "user_data_format": "cloud_init", "visibility": "private"}`) + fmt.Fprintf(res, "%s", `{"catalog_offering": {"managed": false, "version": {"crn": "crn:v1:bluemix:public:globalcatalog-collection:global:a/aa2432b1fa4d4ace891e9b80fc104e34:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:version:00111601-0ec5-41ac-b142-96d1e64e6442/ec66bec2-6a33-42d6-9323-26dd4dc8875d"}}, "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::image:r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8", "deprecation_at": "2019-01-01T12:00:00.000Z", "encryption": "user_managed", "encryption_key": {"crn": "crn:v1:bluemix:public:kms:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179"}, "file": {"checksums": {"sha256": "e992a84f113d3a35d2145ca3e7aca4fc95fe6daf470a08d8af3422ee59c92e15"}, "size": 1}, "href": "https://us-south.iaas.cloud.ibm.com/v1/images/r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8", "id": "r006-72b27b5c-f4b0-48bb-b954-5becc7c1dcb8", "minimum_provisioned_size": 22, "name": "my-image", "obsolescence_at": "2019-01-01T12:00:00.000Z", "operating_system": {"allow_user_image_creation": true, "architecture": "amd64", "dedicated_host_only": false, "display_name": "Ubuntu Server 16.04 LTS amd64", "family": "Ubuntu Server", "href": "https://us-south.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-24-04-amd64", "name": "ubuntu-24-04-amd64", "user_data_format": "cloud_init", "vendor": "Canonical", "version": "16.04 LTS"}, "owner_type": "provider", "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "image", "source_volume": {"crn": "crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/volumes/r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5", "id": "r006-1a6b7274-678d-4dfb-8981-c71dd9d4daa5", "name": "my-volume", "remote": {"region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "volume"}, "status": "available", "status_reasons": [{"code": "encryption_key_deleted", "message": "Message", "more_info": "https://cloud.ibm.com/docs/key-protect?topic=key-protect-restore-keys"}], "user_data_format": "cloud_init", "visibility": "private"}`) })) }) It(`Invoke UpdateImage successfully`, func() { @@ -52708,13 +52762,13 @@ var _ = Describe(`VpcV1`, func() { Expect(req.URL.Query()["generation"]).To(Equal([]string{fmt.Sprint(int64(2))})) Expect(req.URL.Query()["start"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["limit"]).To(Equal([]string{fmt.Sprint(int64(10))})) - Expect(req.URL.Query()["name"]).To(Equal([]string{"my-name"})) Expect(req.URL.Query()["attachment_state"]).To(Equal([]string{"attached"})) Expect(req.URL.Query()["encryption"]).To(Equal([]string{"provider_managed"})) + Expect(req.URL.Query()["name"]).To(Equal([]string{"my-name"})) Expect(req.URL.Query()["operating_system.family"]).To(Equal([]string{"Ubuntu Server"})) Expect(req.URL.Query()["operating_system.architecture"]).To(Equal([]string{"amd64"})) - Expect(req.URL.Query()["zone.name"]).To(Equal([]string{"us-south-1"})) Expect(req.URL.Query()["tag"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["zone.name"]).To(Equal([]string{"us-south-1"})) res.Header().Set("Content-type", "application/json") res.WriteHeader(200) fmt.Fprint(res, `} this is not valid json {`) @@ -52733,13 +52787,13 @@ var _ = Describe(`VpcV1`, func() { listVolumesOptionsModel := new(vpcv1.ListVolumesOptions) listVolumesOptionsModel.Start = core.StringPtr("testString") listVolumesOptionsModel.Limit = core.Int64Ptr(int64(10)) - listVolumesOptionsModel.Name = core.StringPtr("my-name") listVolumesOptionsModel.AttachmentState = core.StringPtr("attached") listVolumesOptionsModel.Encryption = core.StringPtr("provider_managed") + listVolumesOptionsModel.Name = core.StringPtr("my-name") listVolumesOptionsModel.OperatingSystemFamily = core.StringPtr("Ubuntu Server") listVolumesOptionsModel.OperatingSystemArchitecture = core.StringPtr("amd64") - listVolumesOptionsModel.ZoneName = core.StringPtr("us-south-1") listVolumesOptionsModel.Tag = core.StringPtr("testString") + listVolumesOptionsModel.ZoneName = core.StringPtr("us-south-1") listVolumesOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Expect response parsing to fail since we are receiving a text/plain response result, response, operationErr := vpcService.ListVolumes(listVolumesOptionsModel) @@ -52775,13 +52829,13 @@ var _ = Describe(`VpcV1`, func() { Expect(req.URL.Query()["generation"]).To(Equal([]string{fmt.Sprint(int64(2))})) Expect(req.URL.Query()["start"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["limit"]).To(Equal([]string{fmt.Sprint(int64(10))})) - Expect(req.URL.Query()["name"]).To(Equal([]string{"my-name"})) Expect(req.URL.Query()["attachment_state"]).To(Equal([]string{"attached"})) Expect(req.URL.Query()["encryption"]).To(Equal([]string{"provider_managed"})) + Expect(req.URL.Query()["name"]).To(Equal([]string{"my-name"})) Expect(req.URL.Query()["operating_system.family"]).To(Equal([]string{"Ubuntu Server"})) Expect(req.URL.Query()["operating_system.architecture"]).To(Equal([]string{"amd64"})) - Expect(req.URL.Query()["zone.name"]).To(Equal([]string{"us-south-1"})) Expect(req.URL.Query()["tag"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["zone.name"]).To(Equal([]string{"us-south-1"})) // Sleep a short time to support a timeout test time.Sleep(100 * time.Millisecond) @@ -52805,13 +52859,13 @@ var _ = Describe(`VpcV1`, func() { listVolumesOptionsModel := new(vpcv1.ListVolumesOptions) listVolumesOptionsModel.Start = core.StringPtr("testString") listVolumesOptionsModel.Limit = core.Int64Ptr(int64(10)) - listVolumesOptionsModel.Name = core.StringPtr("my-name") listVolumesOptionsModel.AttachmentState = core.StringPtr("attached") listVolumesOptionsModel.Encryption = core.StringPtr("provider_managed") + listVolumesOptionsModel.Name = core.StringPtr("my-name") listVolumesOptionsModel.OperatingSystemFamily = core.StringPtr("Ubuntu Server") listVolumesOptionsModel.OperatingSystemArchitecture = core.StringPtr("amd64") - listVolumesOptionsModel.ZoneName = core.StringPtr("us-south-1") listVolumesOptionsModel.Tag = core.StringPtr("testString") + listVolumesOptionsModel.ZoneName = core.StringPtr("us-south-1") listVolumesOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with a Context to test a timeout error @@ -52852,13 +52906,13 @@ var _ = Describe(`VpcV1`, func() { Expect(req.URL.Query()["generation"]).To(Equal([]string{fmt.Sprint(int64(2))})) Expect(req.URL.Query()["start"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["limit"]).To(Equal([]string{fmt.Sprint(int64(10))})) - Expect(req.URL.Query()["name"]).To(Equal([]string{"my-name"})) Expect(req.URL.Query()["attachment_state"]).To(Equal([]string{"attached"})) Expect(req.URL.Query()["encryption"]).To(Equal([]string{"provider_managed"})) + Expect(req.URL.Query()["name"]).To(Equal([]string{"my-name"})) Expect(req.URL.Query()["operating_system.family"]).To(Equal([]string{"Ubuntu Server"})) Expect(req.URL.Query()["operating_system.architecture"]).To(Equal([]string{"amd64"})) - Expect(req.URL.Query()["zone.name"]).To(Equal([]string{"us-south-1"})) Expect(req.URL.Query()["tag"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["zone.name"]).To(Equal([]string{"us-south-1"})) // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) @@ -52884,13 +52938,13 @@ var _ = Describe(`VpcV1`, func() { listVolumesOptionsModel := new(vpcv1.ListVolumesOptions) listVolumesOptionsModel.Start = core.StringPtr("testString") listVolumesOptionsModel.Limit = core.Int64Ptr(int64(10)) - listVolumesOptionsModel.Name = core.StringPtr("my-name") listVolumesOptionsModel.AttachmentState = core.StringPtr("attached") listVolumesOptionsModel.Encryption = core.StringPtr("provider_managed") + listVolumesOptionsModel.Name = core.StringPtr("my-name") listVolumesOptionsModel.OperatingSystemFamily = core.StringPtr("Ubuntu Server") listVolumesOptionsModel.OperatingSystemArchitecture = core.StringPtr("amd64") - listVolumesOptionsModel.ZoneName = core.StringPtr("us-south-1") listVolumesOptionsModel.Tag = core.StringPtr("testString") + listVolumesOptionsModel.ZoneName = core.StringPtr("us-south-1") listVolumesOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with valid options model (positive test) @@ -52913,13 +52967,13 @@ var _ = Describe(`VpcV1`, func() { listVolumesOptionsModel := new(vpcv1.ListVolumesOptions) listVolumesOptionsModel.Start = core.StringPtr("testString") listVolumesOptionsModel.Limit = core.Int64Ptr(int64(10)) - listVolumesOptionsModel.Name = core.StringPtr("my-name") listVolumesOptionsModel.AttachmentState = core.StringPtr("attached") listVolumesOptionsModel.Encryption = core.StringPtr("provider_managed") + listVolumesOptionsModel.Name = core.StringPtr("my-name") listVolumesOptionsModel.OperatingSystemFamily = core.StringPtr("Ubuntu Server") listVolumesOptionsModel.OperatingSystemArchitecture = core.StringPtr("amd64") - listVolumesOptionsModel.ZoneName = core.StringPtr("us-south-1") listVolumesOptionsModel.Tag = core.StringPtr("testString") + listVolumesOptionsModel.ZoneName = core.StringPtr("us-south-1") listVolumesOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with empty URL (negative test) err := vpcService.SetServiceURL("") @@ -52956,13 +53010,13 @@ var _ = Describe(`VpcV1`, func() { listVolumesOptionsModel := new(vpcv1.ListVolumesOptions) listVolumesOptionsModel.Start = core.StringPtr("testString") listVolumesOptionsModel.Limit = core.Int64Ptr(int64(10)) - listVolumesOptionsModel.Name = core.StringPtr("my-name") listVolumesOptionsModel.AttachmentState = core.StringPtr("attached") listVolumesOptionsModel.Encryption = core.StringPtr("provider_managed") + listVolumesOptionsModel.Name = core.StringPtr("my-name") listVolumesOptionsModel.OperatingSystemFamily = core.StringPtr("Ubuntu Server") listVolumesOptionsModel.OperatingSystemArchitecture = core.StringPtr("amd64") - listVolumesOptionsModel.ZoneName = core.StringPtr("us-south-1") listVolumesOptionsModel.Tag = core.StringPtr("testString") + listVolumesOptionsModel.ZoneName = core.StringPtr("us-south-1") listVolumesOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation @@ -53040,13 +53094,13 @@ var _ = Describe(`VpcV1`, func() { listVolumesOptionsModel := &vpcv1.ListVolumesOptions{ Limit: core.Int64Ptr(int64(10)), - Name: core.StringPtr("my-name"), AttachmentState: core.StringPtr("attached"), Encryption: core.StringPtr("provider_managed"), + Name: core.StringPtr("my-name"), OperatingSystemFamily: core.StringPtr("Ubuntu Server"), OperatingSystemArchitecture: core.StringPtr("amd64"), - ZoneName: core.StringPtr("us-south-1"), Tag: core.StringPtr("testString"), + ZoneName: core.StringPtr("us-south-1"), } pager, err := vpcService.NewVolumesPager(listVolumesOptionsModel) @@ -53073,13 +53127,13 @@ var _ = Describe(`VpcV1`, func() { listVolumesOptionsModel := &vpcv1.ListVolumesOptions{ Limit: core.Int64Ptr(int64(10)), - Name: core.StringPtr("my-name"), AttachmentState: core.StringPtr("attached"), Encryption: core.StringPtr("provider_managed"), + Name: core.StringPtr("my-name"), OperatingSystemFamily: core.StringPtr("Ubuntu Server"), OperatingSystemArchitecture: core.StringPtr("amd64"), - ZoneName: core.StringPtr("us-south-1"), Tag: core.StringPtr("testString"), + ZoneName: core.StringPtr("us-south-1"), } pager, err := vpcService.NewVolumesPager(listVolumesOptionsModel) @@ -121632,6 +121686,7 @@ var _ = Describe(`VpcV1`, func() { listImagesOptionsModel.SetStatus([]string{"available"}) listImagesOptionsModel.SetVisibility("private") listImagesOptionsModel.SetUserDataFormat([]string{"cloud_init"}) + listImagesOptionsModel.SetOwnerType("provider") listImagesOptionsModel.SetHeaders(map[string]string{"foo": "bar"}) Expect(listImagesOptionsModel).ToNot(BeNil()) Expect(listImagesOptionsModel.Start).To(Equal(core.StringPtr("testString"))) @@ -121641,6 +121696,7 @@ var _ = Describe(`VpcV1`, func() { Expect(listImagesOptionsModel.Status).To(Equal([]string{"available"})) Expect(listImagesOptionsModel.Visibility).To(Equal(core.StringPtr("private"))) Expect(listImagesOptionsModel.UserDataFormat).To(Equal([]string{"cloud_init"})) + Expect(listImagesOptionsModel.OwnerType).To(Equal(core.StringPtr("provider"))) Expect(listImagesOptionsModel.Headers).To(Equal(map[string]string{"foo": "bar"})) }) It(`Invoke NewListInstanceClusterNetworkAttachmentsOptions successfully`, func() { @@ -122447,24 +122503,24 @@ var _ = Describe(`VpcV1`, func() { listVolumesOptionsModel := vpcService.NewListVolumesOptions() listVolumesOptionsModel.SetStart("testString") listVolumesOptionsModel.SetLimit(int64(10)) - listVolumesOptionsModel.SetName("my-name") listVolumesOptionsModel.SetAttachmentState("attached") listVolumesOptionsModel.SetEncryption("provider_managed") + listVolumesOptionsModel.SetName("my-name") listVolumesOptionsModel.SetOperatingSystemFamily("Ubuntu Server") listVolumesOptionsModel.SetOperatingSystemArchitecture("amd64") - listVolumesOptionsModel.SetZoneName("us-south-1") listVolumesOptionsModel.SetTag("testString") + listVolumesOptionsModel.SetZoneName("us-south-1") listVolumesOptionsModel.SetHeaders(map[string]string{"foo": "bar"}) Expect(listVolumesOptionsModel).ToNot(BeNil()) Expect(listVolumesOptionsModel.Start).To(Equal(core.StringPtr("testString"))) Expect(listVolumesOptionsModel.Limit).To(Equal(core.Int64Ptr(int64(10)))) - Expect(listVolumesOptionsModel.Name).To(Equal(core.StringPtr("my-name"))) Expect(listVolumesOptionsModel.AttachmentState).To(Equal(core.StringPtr("attached"))) Expect(listVolumesOptionsModel.Encryption).To(Equal(core.StringPtr("provider_managed"))) + Expect(listVolumesOptionsModel.Name).To(Equal(core.StringPtr("my-name"))) Expect(listVolumesOptionsModel.OperatingSystemFamily).To(Equal(core.StringPtr("Ubuntu Server"))) Expect(listVolumesOptionsModel.OperatingSystemArchitecture).To(Equal(core.StringPtr("amd64"))) - Expect(listVolumesOptionsModel.ZoneName).To(Equal(core.StringPtr("us-south-1"))) Expect(listVolumesOptionsModel.Tag).To(Equal(core.StringPtr("testString"))) + Expect(listVolumesOptionsModel.ZoneName).To(Equal(core.StringPtr("us-south-1"))) Expect(listVolumesOptionsModel.Headers).To(Equal(map[string]string{"foo": "bar"})) }) It(`Invoke NewListVPCAddressPrefixesOptions successfully`, func() { @@ -130267,7 +130323,7 @@ var _ = Describe(`VpcV1`, func() { model.Name = core.StringPtr("my-share") model.Profile = nil model.ReplicationCronSpec = core.StringPtr("0 */5 * * *") - model.Size = core.Int64Ptr(int64(200)) + model.Size = core.Int64Ptr(int64(38)) model.UserTags = []string{"testString"} b, err := json.Marshal(model)