From 8e02f238ec1836c095f7fc9f116e5bd226071b20 Mon Sep 17 00:00:00 2001 From: Ujjwal Kumar Date: Tue, 17 Sep 2024 11:51:47 +0530 Subject: [PATCH] feat(spec): updated the sdk as per the api spec released on 2024-09-17 Signed-off-by: Ujjwal Kumar --- README.md | 8 +- common/version.go | 2 +- vpcv1/vpc_v1.go | 2226 +++++++++------------------------ vpcv1/vpc_v1_examples_test.go | 4 +- vpcv1/vpc_v1_test.go | 1090 ++++++++-------- 5 files changed, 1118 insertions(+), 2212 deletions(-) diff --git a/README.md b/README.md index 10d745d..cb34b1b 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.57.0 +# IBM Cloud VPC Go SDK Version 0.58.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.57.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.58.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.57.0 +go get github.com/IBM/vpc-go-sdk@v0.58.0 ``` @@ -90,7 +90,7 @@ to your `Gopkg.toml` file. Here is an example: ``` [[constraint]] name = "github.com/IBM/vpc-go-sdk/" - version = "0.57.0" + version = "0.58.0" ``` Then run `dep ensure`. diff --git a/common/version.go b/common/version.go index c90aaa9..dfd817a 100644 --- a/common/version.go +++ b/common/version.go @@ -1,4 +1,4 @@ package common // Version of the SDK -const Version = "0.57.0" +const Version = "0.58.0" diff --git a/vpcv1/vpc_v1.go b/vpcv1/vpc_v1.go index faa2e50..dab56b8 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: 2024-08-20 +// API Version: 2024-04-30 type VpcV1 struct { Service *core.BaseService @@ -47,7 +47,7 @@ type VpcV1 struct { Generation *int64 // The API version, in format `YYYY-MM-DD`. For the API behavior documented here, specify any date between `2024-04-30` - // and `2024-08-19`. + // and `2024-09-16`. Version *string } @@ -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 `2024-04-30` - // and `2024-08-19`. + // and `2024-09-16`. Version *string } @@ -133,7 +133,7 @@ func NewVpcV1(options *VpcV1Options) (service *VpcV1, err error) { } if options.Version == nil { - options.Version = core.StringPtr("2024-08-13") + options.Version = core.StringPtr("2024-09-10") } service = &VpcV1{ Service: baseService, @@ -1320,7 +1320,7 @@ func (vpc *VpcV1) ListVPCDnsResolutionBindingsWithContext(ctx context.Context, l // For this request to succeed, `dns.enable_hub` must be `false` for the VPC specified by the identifier in the URL, and // the VPC must not already have a DNS resolution binding. // -// See [About DNS sharing for VPE gateways](/docs/vpc?topic=vpc-hub-spoke-model) for more information. +// See [About DNS sharing for VPE gateways](/docs/vpc?topic=vpc-vpe-dns-sharing) for more information. func (vpc *VpcV1) CreateVPCDnsResolutionBinding(createVPCDnsResolutionBindingOptions *CreateVPCDnsResolutionBindingOptions) (result *VpcdnsResolutionBinding, response *core.DetailedResponse, err error) { result, response, err = vpc.CreateVPCDnsResolutionBindingWithContext(context.Background(), createVPCDnsResolutionBindingOptions) err = core.RepurposeSDKProblem(err, "") @@ -30078,7 +30078,7 @@ func (vpc *VpcV1) UpdateFlowLogCollectorWithContext(ctx context.Context, updateF return } func getServiceComponentInfo() *core.ProblemComponent { - return core.NewProblemComponent(DefaultServiceName, "2024-08-13") + return core.NewProblemComponent(DefaultServiceName, "2024-04-30") } // AccountReference : AccountReference struct @@ -31293,7 +31293,7 @@ type BackupPolicyJobSource struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *VolumeReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this volume. Href *string `json:"href,omitempty"` @@ -31334,7 +31334,7 @@ func UnmarshalBackupPolicyJobSource(m map[string]json.RawMessage, result interfa err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalVolumeReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -32055,7 +32055,7 @@ func UnmarshalBackupPolicyPlanPrototype(m map[string]json.RawMessage, result int type BackupPolicyPlanReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *BackupPolicyPlanReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this backup policy plan. Href *string `json:"href" validate:"required"` @@ -32083,7 +32083,7 @@ const ( // UnmarshalBackupPolicyPlanReference unmarshals an instance of BackupPolicyPlanReference from the specified map of raw messages. func UnmarshalBackupPolicyPlanReference(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(BackupPolicyPlanReference) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalBackupPolicyPlanReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -32117,25 +32117,6 @@ func UnmarshalBackupPolicyPlanReference(m map[string]json.RawMessage, result int return } -// BackupPolicyPlanReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type BackupPolicyPlanReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalBackupPolicyPlanReferenceDeleted unmarshals an instance of BackupPolicyPlanReferenceDeleted from the specified map of raw messages. -func UnmarshalBackupPolicyPlanReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(BackupPolicyPlanReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // BackupPolicyPlanRemote : If present, this property indicates that the resource associated with this reference is remote and therefore may not // be directly retrievable. type BackupPolicyPlanRemote struct { @@ -32718,7 +32699,7 @@ func UnmarshalBareMetalServer(m map[string]json.RawMessage, result interface{}) type BareMetalServerBootTarget struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *BareMetalServerDiskReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this bare metal server disk. Href *string `json:"href,omitempty"` @@ -32750,7 +32731,7 @@ type BareMetalServerBootTargetIntf interface { // UnmarshalBareMetalServerBootTarget unmarshals an instance of BareMetalServerBootTarget from the specified map of raw messages. func UnmarshalBareMetalServerBootTarget(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(BareMetalServerBootTarget) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalBareMetalServerDiskReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -33130,25 +33111,6 @@ func (bareMetalServerDiskPatch *BareMetalServerDiskPatch) AsPatch() (_patch map[ return } -// BareMetalServerDiskReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type BareMetalServerDiskReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalBareMetalServerDiskReferenceDeleted unmarshals an instance of BareMetalServerDiskReferenceDeleted from the specified map of raw messages. -func UnmarshalBareMetalServerDiskReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(BareMetalServerDiskReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // BareMetalServerFirmware : Firmware information for the bare metal server. type BareMetalServerFirmware struct { // The type of update available. @@ -34031,7 +33993,7 @@ func UnmarshalBareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterface(m type BareMetalServerNetworkAttachmentReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *BareMetalServerNetworkAttachmentReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this bare metal server network attachment. Href *string `json:"href" validate:"required"` @@ -34067,7 +34029,7 @@ const ( // UnmarshalBareMetalServerNetworkAttachmentReference unmarshals an instance of BareMetalServerNetworkAttachmentReference from the specified map of raw messages. func UnmarshalBareMetalServerNetworkAttachmentReference(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(BareMetalServerNetworkAttachmentReference) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalBareMetalServerNetworkAttachmentReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -34111,25 +34073,6 @@ func UnmarshalBareMetalServerNetworkAttachmentReference(m map[string]json.RawMes return } -// BareMetalServerNetworkAttachmentReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type BareMetalServerNetworkAttachmentReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalBareMetalServerNetworkAttachmentReferenceDeleted unmarshals an instance of BareMetalServerNetworkAttachmentReferenceDeleted from the specified map of raw messages. -func UnmarshalBareMetalServerNetworkAttachmentReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(BareMetalServerNetworkAttachmentReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // BareMetalServerNetworkInterface : BareMetalServerNetworkInterface struct // Models which "extend" this model: // - BareMetalServerNetworkInterfaceByHiperSocket @@ -34746,44 +34689,6 @@ func UnmarshalBareMetalServerNetworkInterfacePrototype(m map[string]json.RawMess return } -// BareMetalServerNetworkInterfaceReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type BareMetalServerNetworkInterfaceReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalBareMetalServerNetworkInterfaceReferenceDeleted unmarshals an instance of BareMetalServerNetworkInterfaceReferenceDeleted from the specified map of raw messages. -func UnmarshalBareMetalServerNetworkInterfaceReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(BareMetalServerNetworkInterfaceReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - -// BareMetalServerNetworkInterfaceReferenceTargetContextDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type BareMetalServerNetworkInterfaceReferenceTargetContextDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalBareMetalServerNetworkInterfaceReferenceTargetContextDeleted unmarshals an instance of BareMetalServerNetworkInterfaceReferenceTargetContextDeleted from the specified map of raw messages. -func UnmarshalBareMetalServerNetworkInterfaceReferenceTargetContextDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(BareMetalServerNetworkInterfaceReferenceTargetContextDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // BareMetalServerPatch : BareMetalServerPatch struct type BareMetalServerPatch struct { // The total bandwidth (in megabits per second) shared across the bare metal server's network interfaces. The specified @@ -36723,7 +36628,7 @@ type CatalogOfferingVersionPlanReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *CatalogOfferingVersionPlanReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` } // UnmarshalCatalogOfferingVersionPlanReference unmarshals an instance of CatalogOfferingVersionPlanReference from the specified map of raw messages. @@ -36734,7 +36639,7 @@ func UnmarshalCatalogOfferingVersionPlanReference(m map[string]json.RawMessage, err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalCatalogOfferingVersionPlanReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -36743,25 +36648,6 @@ func UnmarshalCatalogOfferingVersionPlanReference(m map[string]json.RawMessage, return } -// CatalogOfferingVersionPlanReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type CatalogOfferingVersionPlanReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalCatalogOfferingVersionPlanReferenceDeleted unmarshals an instance of CatalogOfferingVersionPlanReferenceDeleted from the specified map of raw messages. -func UnmarshalCatalogOfferingVersionPlanReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(CatalogOfferingVersionPlanReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // CatalogOfferingVersionReference : CatalogOfferingVersionReference struct type CatalogOfferingVersionReference struct { // The CRN for this version of a @@ -40536,7 +40422,7 @@ type CreateVPCRouteOptions struct { // // At most two routes per `zone` in a table can have the same `destination` and `priority`, // and only when each route has an `action` of `deliver` and `next_hop` is an IP address. - NextHop RoutePrototypeNextHopIntf `json:"next_hop,omitempty"` + NextHop RouteNextHopPrototypeIntf `json:"next_hop,omitempty"` // The priority of this route. Smaller values have higher priority. // @@ -40608,7 +40494,7 @@ func (_options *CreateVPCRouteOptions) SetName(name string) *CreateVPCRouteOptio } // SetNextHop : Allow user to set NextHop -func (_options *CreateVPCRouteOptions) SetNextHop(nextHop RoutePrototypeNextHopIntf) *CreateVPCRouteOptions { +func (_options *CreateVPCRouteOptions) SetNextHop(nextHop RouteNextHopPrototypeIntf) *CreateVPCRouteOptions { _options.NextHop = nextHop return _options } @@ -40818,7 +40704,7 @@ type CreateVPCRoutingTableRouteOptions struct { // // At most two routes per `zone` in a table can have the same `destination` and `priority`, // and only when each route has an `action` of `deliver` and `next_hop` is an IP address. - NextHop RoutePrototypeNextHopIntf `json:"next_hop,omitempty"` + NextHop RouteNextHopPrototypeIntf `json:"next_hop,omitempty"` // The priority of this route. Smaller values have higher priority. // @@ -40897,7 +40783,7 @@ func (_options *CreateVPCRoutingTableRouteOptions) SetName(name string) *CreateV } // SetNextHop : Allow user to set NextHop -func (_options *CreateVPCRoutingTableRouteOptions) SetNextHop(nextHop RoutePrototypeNextHopIntf) *CreateVPCRoutingTableRouteOptions { +func (_options *CreateVPCRoutingTableRouteOptions) SetNextHop(nextHop RouteNextHopPrototypeIntf) *CreateVPCRoutingTableRouteOptions { _options.NextHop = nextHop return _options } @@ -42223,7 +42109,7 @@ type DedicatedHostGroupReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *DedicatedHostGroupReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this dedicated host group. Href *string `json:"href" validate:"required"` @@ -42252,7 +42138,7 @@ func UnmarshalDedicatedHostGroupReference(m map[string]json.RawMessage, result i err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDedicatedHostGroupReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -42281,25 +42167,6 @@ func UnmarshalDedicatedHostGroupReference(m map[string]json.RawMessage, result i return } -// DedicatedHostGroupReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type DedicatedHostGroupReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalDedicatedHostGroupReferenceDeleted unmarshals an instance of DedicatedHostGroupReferenceDeleted from the specified map of raw messages. -func UnmarshalDedicatedHostGroupReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(DedicatedHostGroupReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // DedicatedHostNuma : The dedicated host NUMA configuration. type DedicatedHostNuma struct { // The total number of NUMA nodes for this dedicated host. @@ -43286,7 +43153,7 @@ type DedicatedHostReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *DedicatedHostReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this dedicated host. Href *string `json:"href" validate:"required"` @@ -43315,7 +43182,7 @@ func UnmarshalDedicatedHostReference(m map[string]json.RawMessage, result interf err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDedicatedHostReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -43344,25 +43211,6 @@ func UnmarshalDedicatedHostReference(m map[string]json.RawMessage, result interf return } -// DedicatedHostReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type DedicatedHostReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalDedicatedHostReferenceDeleted unmarshals an instance of DedicatedHostReferenceDeleted from the specified map of raw messages. -func UnmarshalDedicatedHostReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(DedicatedHostReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // DefaultNetworkACL : DefaultNetworkACL struct type DefaultNetworkACL struct { // The date and time that the network ACL was created. @@ -43646,10 +43494,10 @@ type DefaultSecurityGroup struct { // The date and time that this security group was created. CreatedAt *strfmt.DateTime `json:"created_at" validate:"required"` - // The security group's CRN. + // The CRN for this security group. CRN *string `json:"crn" validate:"required"` - // The security group's canonical URL. + // The URL for this security group. Href *string `json:"href" validate:"required"` // The unique identifier for this security group. @@ -45988,6 +45836,25 @@ func (options *DeleteVPNServerRouteOptions) SetHeaders(param map[string]string) return options } +// Deleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary +// information. +type Deleted struct { + // Link to documentation about deleted resources. + MoreInfo *string `json:"more_info" validate:"required"` +} + +// UnmarshalDeleted unmarshals an instance of Deleted from the specified map of raw messages. +func UnmarshalDeleted(m map[string]json.RawMessage, result interface{}) (err error) { + obj := new(Deleted) + err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) + if err != nil { + err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) + return + } + reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) + return +} + // DeprecateImageOptions : The DeprecateImage options. type DeprecateImageOptions struct { // The image identifier. @@ -46492,25 +46359,6 @@ func (endpointGatewayPatch *EndpointGatewayPatch) AsPatch() (_patch map[string]i return } -// EndpointGatewayReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type EndpointGatewayReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalEndpointGatewayReferenceDeleted unmarshals an instance of EndpointGatewayReferenceDeleted from the specified map of raw messages. -func UnmarshalEndpointGatewayReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(EndpointGatewayReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // EndpointGatewayReferenceRemote : EndpointGatewayReferenceRemote struct type EndpointGatewayReferenceRemote struct { // The CRN for this endpoint gateway. @@ -47284,7 +47132,7 @@ type FloatingIPReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *FloatingIPReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this floating IP. Href *string `json:"href" validate:"required"` @@ -47309,7 +47157,7 @@ func UnmarshalFloatingIPReference(m map[string]json.RawMessage, result interface err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalFloatingIPReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -47333,25 +47181,6 @@ func UnmarshalFloatingIPReference(m map[string]json.RawMessage, result interface return } -// FloatingIPReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type FloatingIPReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalFloatingIPReferenceDeleted unmarshals an instance of FloatingIPReferenceDeleted from the specified map of raw messages. -func UnmarshalFloatingIPReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(FloatingIPReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // FloatingIPTarget : The target of this floating IP. // Models which "extend" this model: // - FloatingIPTargetNetworkInterfaceReference @@ -47361,7 +47190,7 @@ func UnmarshalFloatingIPReferenceDeleted(m map[string]json.RawMessage, result in type FloatingIPTarget struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *NetworkInterfaceReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this instance network interface. // @@ -47410,7 +47239,7 @@ type FloatingIPTargetIntf interface { // UnmarshalFloatingIPTarget unmarshals an instance of FloatingIPTarget from the specified map of raw messages. func UnmarshalFloatingIPTarget(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(FloatingIPTarget) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalNetworkInterfaceReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -47908,7 +47737,7 @@ func (flowLogCollectorPatch *FlowLogCollectorPatch) AsPatch() (_patch map[string type FlowLogCollectorTarget struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *NetworkInterfaceReferenceTargetContextDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this instance network interface. // @@ -47962,7 +47791,7 @@ type FlowLogCollectorTargetIntf interface { // UnmarshalFlowLogCollectorTarget unmarshals an instance of FlowLogCollectorTarget from the specified map of raw messages. func UnmarshalFlowLogCollectorTarget(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(FlowLogCollectorTarget) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalNetworkInterfaceReferenceTargetContextDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -48076,25 +47905,6 @@ func UnmarshalFlowLogCollectorTargetPrototype(m map[string]json.RawMessage, resu return } -// GenericResourceReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type GenericResourceReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalGenericResourceReferenceDeleted unmarshals an instance of GenericResourceReferenceDeleted from the specified map of raw messages. -func UnmarshalGenericResourceReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(GenericResourceReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // GetBackupPolicyJobOptions : The GetBackupPolicyJob options. type GetBackupPolicyJobOptions struct { // The backup policy identifier. @@ -51206,7 +51016,7 @@ type IkePolicy struct { // The `triple_des` algorithm has been deprecated. EncryptionAlgorithm *string `json:"encryption_algorithm" validate:"required"` - // The IKE policy's canonical URL. + // The URL for this IKE policy. Href *string `json:"href" validate:"required"` // The unique identifier for this IKE policy. @@ -51561,9 +51371,9 @@ func (ikePolicyPatch *IkePolicyPatch) AsPatch() (_patch map[string]interface{}, type IkePolicyReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *IkePolicyReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` - // The IKE policy's canonical URL. + // The URL for this IKE policy. Href *string `json:"href" validate:"required"` // The unique identifier for this IKE policy. @@ -51585,7 +51395,7 @@ const ( // UnmarshalIkePolicyReference unmarshals an instance of IkePolicyReference from the specified map of raw messages. func UnmarshalIkePolicyReference(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(IkePolicyReference) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalIkePolicyReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -51675,7 +51485,7 @@ type IPsecPolicy struct { // `aes256gcm16`. EncryptionAlgorithm *string `json:"encryption_algorithm" validate:"required"` - // The IPsec policy's canonical URL. + // The URL for this IPsec policy. Href *string `json:"href" validate:"required"` // The unique identifier for this IPsec policy. @@ -52171,9 +51981,9 @@ func (iPsecPolicyPatch *IPsecPolicyPatch) AsPatch() (_patch map[string]interface type IPsecPolicyReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *IPsecPolicyReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` - // The IPsec policy's canonical URL. + // The URL for this IPsec policy. Href *string `json:"href" validate:"required"` // The unique identifier for this IPsec policy. @@ -52195,7 +52005,7 @@ const ( // UnmarshalIPsecPolicyReference unmarshals an instance of IPsecPolicyReference from the specified map of raw messages. func UnmarshalIPsecPolicyReference(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(IPsecPolicyReference) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalIPsecPolicyReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -52224,25 +52034,6 @@ func UnmarshalIPsecPolicyReference(m map[string]json.RawMessage, result interfac return } -// IPsecPolicyReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type IPsecPolicyReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalIPsecPolicyReferenceDeleted unmarshals an instance of IPsecPolicyReferenceDeleted from the specified map of raw messages. -func UnmarshalIPsecPolicyReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(IPsecPolicyReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // IkePolicyCollectionFirst : A link to the first page of resources. type IkePolicyCollectionFirst struct { // The URL for a page of resources. @@ -52315,25 +52106,6 @@ func UnmarshalIkePolicyConnectionCollectionNext(m map[string]json.RawMessage, re return } -// IkePolicyReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type IkePolicyReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalIkePolicyReferenceDeleted unmarshals an instance of IkePolicyReferenceDeleted from the specified map of raw messages. -func UnmarshalIkePolicyReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(IkePolicyReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // Image : Image struct type Image struct { CatalogOffering *ImageCatalogOffering `json:"catalog_offering" validate:"required"` @@ -53031,7 +52803,7 @@ func UnmarshalImageFile(m map[string]json.RawMessage, result interface{}) (err e // ImageFileChecksums : ImageFileChecksums struct type ImageFileChecksums struct { - // The SHA256 fingerprint of the image file. + // The SHA256 fingerprint of the image file, in hexadecimal. Sha256 *string `json:"sha256,omitempty"` } @@ -53339,7 +53111,7 @@ type ImageReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *ImageReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this image. Href *string `json:"href" validate:"required"` @@ -53372,7 +53144,7 @@ func UnmarshalImageReference(m map[string]json.RawMessage, result interface{}) ( err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalImageReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -53406,25 +53178,6 @@ func UnmarshalImageReference(m map[string]json.RawMessage, result interface{}) ( return } -// ImageReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type ImageReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalImageReferenceDeleted unmarshals an instance of ImageReferenceDeleted from the specified map of raw messages. -func UnmarshalImageReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(ImageReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // ImageRemote : If present, this property indicates that the resource associated with this reference is remote and therefore may not // be directly retrievable. type ImageRemote struct { @@ -54572,7 +54325,7 @@ func (instanceDiskPatch *InstanceDiskPatch) AsPatch() (_patch map[string]interfa type InstanceDiskReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *InstanceDiskReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this instance disk. Href *string `json:"href" validate:"required"` @@ -54596,7 +54349,7 @@ const ( // UnmarshalInstanceDiskReference unmarshals an instance of InstanceDiskReference from the specified map of raw messages. func UnmarshalInstanceDiskReference(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(InstanceDiskReference) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalInstanceDiskReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -54625,25 +54378,6 @@ func UnmarshalInstanceDiskReference(m map[string]json.RawMessage, result interfa return } -// InstanceDiskReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type InstanceDiskReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalInstanceDiskReferenceDeleted unmarshals an instance of InstanceDiskReferenceDeleted from the specified map of raw messages. -func UnmarshalInstanceDiskReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(InstanceDiskReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // InstanceGpu : The virtual server instance GPU configuration. type InstanceGpu struct { // The number of GPUs assigned to the instance. @@ -55499,7 +55233,7 @@ func UnmarshalInstanceGroupManagerActionPrototype(m map[string]json.RawMessage, type InstanceGroupManagerActionReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *InstanceGroupManagerActionReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this instance group manager action. Href *string `json:"href" validate:"required"` @@ -55524,7 +55258,7 @@ const ( // UnmarshalInstanceGroupManagerActionReference unmarshals an instance of InstanceGroupManagerActionReference from the specified map of raw messages. func UnmarshalInstanceGroupManagerActionReference(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(InstanceGroupManagerActionReference) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalInstanceGroupManagerActionReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -55553,25 +55287,6 @@ func UnmarshalInstanceGroupManagerActionReference(m map[string]json.RawMessage, return } -// InstanceGroupManagerActionReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type InstanceGroupManagerActionReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalInstanceGroupManagerActionReferenceDeleted unmarshals an instance of InstanceGroupManagerActionReferenceDeleted from the specified map of raw messages. -func UnmarshalInstanceGroupManagerActionReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(InstanceGroupManagerActionReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // InstanceGroupManagerActionsCollection : InstanceGroupManagerActionsCollection struct type InstanceGroupManagerActionsCollection struct { // Collection of instance group manager actions. @@ -56178,7 +55893,7 @@ func UnmarshalInstanceGroupManagerPolicyPrototype(m map[string]json.RawMessage, type InstanceGroupManagerPolicyReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *InstanceGroupManagerPolicyReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this instance group manager policy. Href *string `json:"href" validate:"required"` @@ -56194,7 +55909,7 @@ type InstanceGroupManagerPolicyReference struct { // UnmarshalInstanceGroupManagerPolicyReference unmarshals an instance of InstanceGroupManagerPolicyReference from the specified map of raw messages. func UnmarshalInstanceGroupManagerPolicyReference(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(InstanceGroupManagerPolicyReference) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalInstanceGroupManagerPolicyReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -56218,25 +55933,6 @@ func UnmarshalInstanceGroupManagerPolicyReference(m map[string]json.RawMessage, return } -// InstanceGroupManagerPolicyReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type InstanceGroupManagerPolicyReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalInstanceGroupManagerPolicyReferenceDeleted unmarshals an instance of InstanceGroupManagerPolicyReferenceDeleted from the specified map of raw messages. -func UnmarshalInstanceGroupManagerPolicyReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(InstanceGroupManagerPolicyReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // InstanceGroupManagerPrototype : InstanceGroupManagerPrototype struct // Models which "extend" this model: // - InstanceGroupManagerPrototypeInstanceGroupManagerAutoScalePrototype @@ -56325,7 +56021,7 @@ func UnmarshalInstanceGroupManagerPrototype(m map[string]json.RawMessage, result type InstanceGroupManagerReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *InstanceGroupManagerReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this instance group manager. Href *string `json:"href" validate:"required"` @@ -56340,7 +56036,7 @@ type InstanceGroupManagerReference struct { // UnmarshalInstanceGroupManagerReference unmarshals an instance of InstanceGroupManagerReference from the specified map of raw messages. func UnmarshalInstanceGroupManagerReference(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(InstanceGroupManagerReference) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalInstanceGroupManagerReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -56364,25 +56060,6 @@ func UnmarshalInstanceGroupManagerReference(m map[string]json.RawMessage, result return } -// InstanceGroupManagerReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type InstanceGroupManagerReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalInstanceGroupManagerReferenceDeleted unmarshals an instance of InstanceGroupManagerReferenceDeleted from the specified map of raw messages. -func UnmarshalInstanceGroupManagerReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(InstanceGroupManagerReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // InstanceGroupManagerScheduledActionGroup : InstanceGroupManagerScheduledActionGroup struct type InstanceGroupManagerScheduledActionGroup struct { // The desired number of instance group members at the scheduled time. @@ -56437,7 +56114,7 @@ func UnmarshalInstanceGroupManagerScheduledActionGroupPrototype(m map[string]jso type InstanceGroupManagerScheduledActionManager struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *InstanceGroupManagerReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this instance group manager. Href *string `json:"href,omitempty"` @@ -56466,7 +56143,7 @@ type InstanceGroupManagerScheduledActionManagerIntf interface { // UnmarshalInstanceGroupManagerScheduledActionManager unmarshals an instance of InstanceGroupManagerScheduledActionManager from the specified map of raw messages. func UnmarshalInstanceGroupManagerScheduledActionManager(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(InstanceGroupManagerScheduledActionManager) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalInstanceGroupManagerReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -56891,7 +56568,7 @@ type InstanceGroupReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *InstanceGroupReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this instance group. Href *string `json:"href" validate:"required"` @@ -56911,7 +56588,7 @@ func UnmarshalInstanceGroupReference(m map[string]json.RawMessage, result interf err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalInstanceGroupReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -56935,25 +56612,6 @@ func UnmarshalInstanceGroupReference(m map[string]json.RawMessage, result interf return } -// InstanceGroupReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type InstanceGroupReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalInstanceGroupReferenceDeleted unmarshals an instance of InstanceGroupReferenceDeleted from the specified map of raw messages. -func UnmarshalInstanceGroupReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(InstanceGroupReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // InstanceHealthReason : InstanceHealthReason struct type InstanceHealthReason struct { // A reason code for this health state: @@ -57720,7 +57378,7 @@ func UnmarshalInstanceNetworkAttachmentPrototypeVirtualNetworkInterface(m map[st type InstanceNetworkAttachmentReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *InstanceNetworkAttachmentReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this instance network attachment. Href *string `json:"href" validate:"required"` @@ -57754,7 +57412,7 @@ const ( // UnmarshalInstanceNetworkAttachmentReference unmarshals an instance of InstanceNetworkAttachmentReference from the specified map of raw messages. func UnmarshalInstanceNetworkAttachmentReference(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(InstanceNetworkAttachmentReference) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalInstanceNetworkAttachmentReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -57798,25 +57456,6 @@ func UnmarshalInstanceNetworkAttachmentReference(m map[string]json.RawMessage, r return } -// InstanceNetworkAttachmentReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type InstanceNetworkAttachmentReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalInstanceNetworkAttachmentReferenceDeleted unmarshals an instance of InstanceNetworkAttachmentReferenceDeleted from the specified map of raw messages. -func UnmarshalInstanceNetworkAttachmentReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(InstanceNetworkAttachmentReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // InstancePatch : InstancePatch struct type InstancePatch struct { // The availability policy for this virtual server instance. @@ -58003,7 +57642,7 @@ type InstancePlacementTarget struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *DedicatedHostGroupReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this dedicated host group. Href *string `json:"href,omitempty"` @@ -58040,7 +57679,7 @@ func UnmarshalInstancePlacementTarget(m map[string]json.RawMessage, result inter err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDedicatedHostGroupReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -60028,7 +59667,7 @@ type InstanceReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *InstanceReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this virtual server instance. Href *string `json:"href" validate:"required"` @@ -60048,7 +59687,7 @@ func UnmarshalInstanceReference(m map[string]json.RawMessage, result interface{} err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalInstanceReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -60072,25 +59711,6 @@ func UnmarshalInstanceReference(m map[string]json.RawMessage, result interface{} return } -// InstanceReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type InstanceReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalInstanceReferenceDeleted unmarshals an instance of InstanceReferenceDeleted from the specified map of raw messages. -func UnmarshalInstanceReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(InstanceReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // InstanceReservationAffinity : InstanceReservationAffinity struct type InstanceReservationAffinity struct { // The reservation affinity policy to use for this virtual server instance: @@ -60999,7 +60619,7 @@ type InstanceTemplateReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *InstanceTemplateReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this instance template. Href *string `json:"href" validate:"required"` @@ -61019,7 +60639,7 @@ func UnmarshalInstanceTemplateReference(m map[string]json.RawMessage, result int err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalInstanceTemplateReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -61043,25 +60663,6 @@ func UnmarshalInstanceTemplateReference(m map[string]json.RawMessage, result int return } -// InstanceTemplateReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type InstanceTemplateReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalInstanceTemplateReferenceDeleted unmarshals an instance of InstanceTemplateReferenceDeleted from the specified map of raw messages. -func UnmarshalInstanceTemplateReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(InstanceTemplateReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // InstanceVcpu : The virtual server instance VCPU configuration. type InstanceVcpu struct { // The VCPU architecture. @@ -61391,7 +60992,7 @@ type KeyReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *KeyReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The fingerprint for this key. The value is returned base64-encoded and prefixed with the hash algorithm (always // `SHA256`). @@ -61415,7 +61016,7 @@ func UnmarshalKeyReference(m map[string]json.RawMessage, result interface{}) (er err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalKeyReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -61444,25 +61045,6 @@ func UnmarshalKeyReference(m map[string]json.RawMessage, result interface{}) (er return } -// KeyReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type KeyReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalKeyReferenceDeleted unmarshals an instance of KeyReferenceDeleted from the specified map of raw messages. -func UnmarshalKeyReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(KeyReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // LegacyCloudObjectStorageBucketIdentity : Identifies a Cloud Object Storage bucket by a unique property. // Models which "extend" this model: // - LegacyCloudObjectStorageBucketIdentityCloudObjectStorageBucketIdentityByName @@ -66232,7 +65814,7 @@ type LoadBalancer struct { // The date and time that this load balancer was created. CreatedAt *strfmt.DateTime `json:"created_at" validate:"required"` - // The load balancer's CRN. + // The CRN for this load balancer. CRN *string `json:"crn" validate:"required"` // The DNS configuration for this load balancer. @@ -66244,7 +65826,7 @@ type LoadBalancer struct { // Fully qualified domain name assigned to this load balancer. Hostname *string `json:"hostname" validate:"required"` - // The load balancer's canonical URL. + // The URL for this load balancer. Href *string `json:"href" validate:"required"` // The unique identifier for this load balancer. @@ -66272,7 +65854,7 @@ type LoadBalancer struct { Pools []LoadBalancerPoolReference `json:"pools" validate:"required"` // The private IP addresses assigned to this load balancer. - PrivateIps []LoadBalancerPrivateIpsItem `json:"private_ips" validate:"required"` + PrivateIps []ReservedIPReference `json:"private_ips" validate:"required"` // The profile for this load balancer. Profile *LoadBalancerProfileReference `json:"profile" validate:"required"` @@ -66433,7 +66015,7 @@ func UnmarshalLoadBalancer(m map[string]json.RawMessage, result interface{}) (er err = core.SDKErrorf(err, "", "pools-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "private_ips", &obj.PrivateIps, UnmarshalLoadBalancerPrivateIpsItem) + err = core.UnmarshalModel(m, "private_ips", &obj.PrivateIps, UnmarshalReservedIPReference) if err != nil { err = core.SDKErrorf(err, "", "private_ips-error", common.GetComponentInfo()) return @@ -66713,10 +66295,10 @@ type LoadBalancerIdentity struct { // The unique identifier for this load balancer. ID *string `json:"id,omitempty"` - // The load balancer's CRN. + // The CRN for this load balancer. CRN *string `json:"crn,omitempty"` - // The load balancer's canonical URL. + // The URL for this load balancer. Href *string `json:"href,omitempty"` } @@ -66776,7 +66358,7 @@ type LoadBalancerListener struct { // If `https_redirect` is set, the default pool will not be used. DefaultPool *LoadBalancerPoolReference `json:"default_pool,omitempty"` - // The listener's canonical URL. + // The URL for this load balancer listener. Href *string `json:"href" validate:"required"` // If present, the target listener that requests are redirected to if none of the @@ -66960,7 +66542,7 @@ type LoadBalancerListenerDefaultPoolPatch struct { // The unique identifier for this load balancer pool. ID *string `json:"id,omitempty"` - // The pool's canonical URL. + // The URL for this load balancer pool. Href *string `json:"href,omitempty"` } @@ -67111,7 +66693,7 @@ type LoadBalancerListenerIdentity struct { // The unique identifier for this load balancer listener. ID *string `json:"id,omitempty"` - // The listener's canonical URL. + // The URL for this load balancer listener. Href *string `json:"href,omitempty"` } @@ -67327,10 +66909,10 @@ type LoadBalancerListenerPolicy struct { // The date and time that this policy was created. CreatedAt *strfmt.DateTime `json:"created_at" validate:"required"` - // The listener policy's canonical URL. + // The URL for this load balancer policy. Href *string `json:"href" validate:"required"` - // The policy's unique identifier. + // The unique identifier for this load balancer policy. ID *string `json:"id" validate:"required"` // The name for this load balancer listener policy. The name is unique across all policies for the load balancer @@ -67611,12 +67193,12 @@ func UnmarshalLoadBalancerListenerPolicyPrototype(m map[string]json.RawMessage, type LoadBalancerListenerPolicyReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *LoadBalancerListenerPolicyReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` - // The listener policy's canonical URL. + // The URL for this load balancer policy. Href *string `json:"href" validate:"required"` - // The policy's unique identifier. + // The unique identifier for this load balancer policy. ID *string `json:"id" validate:"required"` // The name for this load balancer listener policy. The name is unique across all policies for the load balancer @@ -67627,7 +67209,7 @@ type LoadBalancerListenerPolicyReference struct { // UnmarshalLoadBalancerListenerPolicyReference unmarshals an instance of LoadBalancerListenerPolicyReference from the specified map of raw messages. func UnmarshalLoadBalancerListenerPolicyReference(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(LoadBalancerListenerPolicyReference) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalLoadBalancerListenerPolicyReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -67651,25 +67233,6 @@ func UnmarshalLoadBalancerListenerPolicyReference(m map[string]json.RawMessage, return } -// LoadBalancerListenerPolicyReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type LoadBalancerListenerPolicyReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalLoadBalancerListenerPolicyReferenceDeleted unmarshals an instance of LoadBalancerListenerPolicyReferenceDeleted from the specified map of raw messages. -func UnmarshalLoadBalancerListenerPolicyReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(LoadBalancerListenerPolicyReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // LoadBalancerListenerPolicyRule : LoadBalancerListenerPolicyRule struct type LoadBalancerListenerPolicyRule struct { // The condition of the rule. @@ -67688,10 +67251,10 @@ type LoadBalancerListenerPolicyRule struct { // If the rule type is `body`, this is optional. Field *string `json:"field,omitempty"` - // The rule's canonical URL. + // The URL for this load balancer listener policy rule. Href *string `json:"href" validate:"required"` - // The rule's unique identifier. + // The unique identifier for this load balancer listener policy rule. ID *string `json:"id" validate:"required"` // The provisioning status of this rule @@ -67986,19 +67549,19 @@ func UnmarshalLoadBalancerListenerPolicyRulePrototype(m map[string]json.RawMessa type LoadBalancerListenerPolicyRuleReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *LoadBalancerListenerPolicyRuleReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` - // The rule's canonical URL. + // The URL for this load balancer listener policy rule. Href *string `json:"href" validate:"required"` - // The rule's unique identifier. + // The unique identifier for this load balancer listener policy rule. ID *string `json:"id" validate:"required"` } // UnmarshalLoadBalancerListenerPolicyRuleReference unmarshals an instance of LoadBalancerListenerPolicyRuleReference from the specified map of raw messages. func UnmarshalLoadBalancerListenerPolicyRuleReference(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(LoadBalancerListenerPolicyRuleReference) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalLoadBalancerListenerPolicyRuleReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -68017,25 +67580,6 @@ func UnmarshalLoadBalancerListenerPolicyRuleReference(m map[string]json.RawMessa return } -// LoadBalancerListenerPolicyRuleReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type LoadBalancerListenerPolicyRuleReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalLoadBalancerListenerPolicyRuleReferenceDeleted unmarshals an instance of LoadBalancerListenerPolicyRuleReferenceDeleted from the specified map of raw messages. -func UnmarshalLoadBalancerListenerPolicyRuleReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(LoadBalancerListenerPolicyRuleReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // LoadBalancerListenerPolicyTarget : - If `action` is `forward`, the response is a `LoadBalancerPoolReference` // - If `action` is `https_redirect`, the response is a // `LoadBalancerListenerPolicyHTTPSRedirect` @@ -68047,9 +67591,9 @@ func UnmarshalLoadBalancerListenerPolicyRuleReferenceDeleted(m map[string]json.R type LoadBalancerListenerPolicyTarget struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *LoadBalancerPoolReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` - // The pool's canonical URL. + // The URL for this load balancer pool. Href *string `json:"href,omitempty"` // The unique identifier for this load balancer pool. @@ -68097,7 +67641,7 @@ type LoadBalancerListenerPolicyTargetIntf interface { // UnmarshalLoadBalancerListenerPolicyTarget unmarshals an instance of LoadBalancerListenerPolicyTarget from the specified map of raw messages. func UnmarshalLoadBalancerListenerPolicyTarget(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(LoadBalancerListenerPolicyTarget) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalLoadBalancerPoolReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -68153,7 +67697,7 @@ type LoadBalancerListenerPolicyTargetPatch struct { // The unique identifier for this load balancer pool. ID *string `json:"id,omitempty"` - // The pool's canonical URL. + // The URL for this load balancer pool. Href *string `json:"href,omitempty"` // The HTTP status code for this redirect. @@ -68242,7 +67786,7 @@ type LoadBalancerListenerPolicyTargetPrototype struct { // The unique identifier for this load balancer pool. ID *string `json:"id,omitempty"` - // The pool's canonical URL. + // The URL for this load balancer pool. Href *string `json:"href,omitempty"` // The HTTP status code for this redirect. @@ -68490,9 +68034,9 @@ func UnmarshalLoadBalancerListenerPrototypeLoadBalancerContext(m map[string]json type LoadBalancerListenerReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *LoadBalancerListenerReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` - // The listener's canonical URL. + // The URL for this load balancer listener. Href *string `json:"href" validate:"required"` // The unique identifier for this load balancer listener. @@ -68502,7 +68046,7 @@ type LoadBalancerListenerReference struct { // UnmarshalLoadBalancerListenerReference unmarshals an instance of LoadBalancerListenerReference from the specified map of raw messages. func UnmarshalLoadBalancerListenerReference(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(LoadBalancerListenerReference) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalLoadBalancerListenerReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -68521,25 +68065,6 @@ func UnmarshalLoadBalancerListenerReference(m map[string]json.RawMessage, result return } -// LoadBalancerListenerReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type LoadBalancerListenerReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalLoadBalancerListenerReferenceDeleted unmarshals an instance of LoadBalancerListenerReferenceDeleted from the specified map of raw messages. -func UnmarshalLoadBalancerListenerReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(LoadBalancerListenerReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // LoadBalancerLogging : LoadBalancerLogging struct type LoadBalancerLogging struct { // The datapath logging configuration for this load balancer. @@ -68726,7 +68251,7 @@ type LoadBalancerPool struct { // The health monitor of this pool. HealthMonitor *LoadBalancerPoolHealthMonitor `json:"health_monitor" validate:"required"` - // The pool's canonical URL. + // The URL for this load balancer pool. Href *string `json:"href" validate:"required"` // The unique identifier for this load balancer pool. @@ -69155,7 +68680,7 @@ type LoadBalancerPoolIdentity struct { // The unique identifier for this load balancer pool. ID *string `json:"id,omitempty"` - // The pool's canonical URL. + // The URL for this load balancer pool. Href *string `json:"href,omitempty"` } @@ -69222,7 +68747,7 @@ type LoadBalancerPoolMember struct { // Health of the server member in the pool. Health *string `json:"health" validate:"required"` - // The member's canonical URL. + // The URL for this load balancer pool member. Href *string `json:"href" validate:"required"` // The unique identifier for this load balancer pool member. @@ -69459,9 +68984,9 @@ func UnmarshalLoadBalancerPoolMemberPrototype(m map[string]json.RawMessage, resu type LoadBalancerPoolMemberReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *LoadBalancerPoolMemberReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` - // The member's canonical URL. + // The URL for this load balancer pool member. Href *string `json:"href" validate:"required"` // The unique identifier for this load balancer pool member. @@ -69471,7 +68996,7 @@ type LoadBalancerPoolMemberReference struct { // UnmarshalLoadBalancerPoolMemberReference unmarshals an instance of LoadBalancerPoolMemberReference from the specified map of raw messages. func UnmarshalLoadBalancerPoolMemberReference(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(LoadBalancerPoolMemberReference) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalLoadBalancerPoolMemberReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -69490,25 +69015,6 @@ func UnmarshalLoadBalancerPoolMemberReference(m map[string]json.RawMessage, resu return } -// LoadBalancerPoolMemberReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type LoadBalancerPoolMemberReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalLoadBalancerPoolMemberReferenceDeleted unmarshals an instance of LoadBalancerPoolMemberReferenceDeleted from the specified map of raw messages. -func UnmarshalLoadBalancerPoolMemberReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(LoadBalancerPoolMemberReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // LoadBalancerPoolMemberTarget : The pool member target. Load balancers in the `network` family support virtual server instances. Load balancers in // the `application` family support IP addresses. If the load balancer has route mode enabled, the member must be in a // zone the load balancer has a subnet in. @@ -69521,7 +69027,7 @@ type LoadBalancerPoolMemberTarget struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *InstanceReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this virtual server instance. Href *string `json:"href,omitempty"` @@ -69555,7 +69061,7 @@ func UnmarshalLoadBalancerPoolMemberTarget(m map[string]json.RawMessage, result err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalInstanceReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -69889,9 +69395,9 @@ func UnmarshalLoadBalancerPoolPrototype(m map[string]json.RawMessage, result int type LoadBalancerPoolReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *LoadBalancerPoolReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` - // The pool's canonical URL. + // The URL for this load balancer pool. Href *string `json:"href" validate:"required"` // The unique identifier for this load balancer pool. @@ -69904,7 +69410,7 @@ type LoadBalancerPoolReference struct { // UnmarshalLoadBalancerPoolReference unmarshals an instance of LoadBalancerPoolReference from the specified map of raw messages. func UnmarshalLoadBalancerPoolReference(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(LoadBalancerPoolReference) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalLoadBalancerPoolReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -69928,25 +69434,6 @@ func UnmarshalLoadBalancerPoolReference(m map[string]json.RawMessage, result int return } -// LoadBalancerPoolReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type LoadBalancerPoolReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalLoadBalancerPoolReferenceDeleted unmarshals an instance of LoadBalancerPoolReferenceDeleted from the specified map of raw messages. -func UnmarshalLoadBalancerPoolReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(LoadBalancerPoolReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // LoadBalancerPoolSessionPersistence : LoadBalancerPoolSessionPersistence struct type LoadBalancerPoolSessionPersistence struct { // The session persistence cookie name. Applicable only for type `app_cookie`. Names starting with `IBM` are not @@ -70076,76 +69563,6 @@ func UnmarshalLoadBalancerPoolSessionPersistencePrototype(m map[string]json.RawM return } -// LoadBalancerPrivateIpsItem : LoadBalancerPrivateIpsItem struct -type LoadBalancerPrivateIpsItem struct { - // The IP address. - // - // If the address has not yet been selected, the value will be `0.0.0.0`. - // - // This property may [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) to support IPv6 addresses in - // the future. - Address *string `json:"address" validate:"required"` - - // If present, this property indicates the referenced resource has been deleted, and provides - // some supplementary information. - Deleted *ReservedIPReferenceDeleted `json:"deleted,omitempty"` - - // The URL for this reserved IP. - Href *string `json:"href" validate:"required"` - - // The unique identifier for this reserved IP. - ID *string `json:"id" validate:"required"` - - // The name for this reserved IP. The name is unique across all reserved IPs in a subnet. - Name *string `json:"name" validate:"required"` - - // The resource type. - ResourceType *string `json:"resource_type" validate:"required"` -} - -// Constants associated with the LoadBalancerPrivateIpsItem.ResourceType property. -// The resource type. -const ( - LoadBalancerPrivateIpsItemResourceTypeSubnetReservedIPConst = "subnet_reserved_ip" -) - -// UnmarshalLoadBalancerPrivateIpsItem unmarshals an instance of LoadBalancerPrivateIpsItem from the specified map of raw messages. -func UnmarshalLoadBalancerPrivateIpsItem(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(LoadBalancerPrivateIpsItem) - err = core.UnmarshalPrimitive(m, "address", &obj.Address) - if err != nil { - err = core.SDKErrorf(err, "", "address-error", common.GetComponentInfo()) - return - } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalReservedIPReferenceDeleted) - if err != nil { - err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) - return - } - err = core.UnmarshalPrimitive(m, "href", &obj.Href) - if err != nil { - err = core.SDKErrorf(err, "", "href-error", common.GetComponentInfo()) - return - } - err = core.UnmarshalPrimitive(m, "id", &obj.ID) - if err != nil { - err = core.SDKErrorf(err, "", "id-error", common.GetComponentInfo()) - return - } - err = core.UnmarshalPrimitive(m, "name", &obj.Name) - if err != nil { - err = core.SDKErrorf(err, "", "name-error", common.GetComponentInfo()) - return - } - err = core.UnmarshalPrimitive(m, "resource_type", &obj.ResourceType) - if err != nil { - err = core.SDKErrorf(err, "", "resource_type-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // LoadBalancerProfile : LoadBalancerProfile struct type LoadBalancerProfile struct { // The product family this load balancer profile belongs to. @@ -70619,25 +70036,6 @@ func UnmarshalLoadBalancerProfileUDPSupported(m map[string]json.RawMessage, resu return } -// LoadBalancerReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type LoadBalancerReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalLoadBalancerReferenceDeleted unmarshals an instance of LoadBalancerReferenceDeleted from the specified map of raw messages. -func UnmarshalLoadBalancerReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(LoadBalancerReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // LoadBalancerStatistics : LoadBalancerStatistics struct type LoadBalancerStatistics struct { // Number of active connections of this load balancer. @@ -71012,7 +70410,7 @@ type NetworkACLReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *NetworkACLReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this network ACL. Href *string `json:"href" validate:"required"` @@ -71032,7 +70430,7 @@ func UnmarshalNetworkACLReference(m map[string]json.RawMessage, result interface err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalNetworkACLReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -71056,25 +70454,6 @@ func UnmarshalNetworkACLReference(m map[string]json.RawMessage, result interface return } -// NetworkACLReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type NetworkACLReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalNetworkACLReferenceDeleted unmarshals an instance of NetworkACLReferenceDeleted from the specified map of raw messages. -func UnmarshalNetworkACLReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(NetworkACLReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // NetworkACLRule : NetworkACLRule struct // Models which "extend" this model: // - NetworkACLRuleNetworkACLRuleProtocolTcpudp @@ -71959,7 +71338,7 @@ func UnmarshalNetworkACLRulePrototypeNetworkACLContext(m map[string]json.RawMess type NetworkACLRuleReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *NetworkACLRuleReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this network ACL rule. Href *string `json:"href" validate:"required"` @@ -71974,7 +71353,7 @@ type NetworkACLRuleReference struct { // UnmarshalNetworkACLRuleReference unmarshals an instance of NetworkACLRuleReference from the specified map of raw messages. func UnmarshalNetworkACLRuleReference(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(NetworkACLRuleReference) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalNetworkACLRuleReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -71998,25 +71377,6 @@ func UnmarshalNetworkACLRuleReference(m map[string]json.RawMessage, result inter return } -// NetworkACLRuleReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type NetworkACLRuleReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalNetworkACLRuleReferenceDeleted unmarshals an instance of NetworkACLRuleReferenceDeleted from the specified map of raw messages. -func UnmarshalNetworkACLRuleReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(NetworkACLRuleReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // NetworkInterface : NetworkInterface struct type NetworkInterface struct { // Indicates whether source IP spoofing is allowed on this instance network interface. @@ -72212,7 +71572,7 @@ func UnmarshalNetworkInterface(m map[string]json.RawMessage, result interface{}) type NetworkInterfaceBareMetalServerContextReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *NetworkInterfaceBareMetalServerContextReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this bare metal server network interface. // @@ -72250,7 +71610,7 @@ const ( // UnmarshalNetworkInterfaceBareMetalServerContextReference unmarshals an instance of NetworkInterfaceBareMetalServerContextReference from the specified map of raw messages. func UnmarshalNetworkInterfaceBareMetalServerContextReference(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(NetworkInterfaceBareMetalServerContextReference) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalNetworkInterfaceBareMetalServerContextReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -72289,25 +71649,6 @@ func UnmarshalNetworkInterfaceBareMetalServerContextReference(m map[string]json. return } -// NetworkInterfaceBareMetalServerContextReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type NetworkInterfaceBareMetalServerContextReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalNetworkInterfaceBareMetalServerContextReferenceDeleted unmarshals an instance of NetworkInterfaceBareMetalServerContextReferenceDeleted from the specified map of raw messages. -func UnmarshalNetworkInterfaceBareMetalServerContextReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(NetworkInterfaceBareMetalServerContextReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // NetworkInterfaceIPPrototype : NetworkInterfaceIPPrototype struct // Models which "extend" this model: // - NetworkInterfaceIPPrototypeReservedIPIdentity @@ -72378,7 +71719,7 @@ func UnmarshalNetworkInterfaceIPPrototype(m map[string]json.RawMessage, result i type NetworkInterfaceInstanceContextReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *NetworkInterfaceInstanceContextReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this instance network interface. // @@ -72416,7 +71757,7 @@ const ( // UnmarshalNetworkInterfaceInstanceContextReference unmarshals an instance of NetworkInterfaceInstanceContextReference from the specified map of raw messages. func UnmarshalNetworkInterfaceInstanceContextReference(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(NetworkInterfaceInstanceContextReference) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalNetworkInterfaceInstanceContextReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -72455,25 +71796,6 @@ func UnmarshalNetworkInterfaceInstanceContextReference(m map[string]json.RawMess return } -// NetworkInterfaceInstanceContextReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type NetworkInterfaceInstanceContextReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalNetworkInterfaceInstanceContextReferenceDeleted unmarshals an instance of NetworkInterfaceInstanceContextReferenceDeleted from the specified map of raw messages. -func UnmarshalNetworkInterfaceInstanceContextReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(NetworkInterfaceInstanceContextReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // NetworkInterfacePatch : NetworkInterfacePatch struct type NetworkInterfacePatch struct { // Indicates whether source IP spoofing is allowed on this instance network interface. @@ -72593,44 +71915,6 @@ func UnmarshalNetworkInterfacePrototype(m map[string]json.RawMessage, result int return } -// NetworkInterfaceReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type NetworkInterfaceReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalNetworkInterfaceReferenceDeleted unmarshals an instance of NetworkInterfaceReferenceDeleted from the specified map of raw messages. -func UnmarshalNetworkInterfaceReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(NetworkInterfaceReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - -// NetworkInterfaceReferenceTargetContextDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type NetworkInterfaceReferenceTargetContextDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalNetworkInterfaceReferenceTargetContextDeleted unmarshals an instance of NetworkInterfaceReferenceTargetContextDeleted from the specified map of raw messages. -func UnmarshalNetworkInterfaceReferenceTargetContextDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(NetworkInterfaceReferenceTargetContextDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // NetworkInterfaceUnpaginatedCollection : NetworkInterfaceUnpaginatedCollection struct type NetworkInterfaceUnpaginatedCollection struct { // Collection of instance network interfaces. @@ -73172,25 +72456,6 @@ func (placementGroupPatch *PlacementGroupPatch) AsPatch() (_patch map[string]int return } -// PlacementGroupReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type PlacementGroupReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalPlacementGroupReferenceDeleted unmarshals an instance of PlacementGroupReferenceDeleted from the specified map of raw messages. -func UnmarshalPlacementGroupReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(PlacementGroupReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // PublicGateway : PublicGateway struct type PublicGateway struct { // The date and time that the public gateway was created. @@ -73416,7 +72681,7 @@ type PublicGatewayFloatingIP struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *FloatingIPReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this floating IP. Href *string `json:"href" validate:"required"` @@ -73441,7 +72706,7 @@ func UnmarshalPublicGatewayFloatingIP(m map[string]json.RawMessage, result inter err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalFloatingIPReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -73620,7 +72885,7 @@ type PublicGatewayReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *PublicGatewayReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this public gateway. Href *string `json:"href" validate:"required"` @@ -73649,7 +72914,7 @@ func UnmarshalPublicGatewayReference(m map[string]json.RawMessage, result interf err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalPublicGatewayReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -73678,25 +72943,6 @@ func UnmarshalPublicGatewayReference(m map[string]json.RawMessage, result interf return } -// PublicGatewayReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type PublicGatewayReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalPublicGatewayReferenceDeleted unmarshals an instance of PublicGatewayReferenceDeleted from the specified map of raw messages. -func UnmarshalPublicGatewayReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(PublicGatewayReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // Region : Region struct type Region struct { // The API endpoint for this region. @@ -74739,7 +73985,9 @@ func UnmarshalReservationCollectionNext(m map[string]json.RawMessage, result int // ReservationCommittedUse : The committed use reservation configuration. type ReservationCommittedUse struct { // The expiration date and time for this committed use reservation. - ExpirationAt *strfmt.DateTime `json:"expiration_at" validate:"required"` + // + // This property will be absent if the reservation has a `status` of `inactive`. + ExpirationAt *strfmt.DateTime `json:"expiration_at,omitempty"` // The policy to apply when the committed use term expires: // - `release`: Release any available capacity and let the reservation expire. @@ -75134,7 +74382,7 @@ type ReservationReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *ReservationReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this reservation. Href *string `json:"href" validate:"required"` @@ -75163,7 +74411,7 @@ func UnmarshalReservationReference(m map[string]json.RawMessage, result interfac err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalReservationReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -75192,25 +74440,6 @@ func UnmarshalReservationReference(m map[string]json.RawMessage, result interfac return } -// ReservationReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type ReservationReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalReservationReferenceDeleted unmarshals an instance of ReservationReferenceDeleted from the specified map of raw messages. -func UnmarshalReservationReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(ReservationReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // ReservationStatusReason : ReservationStatusReason struct type ReservationStatusReason struct { // A snake case string succinctly identifying the status reason. @@ -75929,7 +75158,7 @@ type ReservedIPReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *ReservedIPReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this reserved IP. Href *string `json:"href" validate:"required"` @@ -75958,7 +75187,7 @@ func UnmarshalReservedIPReference(m map[string]json.RawMessage, result interface err = core.SDKErrorf(err, "", "address-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalReservedIPReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -75987,25 +75216,6 @@ func UnmarshalReservedIPReference(m map[string]json.RawMessage, result interface return } -// ReservedIPReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type ReservedIPReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalReservedIPReferenceDeleted unmarshals an instance of ReservedIPReferenceDeleted from the specified map of raw messages. -func UnmarshalReservedIPReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(ReservedIPReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // ReservedIPTarget : The target this reserved IP is bound to. // // If absent, this reserved IP is provider-owned or unbound. @@ -76024,7 +75234,7 @@ type ReservedIPTarget struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *EndpointGatewayReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this endpoint gateway. Href *string `json:"href,omitempty"` @@ -76061,7 +75271,7 @@ func UnmarshalReservedIPTarget(m map[string]json.RawMessage, result interface{}) err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalEndpointGatewayReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -76809,14 +76019,14 @@ func UnmarshalRouteCollectionVPCContextRoutesItem(m map[string]json.RawMessage, // - RouteCreatorVPNGatewayReference // - RouteCreatorVPNServerReference type RouteCreator struct { - // The VPN gateway's CRN. + // The CRN for this VPN gateway. CRN *string `json:"crn,omitempty"` // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *VPNGatewayReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` - // The VPN gateway's canonical URL. + // The URL for this VPN gateway. Href *string `json:"href,omitempty"` // The unique identifier for this VPN gateway. @@ -76851,7 +76061,7 @@ func UnmarshalRouteCreator(m map[string]json.RawMessage, result interface{}) (er err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalVPNGatewayReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -76893,9 +76103,9 @@ type RouteNextHop struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *VPNGatewayConnectionReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` - // The VPN connection's canonical URL. + // The URL for this VPN gateway connection. Href *string `json:"href,omitempty"` // The unique identifier for this VPN gateway connection. @@ -76930,7 +76140,7 @@ func UnmarshalRouteNextHop(m map[string]json.RawMessage, result interface{}) (er err = core.SDKErrorf(err, "", "address-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalVPNGatewayConnectionReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -76978,7 +76188,7 @@ type RouteNextHopPatch struct { // The unique identifier for this VPN gateway connection. ID *string `json:"id,omitempty"` - // The VPN connection's canonical URL. + // The URL for this VPN gateway connection. Href *string `json:"href,omitempty"` } @@ -77012,6 +76222,58 @@ func UnmarshalRouteNextHopPatch(m map[string]json.RawMessage, result interface{} return } +// RouteNextHopPrototype : If `action` is `deliver`, the next hop that packets will be delivered to (must not be +// `0.0.0.0`). For other `action` values, it must be omitted or specified as `0.0.0.0`. +// +// At most two routes per `zone` in a table can have the same `destination` and `priority`, and only when each route has +// an `action` of `deliver` and `next_hop` is an IP address. +// Models which "extend" this model: +// - RouteNextHopPrototypeRouteNextHopIP +// - RouteNextHopPrototypeVPNGatewayConnectionIdentity +type RouteNextHopPrototype struct { + // The sentinel IP address (`0.0.0.0`). + // + // This property may [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) to support IPv6 addresses in + // the future. + Address *string `json:"address,omitempty"` + + // The unique identifier for this VPN gateway connection. + ID *string `json:"id,omitempty"` + + // The URL for this VPN gateway connection. + Href *string `json:"href,omitempty"` +} + +func (*RouteNextHopPrototype) isaRouteNextHopPrototype() bool { + return true +} + +type RouteNextHopPrototypeIntf interface { + isaRouteNextHopPrototype() bool +} + +// UnmarshalRouteNextHopPrototype unmarshals an instance of RouteNextHopPrototype from the specified map of raw messages. +func UnmarshalRouteNextHopPrototype(m map[string]json.RawMessage, result interface{}) (err error) { + obj := new(RouteNextHopPrototype) + err = core.UnmarshalPrimitive(m, "address", &obj.Address) + if err != nil { + err = core.SDKErrorf(err, "", "address-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalPrimitive(m, "id", &obj.ID) + if err != nil { + err = core.SDKErrorf(err, "", "id-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalPrimitive(m, "href", &obj.Href) + if err != nil { + err = core.SDKErrorf(err, "", "href-error", common.GetComponentInfo()) + return + } + reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) + return +} + // RoutePatch : RoutePatch struct type RoutePatch struct { // Indicates whether this route will be advertised to the ingress sources specified by the `advertise_routes_to` @@ -77115,7 +76377,7 @@ type RoutePrototype struct { // // At most two routes per `zone` in a table can have the same `destination` and `priority`, // and only when each route has an `action` of `deliver` and `next_hop` is an IP address. - NextHop RoutePrototypeNextHopIntf `json:"next_hop,omitempty"` + NextHop RouteNextHopPrototypeIntf `json:"next_hop,omitempty"` // The priority of this route. Smaller values have higher priority. // @@ -77183,7 +76445,7 @@ func UnmarshalRoutePrototype(m map[string]json.RawMessage, result interface{}) ( err = core.SDKErrorf(err, "", "name-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "next_hop", &obj.NextHop, UnmarshalRoutePrototypeNextHop) + err = core.UnmarshalModel(m, "next_hop", &obj.NextHop, UnmarshalRouteNextHopPrototype) if err != nil { err = core.SDKErrorf(err, "", "next_hop-error", common.GetComponentInfo()) return @@ -77202,63 +76464,11 @@ func UnmarshalRoutePrototype(m map[string]json.RawMessage, result interface{}) ( return } -// RoutePrototypeNextHop : If `action` is `deliver`, the next hop that packets will be delivered to (must not be -// `0.0.0.0`). For other `action` values, it must be omitted or specified as `0.0.0.0`. -// -// At most two routes per `zone` in a table can have the same `destination` and `priority`, and only when each route has -// an `action` of `deliver` and `next_hop` is an IP address. -// Models which "extend" this model: -// - RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIP -// - RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentity -type RoutePrototypeNextHop struct { - // The sentinel IP address (`0.0.0.0`). - // - // This property may [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) to support IPv6 addresses in - // the future. - Address *string `json:"address,omitempty"` - - // The unique identifier for this VPN gateway connection. - ID *string `json:"id,omitempty"` - - // The VPN connection's canonical URL. - Href *string `json:"href,omitempty"` -} - -func (*RoutePrototypeNextHop) isaRoutePrototypeNextHop() bool { - return true -} - -type RoutePrototypeNextHopIntf interface { - isaRoutePrototypeNextHop() bool -} - -// UnmarshalRoutePrototypeNextHop unmarshals an instance of RoutePrototypeNextHop from the specified map of raw messages. -func UnmarshalRoutePrototypeNextHop(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(RoutePrototypeNextHop) - err = core.UnmarshalPrimitive(m, "address", &obj.Address) - if err != nil { - err = core.SDKErrorf(err, "", "address-error", common.GetComponentInfo()) - return - } - err = core.UnmarshalPrimitive(m, "id", &obj.ID) - if err != nil { - err = core.SDKErrorf(err, "", "id-error", common.GetComponentInfo()) - return - } - err = core.UnmarshalPrimitive(m, "href", &obj.Href) - if err != nil { - err = core.SDKErrorf(err, "", "href-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // RouteReference : RouteReference struct type RouteReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *RouteReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this route. Href *string `json:"href" validate:"required"` @@ -77273,7 +76483,7 @@ type RouteReference struct { // UnmarshalRouteReference unmarshals an instance of RouteReference from the specified map of raw messages. func UnmarshalRouteReference(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(RouteReference) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalRouteReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -77297,25 +76507,6 @@ func UnmarshalRouteReference(m map[string]json.RawMessage, result interface{}) ( return } -// RouteReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type RouteReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalRouteReferenceDeleted unmarshals an instance of RouteReferenceDeleted from the specified map of raw messages. -func UnmarshalRouteReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(RouteReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // RoutingTable : RoutingTable struct type RoutingTable struct { // The filters specifying the resources that may create routes in this routing table. @@ -77784,7 +76975,7 @@ func (routingTablePatch *RoutingTablePatch) AsPatch() (_patch map[string]interfa type RoutingTableReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *RoutingTableReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this routing table. Href *string `json:"href" validate:"required"` @@ -77808,7 +76999,7 @@ const ( // UnmarshalRoutingTableReference unmarshals an instance of RoutingTableReference from the specified map of raw messages. func UnmarshalRoutingTableReference(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(RoutingTableReference) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalRoutingTableReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -77837,34 +77028,15 @@ func UnmarshalRoutingTableReference(m map[string]json.RawMessage, result interfa return } -// RoutingTableReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type RoutingTableReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalRoutingTableReferenceDeleted unmarshals an instance of RoutingTableReferenceDeleted from the specified map of raw messages. -func UnmarshalRoutingTableReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(RoutingTableReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // SecurityGroup : SecurityGroup struct type SecurityGroup struct { // The date and time that this security group was created. CreatedAt *strfmt.DateTime `json:"created_at" validate:"required"` - // The security group's CRN. + // The CRN for this security group. CRN *string `json:"crn" validate:"required"` - // The security group's canonical URL. + // The URL for this security group. Href *string `json:"href" validate:"required"` // The unique identifier for this security group. @@ -78049,10 +77221,10 @@ type SecurityGroupIdentity struct { // The unique identifier for this security group. ID *string `json:"id,omitempty"` - // The security group's CRN. + // The CRN for this security group. CRN *string `json:"crn,omitempty"` - // The security group's canonical URL. + // The URL for this security group. Href *string `json:"href,omitempty"` } @@ -78119,14 +77291,14 @@ func (securityGroupPatch *SecurityGroupPatch) AsPatch() (_patch map[string]inter // SecurityGroupReference : SecurityGroupReference struct type SecurityGroupReference struct { - // The security group's CRN. + // The CRN for this security group. CRN *string `json:"crn" validate:"required"` // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *SecurityGroupReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` - // The security group's canonical URL. + // The URL for this security group. Href *string `json:"href" validate:"required"` // The unique identifier for this security group. @@ -78144,7 +77316,7 @@ func UnmarshalSecurityGroupReference(m map[string]json.RawMessage, result interf err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalSecurityGroupReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -78168,25 +77340,6 @@ func UnmarshalSecurityGroupReference(m map[string]json.RawMessage, result interf return } -// SecurityGroupReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type SecurityGroupReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalSecurityGroupReferenceDeleted unmarshals an instance of SecurityGroupReferenceDeleted from the specified map of raw messages. -func UnmarshalSecurityGroupReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(SecurityGroupReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // SecurityGroupRule : SecurityGroupRule struct // Models which "extend" this model: // - SecurityGroupRuleSecurityGroupRuleProtocolAll @@ -78745,14 +77898,14 @@ type SecurityGroupRuleRemote struct { // blocks in the future. CIDRBlock *string `json:"cidr_block,omitempty"` - // The security group's CRN. + // The CRN for this security group. CRN *string `json:"crn,omitempty"` // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *SecurityGroupReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` - // The security group's canonical URL. + // The URL for this security group. Href *string `json:"href,omitempty"` // The unique identifier for this security group. @@ -78788,7 +77941,7 @@ func UnmarshalSecurityGroupRuleRemote(m map[string]json.RawMessage, result inter err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalSecurityGroupReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -78835,10 +77988,10 @@ type SecurityGroupRuleRemotePatch struct { // The unique identifier for this security group. ID *string `json:"id,omitempty"` - // The security group's CRN. + // The CRN for this security group. CRN *string `json:"crn,omitempty"` - // The security group's canonical URL. + // The URL for this security group. Href *string `json:"href,omitempty"` } @@ -78907,10 +78060,10 @@ type SecurityGroupRuleRemotePrototype struct { // The unique identifier for this security group. ID *string `json:"id,omitempty"` - // The security group's CRN. + // The CRN for this security group. CRN *string `json:"crn,omitempty"` - // The security group's canonical URL. + // The URL for this security group. Href *string `json:"href,omitempty"` } @@ -79070,7 +78223,7 @@ func UnmarshalSecurityGroupTargetCollectionNext(m map[string]json.RawMessage, re type SecurityGroupTargetReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *NetworkInterfaceReferenceTargetContextDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this instance network interface. // @@ -79093,7 +78246,7 @@ type SecurityGroupTargetReference struct { // The resource type. ResourceType *string `json:"resource_type,omitempty"` - // The load balancer's CRN. + // The CRN for this load balancer. CRN *string `json:"crn,omitempty"` // The primary IP for this virtual network interface. @@ -79120,7 +78273,7 @@ type SecurityGroupTargetReferenceIntf interface { // UnmarshalSecurityGroupTargetReference unmarshals an instance of SecurityGroupTargetReference from the specified map of raw messages. func UnmarshalSecurityGroupTargetReference(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(SecurityGroupTargetReference) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalNetworkInterfaceReferenceTargetContextDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -79695,7 +78848,7 @@ type ShareAccessorBindingAccessor struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *ShareReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this file share. Href *string `json:"href,omitempty"` @@ -79736,7 +78889,7 @@ func UnmarshalShareAccessorBindingAccessor(m map[string]json.RawMessage, result err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalShareReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -80707,7 +79860,7 @@ func UnmarshalShareMountTargetPrototype(m map[string]json.RawMessage, result int type ShareMountTargetReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *ShareMountTargetReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this share mount target. Href *string `json:"href" validate:"required"` @@ -80731,7 +79884,7 @@ const ( // UnmarshalShareMountTargetReference unmarshals an instance of ShareMountTargetReference from the specified map of raw messages. func UnmarshalShareMountTargetReference(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(ShareMountTargetReference) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalShareMountTargetReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -80760,25 +79913,6 @@ func UnmarshalShareMountTargetReference(m map[string]json.RawMessage, result int return } -// ShareMountTargetReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type ShareMountTargetReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalShareMountTargetReferenceDeleted unmarshals an instance of ShareMountTargetReferenceDeleted from the specified map of raw messages. -func UnmarshalShareMountTargetReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(ShareMountTargetReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // ShareMountTargetVirtualNetworkInterfacePrototype : ShareMountTargetVirtualNetworkInterfacePrototype struct // Models which "extend" this model: // - ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfacePrototypeShareMountTargetContext @@ -81587,8 +80721,8 @@ type SharePrototype struct { // The maximum size for a share may increase in the future. Size *int64 `json:"size,omitempty"` - // The zone this file share will reside in. For a replica share, this must be a different - // zone in the same region as the source share. + // The zone this file share will reside in. For a replica share in the same region as + // the source share, this must be a different zone from the source share. Zone ZoneIdentityIntf `json:"zone,omitempty"` // The cron specification for the file share replication schedule. @@ -81762,6 +80896,8 @@ type SharePrototypeShareContext struct { // The cron specification for the file share replication schedule. // // Replication of a share can be scheduled to occur at most once per hour. + // + // For this property to be changed, the share `replication_role` must be `replica`. ReplicationCronSpec *string `json:"replication_cron_spec" validate:"required"` // The resource group to use. If unspecified, the resource group from @@ -81771,9 +80907,8 @@ type SharePrototypeShareContext struct { // Tags for this resource. UserTags []string `json:"user_tags,omitempty"` - // The zone this replica file share will reside in. - // - // Must be a different zone in the same region as the source share. + // The zone this replica file share will reside in. For a replica share in the same + // region as the source share, this must be a different zone from the source share. Zone ZoneIdentityIntf `json:"zone" validate:"required"` } @@ -81862,7 +80997,7 @@ type ShareReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *ShareReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this file share. Href *string `json:"href" validate:"required"` @@ -81895,7 +81030,7 @@ func UnmarshalShareReference(m map[string]json.RawMessage, result interface{}) ( err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalShareReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -81929,25 +81064,6 @@ func UnmarshalShareReference(m map[string]json.RawMessage, result interface{}) ( return } -// ShareReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type ShareReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalShareReferenceDeleted unmarshals an instance of ShareReferenceDeleted from the specified map of raw messages. -func UnmarshalShareReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(ShareReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // ShareRemote : If present, this property indicates that the resource associated with this reference is remote and therefore may not // be directly retrievable. type ShareRemote struct { @@ -82833,7 +81949,7 @@ type SnapshotConsistencyGroupReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *SnapshotConsistencyGroupReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this snapshot consistency group. Href *string `json:"href" validate:"required"` @@ -82863,7 +81979,7 @@ func UnmarshalSnapshotConsistencyGroupReference(m map[string]json.RawMessage, re err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalSnapshotConsistencyGroupReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -82892,25 +82008,6 @@ func UnmarshalSnapshotConsistencyGroupReference(m map[string]json.RawMessage, re return } -// SnapshotConsistencyGroupReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type SnapshotConsistencyGroupReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalSnapshotConsistencyGroupReferenceDeleted unmarshals an instance of SnapshotConsistencyGroupReferenceDeleted from the specified map of raw messages. -func UnmarshalSnapshotConsistencyGroupReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(SnapshotConsistencyGroupReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // SnapshotCopiesItem : SnapshotCopiesItem struct type SnapshotCopiesItem struct { // The CRN for the copied snapshot. @@ -82918,7 +82015,7 @@ type SnapshotCopiesItem struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *SnapshotReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for the copied snapshot. Href *string `json:"href" validate:"required"` @@ -82951,7 +82048,7 @@ func UnmarshalSnapshotCopiesItem(m map[string]json.RawMessage, result interface{ err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalSnapshotReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -83212,7 +82309,7 @@ type SnapshotReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *SnapshotReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this snapshot. Href *string `json:"href" validate:"required"` @@ -83245,7 +82342,7 @@ func UnmarshalSnapshotReference(m map[string]json.RawMessage, result interface{} err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalSnapshotReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -83279,25 +82376,6 @@ func UnmarshalSnapshotReference(m map[string]json.RawMessage, result interface{} return } -// SnapshotReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type SnapshotReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalSnapshotReferenceDeleted unmarshals an instance of SnapshotReferenceDeleted from the specified map of raw messages. -func UnmarshalSnapshotReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(SnapshotReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // SnapshotRemote : If present, this property indicates that the resource associated with this reference is remote and therefore may not // be directly retrievable. type SnapshotRemote struct { @@ -83325,7 +82403,7 @@ type SnapshotSourceSnapshot struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *SnapshotReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for the source snapshot. Href *string `json:"href" validate:"required"` @@ -83358,7 +82436,7 @@ func UnmarshalSnapshotSourceSnapshot(m map[string]json.RawMessage, result interf err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalSnapshotReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -84016,7 +83094,7 @@ type SubnetReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *SubnetReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this subnet. Href *string `json:"href" validate:"required"` @@ -84045,7 +83123,7 @@ func UnmarshalSubnetReference(m map[string]json.RawMessage, result interface{}) err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalSubnetReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -84074,25 +83152,6 @@ func UnmarshalSubnetReference(m map[string]json.RawMessage, result interface{}) return } -// SubnetReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type SubnetReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalSubnetReferenceDeleted unmarshals an instance of SubnetReferenceDeleted from the specified map of raw messages. -func UnmarshalSubnetReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(SubnetReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // TrustedProfileIdentity : Identifies a trusted profile by a unique property. // Models which "extend" this model: // - TrustedProfileIdentityTrustedProfileByID @@ -88146,7 +87205,7 @@ type VPCReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *VPCReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this VPC. Href *string `json:"href" validate:"required"` @@ -88175,7 +87234,7 @@ func UnmarshalVPCReference(m map[string]json.RawMessage, result interface{}) (er err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalVPCReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -88213,7 +87272,7 @@ type VPCReferenceDnsResolverContext struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *VPCReferenceDnsResolverContextDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this VPC. Href *string `json:"href" validate:"required"` @@ -88246,7 +87305,7 @@ func UnmarshalVPCReferenceDnsResolverContext(m map[string]json.RawMessage, resul err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalVPCReferenceDnsResolverContextDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -88280,44 +87339,6 @@ func UnmarshalVPCReferenceDnsResolverContext(m map[string]json.RawMessage, resul return } -// VPCReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type VPCReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalVPCReferenceDeleted unmarshals an instance of VPCReferenceDeleted from the specified map of raw messages. -func UnmarshalVPCReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(VPCReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - -// VPCReferenceDnsResolverContextDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type VPCReferenceDnsResolverContextDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalVPCReferenceDnsResolverContextDeleted unmarshals an instance of VPCReferenceDnsResolverContextDeleted from the specified map of raw messages. -func UnmarshalVPCReferenceDnsResolverContextDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(VPCReferenceDnsResolverContextDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // VPCReferenceRemote : VPCReferenceRemote struct type VPCReferenceRemote struct { // The CRN for this VPC. @@ -88423,7 +87444,7 @@ type VPNGateway struct { // The date and time that this VPN gateway was created. CreatedAt *strfmt.DateTime `json:"created_at" validate:"required"` - // The VPN gateway's CRN. + // The CRN for this VPN gateway. CRN *string `json:"crn" validate:"required"` // The reasons for the current `health_state` (if any). @@ -88438,7 +87459,7 @@ type VPNGateway struct { // health state of `inapplicable`. A `pending` resource may also have this state. HealthState *string `json:"health_state" validate:"required"` - // The VPN gateway's canonical URL. + // The URL for this VPN gateway. Href *string `json:"href" validate:"required"` // The unique identifier for this VPN gateway. @@ -88733,7 +87754,7 @@ type VPNGatewayConnection struct { // connection will be brought down after its lifetime expires. EstablishMode *string `json:"establish_mode" validate:"required"` - // The VPN connection's canonical URL. + // The URL for this VPN gateway connection. Href *string `json:"href" validate:"required"` // The unique identifier for this VPN gateway connection. @@ -89220,7 +88241,7 @@ type VPNGatewayConnectionIkePolicyPatch struct { // The unique identifier for this IKE policy. ID *string `json:"id,omitempty"` - // The IKE policy's canonical URL. + // The URL for this IKE policy. Href *string `json:"href,omitempty"` } @@ -89258,7 +88279,7 @@ type VPNGatewayConnectionIkePolicyPrototype struct { // The unique identifier for this IKE policy. ID *string `json:"id,omitempty"` - // The IKE policy's canonical URL. + // The URL for this IKE policy. Href *string `json:"href,omitempty"` } @@ -89296,7 +88317,7 @@ type VPNGatewayConnectionIPsecPolicyPatch struct { // The unique identifier for this IPsec policy. ID *string `json:"id,omitempty"` - // The IPsec policy's canonical URL. + // The URL for this IPsec policy. Href *string `json:"href,omitempty"` } @@ -89334,7 +88355,7 @@ type VPNGatewayConnectionIPsecPolicyPrototype struct { // The unique identifier for this IPsec policy. ID *string `json:"id,omitempty"` - // The IPsec policy's canonical URL. + // The URL for this IPsec policy. Href *string `json:"href,omitempty"` } @@ -89837,9 +88858,9 @@ func UnmarshalVPNGatewayConnectionPrototype(m map[string]json.RawMessage, result type VPNGatewayConnectionReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *VPNGatewayConnectionReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` - // The VPN connection's canonical URL. + // The URL for this VPN gateway connection. Href *string `json:"href" validate:"required"` // The unique identifier for this VPN gateway connection. @@ -89861,7 +88882,7 @@ const ( // UnmarshalVPNGatewayConnectionReference unmarshals an instance of VPNGatewayConnectionReference from the specified map of raw messages. func UnmarshalVPNGatewayConnectionReference(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(VPNGatewayConnectionReference) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalVPNGatewayConnectionReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -89890,25 +88911,6 @@ func UnmarshalVPNGatewayConnectionReference(m map[string]json.RawMessage, result return } -// VPNGatewayConnectionReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type VPNGatewayConnectionReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalVPNGatewayConnectionReferenceDeleted unmarshals an instance of VPNGatewayConnectionReferenceDeleted from the specified map of raw messages. -func UnmarshalVPNGatewayConnectionReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(VPNGatewayConnectionReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // VPNGatewayConnectionStaticRouteModeLocal : VPNGatewayConnectionStaticRouteModeLocal struct type VPNGatewayConnectionStaticRouteModeLocal struct { // The local IKE identities. @@ -90653,25 +89655,6 @@ func UnmarshalVPNGatewayPrototype(m map[string]json.RawMessage, result interface return } -// VPNGatewayReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type VPNGatewayReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalVPNGatewayReferenceDeleted unmarshals an instance of VPNGatewayReferenceDeleted from the specified map of raw messages. -func UnmarshalVPNGatewayReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(VPNGatewayReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // VPNServer : VPNServer struct type VPNServer struct { // The certificate instance for this VPN server. @@ -91684,25 +90667,6 @@ func (vpnServerPatch *VPNServerPatch) AsPatch() (_patch map[string]interface{}, return } -// VPNServerReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type VPNServerReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalVPNServerReferenceDeleted unmarshals an instance of VPNServerReferenceDeleted from the specified map of raw messages. -func UnmarshalVPNServerReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(VPNServerReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // VPNServerRoute : VPNServerRoute struct type VPNServerRoute struct { // The action to perform with a packet matching the VPN route: @@ -92718,25 +91682,6 @@ func UnmarshalVirtualNetworkInterfaceReferenceAttachmentContext(m map[string]jso return } -// VirtualNetworkInterfaceReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type VirtualNetworkInterfaceReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalVirtualNetworkInterfaceReferenceDeleted unmarshals an instance of VirtualNetworkInterfaceReferenceDeleted from the specified map of raw messages. -func UnmarshalVirtualNetworkInterfaceReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(VirtualNetworkInterfaceReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // VirtualNetworkInterfaceTarget : A virtual network interface target. // // The resources supported by this property may @@ -92748,7 +91693,7 @@ func UnmarshalVirtualNetworkInterfaceReferenceDeleted(m map[string]json.RawMessa type VirtualNetworkInterfaceTarget struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *ShareMountTargetReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this share mount target. Href *string `json:"href,omitempty"` @@ -92780,7 +91725,7 @@ type VirtualNetworkInterfaceTargetIntf interface { // UnmarshalVirtualNetworkInterfaceTarget unmarshals an instance of VirtualNetworkInterfaceTarget from the specified map of raw messages. func UnmarshalVirtualNetworkInterfaceTarget(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(VirtualNetworkInterfaceTarget) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalShareMountTargetReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -93612,7 +92557,7 @@ func UnmarshalVolumeAttachmentPrototypeVolume(m map[string]json.RawMessage, resu type VolumeAttachmentReferenceInstanceContext struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *VolumeAttachmentReferenceInstanceContextDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // Information about how the volume is exposed to the instance operating system. // @@ -93637,7 +92582,7 @@ type VolumeAttachmentReferenceInstanceContext struct { // UnmarshalVolumeAttachmentReferenceInstanceContext unmarshals an instance of VolumeAttachmentReferenceInstanceContext from the specified map of raw messages. func UnmarshalVolumeAttachmentReferenceInstanceContext(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(VolumeAttachmentReferenceInstanceContext) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalVolumeAttachmentReferenceInstanceContextDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -93671,25 +92616,6 @@ func UnmarshalVolumeAttachmentReferenceInstanceContext(m map[string]json.RawMess return } -// VolumeAttachmentReferenceInstanceContextDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type VolumeAttachmentReferenceInstanceContextDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalVolumeAttachmentReferenceInstanceContextDeleted unmarshals an instance of VolumeAttachmentReferenceInstanceContextDeleted from the specified map of raw messages. -func UnmarshalVolumeAttachmentReferenceInstanceContextDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(VolumeAttachmentReferenceInstanceContextDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // VolumeAttachmentReferenceVolumeContext : VolumeAttachmentReferenceVolumeContext struct type VolumeAttachmentReferenceVolumeContext struct { // Indicates whether deleting the instance will also delete the attached volume. @@ -93697,7 +92623,7 @@ type VolumeAttachmentReferenceVolumeContext struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *VolumeAttachmentReferenceVolumeContextDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // Information about how the volume is exposed to the instance operating system. // @@ -93735,7 +92661,7 @@ func UnmarshalVolumeAttachmentReferenceVolumeContext(m map[string]json.RawMessag err = core.SDKErrorf(err, "", "delete_volume_on_instance_delete-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalVolumeAttachmentReferenceVolumeContextDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -93774,25 +92700,6 @@ func UnmarshalVolumeAttachmentReferenceVolumeContext(m map[string]json.RawMessag return } -// VolumeAttachmentReferenceVolumeContextDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type VolumeAttachmentReferenceVolumeContextDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalVolumeAttachmentReferenceVolumeContextDeleted unmarshals an instance of VolumeAttachmentReferenceVolumeContextDeleted from the specified map of raw messages. -func UnmarshalVolumeAttachmentReferenceVolumeContextDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(VolumeAttachmentReferenceVolumeContextDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // VolumeCatalogOffering : VolumeCatalogOffering struct type VolumeCatalogOffering struct { // The billing plan associated with the catalog offering version. @@ -94029,9 +92936,8 @@ type VolumePatch struct { Name *string `json:"name,omitempty"` // The profile to use for this volume. The requested profile must be in the same - // `family` as the current profile. The volume must be attached as a data volume to - // a running virtual server instance, and must have a `capacity` within the range - // supported by the specified profile. + // `family` as the current profile. The volume must have a `capacity` within the + // range supported by the specified profile. Profile VolumeProfileIdentityIntf `json:"profile,omitempty"` // The [user tags](https://cloud.ibm.com/apidocs/tagging#types-of-tags) associated with this volume. @@ -94587,7 +93493,7 @@ type VolumeReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *VolumeReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this volume. Href *string `json:"href" validate:"required"` @@ -94620,7 +93526,7 @@ func UnmarshalVolumeReference(m map[string]json.RawMessage, result interface{}) err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalVolumeReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -94654,25 +93560,6 @@ func UnmarshalVolumeReference(m map[string]json.RawMessage, result interface{}) return } -// VolumeReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type VolumeReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalVolumeReferenceDeleted unmarshals an instance of VolumeReferenceDeleted from the specified map of raw messages. -func UnmarshalVolumeReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(VolumeReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // VolumeReferenceVolumeAttachmentContext : VolumeReferenceVolumeAttachmentContext struct type VolumeReferenceVolumeAttachmentContext struct { // The CRN for this volume. @@ -94680,7 +93567,7 @@ type VolumeReferenceVolumeAttachmentContext struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *VolumeReferenceVolumeAttachmentContextDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this volume. Href *string `json:"href" validate:"required"` @@ -94709,7 +93596,7 @@ func UnmarshalVolumeReferenceVolumeAttachmentContext(m map[string]json.RawMessag err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalVolumeReferenceVolumeAttachmentContextDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -94738,25 +93625,6 @@ func UnmarshalVolumeReferenceVolumeAttachmentContext(m map[string]json.RawMessag return } -// VolumeReferenceVolumeAttachmentContextDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type VolumeReferenceVolumeAttachmentContextDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalVolumeReferenceVolumeAttachmentContextDeleted unmarshals an instance of VolumeReferenceVolumeAttachmentContextDeleted from the specified map of raw messages. -func UnmarshalVolumeReferenceVolumeAttachmentContextDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(VolumeReferenceVolumeAttachmentContextDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // VolumeRemote : If present, this property indicates that the resource associated with this reference is remote and therefore may not // be directly retrievable. type VolumeRemote struct { @@ -94861,6 +93729,11 @@ func UnmarshalVpcdnsResolutionBindingCollectionNext(m map[string]json.RawMessage // Zone : Zone struct type Zone struct { + // The physical data center assigned to this logical zone. + // + // If absent, no physical data center has been assigned. + DataCenter *string `json:"data_center,omitempty"` + // The URL for this zone. Href *string `json:"href" validate:"required"` @@ -94870,21 +93743,49 @@ type Zone struct { // The region this zone resides in. Region *RegionReference `json:"region" validate:"required"` - // The availability status of this zone. + // The status of the zone. + // + // - `available`: The zone is available to create and manage resources. + // - `impaired`: The zone's availability and performance to create and manage resources + // may be impaired. + // - `unavailable`: The zone is unavailable to create and manage resources. + // - `unassigned`: The zone has not been assigned to a physical zone. + // + // The enumerated values for this property may + // [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) in the future. Status *string `json:"status" validate:"required"` + + // The [universal name](https://cloud.ibm.com/docs/overview?topic=overview-locations#zone-mapping) for this zone. Will + // be absent if this zone has a `status` of `unassigned`. + UniversalName *string `json:"universal_name,omitempty"` } // Constants associated with the Zone.Status property. -// The availability status of this zone. +// The status of the zone. +// +// - `available`: The zone is available to create and manage resources. +// - `impaired`: The zone's availability and performance to create and manage resources +// may be impaired. +// - `unavailable`: The zone is unavailable to create and manage resources. +// - `unassigned`: The zone has not been assigned to a physical zone. +// +// The enumerated values for this property may +// [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) in the future. const ( ZoneStatusAvailableConst = "available" ZoneStatusImpairedConst = "impaired" + ZoneStatusUnassignedConst = "unassigned" ZoneStatusUnavailableConst = "unavailable" ) // UnmarshalZone unmarshals an instance of Zone from the specified map of raw messages. func UnmarshalZone(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(Zone) + err = core.UnmarshalPrimitive(m, "data_center", &obj.DataCenter) + if err != nil { + err = core.SDKErrorf(err, "", "data_center-error", common.GetComponentInfo()) + return + } err = core.UnmarshalPrimitive(m, "href", &obj.Href) if err != nil { err = core.SDKErrorf(err, "", "href-error", common.GetComponentInfo()) @@ -94905,6 +93806,11 @@ func UnmarshalZone(m map[string]json.RawMessage, result interface{}) (err error) err = core.SDKErrorf(err, "", "status-error", common.GetComponentInfo()) return } + err = core.UnmarshalPrimitive(m, "universal_name", &obj.UniversalName) + if err != nil { + err = core.SDKErrorf(err, "", "universal_name-error", common.GetComponentInfo()) + return + } reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) return } @@ -94998,7 +93904,7 @@ type BackupPolicyJobSourceInstanceReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *InstanceReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this virtual server instance. Href *string `json:"href" validate:"required"` @@ -95022,7 +93928,7 @@ func UnmarshalBackupPolicyJobSourceInstanceReference(m map[string]json.RawMessag err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalInstanceReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -95054,7 +93960,7 @@ type BackupPolicyJobSourceVolumeReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *VolumeReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this volume. Href *string `json:"href" validate:"required"` @@ -95091,7 +93997,7 @@ func UnmarshalBackupPolicyJobSourceVolumeReference(m map[string]json.RawMessage, err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalVolumeReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -95831,7 +94737,7 @@ func UnmarshalBackupPolicyScopeEnterpriseReference(m map[string]json.RawMessage, type BareMetalServerBootTargetBareMetalServerDiskReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *BareMetalServerDiskReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this bare metal server disk. Href *string `json:"href" validate:"required"` @@ -95859,7 +94765,7 @@ func (*BareMetalServerBootTargetBareMetalServerDiskReference) isaBareMetalServer // UnmarshalBareMetalServerBootTargetBareMetalServerDiskReference unmarshals an instance of BareMetalServerBootTargetBareMetalServerDiskReference from the specified map of raw messages. func UnmarshalBareMetalServerBootTargetBareMetalServerDiskReference(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(BareMetalServerBootTargetBareMetalServerDiskReference) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalBareMetalServerDiskReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -101303,7 +100209,7 @@ func UnmarshalFloatingIPTargetPrototypeVirtualNetworkInterfaceIdentity(m map[str type FloatingIPTargetBareMetalServerNetworkInterfaceReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *BareMetalServerNetworkInterfaceReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this bare metal server network interface. // @@ -101342,7 +100248,7 @@ func (*FloatingIPTargetBareMetalServerNetworkInterfaceReference) isaFloatingIPTa // UnmarshalFloatingIPTargetBareMetalServerNetworkInterfaceReference unmarshals an instance of FloatingIPTargetBareMetalServerNetworkInterfaceReference from the specified map of raw messages. func UnmarshalFloatingIPTargetBareMetalServerNetworkInterfaceReference(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(FloatingIPTargetBareMetalServerNetworkInterfaceReference) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalBareMetalServerNetworkInterfaceReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -101381,7 +100287,7 @@ func UnmarshalFloatingIPTargetBareMetalServerNetworkInterfaceReference(m map[str type FloatingIPTargetNetworkInterfaceReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *NetworkInterfaceReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this instance network interface. // @@ -101420,7 +100326,7 @@ func (*FloatingIPTargetNetworkInterfaceReference) isaFloatingIPTarget() bool { // UnmarshalFloatingIPTargetNetworkInterfaceReference unmarshals an instance of FloatingIPTargetNetworkInterfaceReference from the specified map of raw messages. func UnmarshalFloatingIPTargetNetworkInterfaceReference(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(FloatingIPTargetNetworkInterfaceReference) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalNetworkInterfaceReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -101462,7 +100368,7 @@ type FloatingIPTargetPublicGatewayReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *PublicGatewayReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this public gateway. Href *string `json:"href" validate:"required"` @@ -101495,7 +100401,7 @@ func UnmarshalFloatingIPTargetPublicGatewayReference(m map[string]json.RawMessag err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalPublicGatewayReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -101532,7 +100438,7 @@ type FloatingIPTargetVirtualNetworkInterfaceReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *VirtualNetworkInterfaceReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this virtual network interface. Href *string `json:"href" validate:"required"` @@ -101571,7 +100477,7 @@ func UnmarshalFloatingIPTargetVirtualNetworkInterfaceReference(m map[string]json err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalVirtualNetworkInterfaceReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -101918,7 +100824,7 @@ func UnmarshalFlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentity(m m type FlowLogCollectorTargetInstanceNetworkAttachmentReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *InstanceNetworkAttachmentReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this instance network attachment. Href *string `json:"href" validate:"required"` @@ -101956,7 +100862,7 @@ func (*FlowLogCollectorTargetInstanceNetworkAttachmentReference) isaFlowLogColle // UnmarshalFlowLogCollectorTargetInstanceNetworkAttachmentReference unmarshals an instance of FlowLogCollectorTargetInstanceNetworkAttachmentReference from the specified map of raw messages. func UnmarshalFlowLogCollectorTargetInstanceNetworkAttachmentReference(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(FlowLogCollectorTargetInstanceNetworkAttachmentReference) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalInstanceNetworkAttachmentReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -102008,7 +100914,7 @@ type FlowLogCollectorTargetInstanceReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *InstanceReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this virtual server instance. Href *string `json:"href" validate:"required"` @@ -102032,7 +100938,7 @@ func UnmarshalFlowLogCollectorTargetInstanceReference(m map[string]json.RawMessa err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalInstanceReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -102061,7 +100967,7 @@ func UnmarshalFlowLogCollectorTargetInstanceReference(m map[string]json.RawMessa type FlowLogCollectorTargetNetworkInterfaceReferenceTargetContext struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *NetworkInterfaceReferenceTargetContextDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this instance network interface. // @@ -102098,7 +101004,7 @@ func (*FlowLogCollectorTargetNetworkInterfaceReferenceTargetContext) isaFlowLogC // UnmarshalFlowLogCollectorTargetNetworkInterfaceReferenceTargetContext unmarshals an instance of FlowLogCollectorTargetNetworkInterfaceReferenceTargetContext from the specified map of raw messages. func UnmarshalFlowLogCollectorTargetNetworkInterfaceReferenceTargetContext(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(FlowLogCollectorTargetNetworkInterfaceReferenceTargetContext) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalNetworkInterfaceReferenceTargetContextDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -102135,7 +101041,7 @@ type FlowLogCollectorTargetSubnetReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *SubnetReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this subnet. Href *string `json:"href" validate:"required"` @@ -102168,7 +101074,7 @@ func UnmarshalFlowLogCollectorTargetSubnetReference(m map[string]json.RawMessage err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalSubnetReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -102205,7 +101111,7 @@ type FlowLogCollectorTargetVPCReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *VPCReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this VPC. Href *string `json:"href" validate:"required"` @@ -102238,7 +101144,7 @@ func UnmarshalFlowLogCollectorTargetVPCReference(m map[string]json.RawMessage, r err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalVPCReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -103526,7 +102432,7 @@ func UnmarshalInstanceGroupManagerScheduled(m map[string]json.RawMessage, result type InstanceGroupManagerScheduledActionManagerAutoScale struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *InstanceGroupManagerReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this instance group manager. Href *string `json:"href" validate:"required"` @@ -103551,7 +102457,7 @@ func (*InstanceGroupManagerScheduledActionManagerAutoScale) isaInstanceGroupMana // UnmarshalInstanceGroupManagerScheduledActionManagerAutoScale unmarshals an instance of InstanceGroupManagerScheduledActionManagerAutoScale from the specified map of raw messages. func UnmarshalInstanceGroupManagerScheduledActionManagerAutoScale(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(InstanceGroupManagerScheduledActionManagerAutoScale) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalInstanceGroupManagerReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -104191,7 +103097,7 @@ type InstancePlacementTargetDedicatedHostGroupReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *DedicatedHostGroupReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this dedicated host group. Href *string `json:"href" validate:"required"` @@ -104224,7 +103130,7 @@ func UnmarshalInstancePlacementTargetDedicatedHostGroupReference(m map[string]js err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDedicatedHostGroupReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -104261,7 +103167,7 @@ type InstancePlacementTargetDedicatedHostReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *DedicatedHostReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this dedicated host. Href *string `json:"href" validate:"required"` @@ -104294,7 +103200,7 @@ func UnmarshalInstancePlacementTargetDedicatedHostReference(m map[string]json.Ra err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDedicatedHostReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -104331,7 +103237,7 @@ type InstancePlacementTargetPlacementGroupReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *PlacementGroupReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this placement group. Href *string `json:"href" validate:"required"` @@ -104364,7 +103270,7 @@ func UnmarshalInstancePlacementTargetPlacementGroupReference(m map[string]json.R err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalPlacementGroupReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -109436,7 +108342,7 @@ func UnmarshalLegacyCloudObjectStorageBucketIdentityCloudObjectStorageBucketIden // LoadBalancerIdentityByCRN : LoadBalancerIdentityByCRN struct // This model "extends" LoadBalancerIdentity type LoadBalancerIdentityByCRN struct { - // The load balancer's CRN. + // The CRN for this load balancer. CRN *string `json:"crn" validate:"required"` } @@ -109471,7 +108377,7 @@ func UnmarshalLoadBalancerIdentityByCRN(m map[string]json.RawMessage, result int // LoadBalancerIdentityByHref : LoadBalancerIdentityByHref struct // This model "extends" LoadBalancerIdentity type LoadBalancerIdentityByHref struct { - // The load balancer's canonical URL. + // The URL for this load balancer. Href *string `json:"href" validate:"required"` } @@ -109541,7 +108447,7 @@ func UnmarshalLoadBalancerIdentityByID(m map[string]json.RawMessage, result inte // LoadBalancerListenerDefaultPoolPatchLoadBalancerPoolIdentityByHref : LoadBalancerListenerDefaultPoolPatchLoadBalancerPoolIdentityByHref struct // This model "extends" LoadBalancerListenerDefaultPoolPatch type LoadBalancerListenerDefaultPoolPatchLoadBalancerPoolIdentityByHref struct { - // The pool's canonical URL. + // The URL for this load balancer pool. Href *string `json:"href" validate:"required"` } @@ -109611,7 +108517,7 @@ func UnmarshalLoadBalancerListenerDefaultPoolPatchLoadBalancerPoolIdentityByID(m // LoadBalancerListenerIdentityByHref : LoadBalancerListenerIdentityByHref struct // This model "extends" LoadBalancerListenerIdentity type LoadBalancerListenerIdentityByHref struct { - // The listener's canonical URL. + // The URL for this load balancer listener. Href *string `json:"href" validate:"required"` } @@ -109773,7 +108679,7 @@ type LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentity struct { // The unique identifier for this load balancer pool. ID *string `json:"id,omitempty"` - // The pool's canonical URL. + // The URL for this load balancer pool. Href *string `json:"href,omitempty"` } @@ -109928,7 +108834,7 @@ type LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentity struct { // The unique identifier for this load balancer pool. ID *string `json:"id,omitempty"` - // The pool's canonical URL. + // The URL for this load balancer pool. Href *string `json:"href,omitempty"` } @@ -110052,9 +108958,9 @@ func UnmarshalLoadBalancerListenerPolicyTargetLoadBalancerListenerPolicyRedirect type LoadBalancerListenerPolicyTargetLoadBalancerPoolReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *LoadBalancerPoolReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` - // The pool's canonical URL. + // The URL for this load balancer pool. Href *string `json:"href" validate:"required"` // The unique identifier for this load balancer pool. @@ -110071,7 +108977,7 @@ func (*LoadBalancerListenerPolicyTargetLoadBalancerPoolReference) isaLoadBalance // UnmarshalLoadBalancerListenerPolicyTargetLoadBalancerPoolReference unmarshals an instance of LoadBalancerListenerPolicyTargetLoadBalancerPoolReference from the specified map of raw messages. func UnmarshalLoadBalancerListenerPolicyTargetLoadBalancerPoolReference(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(LoadBalancerListenerPolicyTargetLoadBalancerPoolReference) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalLoadBalancerPoolReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -110098,7 +109004,7 @@ func UnmarshalLoadBalancerListenerPolicyTargetLoadBalancerPoolReference(m map[st // LoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref : LoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref struct // This model "extends" LoadBalancerPoolIdentity type LoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref struct { - // The pool's canonical URL. + // The URL for this load balancer pool. Href *string `json:"href" validate:"required"` } @@ -110289,7 +109195,7 @@ type LoadBalancerPoolMemberTargetInstanceReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *InstanceReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this virtual server instance. Href *string `json:"href" validate:"required"` @@ -110313,7 +109219,7 @@ func UnmarshalLoadBalancerPoolMemberTargetInstanceReference(m map[string]json.Ra err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalInstanceReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -113370,7 +112276,7 @@ func UnmarshalReservedIPTargetPrototypeVirtualNetworkInterfaceIdentity(m map[str type ReservedIPTargetBareMetalServerNetworkInterfaceReferenceTargetContext struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *BareMetalServerNetworkInterfaceReferenceTargetContextDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this bare metal server network interface. // @@ -113407,7 +112313,7 @@ func (*ReservedIPTargetBareMetalServerNetworkInterfaceReferenceTargetContext) is // UnmarshalReservedIPTargetBareMetalServerNetworkInterfaceReferenceTargetContext unmarshals an instance of ReservedIPTargetBareMetalServerNetworkInterfaceReferenceTargetContext from the specified map of raw messages. func UnmarshalReservedIPTargetBareMetalServerNetworkInterfaceReferenceTargetContext(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(ReservedIPTargetBareMetalServerNetworkInterfaceReferenceTargetContext) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalBareMetalServerNetworkInterfaceReferenceTargetContextDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -113444,7 +112350,7 @@ type ReservedIPTargetEndpointGatewayReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *EndpointGatewayReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this endpoint gateway. Href *string `json:"href" validate:"required"` @@ -113477,7 +112383,7 @@ func UnmarshalReservedIPTargetEndpointGatewayReference(m map[string]json.RawMess err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalEndpointGatewayReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -113514,7 +112420,7 @@ type ReservedIPTargetGenericResourceReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *GenericResourceReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The resource type. ResourceType *string `json:"resource_type" validate:"required"` @@ -113538,7 +112444,7 @@ func UnmarshalReservedIPTargetGenericResourceReference(m map[string]json.RawMess err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalGenericResourceReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -113555,14 +112461,14 @@ func UnmarshalReservedIPTargetGenericResourceReference(m map[string]json.RawMess // ReservedIPTargetLoadBalancerReference : ReservedIPTargetLoadBalancerReference struct // This model "extends" ReservedIPTarget type ReservedIPTargetLoadBalancerReference struct { - // The load balancer's CRN. + // The CRN for this load balancer. CRN *string `json:"crn" validate:"required"` // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *LoadBalancerReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` - // The load balancer's canonical URL. + // The URL for this load balancer. Href *string `json:"href" validate:"required"` // The unique identifier for this load balancer. @@ -113593,7 +112499,7 @@ func UnmarshalReservedIPTargetLoadBalancerReference(m map[string]json.RawMessage err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalLoadBalancerReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -113627,7 +112533,7 @@ func UnmarshalReservedIPTargetLoadBalancerReference(m map[string]json.RawMessage type ReservedIPTargetNetworkInterfaceReferenceTargetContext struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *NetworkInterfaceReferenceTargetContextDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this instance network interface. // @@ -113664,7 +112570,7 @@ func (*ReservedIPTargetNetworkInterfaceReferenceTargetContext) isaReservedIPTarg // UnmarshalReservedIPTargetNetworkInterfaceReferenceTargetContext unmarshals an instance of ReservedIPTargetNetworkInterfaceReferenceTargetContext from the specified map of raw messages. func UnmarshalReservedIPTargetNetworkInterfaceReferenceTargetContext(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(ReservedIPTargetNetworkInterfaceReferenceTargetContext) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalNetworkInterfaceReferenceTargetContextDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -113696,14 +112602,14 @@ func UnmarshalReservedIPTargetNetworkInterfaceReferenceTargetContext(m map[strin // ReservedIPTargetVPNGatewayReference : ReservedIPTargetVPNGatewayReference struct // This model "extends" ReservedIPTarget type ReservedIPTargetVPNGatewayReference struct { - // The VPN gateway's CRN. + // The CRN for this VPN gateway. CRN *string `json:"crn" validate:"required"` // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *VPNGatewayReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` - // The VPN gateway's canonical URL. + // The URL for this VPN gateway. Href *string `json:"href" validate:"required"` // The unique identifier for this VPN gateway. @@ -113734,7 +112640,7 @@ func UnmarshalReservedIPTargetVPNGatewayReference(m map[string]json.RawMessage, err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalVPNGatewayReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -113771,7 +112677,7 @@ type ReservedIPTargetVPNServerReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *VPNServerReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this VPN server. Href *string `json:"href" validate:"required"` @@ -113804,7 +112710,7 @@ func UnmarshalReservedIPTargetVPNServerReference(m map[string]json.RawMessage, r err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalVPNServerReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -113932,14 +112838,14 @@ func UnmarshalResourceGroupIdentityByID(m map[string]json.RawMessage, result int // RouteCreatorVPNGatewayReference : RouteCreatorVPNGatewayReference struct // This model "extends" RouteCreator type RouteCreatorVPNGatewayReference struct { - // The VPN gateway's CRN. + // The CRN for this VPN gateway. CRN *string `json:"crn" validate:"required"` // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *VPNGatewayReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` - // The VPN gateway's canonical URL. + // The URL for this VPN gateway. Href *string `json:"href" validate:"required"` // The unique identifier for this VPN gateway. @@ -113970,7 +112876,7 @@ func UnmarshalRouteCreatorVPNGatewayReference(m map[string]json.RawMessage, resu err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalVPNGatewayReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -114007,7 +112913,7 @@ type RouteCreatorVPNServerReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *VPNServerReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this VPN server. Href *string `json:"href" validate:"required"` @@ -114040,7 +112946,7 @@ func UnmarshalRouteCreatorVPNServerReference(m map[string]json.RawMessage, resul err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalVPNServerReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -114142,7 +113048,7 @@ type RouteNextHopPatchVPNGatewayConnectionIdentity struct { // The unique identifier for this VPN gateway connection. ID *string `json:"id,omitempty"` - // The VPN connection's canonical URL. + // The URL for this VPN gateway connection. Href *string `json:"href,omitempty"` } @@ -114176,14 +113082,95 @@ func UnmarshalRouteNextHopPatchVPNGatewayConnectionIdentity(m map[string]json.Ra return } +// RouteNextHopPrototypeRouteNextHopIP : RouteNextHopPrototypeRouteNextHopIP struct +// Models which "extend" this model: +// - RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP +// - RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP +// This model "extends" RouteNextHopPrototype +type RouteNextHopPrototypeRouteNextHopIP struct { + // The sentinel IP address (`0.0.0.0`). + // + // This property may [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) to support IPv6 addresses in + // the future. + Address *string `json:"address,omitempty"` +} + +func (*RouteNextHopPrototypeRouteNextHopIP) isaRouteNextHopPrototypeRouteNextHopIP() bool { + return true +} + +type RouteNextHopPrototypeRouteNextHopIPIntf interface { + RouteNextHopPrototypeIntf + isaRouteNextHopPrototypeRouteNextHopIP() bool +} + +func (*RouteNextHopPrototypeRouteNextHopIP) isaRouteNextHopPrototype() bool { + return true +} + +// UnmarshalRouteNextHopPrototypeRouteNextHopIP unmarshals an instance of RouteNextHopPrototypeRouteNextHopIP from the specified map of raw messages. +func UnmarshalRouteNextHopPrototypeRouteNextHopIP(m map[string]json.RawMessage, result interface{}) (err error) { + obj := new(RouteNextHopPrototypeRouteNextHopIP) + err = core.UnmarshalPrimitive(m, "address", &obj.Address) + if err != nil { + err = core.SDKErrorf(err, "", "address-error", common.GetComponentInfo()) + return + } + reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) + return +} + +// RouteNextHopPrototypeVPNGatewayConnectionIdentity : Identifies a VPN gateway connection by a unique property. +// Models which "extend" this model: +// - RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID +// - RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref +// This model "extends" RouteNextHopPrototype +type RouteNextHopPrototypeVPNGatewayConnectionIdentity struct { + // The unique identifier for this VPN gateway connection. + ID *string `json:"id,omitempty"` + + // The URL for this VPN gateway connection. + Href *string `json:"href,omitempty"` +} + +func (*RouteNextHopPrototypeVPNGatewayConnectionIdentity) isaRouteNextHopPrototypeVPNGatewayConnectionIdentity() bool { + return true +} + +type RouteNextHopPrototypeVPNGatewayConnectionIdentityIntf interface { + RouteNextHopPrototypeIntf + isaRouteNextHopPrototypeVPNGatewayConnectionIdentity() bool +} + +func (*RouteNextHopPrototypeVPNGatewayConnectionIdentity) isaRouteNextHopPrototype() bool { + return true +} + +// UnmarshalRouteNextHopPrototypeVPNGatewayConnectionIdentity unmarshals an instance of RouteNextHopPrototypeVPNGatewayConnectionIdentity from the specified map of raw messages. +func UnmarshalRouteNextHopPrototypeVPNGatewayConnectionIdentity(m map[string]json.RawMessage, result interface{}) (err error) { + obj := new(RouteNextHopPrototypeVPNGatewayConnectionIdentity) + err = core.UnmarshalPrimitive(m, "id", &obj.ID) + if err != nil { + err = core.SDKErrorf(err, "", "id-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalPrimitive(m, "href", &obj.Href) + if err != nil { + err = core.SDKErrorf(err, "", "href-error", common.GetComponentInfo()) + return + } + reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) + return +} + // RouteNextHopVPNGatewayConnectionReference : RouteNextHopVPNGatewayConnectionReference struct // This model "extends" RouteNextHop type RouteNextHopVPNGatewayConnectionReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *VPNGatewayConnectionReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` - // The VPN connection's canonical URL. + // The URL for this VPN gateway connection. Href *string `json:"href" validate:"required"` // The unique identifier for this VPN gateway connection. @@ -114209,7 +113196,7 @@ func (*RouteNextHopVPNGatewayConnectionReference) isaRouteNextHop() bool { // UnmarshalRouteNextHopVPNGatewayConnectionReference unmarshals an instance of RouteNextHopVPNGatewayConnectionReference from the specified map of raw messages. func UnmarshalRouteNextHopVPNGatewayConnectionReference(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(RouteNextHopVPNGatewayConnectionReference) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalVPNGatewayConnectionReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -114238,87 +113225,6 @@ func UnmarshalRouteNextHopVPNGatewayConnectionReference(m map[string]json.RawMes return } -// RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIP : RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIP struct -// Models which "extend" this model: -// - RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP -// - RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP -// This model "extends" RoutePrototypeNextHop -type RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIP struct { - // The sentinel IP address (`0.0.0.0`). - // - // This property may [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) to support IPv6 addresses in - // the future. - Address *string `json:"address,omitempty"` -} - -func (*RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIP) isaRoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIP() bool { - return true -} - -type RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPIntf interface { - RoutePrototypeNextHopIntf - isaRoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIP() bool -} - -func (*RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIP) isaRoutePrototypeNextHop() bool { - return true -} - -// UnmarshalRoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIP unmarshals an instance of RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIP from the specified map of raw messages. -func UnmarshalRoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIP(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIP) - err = core.UnmarshalPrimitive(m, "address", &obj.Address) - if err != nil { - err = core.SDKErrorf(err, "", "address-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - -// RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentity : Identifies a VPN gateway connection by a unique property. -// Models which "extend" this model: -// - RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID -// - RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref -// This model "extends" RoutePrototypeNextHop -type RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentity struct { - // The unique identifier for this VPN gateway connection. - ID *string `json:"id,omitempty"` - - // The VPN connection's canonical URL. - Href *string `json:"href,omitempty"` -} - -func (*RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentity) isaRoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentity() bool { - return true -} - -type RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityIntf interface { - RoutePrototypeNextHopIntf - isaRoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentity() bool -} - -func (*RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentity) isaRoutePrototypeNextHop() bool { - return true -} - -// UnmarshalRoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentity unmarshals an instance of RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentity from the specified map of raw messages. -func UnmarshalRoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentity(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentity) - err = core.UnmarshalPrimitive(m, "id", &obj.ID) - if err != nil { - err = core.SDKErrorf(err, "", "id-error", common.GetComponentInfo()) - return - } - err = core.UnmarshalPrimitive(m, "href", &obj.Href) - if err != nil { - err = core.SDKErrorf(err, "", "href-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // RoutingTableIdentityByHref : RoutingTableIdentityByHref struct // This model "extends" RoutingTableIdentity type RoutingTableIdentityByHref struct { @@ -114392,7 +113298,7 @@ func UnmarshalRoutingTableIdentityByID(m map[string]json.RawMessage, result inte // SecurityGroupIdentityByCRN : SecurityGroupIdentityByCRN struct // This model "extends" SecurityGroupIdentity type SecurityGroupIdentityByCRN struct { - // The security group's CRN. + // The CRN for this security group. CRN *string `json:"crn" validate:"required"` } @@ -114427,7 +113333,7 @@ func UnmarshalSecurityGroupIdentityByCRN(m map[string]json.RawMessage, result in // SecurityGroupIdentityByHref : SecurityGroupIdentityByHref struct // This model "extends" SecurityGroupIdentity type SecurityGroupIdentityByHref struct { - // The security group's canonical URL. + // The URL for this security group. Href *string `json:"href" validate:"required"` } @@ -115142,10 +114048,10 @@ type SecurityGroupRuleRemotePatchSecurityGroupIdentity struct { // The unique identifier for this security group. ID *string `json:"id,omitempty"` - // The security group's CRN. + // The CRN for this security group. CRN *string `json:"crn,omitempty"` - // The security group's canonical URL. + // The URL for this security group. Href *string `json:"href,omitempty"` } @@ -115270,10 +114176,10 @@ type SecurityGroupRuleRemotePrototypeSecurityGroupIdentity struct { // The unique identifier for this security group. ID *string `json:"id,omitempty"` - // The security group's CRN. + // The CRN for this security group. CRN *string `json:"crn,omitempty"` - // The security group's canonical URL. + // The URL for this security group. Href *string `json:"href,omitempty"` } @@ -115367,14 +114273,14 @@ func UnmarshalSecurityGroupRuleRemoteIP(m map[string]json.RawMessage, result int // SecurityGroupRuleRemoteSecurityGroupReference : SecurityGroupRuleRemoteSecurityGroupReference struct // This model "extends" SecurityGroupRuleRemote type SecurityGroupRuleRemoteSecurityGroupReference struct { - // The security group's CRN. + // The CRN for this security group. CRN *string `json:"crn" validate:"required"` // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *SecurityGroupReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` - // The security group's canonical URL. + // The URL for this security group. Href *string `json:"href" validate:"required"` // The unique identifier for this security group. @@ -115396,7 +114302,7 @@ func UnmarshalSecurityGroupRuleRemoteSecurityGroupReference(m map[string]json.Ra err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalSecurityGroupReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -115749,7 +114655,7 @@ func UnmarshalSecurityGroupRuleSecurityGroupRuleProtocolTcpudp(m map[string]json type SecurityGroupTargetReferenceBareMetalServerNetworkInterfaceReferenceTargetContext struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *BareMetalServerNetworkInterfaceReferenceTargetContextDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this bare metal server network interface. // @@ -115786,7 +114692,7 @@ func (*SecurityGroupTargetReferenceBareMetalServerNetworkInterfaceReferenceTarge // UnmarshalSecurityGroupTargetReferenceBareMetalServerNetworkInterfaceReferenceTargetContext unmarshals an instance of SecurityGroupTargetReferenceBareMetalServerNetworkInterfaceReferenceTargetContext from the specified map of raw messages. func UnmarshalSecurityGroupTargetReferenceBareMetalServerNetworkInterfaceReferenceTargetContext(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(SecurityGroupTargetReferenceBareMetalServerNetworkInterfaceReferenceTargetContext) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalBareMetalServerNetworkInterfaceReferenceTargetContextDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -115823,7 +114729,7 @@ type SecurityGroupTargetReferenceEndpointGatewayReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *EndpointGatewayReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this endpoint gateway. Href *string `json:"href" validate:"required"` @@ -115856,7 +114762,7 @@ func UnmarshalSecurityGroupTargetReferenceEndpointGatewayReference(m map[string] err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalEndpointGatewayReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -115888,14 +114794,14 @@ func UnmarshalSecurityGroupTargetReferenceEndpointGatewayReference(m map[string] // SecurityGroupTargetReferenceLoadBalancerReference : SecurityGroupTargetReferenceLoadBalancerReference struct // This model "extends" SecurityGroupTargetReference type SecurityGroupTargetReferenceLoadBalancerReference struct { - // The load balancer's CRN. + // The CRN for this load balancer. CRN *string `json:"crn" validate:"required"` // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *LoadBalancerReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` - // The load balancer's canonical URL. + // The URL for this load balancer. Href *string `json:"href" validate:"required"` // The unique identifier for this load balancer. @@ -115926,7 +114832,7 @@ func UnmarshalSecurityGroupTargetReferenceLoadBalancerReference(m map[string]jso err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalLoadBalancerReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -115960,7 +114866,7 @@ func UnmarshalSecurityGroupTargetReferenceLoadBalancerReference(m map[string]jso type SecurityGroupTargetReferenceNetworkInterfaceReferenceTargetContext struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *NetworkInterfaceReferenceTargetContextDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this instance network interface. // @@ -115997,7 +114903,7 @@ func (*SecurityGroupTargetReferenceNetworkInterfaceReferenceTargetContext) isaSe // UnmarshalSecurityGroupTargetReferenceNetworkInterfaceReferenceTargetContext unmarshals an instance of SecurityGroupTargetReferenceNetworkInterfaceReferenceTargetContext from the specified map of raw messages. func UnmarshalSecurityGroupTargetReferenceNetworkInterfaceReferenceTargetContext(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(SecurityGroupTargetReferenceNetworkInterfaceReferenceTargetContext) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalNetworkInterfaceReferenceTargetContextDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -116034,7 +114940,7 @@ type SecurityGroupTargetReferenceVPNServerReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *VPNServerReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this VPN server. Href *string `json:"href" validate:"required"` @@ -116067,7 +114973,7 @@ func UnmarshalSecurityGroupTargetReferenceVPNServerReference(m map[string]json.R err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalVPNServerReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -116104,7 +115010,7 @@ type SecurityGroupTargetReferenceVirtualNetworkInterfaceReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *VirtualNetworkInterfaceReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this virtual network interface. Href *string `json:"href" validate:"required"` @@ -116143,7 +115049,7 @@ func UnmarshalSecurityGroupTargetReferenceVirtualNetworkInterfaceReference(m map err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalVirtualNetworkInterfaceReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -116190,7 +115096,7 @@ type ShareAccessorBindingAccessorShareReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *ShareReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this file share. Href *string `json:"href" validate:"required"` @@ -116227,7 +115133,7 @@ func UnmarshalShareAccessorBindingAccessorShareReference(m map[string]json.RawMe err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalShareReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -117383,8 +116289,8 @@ type SharePrototypeShareBySize struct { // The maximum size for a share may increase in the future. Size *int64 `json:"size" validate:"required"` - // The zone this file share will reside in. For a replica share, this must be a different - // zone in the same region as the source share. + // The zone this file share will reside in. For a replica share in the same region as + // the source share, this must be a different zone from the source share. Zone ZoneIdentityIntf `json:"zone" validate:"required"` } @@ -117557,8 +116463,8 @@ type SharePrototypeShareBySourceShare struct { // region](https://cloud.ibm.com/docs/vpc?topic=vpc-file-storage-replication). SourceShare ShareIdentityIntf `json:"source_share" validate:"required"` - // The zone this file share will reside in. For a replica share, this must be a different - // zone in the same region as the source share. + // The zone this file share will reside in. For a replica share in the same region as + // the source share, this must be a different zone from the source share. Zone ZoneIdentityIntf `json:"zone" validate:"required"` } @@ -119395,7 +118301,7 @@ func UnmarshalVPNGatewayConnectionIkeIdentityVPNGatewayConnectionIkeIdentityKeyI // VPNGatewayConnectionIkePolicyPatchIkePolicyIdentityByHref : VPNGatewayConnectionIkePolicyPatchIkePolicyIdentityByHref struct // This model "extends" VPNGatewayConnectionIkePolicyPatch type VPNGatewayConnectionIkePolicyPatchIkePolicyIdentityByHref struct { - // The IKE policy's canonical URL. + // The URL for this IKE policy. Href *string `json:"href" validate:"required"` } @@ -119465,7 +118371,7 @@ func UnmarshalVPNGatewayConnectionIkePolicyPatchIkePolicyIdentityByID(m map[stri // VPNGatewayConnectionIkePolicyPrototypeIkePolicyIdentityByHref : VPNGatewayConnectionIkePolicyPrototypeIkePolicyIdentityByHref struct // This model "extends" VPNGatewayConnectionIkePolicyPrototype type VPNGatewayConnectionIkePolicyPrototypeIkePolicyIdentityByHref struct { - // The IKE policy's canonical URL. + // The URL for this IKE policy. Href *string `json:"href" validate:"required"` } @@ -119535,7 +118441,7 @@ func UnmarshalVPNGatewayConnectionIkePolicyPrototypeIkePolicyIdentityByID(m map[ // VPNGatewayConnectionIPsecPolicyPatchIPsecPolicyIdentityByHref : VPNGatewayConnectionIPsecPolicyPatchIPsecPolicyIdentityByHref struct // This model "extends" VPNGatewayConnectionIPsecPolicyPatch type VPNGatewayConnectionIPsecPolicyPatchIPsecPolicyIdentityByHref struct { - // The IPsec policy's canonical URL. + // The URL for this IPsec policy. Href *string `json:"href" validate:"required"` } @@ -119605,7 +118511,7 @@ func UnmarshalVPNGatewayConnectionIPsecPolicyPatchIPsecPolicyIdentityByID(m map[ // VPNGatewayConnectionIPsecPolicyPrototypeIPsecPolicyIdentityByHref : VPNGatewayConnectionIPsecPolicyPrototypeIPsecPolicyIdentityByHref struct // This model "extends" VPNGatewayConnectionIPsecPolicyPrototype type VPNGatewayConnectionIPsecPolicyPrototypeIPsecPolicyIdentityByHref struct { - // The IPsec policy's canonical URL. + // The URL for this IPsec policy. Href *string `json:"href" validate:"required"` } @@ -119783,7 +118689,7 @@ type VPNGatewayConnectionPolicyMode struct { // connection will be brought down after its lifetime expires. EstablishMode *string `json:"establish_mode" validate:"required"` - // The VPN connection's canonical URL. + // The URL for this VPN gateway connection. Href *string `json:"href" validate:"required"` // The unique identifier for this VPN gateway connection. @@ -120445,7 +119351,7 @@ type VPNGatewayConnectionRouteMode struct { // connection will be brought down after its lifetime expires. EstablishMode *string `json:"establish_mode" validate:"required"` - // The VPN connection's canonical URL. + // The URL for this VPN gateway connection. Href *string `json:"href" validate:"required"` // The unique identifier for this VPN gateway connection. @@ -120767,7 +119673,7 @@ type VPNGatewayPolicyMode struct { // The date and time that this VPN gateway was created. CreatedAt *strfmt.DateTime `json:"created_at" validate:"required"` - // The VPN gateway's CRN. + // The CRN for this VPN gateway. CRN *string `json:"crn" validate:"required"` // The reasons for the current `health_state` (if any). @@ -120782,7 +119688,7 @@ type VPNGatewayPolicyMode struct { // health state of `inapplicable`. A `pending` resource may also have this state. HealthState *string `json:"health_state" validate:"required"` - // The VPN gateway's canonical URL. + // The URL for this VPN gateway. Href *string `json:"href" validate:"required"` // The unique identifier for this VPN gateway. @@ -121082,7 +119988,7 @@ type VPNGatewayRouteMode struct { // The date and time that this VPN gateway was created. CreatedAt *strfmt.DateTime `json:"created_at" validate:"required"` - // The VPN gateway's CRN. + // The CRN for this VPN gateway. CRN *string `json:"crn" validate:"required"` // The reasons for the current `health_state` (if any). @@ -121097,7 +120003,7 @@ type VPNGatewayRouteMode struct { // health state of `inapplicable`. A `pending` resource may also have this state. HealthState *string `json:"health_state" validate:"required"` - // The VPN gateway's canonical URL. + // The URL for this VPN gateway. Href *string `json:"href" validate:"required"` // The unique identifier for this VPN gateway. @@ -121791,7 +120697,7 @@ func UnmarshalVirtualNetworkInterfaceTargetInstanceNetworkAttachmentReferenceVir type VirtualNetworkInterfaceTargetShareMountTargetReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *ShareMountTargetReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this share mount target. Href *string `json:"href" validate:"required"` @@ -121819,7 +120725,7 @@ func (*VirtualNetworkInterfaceTargetShareMountTargetReference) isaVirtualNetwork // UnmarshalVirtualNetworkInterfaceTargetShareMountTargetReference unmarshals an instance of VirtualNetworkInterfaceTargetShareMountTargetReference from the specified map of raw messages. func UnmarshalVirtualNetworkInterfaceTargetShareMountTargetReference(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(VirtualNetworkInterfaceTargetShareMountTargetReference) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalShareMountTargetReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -129947,7 +128853,7 @@ func UnmarshalInstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextIns // LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref : LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref struct // This model "extends" LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentity type LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref struct { - // The pool's canonical URL. + // The URL for this load balancer pool. Href *string `json:"href" validate:"required"` } @@ -130025,7 +128931,7 @@ func UnmarshalLoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadB // LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref : LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref struct // This model "extends" LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentity type LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref struct { - // The pool's canonical URL. + // The URL for this load balancer pool. Href *string `json:"href" validate:"required"` } @@ -130776,7 +129682,7 @@ func UnmarshalRouteNextHopPatchRouteNextHopIPRouteNextHopIPUnicastIP(m map[strin // RouteNextHopPatchVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref : RouteNextHopPatchVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref struct // This model "extends" RouteNextHopPatchVPNGatewayConnectionIdentity type RouteNextHopPatchVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref struct { - // The VPN connection's canonical URL. + // The URL for this VPN gateway connection. Href *string `json:"href" validate:"required"` } @@ -130851,9 +129757,9 @@ func UnmarshalRouteNextHopPatchVPNGatewayConnectionIdentityVPNGatewayConnectionI return } -// RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP : RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP struct -// This model "extends" RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIP -type RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP struct { +// RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP : RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP struct +// This model "extends" RouteNextHopPrototypeRouteNextHopIP +type RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP struct { // The sentinel IP address (`0.0.0.0`). // // This property may [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) to support IPv6 addresses in @@ -130861,9 +129767,9 @@ type RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototy Address *string `json:"address" validate:"required"` } -// NewRoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP : Instantiate RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP (Generic Model Constructor) -func (*VpcV1) NewRoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP(address string) (_model *RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP, err error) { - _model = &RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP{ +// NewRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP : Instantiate RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP (Generic Model Constructor) +func (*VpcV1) NewRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP(address string) (_model *RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP, err error) { + _model = &RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP{ Address: core.StringPtr(address), } err = core.ValidateStruct(_model, "required parameters") @@ -130873,17 +129779,17 @@ func (*VpcV1) NewRoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNe return } -func (*RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP) isaRoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIP() bool { +func (*RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP) isaRouteNextHopPrototypeRouteNextHopIP() bool { return true } -func (*RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP) isaRoutePrototypeNextHop() bool { +func (*RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP) isaRouteNextHopPrototype() bool { return true } -// UnmarshalRoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP unmarshals an instance of RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP from the specified map of raw messages. -func UnmarshalRoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP) +// UnmarshalRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP unmarshals an instance of RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP from the specified map of raw messages. +func UnmarshalRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP(m map[string]json.RawMessage, result interface{}) (err error) { + obj := new(RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP) err = core.UnmarshalPrimitive(m, "address", &obj.Address) if err != nil { err = core.SDKErrorf(err, "", "address-error", common.GetComponentInfo()) @@ -130893,9 +129799,9 @@ func UnmarshalRoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextH return } -// RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP : RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP struct -// This model "extends" RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIP -type RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP struct { +// RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP : RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP struct +// This model "extends" RouteNextHopPrototypeRouteNextHopIP +type RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP struct { // A unicast IP address, which must not be any of the following values: // // - `0.0.0.0` (the sentinel IP address) @@ -130907,9 +129813,9 @@ type RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototy Address *string `json:"address" validate:"required"` } -// NewRoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP : Instantiate RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP (Generic Model Constructor) -func (*VpcV1) NewRoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP(address string) (_model *RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP, err error) { - _model = &RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP{ +// NewRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP : Instantiate RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP (Generic Model Constructor) +func (*VpcV1) NewRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP(address string) (_model *RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP, err error) { + _model = &RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP{ Address: core.StringPtr(address), } err = core.ValidateStruct(_model, "required parameters") @@ -130919,17 +129825,17 @@ func (*VpcV1) NewRoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNe return } -func (*RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP) isaRoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIP() bool { +func (*RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP) isaRouteNextHopPrototypeRouteNextHopIP() bool { return true } -func (*RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP) isaRoutePrototypeNextHop() bool { +func (*RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP) isaRouteNextHopPrototype() bool { return true } -// UnmarshalRoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP unmarshals an instance of RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP from the specified map of raw messages. -func UnmarshalRoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP) +// UnmarshalRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP unmarshals an instance of RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP from the specified map of raw messages. +func UnmarshalRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP(m map[string]json.RawMessage, result interface{}) (err error) { + obj := new(RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP) err = core.UnmarshalPrimitive(m, "address", &obj.Address) if err != nil { err = core.SDKErrorf(err, "", "address-error", common.GetComponentInfo()) @@ -130939,16 +129845,16 @@ func UnmarshalRoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextH return } -// RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref : RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref struct -// This model "extends" RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentity -type RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref struct { - // The VPN connection's canonical URL. +// RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref : RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref struct +// This model "extends" RouteNextHopPrototypeVPNGatewayConnectionIdentity +type RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref struct { + // The URL for this VPN gateway connection. Href *string `json:"href" validate:"required"` } -// NewRoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref : Instantiate RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref (Generic Model Constructor) -func (*VpcV1) NewRoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref(href string) (_model *RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref, err error) { - _model = &RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref{ +// NewRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref : Instantiate RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref (Generic Model Constructor) +func (*VpcV1) NewRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref(href string) (_model *RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref, err error) { + _model = &RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref{ Href: core.StringPtr(href), } err = core.ValidateStruct(_model, "required parameters") @@ -130958,17 +129864,17 @@ func (*VpcV1) NewRoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionI return } -func (*RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref) isaRoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentity() bool { +func (*RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref) isaRouteNextHopPrototypeVPNGatewayConnectionIdentity() bool { return true } -func (*RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref) isaRoutePrototypeNextHop() bool { +func (*RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref) isaRouteNextHopPrototype() bool { return true } -// UnmarshalRoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref unmarshals an instance of RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref from the specified map of raw messages. -func UnmarshalRoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref) +// UnmarshalRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref unmarshals an instance of RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref from the specified map of raw messages. +func UnmarshalRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref(m map[string]json.RawMessage, result interface{}) (err error) { + obj := new(RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref) err = core.UnmarshalPrimitive(m, "href", &obj.Href) if err != nil { err = core.SDKErrorf(err, "", "href-error", common.GetComponentInfo()) @@ -130978,16 +129884,16 @@ func UnmarshalRoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIden return } -// RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID : RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID struct -// This model "extends" RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentity -type RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID struct { +// RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID : RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID struct +// This model "extends" RouteNextHopPrototypeVPNGatewayConnectionIdentity +type RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID struct { // The unique identifier for this VPN gateway connection. ID *string `json:"id" validate:"required"` } -// NewRoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID : Instantiate RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID (Generic Model Constructor) -func (*VpcV1) NewRoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID(id string) (_model *RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID, err error) { - _model = &RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID{ +// NewRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID : Instantiate RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID (Generic Model Constructor) +func (*VpcV1) NewRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID(id string) (_model *RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID, err error) { + _model = &RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID{ ID: core.StringPtr(id), } err = core.ValidateStruct(_model, "required parameters") @@ -130997,17 +129903,17 @@ func (*VpcV1) NewRoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionI return } -func (*RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID) isaRoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentity() bool { +func (*RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID) isaRouteNextHopPrototypeVPNGatewayConnectionIdentity() bool { return true } -func (*RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID) isaRoutePrototypeNextHop() bool { +func (*RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID) isaRouteNextHopPrototype() bool { return true } -// UnmarshalRoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID unmarshals an instance of RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID from the specified map of raw messages. -func UnmarshalRoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID) +// UnmarshalRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID unmarshals an instance of RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID from the specified map of raw messages. +func UnmarshalRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID(m map[string]json.RawMessage, result interface{}) (err error) { + obj := new(RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID) err = core.UnmarshalPrimitive(m, "id", &obj.ID) if err != nil { err = core.SDKErrorf(err, "", "id-error", common.GetComponentInfo()) @@ -131020,7 +129926,7 @@ func UnmarshalRoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIden // SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityByCRN : SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityByCRN struct // This model "extends" SecurityGroupRuleRemotePatchSecurityGroupIdentity type SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityByCRN struct { - // The security group's CRN. + // The CRN for this security group. CRN *string `json:"crn" validate:"required"` } @@ -131059,7 +129965,7 @@ func UnmarshalSecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIden // SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityByHref : SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityByHref struct // This model "extends" SecurityGroupRuleRemotePatchSecurityGroupIdentity type SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityByHref struct { - // The security group's canonical URL. + // The URL for this security group. Href *string `json:"href" validate:"required"` } @@ -131137,7 +130043,7 @@ func UnmarshalSecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIden // SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityByCRN : SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityByCRN struct // This model "extends" SecurityGroupRuleRemotePrototypeSecurityGroupIdentity type SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityByCRN struct { - // The security group's CRN. + // The CRN for this security group. CRN *string `json:"crn" validate:"required"` } @@ -131176,7 +130082,7 @@ func UnmarshalSecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroup // SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityByHref : SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityByHref struct // This model "extends" SecurityGroupRuleRemotePrototypeSecurityGroupIdentity type SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityByHref struct { - // The security group's canonical URL. + // The URL for this security group. Href *string `json:"href" validate:"required"` } @@ -131499,7 +130405,7 @@ type VPNGatewayConnectionRouteModeVPNGatewayConnectionStaticRouteMode struct { // connection will be brought down after its lifetime expires. EstablishMode *string `json:"establish_mode" validate:"required"` - // The VPN connection's canonical URL. + // The URL for this VPN gateway connection. Href *string `json:"href" validate:"required"` // The unique identifier for this VPN gateway connection. diff --git a/vpcv1/vpc_v1_examples_test.go b/vpcv1/vpc_v1_examples_test.go index 1e9d477..a5ef2bb 100644 --- a/vpcv1/vpc_v1_examples_test.go +++ b/vpcv1/vpc_v1_examples_test.go @@ -543,7 +543,7 @@ var _ = Describe(`VpcV1 Examples Tests`, func() { // begin-create_vpc_routing_table routePrototypeModel := &vpcv1.RoutePrototype{ Action: &action, - NextHop: &vpcv1.RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIP{ + NextHop: &vpcv1.RouteNextHopPrototypeRouteNextHopIP{ Address: &[]string{"192.168.3.4"}[0], }, Name: &routeName, @@ -654,7 +654,7 @@ var _ = Describe(`VpcV1 Examples Tests`, func() { RoutingTableID: &routingTableID, Destination: &destination, Zone: zoneIdentityModel, - NextHop: &vpcv1.RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIP{ + NextHop: &vpcv1.RouteNextHopPrototypeRouteNextHopIP{ Address: &address, }, } diff --git a/vpcv1/vpc_v1_test.go b/vpcv1/vpc_v1_test.go index faf7aa1..0654ef4 100644 --- a/vpcv1/vpc_v1_test.go +++ b/vpcv1/vpc_v1_test.go @@ -260,7 +260,7 @@ var _ = Describe(`VpcV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"first": {"href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs?limit=20"}, "limit": 20, "next": {"href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs?start=9d5a91a3e2cbd233b5a5b33436855ed1&limit=20"}, "total_count": 132, "vpcs": [{"classic_access": false, "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "cse_source_ips": [{"ip": {"address": "192.168.3.4"}, "zone": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}], "default_network_acl": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::network-acl:r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/network_acls/r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf", "id": "r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf", "name": "my-network-acl"}, "default_routing_table": {"deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/routing_tables/r006-6885e83f-03b2-4603-8a86-db2a0f55c840", "id": "r006-6885e83f-03b2-4603-8a86-db2a0f55c840", "name": "my-routing-table-1", "resource_type": "routing_table"}, "default_security_group": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271", "id": "r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271", "name": "my-security-group"}, "dns": {"enable_hub": false, "resolution_binding_count": 0, "resolver": {"servers": [{"address": "192.168.3.4", "zone_affinity": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}], "type": "delegated", "vpc": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "remote": {"account": {"id": "bb1b52262f7441a586f49068482f1e60", "resource_type": "account"}, "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "vpc"}}}, "health_reasons": [{"code": "dns_resolution_binding_failed", "message": "The VPC specified in the DNS resolution binding has been disconnected.", "more_info": "https://cloud.ibm.com/docs/vpc?topic=vpc-troubleshoot-hub-spoke-1"}], "health_state": "ok", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "vpc", "status": "available"}]}`) + fmt.Fprintf(res, "%s", `{"first": {"href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs?limit=20"}, "limit": 20, "next": {"href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs?start=9d5a91a3e2cbd233b5a5b33436855ed1&limit=20"}, "total_count": 132, "vpcs": [{"classic_access": false, "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "cse_source_ips": [{"ip": {"address": "192.168.3.4"}, "zone": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}], "default_network_acl": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::network-acl:r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/network_acls/r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf", "id": "r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf", "name": "my-network-acl"}, "default_routing_table": {"deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/routing_tables/r006-6885e83f-03b2-4603-8a86-db2a0f55c840", "id": "r006-6885e83f-03b2-4603-8a86-db2a0f55c840", "name": "my-routing-table-1", "resource_type": "routing_table"}, "default_security_group": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271", "id": "r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271", "name": "my-security-group"}, "dns": {"enable_hub": false, "resolution_binding_count": 0, "resolver": {"servers": [{"address": "192.168.3.4", "zone_affinity": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}], "type": "delegated", "vpc": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "remote": {"account": {"id": "bb1b52262f7441a586f49068482f1e60", "resource_type": "account"}, "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "vpc"}}}, "health_reasons": [{"code": "dns_resolution_binding_failed", "message": "The VPC specified in the DNS resolution binding has been disconnected.", "more_info": "https://cloud.ibm.com/docs/vpc?topic=vpc-troubleshoot-hub-1"}], "health_state": "ok", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "vpc", "status": "available"}]}`) })) }) It(`Invoke ListVpcs successfully with retries`, func() { @@ -324,7 +324,7 @@ var _ = Describe(`VpcV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"first": {"href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs?limit=20"}, "limit": 20, "next": {"href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs?start=9d5a91a3e2cbd233b5a5b33436855ed1&limit=20"}, "total_count": 132, "vpcs": [{"classic_access": false, "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "cse_source_ips": [{"ip": {"address": "192.168.3.4"}, "zone": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}], "default_network_acl": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::network-acl:r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/network_acls/r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf", "id": "r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf", "name": "my-network-acl"}, "default_routing_table": {"deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/routing_tables/r006-6885e83f-03b2-4603-8a86-db2a0f55c840", "id": "r006-6885e83f-03b2-4603-8a86-db2a0f55c840", "name": "my-routing-table-1", "resource_type": "routing_table"}, "default_security_group": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271", "id": "r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271", "name": "my-security-group"}, "dns": {"enable_hub": false, "resolution_binding_count": 0, "resolver": {"servers": [{"address": "192.168.3.4", "zone_affinity": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}], "type": "delegated", "vpc": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "remote": {"account": {"id": "bb1b52262f7441a586f49068482f1e60", "resource_type": "account"}, "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "vpc"}}}, "health_reasons": [{"code": "dns_resolution_binding_failed", "message": "The VPC specified in the DNS resolution binding has been disconnected.", "more_info": "https://cloud.ibm.com/docs/vpc?topic=vpc-troubleshoot-hub-spoke-1"}], "health_state": "ok", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "vpc", "status": "available"}]}`) + fmt.Fprintf(res, "%s", `{"first": {"href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs?limit=20"}, "limit": 20, "next": {"href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs?start=9d5a91a3e2cbd233b5a5b33436855ed1&limit=20"}, "total_count": 132, "vpcs": [{"classic_access": false, "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "cse_source_ips": [{"ip": {"address": "192.168.3.4"}, "zone": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}], "default_network_acl": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::network-acl:r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/network_acls/r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf", "id": "r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf", "name": "my-network-acl"}, "default_routing_table": {"deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/routing_tables/r006-6885e83f-03b2-4603-8a86-db2a0f55c840", "id": "r006-6885e83f-03b2-4603-8a86-db2a0f55c840", "name": "my-routing-table-1", "resource_type": "routing_table"}, "default_security_group": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271", "id": "r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271", "name": "my-security-group"}, "dns": {"enable_hub": false, "resolution_binding_count": 0, "resolver": {"servers": [{"address": "192.168.3.4", "zone_affinity": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}], "type": "delegated", "vpc": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "remote": {"account": {"id": "bb1b52262f7441a586f49068482f1e60", "resource_type": "account"}, "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "vpc"}}}, "health_reasons": [{"code": "dns_resolution_binding_failed", "message": "The VPC specified in the DNS resolution binding has been disconnected.", "more_info": "https://cloud.ibm.com/docs/vpc?topic=vpc-troubleshoot-hub-1"}], "health_state": "ok", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "vpc", "status": "available"}]}`) })) }) It(`Invoke ListVpcs successfully`, func() { @@ -468,9 +468,9 @@ var _ = Describe(`VpcV1`, func() { res.WriteHeader(200) requestNumber++ if requestNumber == 1 { - fmt.Fprintf(res, "%s", `{"next":{"href":"https://myhost.com/somePath?start=1"},"total_count":2,"limit":1,"vpcs":[{"classic_access":false,"created_at":"2019-01-01T12:00:00.000Z","crn":"crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b","cse_source_ips":[{"ip":{"address":"192.168.3.4"},"zone":{"href":"https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1","name":"us-south-1"}}],"default_network_acl":{"crn":"crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::network-acl:r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf","deleted":{"more_info":"https://cloud.ibm.com/apidocs/vpc#deleted-resources"},"href":"https://us-south.iaas.cloud.ibm.com/v1/network_acls/r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf","id":"r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf","name":"my-network-acl"},"default_routing_table":{"deleted":{"more_info":"https://cloud.ibm.com/apidocs/vpc#deleted-resources"},"href":"https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/routing_tables/r006-6885e83f-03b2-4603-8a86-db2a0f55c840","id":"r006-6885e83f-03b2-4603-8a86-db2a0f55c840","name":"my-routing-table-1","resource_type":"routing_table"},"default_security_group":{"crn":"crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271","deleted":{"more_info":"https://cloud.ibm.com/apidocs/vpc#deleted-resources"},"href":"https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271","id":"r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271","name":"my-security-group"},"dns":{"enable_hub":false,"resolution_binding_count":0,"resolver":{"servers":[{"address":"192.168.3.4","zone_affinity":{"href":"https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1","name":"us-south-1"}}],"type":"delegated","vpc":{"crn":"crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b","deleted":{"more_info":"https://cloud.ibm.com/apidocs/vpc#deleted-resources"},"href":"https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b","id":"r006-4727d842-f94f-4a2d-824a-9bc9b02c523b","name":"my-vpc","remote":{"account":{"id":"bb1b52262f7441a586f49068482f1e60","resource_type":"account"},"region":{"href":"https://us-south.iaas.cloud.ibm.com/v1/regions/us-south","name":"us-south"}},"resource_type":"vpc"}}},"health_reasons":[{"code":"dns_resolution_binding_failed","message":"The VPC specified in the DNS resolution binding has been disconnected.","more_info":"https://cloud.ibm.com/docs/vpc?topic=vpc-troubleshoot-hub-spoke-1"}],"health_state":"ok","href":"https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b","id":"r006-4727d842-f94f-4a2d-824a-9bc9b02c523b","name":"my-vpc","resource_group":{"href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345","id":"fee82deba12e4c0fb69c3b09d1f12345","name":"my-resource-group"},"resource_type":"vpc","status":"available"}]}`) + fmt.Fprintf(res, "%s", `{"next":{"href":"https://myhost.com/somePath?start=1"},"total_count":2,"limit":1,"vpcs":[{"classic_access":false,"created_at":"2019-01-01T12:00:00.000Z","crn":"crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b","cse_source_ips":[{"ip":{"address":"192.168.3.4"},"zone":{"href":"https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1","name":"us-south-1"}}],"default_network_acl":{"crn":"crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::network-acl:r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf","deleted":{"more_info":"https://cloud.ibm.com/apidocs/vpc#deleted-resources"},"href":"https://us-south.iaas.cloud.ibm.com/v1/network_acls/r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf","id":"r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf","name":"my-network-acl"},"default_routing_table":{"deleted":{"more_info":"https://cloud.ibm.com/apidocs/vpc#deleted-resources"},"href":"https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/routing_tables/r006-6885e83f-03b2-4603-8a86-db2a0f55c840","id":"r006-6885e83f-03b2-4603-8a86-db2a0f55c840","name":"my-routing-table-1","resource_type":"routing_table"},"default_security_group":{"crn":"crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271","deleted":{"more_info":"https://cloud.ibm.com/apidocs/vpc#deleted-resources"},"href":"https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271","id":"r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271","name":"my-security-group"},"dns":{"enable_hub":false,"resolution_binding_count":0,"resolver":{"servers":[{"address":"192.168.3.4","zone_affinity":{"href":"https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1","name":"us-south-1"}}],"type":"delegated","vpc":{"crn":"crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b","deleted":{"more_info":"https://cloud.ibm.com/apidocs/vpc#deleted-resources"},"href":"https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b","id":"r006-4727d842-f94f-4a2d-824a-9bc9b02c523b","name":"my-vpc","remote":{"account":{"id":"bb1b52262f7441a586f49068482f1e60","resource_type":"account"},"region":{"href":"https://us-south.iaas.cloud.ibm.com/v1/regions/us-south","name":"us-south"}},"resource_type":"vpc"}}},"health_reasons":[{"code":"dns_resolution_binding_failed","message":"The VPC specified in the DNS resolution binding has been disconnected.","more_info":"https://cloud.ibm.com/docs/vpc?topic=vpc-troubleshoot-hub-1"}],"health_state":"ok","href":"https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b","id":"r006-4727d842-f94f-4a2d-824a-9bc9b02c523b","name":"my-vpc","resource_group":{"href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345","id":"fee82deba12e4c0fb69c3b09d1f12345","name":"my-resource-group"},"resource_type":"vpc","status":"available"}]}`) } else if requestNumber == 2 { - fmt.Fprintf(res, "%s", `{"total_count":2,"limit":1,"vpcs":[{"classic_access":false,"created_at":"2019-01-01T12:00:00.000Z","crn":"crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b","cse_source_ips":[{"ip":{"address":"192.168.3.4"},"zone":{"href":"https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1","name":"us-south-1"}}],"default_network_acl":{"crn":"crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::network-acl:r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf","deleted":{"more_info":"https://cloud.ibm.com/apidocs/vpc#deleted-resources"},"href":"https://us-south.iaas.cloud.ibm.com/v1/network_acls/r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf","id":"r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf","name":"my-network-acl"},"default_routing_table":{"deleted":{"more_info":"https://cloud.ibm.com/apidocs/vpc#deleted-resources"},"href":"https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/routing_tables/r006-6885e83f-03b2-4603-8a86-db2a0f55c840","id":"r006-6885e83f-03b2-4603-8a86-db2a0f55c840","name":"my-routing-table-1","resource_type":"routing_table"},"default_security_group":{"crn":"crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271","deleted":{"more_info":"https://cloud.ibm.com/apidocs/vpc#deleted-resources"},"href":"https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271","id":"r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271","name":"my-security-group"},"dns":{"enable_hub":false,"resolution_binding_count":0,"resolver":{"servers":[{"address":"192.168.3.4","zone_affinity":{"href":"https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1","name":"us-south-1"}}],"type":"delegated","vpc":{"crn":"crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b","deleted":{"more_info":"https://cloud.ibm.com/apidocs/vpc#deleted-resources"},"href":"https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b","id":"r006-4727d842-f94f-4a2d-824a-9bc9b02c523b","name":"my-vpc","remote":{"account":{"id":"bb1b52262f7441a586f49068482f1e60","resource_type":"account"},"region":{"href":"https://us-south.iaas.cloud.ibm.com/v1/regions/us-south","name":"us-south"}},"resource_type":"vpc"}}},"health_reasons":[{"code":"dns_resolution_binding_failed","message":"The VPC specified in the DNS resolution binding has been disconnected.","more_info":"https://cloud.ibm.com/docs/vpc?topic=vpc-troubleshoot-hub-spoke-1"}],"health_state":"ok","href":"https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b","id":"r006-4727d842-f94f-4a2d-824a-9bc9b02c523b","name":"my-vpc","resource_group":{"href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345","id":"fee82deba12e4c0fb69c3b09d1f12345","name":"my-resource-group"},"resource_type":"vpc","status":"available"}]}`) + fmt.Fprintf(res, "%s", `{"total_count":2,"limit":1,"vpcs":[{"classic_access":false,"created_at":"2019-01-01T12:00:00.000Z","crn":"crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b","cse_source_ips":[{"ip":{"address":"192.168.3.4"},"zone":{"href":"https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1","name":"us-south-1"}}],"default_network_acl":{"crn":"crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::network-acl:r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf","deleted":{"more_info":"https://cloud.ibm.com/apidocs/vpc#deleted-resources"},"href":"https://us-south.iaas.cloud.ibm.com/v1/network_acls/r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf","id":"r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf","name":"my-network-acl"},"default_routing_table":{"deleted":{"more_info":"https://cloud.ibm.com/apidocs/vpc#deleted-resources"},"href":"https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/routing_tables/r006-6885e83f-03b2-4603-8a86-db2a0f55c840","id":"r006-6885e83f-03b2-4603-8a86-db2a0f55c840","name":"my-routing-table-1","resource_type":"routing_table"},"default_security_group":{"crn":"crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271","deleted":{"more_info":"https://cloud.ibm.com/apidocs/vpc#deleted-resources"},"href":"https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271","id":"r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271","name":"my-security-group"},"dns":{"enable_hub":false,"resolution_binding_count":0,"resolver":{"servers":[{"address":"192.168.3.4","zone_affinity":{"href":"https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1","name":"us-south-1"}}],"type":"delegated","vpc":{"crn":"crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b","deleted":{"more_info":"https://cloud.ibm.com/apidocs/vpc#deleted-resources"},"href":"https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b","id":"r006-4727d842-f94f-4a2d-824a-9bc9b02c523b","name":"my-vpc","remote":{"account":{"id":"bb1b52262f7441a586f49068482f1e60","resource_type":"account"},"region":{"href":"https://us-south.iaas.cloud.ibm.com/v1/regions/us-south","name":"us-south"}},"resource_type":"vpc"}}},"health_reasons":[{"code":"dns_resolution_binding_failed","message":"The VPC specified in the DNS resolution binding has been disconnected.","more_info":"https://cloud.ibm.com/docs/vpc?topic=vpc-troubleshoot-hub-1"}],"health_state":"ok","href":"https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b","id":"r006-4727d842-f94f-4a2d-824a-9bc9b02c523b","name":"my-vpc","resource_group":{"href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345","id":"fee82deba12e4c0fb69c3b09d1f12345","name":"my-resource-group"},"resource_type":"vpc","status":"available"}]}`) } else { res.WriteHeader(400) } @@ -642,7 +642,7 @@ var _ = Describe(`VpcV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(201) - fmt.Fprintf(res, "%s", `{"classic_access": false, "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "cse_source_ips": [{"ip": {"address": "192.168.3.4"}, "zone": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}], "default_network_acl": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::network-acl:r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/network_acls/r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf", "id": "r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf", "name": "my-network-acl"}, "default_routing_table": {"deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/routing_tables/r006-6885e83f-03b2-4603-8a86-db2a0f55c840", "id": "r006-6885e83f-03b2-4603-8a86-db2a0f55c840", "name": "my-routing-table-1", "resource_type": "routing_table"}, "default_security_group": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271", "id": "r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271", "name": "my-security-group"}, "dns": {"enable_hub": false, "resolution_binding_count": 0, "resolver": {"servers": [{"address": "192.168.3.4", "zone_affinity": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}], "type": "delegated", "vpc": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "remote": {"account": {"id": "bb1b52262f7441a586f49068482f1e60", "resource_type": "account"}, "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "vpc"}}}, "health_reasons": [{"code": "dns_resolution_binding_failed", "message": "The VPC specified in the DNS resolution binding has been disconnected.", "more_info": "https://cloud.ibm.com/docs/vpc?topic=vpc-troubleshoot-hub-spoke-1"}], "health_state": "ok", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "vpc", "status": "available"}`) + fmt.Fprintf(res, "%s", `{"classic_access": false, "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "cse_source_ips": [{"ip": {"address": "192.168.3.4"}, "zone": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}], "default_network_acl": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::network-acl:r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/network_acls/r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf", "id": "r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf", "name": "my-network-acl"}, "default_routing_table": {"deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/routing_tables/r006-6885e83f-03b2-4603-8a86-db2a0f55c840", "id": "r006-6885e83f-03b2-4603-8a86-db2a0f55c840", "name": "my-routing-table-1", "resource_type": "routing_table"}, "default_security_group": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271", "id": "r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271", "name": "my-security-group"}, "dns": {"enable_hub": false, "resolution_binding_count": 0, "resolver": {"servers": [{"address": "192.168.3.4", "zone_affinity": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}], "type": "delegated", "vpc": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "remote": {"account": {"id": "bb1b52262f7441a586f49068482f1e60", "resource_type": "account"}, "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "vpc"}}}, "health_reasons": [{"code": "dns_resolution_binding_failed", "message": "The VPC specified in the DNS resolution binding has been disconnected.", "more_info": "https://cloud.ibm.com/docs/vpc?topic=vpc-troubleshoot-hub-1"}], "health_state": "ok", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "vpc", "status": "available"}`) })) }) It(`Invoke CreateVPC successfully with retries`, func() { @@ -742,7 +742,7 @@ var _ = Describe(`VpcV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(201) - fmt.Fprintf(res, "%s", `{"classic_access": false, "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "cse_source_ips": [{"ip": {"address": "192.168.3.4"}, "zone": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}], "default_network_acl": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::network-acl:r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/network_acls/r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf", "id": "r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf", "name": "my-network-acl"}, "default_routing_table": {"deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/routing_tables/r006-6885e83f-03b2-4603-8a86-db2a0f55c840", "id": "r006-6885e83f-03b2-4603-8a86-db2a0f55c840", "name": "my-routing-table-1", "resource_type": "routing_table"}, "default_security_group": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271", "id": "r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271", "name": "my-security-group"}, "dns": {"enable_hub": false, "resolution_binding_count": 0, "resolver": {"servers": [{"address": "192.168.3.4", "zone_affinity": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}], "type": "delegated", "vpc": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "remote": {"account": {"id": "bb1b52262f7441a586f49068482f1e60", "resource_type": "account"}, "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "vpc"}}}, "health_reasons": [{"code": "dns_resolution_binding_failed", "message": "The VPC specified in the DNS resolution binding has been disconnected.", "more_info": "https://cloud.ibm.com/docs/vpc?topic=vpc-troubleshoot-hub-spoke-1"}], "health_state": "ok", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "vpc", "status": "available"}`) + fmt.Fprintf(res, "%s", `{"classic_access": false, "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "cse_source_ips": [{"ip": {"address": "192.168.3.4"}, "zone": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}], "default_network_acl": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::network-acl:r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/network_acls/r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf", "id": "r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf", "name": "my-network-acl"}, "default_routing_table": {"deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/routing_tables/r006-6885e83f-03b2-4603-8a86-db2a0f55c840", "id": "r006-6885e83f-03b2-4603-8a86-db2a0f55c840", "name": "my-routing-table-1", "resource_type": "routing_table"}, "default_security_group": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271", "id": "r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271", "name": "my-security-group"}, "dns": {"enable_hub": false, "resolution_binding_count": 0, "resolver": {"servers": [{"address": "192.168.3.4", "zone_affinity": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}], "type": "delegated", "vpc": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "remote": {"account": {"id": "bb1b52262f7441a586f49068482f1e60", "resource_type": "account"}, "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "vpc"}}}, "health_reasons": [{"code": "dns_resolution_binding_failed", "message": "The VPC specified in the DNS resolution binding has been disconnected.", "more_info": "https://cloud.ibm.com/docs/vpc?topic=vpc-troubleshoot-hub-1"}], "health_state": "ok", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "vpc", "status": "available"}`) })) }) It(`Invoke CreateVPC successfully`, func() { @@ -1061,7 +1061,7 @@ var _ = Describe(`VpcV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"classic_access": false, "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "cse_source_ips": [{"ip": {"address": "192.168.3.4"}, "zone": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}], "default_network_acl": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::network-acl:r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/network_acls/r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf", "id": "r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf", "name": "my-network-acl"}, "default_routing_table": {"deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/routing_tables/r006-6885e83f-03b2-4603-8a86-db2a0f55c840", "id": "r006-6885e83f-03b2-4603-8a86-db2a0f55c840", "name": "my-routing-table-1", "resource_type": "routing_table"}, "default_security_group": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271", "id": "r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271", "name": "my-security-group"}, "dns": {"enable_hub": false, "resolution_binding_count": 0, "resolver": {"servers": [{"address": "192.168.3.4", "zone_affinity": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}], "type": "delegated", "vpc": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "remote": {"account": {"id": "bb1b52262f7441a586f49068482f1e60", "resource_type": "account"}, "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "vpc"}}}, "health_reasons": [{"code": "dns_resolution_binding_failed", "message": "The VPC specified in the DNS resolution binding has been disconnected.", "more_info": "https://cloud.ibm.com/docs/vpc?topic=vpc-troubleshoot-hub-spoke-1"}], "health_state": "ok", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "vpc", "status": "available"}`) + fmt.Fprintf(res, "%s", `{"classic_access": false, "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "cse_source_ips": [{"ip": {"address": "192.168.3.4"}, "zone": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}], "default_network_acl": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::network-acl:r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/network_acls/r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf", "id": "r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf", "name": "my-network-acl"}, "default_routing_table": {"deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/routing_tables/r006-6885e83f-03b2-4603-8a86-db2a0f55c840", "id": "r006-6885e83f-03b2-4603-8a86-db2a0f55c840", "name": "my-routing-table-1", "resource_type": "routing_table"}, "default_security_group": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271", "id": "r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271", "name": "my-security-group"}, "dns": {"enable_hub": false, "resolution_binding_count": 0, "resolver": {"servers": [{"address": "192.168.3.4", "zone_affinity": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}], "type": "delegated", "vpc": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "remote": {"account": {"id": "bb1b52262f7441a586f49068482f1e60", "resource_type": "account"}, "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "vpc"}}}, "health_reasons": [{"code": "dns_resolution_binding_failed", "message": "The VPC specified in the DNS resolution binding has been disconnected.", "more_info": "https://cloud.ibm.com/docs/vpc?topic=vpc-troubleshoot-hub-1"}], "health_state": "ok", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "vpc", "status": "available"}`) })) }) It(`Invoke GetVPC successfully with retries`, func() { @@ -1118,7 +1118,7 @@ var _ = Describe(`VpcV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"classic_access": false, "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "cse_source_ips": [{"ip": {"address": "192.168.3.4"}, "zone": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}], "default_network_acl": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::network-acl:r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/network_acls/r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf", "id": "r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf", "name": "my-network-acl"}, "default_routing_table": {"deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/routing_tables/r006-6885e83f-03b2-4603-8a86-db2a0f55c840", "id": "r006-6885e83f-03b2-4603-8a86-db2a0f55c840", "name": "my-routing-table-1", "resource_type": "routing_table"}, "default_security_group": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271", "id": "r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271", "name": "my-security-group"}, "dns": {"enable_hub": false, "resolution_binding_count": 0, "resolver": {"servers": [{"address": "192.168.3.4", "zone_affinity": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}], "type": "delegated", "vpc": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "remote": {"account": {"id": "bb1b52262f7441a586f49068482f1e60", "resource_type": "account"}, "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "vpc"}}}, "health_reasons": [{"code": "dns_resolution_binding_failed", "message": "The VPC specified in the DNS resolution binding has been disconnected.", "more_info": "https://cloud.ibm.com/docs/vpc?topic=vpc-troubleshoot-hub-spoke-1"}], "health_state": "ok", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "vpc", "status": "available"}`) + fmt.Fprintf(res, "%s", `{"classic_access": false, "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "cse_source_ips": [{"ip": {"address": "192.168.3.4"}, "zone": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}], "default_network_acl": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::network-acl:r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/network_acls/r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf", "id": "r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf", "name": "my-network-acl"}, "default_routing_table": {"deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/routing_tables/r006-6885e83f-03b2-4603-8a86-db2a0f55c840", "id": "r006-6885e83f-03b2-4603-8a86-db2a0f55c840", "name": "my-routing-table-1", "resource_type": "routing_table"}, "default_security_group": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271", "id": "r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271", "name": "my-security-group"}, "dns": {"enable_hub": false, "resolution_binding_count": 0, "resolver": {"servers": [{"address": "192.168.3.4", "zone_affinity": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}], "type": "delegated", "vpc": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "remote": {"account": {"id": "bb1b52262f7441a586f49068482f1e60", "resource_type": "account"}, "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "vpc"}}}, "health_reasons": [{"code": "dns_resolution_binding_failed", "message": "The VPC specified in the DNS resolution binding has been disconnected.", "more_info": "https://cloud.ibm.com/docs/vpc?topic=vpc-troubleshoot-hub-1"}], "health_state": "ok", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "vpc", "status": "available"}`) })) }) It(`Invoke GetVPC successfully`, func() { @@ -1339,7 +1339,7 @@ var _ = Describe(`VpcV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"classic_access": false, "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "cse_source_ips": [{"ip": {"address": "192.168.3.4"}, "zone": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}], "default_network_acl": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::network-acl:r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/network_acls/r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf", "id": "r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf", "name": "my-network-acl"}, "default_routing_table": {"deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/routing_tables/r006-6885e83f-03b2-4603-8a86-db2a0f55c840", "id": "r006-6885e83f-03b2-4603-8a86-db2a0f55c840", "name": "my-routing-table-1", "resource_type": "routing_table"}, "default_security_group": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271", "id": "r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271", "name": "my-security-group"}, "dns": {"enable_hub": false, "resolution_binding_count": 0, "resolver": {"servers": [{"address": "192.168.3.4", "zone_affinity": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}], "type": "delegated", "vpc": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "remote": {"account": {"id": "bb1b52262f7441a586f49068482f1e60", "resource_type": "account"}, "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "vpc"}}}, "health_reasons": [{"code": "dns_resolution_binding_failed", "message": "The VPC specified in the DNS resolution binding has been disconnected.", "more_info": "https://cloud.ibm.com/docs/vpc?topic=vpc-troubleshoot-hub-spoke-1"}], "health_state": "ok", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "vpc", "status": "available"}`) + fmt.Fprintf(res, "%s", `{"classic_access": false, "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "cse_source_ips": [{"ip": {"address": "192.168.3.4"}, "zone": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}], "default_network_acl": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::network-acl:r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/network_acls/r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf", "id": "r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf", "name": "my-network-acl"}, "default_routing_table": {"deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/routing_tables/r006-6885e83f-03b2-4603-8a86-db2a0f55c840", "id": "r006-6885e83f-03b2-4603-8a86-db2a0f55c840", "name": "my-routing-table-1", "resource_type": "routing_table"}, "default_security_group": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271", "id": "r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271", "name": "my-security-group"}, "dns": {"enable_hub": false, "resolution_binding_count": 0, "resolver": {"servers": [{"address": "192.168.3.4", "zone_affinity": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}], "type": "delegated", "vpc": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "remote": {"account": {"id": "bb1b52262f7441a586f49068482f1e60", "resource_type": "account"}, "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "vpc"}}}, "health_reasons": [{"code": "dns_resolution_binding_failed", "message": "The VPC specified in the DNS resolution binding has been disconnected.", "more_info": "https://cloud.ibm.com/docs/vpc?topic=vpc-troubleshoot-hub-1"}], "health_state": "ok", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "vpc", "status": "available"}`) })) }) It(`Invoke UpdateVPC successfully with retries`, func() { @@ -1447,7 +1447,7 @@ var _ = Describe(`VpcV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"classic_access": false, "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "cse_source_ips": [{"ip": {"address": "192.168.3.4"}, "zone": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}], "default_network_acl": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::network-acl:r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/network_acls/r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf", "id": "r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf", "name": "my-network-acl"}, "default_routing_table": {"deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/routing_tables/r006-6885e83f-03b2-4603-8a86-db2a0f55c840", "id": "r006-6885e83f-03b2-4603-8a86-db2a0f55c840", "name": "my-routing-table-1", "resource_type": "routing_table"}, "default_security_group": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271", "id": "r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271", "name": "my-security-group"}, "dns": {"enable_hub": false, "resolution_binding_count": 0, "resolver": {"servers": [{"address": "192.168.3.4", "zone_affinity": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}], "type": "delegated", "vpc": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "remote": {"account": {"id": "bb1b52262f7441a586f49068482f1e60", "resource_type": "account"}, "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "vpc"}}}, "health_reasons": [{"code": "dns_resolution_binding_failed", "message": "The VPC specified in the DNS resolution binding has been disconnected.", "more_info": "https://cloud.ibm.com/docs/vpc?topic=vpc-troubleshoot-hub-spoke-1"}], "health_state": "ok", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "vpc", "status": "available"}`) + fmt.Fprintf(res, "%s", `{"classic_access": false, "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "cse_source_ips": [{"ip": {"address": "192.168.3.4"}, "zone": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}], "default_network_acl": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::network-acl:r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/network_acls/r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf", "id": "r006-a4e28308-8ee7-46ab-8108-9f881f22bdbf", "name": "my-network-acl"}, "default_routing_table": {"deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b/routing_tables/r006-6885e83f-03b2-4603-8a86-db2a0f55c840", "id": "r006-6885e83f-03b2-4603-8a86-db2a0f55c840", "name": "my-routing-table-1", "resource_type": "routing_table"}, "default_security_group": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::security-group:r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/security_groups/r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271", "id": "r006-be5df5ca-12a0-494b-907e-aa6ec2bfa271", "name": "my-security-group"}, "dns": {"enable_hub": false, "resolution_binding_count": 0, "resolver": {"servers": [{"address": "192.168.3.4", "zone_affinity": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}], "type": "delegated", "vpc": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "remote": {"account": {"id": "bb1b52262f7441a586f49068482f1e60", "resource_type": "account"}, "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "vpc"}}}, "health_reasons": [{"code": "dns_resolution_binding_failed", "message": "The VPC specified in the DNS resolution binding has been disconnected.", "more_info": "https://cloud.ibm.com/docs/vpc?topic=vpc-troubleshoot-hub-1"}], "health_state": "ok", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "vpc", "status": "available"}`) })) }) It(`Invoke UpdateVPC successfully`, func() { @@ -3584,7 +3584,7 @@ var _ = Describe(`VpcV1`, func() { Expect(req.URL.Query()["sort"]).To(Equal([]string{"name"})) 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{"testString"})) + Expect(req.URL.Query()["name"]).To(Equal([]string{"my-name"})) Expect(req.URL.Query()["vpc.crn"]).To(Equal([]string{"crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b"})) Expect(req.URL.Query()["vpc.name"]).To(Equal([]string{"my-vpc"})) Expect(req.URL.Query()["account.id"]).To(Equal([]string{"bb1b52262f7441a586f49068482f1e60"})) @@ -3608,7 +3608,7 @@ var _ = Describe(`VpcV1`, func() { listVPCDnsResolutionBindingsOptionsModel.Sort = core.StringPtr("name") listVPCDnsResolutionBindingsOptionsModel.Start = core.StringPtr("testString") listVPCDnsResolutionBindingsOptionsModel.Limit = core.Int64Ptr(int64(10)) - listVPCDnsResolutionBindingsOptionsModel.Name = core.StringPtr("testString") + listVPCDnsResolutionBindingsOptionsModel.Name = core.StringPtr("my-name") listVPCDnsResolutionBindingsOptionsModel.VPCCRN = core.StringPtr("crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b") listVPCDnsResolutionBindingsOptionsModel.VPCName = core.StringPtr("my-vpc") listVPCDnsResolutionBindingsOptionsModel.AccountID = core.StringPtr("bb1b52262f7441a586f49068482f1e60") @@ -3648,7 +3648,7 @@ var _ = Describe(`VpcV1`, func() { Expect(req.URL.Query()["sort"]).To(Equal([]string{"name"})) 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{"testString"})) + Expect(req.URL.Query()["name"]).To(Equal([]string{"my-name"})) Expect(req.URL.Query()["vpc.crn"]).To(Equal([]string{"crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b"})) Expect(req.URL.Query()["vpc.name"]).To(Equal([]string{"my-vpc"})) Expect(req.URL.Query()["account.id"]).To(Equal([]string{"bb1b52262f7441a586f49068482f1e60"})) @@ -3658,7 +3658,7 @@ var _ = Describe(`VpcV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"dns_resolution_bindings": [{"created_at": "2019-01-01T12:00:00.000Z", "endpoint_gateways": [{"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::endpoint-gateway:r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5", "href": "https://us-south.iaas.cloud.ibm.com/v1/endpoint_gateways/r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5", "id": "r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5", "name": "my-endpoint-gateway", "remote": {"account": {"id": "bb1b52262f7441a586f49068482f1e60", "resource_type": "account"}, "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "endpoint_gateway"}], "health_reasons": [{"code": "disconnected_from_bound_vpc", "message": "The VPC specified in the DNS resolution binding has been disconnected.", "more_info": "https://cloud.ibm.com/docs/vpc?topic=vpc-troubleshoot-hub-spoke-1"}], "health_state": "ok", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-982d72b7-db1b-4606-afb2-ed6bd4b0bed1/dns_resolution_bindings/r006-8a524686-fcf6-4947-a59b-188c1ed78ad1", "id": "r006-8a524686-fcf6-4947-a59b-188c1ed78ad1", "lifecycle_state": "stable", "name": "my-dns-resolution-binding", "resource_type": "vpc_dns_resolution_binding", "vpc": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "remote": {"account": {"id": "bb1b52262f7441a586f49068482f1e60", "resource_type": "account"}, "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "vpc"}}], "first": {"href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-982d72b7-db1b-4606-afb2-ed6bd4b0bed1/dns_resolution_bindings?limit=20"}, "limit": 20, "next": {"href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-982d72b7-db1b-4606-afb2-ed6bd4b0bed1/dns_resolution_bindings?start=9d5a91a3e2cbd233b5a5b33436855ed1&limit=20"}, "total_count": 132}`) + fmt.Fprintf(res, "%s", `{"dns_resolution_bindings": [{"created_at": "2019-01-01T12:00:00.000Z", "endpoint_gateways": [{"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::endpoint-gateway:r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5", "href": "https://us-south.iaas.cloud.ibm.com/v1/endpoint_gateways/r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5", "id": "r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5", "name": "my-endpoint-gateway", "remote": {"account": {"id": "bb1b52262f7441a586f49068482f1e60", "resource_type": "account"}, "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "endpoint_gateway"}], "health_reasons": [{"code": "disconnected_from_bound_vpc", "message": "The VPC specified in the DNS resolution binding has been disconnected.", "more_info": "https://cloud.ibm.com/docs/vpc?topic=vpc-troubleshoot-hub-1"}], "health_state": "ok", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-982d72b7-db1b-4606-afb2-ed6bd4b0bed1/dns_resolution_bindings/r006-8a524686-fcf6-4947-a59b-188c1ed78ad1", "id": "r006-8a524686-fcf6-4947-a59b-188c1ed78ad1", "lifecycle_state": "stable", "name": "my-dns-resolution-binding", "resource_type": "vpc_dns_resolution_binding", "vpc": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "remote": {"account": {"id": "bb1b52262f7441a586f49068482f1e60", "resource_type": "account"}, "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "vpc"}}], "first": {"href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-982d72b7-db1b-4606-afb2-ed6bd4b0bed1/dns_resolution_bindings?limit=20"}, "limit": 20, "next": {"href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-982d72b7-db1b-4606-afb2-ed6bd4b0bed1/dns_resolution_bindings?start=9d5a91a3e2cbd233b5a5b33436855ed1&limit=20"}, "total_count": 132}`) })) }) It(`Invoke ListVPCDnsResolutionBindings successfully with retries`, func() { @@ -3677,7 +3677,7 @@ var _ = Describe(`VpcV1`, func() { listVPCDnsResolutionBindingsOptionsModel.Sort = core.StringPtr("name") listVPCDnsResolutionBindingsOptionsModel.Start = core.StringPtr("testString") listVPCDnsResolutionBindingsOptionsModel.Limit = core.Int64Ptr(int64(10)) - listVPCDnsResolutionBindingsOptionsModel.Name = core.StringPtr("testString") + listVPCDnsResolutionBindingsOptionsModel.Name = core.StringPtr("my-name") listVPCDnsResolutionBindingsOptionsModel.VPCCRN = core.StringPtr("crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b") listVPCDnsResolutionBindingsOptionsModel.VPCName = core.StringPtr("my-vpc") listVPCDnsResolutionBindingsOptionsModel.AccountID = core.StringPtr("bb1b52262f7441a586f49068482f1e60") @@ -3722,14 +3722,14 @@ var _ = Describe(`VpcV1`, func() { Expect(req.URL.Query()["sort"]).To(Equal([]string{"name"})) 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{"testString"})) + Expect(req.URL.Query()["name"]).To(Equal([]string{"my-name"})) Expect(req.URL.Query()["vpc.crn"]).To(Equal([]string{"crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b"})) Expect(req.URL.Query()["vpc.name"]).To(Equal([]string{"my-vpc"})) Expect(req.URL.Query()["account.id"]).To(Equal([]string{"bb1b52262f7441a586f49068482f1e60"})) // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"dns_resolution_bindings": [{"created_at": "2019-01-01T12:00:00.000Z", "endpoint_gateways": [{"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::endpoint-gateway:r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5", "href": "https://us-south.iaas.cloud.ibm.com/v1/endpoint_gateways/r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5", "id": "r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5", "name": "my-endpoint-gateway", "remote": {"account": {"id": "bb1b52262f7441a586f49068482f1e60", "resource_type": "account"}, "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "endpoint_gateway"}], "health_reasons": [{"code": "disconnected_from_bound_vpc", "message": "The VPC specified in the DNS resolution binding has been disconnected.", "more_info": "https://cloud.ibm.com/docs/vpc?topic=vpc-troubleshoot-hub-spoke-1"}], "health_state": "ok", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-982d72b7-db1b-4606-afb2-ed6bd4b0bed1/dns_resolution_bindings/r006-8a524686-fcf6-4947-a59b-188c1ed78ad1", "id": "r006-8a524686-fcf6-4947-a59b-188c1ed78ad1", "lifecycle_state": "stable", "name": "my-dns-resolution-binding", "resource_type": "vpc_dns_resolution_binding", "vpc": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "remote": {"account": {"id": "bb1b52262f7441a586f49068482f1e60", "resource_type": "account"}, "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "vpc"}}], "first": {"href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-982d72b7-db1b-4606-afb2-ed6bd4b0bed1/dns_resolution_bindings?limit=20"}, "limit": 20, "next": {"href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-982d72b7-db1b-4606-afb2-ed6bd4b0bed1/dns_resolution_bindings?start=9d5a91a3e2cbd233b5a5b33436855ed1&limit=20"}, "total_count": 132}`) + fmt.Fprintf(res, "%s", `{"dns_resolution_bindings": [{"created_at": "2019-01-01T12:00:00.000Z", "endpoint_gateways": [{"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::endpoint-gateway:r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5", "href": "https://us-south.iaas.cloud.ibm.com/v1/endpoint_gateways/r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5", "id": "r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5", "name": "my-endpoint-gateway", "remote": {"account": {"id": "bb1b52262f7441a586f49068482f1e60", "resource_type": "account"}, "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "endpoint_gateway"}], "health_reasons": [{"code": "disconnected_from_bound_vpc", "message": "The VPC specified in the DNS resolution binding has been disconnected.", "more_info": "https://cloud.ibm.com/docs/vpc?topic=vpc-troubleshoot-hub-1"}], "health_state": "ok", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-982d72b7-db1b-4606-afb2-ed6bd4b0bed1/dns_resolution_bindings/r006-8a524686-fcf6-4947-a59b-188c1ed78ad1", "id": "r006-8a524686-fcf6-4947-a59b-188c1ed78ad1", "lifecycle_state": "stable", "name": "my-dns-resolution-binding", "resource_type": "vpc_dns_resolution_binding", "vpc": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "remote": {"account": {"id": "bb1b52262f7441a586f49068482f1e60", "resource_type": "account"}, "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "vpc"}}], "first": {"href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-982d72b7-db1b-4606-afb2-ed6bd4b0bed1/dns_resolution_bindings?limit=20"}, "limit": 20, "next": {"href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-982d72b7-db1b-4606-afb2-ed6bd4b0bed1/dns_resolution_bindings?start=9d5a91a3e2cbd233b5a5b33436855ed1&limit=20"}, "total_count": 132}`) })) }) It(`Invoke ListVPCDnsResolutionBindings successfully`, func() { @@ -3753,7 +3753,7 @@ var _ = Describe(`VpcV1`, func() { listVPCDnsResolutionBindingsOptionsModel.Sort = core.StringPtr("name") listVPCDnsResolutionBindingsOptionsModel.Start = core.StringPtr("testString") listVPCDnsResolutionBindingsOptionsModel.Limit = core.Int64Ptr(int64(10)) - listVPCDnsResolutionBindingsOptionsModel.Name = core.StringPtr("testString") + listVPCDnsResolutionBindingsOptionsModel.Name = core.StringPtr("my-name") listVPCDnsResolutionBindingsOptionsModel.VPCCRN = core.StringPtr("crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b") listVPCDnsResolutionBindingsOptionsModel.VPCName = core.StringPtr("my-vpc") listVPCDnsResolutionBindingsOptionsModel.AccountID = core.StringPtr("bb1b52262f7441a586f49068482f1e60") @@ -3781,7 +3781,7 @@ var _ = Describe(`VpcV1`, func() { listVPCDnsResolutionBindingsOptionsModel.Sort = core.StringPtr("name") listVPCDnsResolutionBindingsOptionsModel.Start = core.StringPtr("testString") listVPCDnsResolutionBindingsOptionsModel.Limit = core.Int64Ptr(int64(10)) - listVPCDnsResolutionBindingsOptionsModel.Name = core.StringPtr("testString") + listVPCDnsResolutionBindingsOptionsModel.Name = core.StringPtr("my-name") listVPCDnsResolutionBindingsOptionsModel.VPCCRN = core.StringPtr("crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b") listVPCDnsResolutionBindingsOptionsModel.VPCName = core.StringPtr("my-vpc") listVPCDnsResolutionBindingsOptionsModel.AccountID = core.StringPtr("bb1b52262f7441a586f49068482f1e60") @@ -3830,7 +3830,7 @@ var _ = Describe(`VpcV1`, func() { listVPCDnsResolutionBindingsOptionsModel.Sort = core.StringPtr("name") listVPCDnsResolutionBindingsOptionsModel.Start = core.StringPtr("testString") listVPCDnsResolutionBindingsOptionsModel.Limit = core.Int64Ptr(int64(10)) - listVPCDnsResolutionBindingsOptionsModel.Name = core.StringPtr("testString") + listVPCDnsResolutionBindingsOptionsModel.Name = core.StringPtr("my-name") listVPCDnsResolutionBindingsOptionsModel.VPCCRN = core.StringPtr("crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b") listVPCDnsResolutionBindingsOptionsModel.VPCName = core.StringPtr("my-vpc") listVPCDnsResolutionBindingsOptionsModel.AccountID = core.StringPtr("bb1b52262f7441a586f49068482f1e60") @@ -3892,9 +3892,9 @@ var _ = Describe(`VpcV1`, func() { res.WriteHeader(200) requestNumber++ if requestNumber == 1 { - fmt.Fprintf(res, "%s", `{"next":{"href":"https://myhost.com/somePath?start=1"},"total_count":2,"limit":1,"dns_resolution_bindings":[{"created_at":"2019-01-01T12:00:00.000Z","endpoint_gateways":[{"crn":"crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::endpoint-gateway:r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5","href":"https://us-south.iaas.cloud.ibm.com/v1/endpoint_gateways/r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5","id":"r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5","name":"my-endpoint-gateway","remote":{"account":{"id":"bb1b52262f7441a586f49068482f1e60","resource_type":"account"},"region":{"href":"https://us-south.iaas.cloud.ibm.com/v1/regions/us-south","name":"us-south"}},"resource_type":"endpoint_gateway"}],"health_reasons":[{"code":"disconnected_from_bound_vpc","message":"The VPC specified in the DNS resolution binding has been disconnected.","more_info":"https://cloud.ibm.com/docs/vpc?topic=vpc-troubleshoot-hub-spoke-1"}],"health_state":"ok","href":"https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-982d72b7-db1b-4606-afb2-ed6bd4b0bed1/dns_resolution_bindings/r006-8a524686-fcf6-4947-a59b-188c1ed78ad1","id":"r006-8a524686-fcf6-4947-a59b-188c1ed78ad1","lifecycle_state":"stable","name":"my-dns-resolution-binding","resource_type":"vpc_dns_resolution_binding","vpc":{"crn":"crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b","href":"https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b","id":"r006-4727d842-f94f-4a2d-824a-9bc9b02c523b","name":"my-vpc","remote":{"account":{"id":"bb1b52262f7441a586f49068482f1e60","resource_type":"account"},"region":{"href":"https://us-south.iaas.cloud.ibm.com/v1/regions/us-south","name":"us-south"}},"resource_type":"vpc"}}]}`) + fmt.Fprintf(res, "%s", `{"next":{"href":"https://myhost.com/somePath?start=1"},"total_count":2,"limit":1,"dns_resolution_bindings":[{"created_at":"2019-01-01T12:00:00.000Z","endpoint_gateways":[{"crn":"crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::endpoint-gateway:r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5","href":"https://us-south.iaas.cloud.ibm.com/v1/endpoint_gateways/r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5","id":"r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5","name":"my-endpoint-gateway","remote":{"account":{"id":"bb1b52262f7441a586f49068482f1e60","resource_type":"account"},"region":{"href":"https://us-south.iaas.cloud.ibm.com/v1/regions/us-south","name":"us-south"}},"resource_type":"endpoint_gateway"}],"health_reasons":[{"code":"disconnected_from_bound_vpc","message":"The VPC specified in the DNS resolution binding has been disconnected.","more_info":"https://cloud.ibm.com/docs/vpc?topic=vpc-troubleshoot-hub-1"}],"health_state":"ok","href":"https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-982d72b7-db1b-4606-afb2-ed6bd4b0bed1/dns_resolution_bindings/r006-8a524686-fcf6-4947-a59b-188c1ed78ad1","id":"r006-8a524686-fcf6-4947-a59b-188c1ed78ad1","lifecycle_state":"stable","name":"my-dns-resolution-binding","resource_type":"vpc_dns_resolution_binding","vpc":{"crn":"crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b","href":"https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b","id":"r006-4727d842-f94f-4a2d-824a-9bc9b02c523b","name":"my-vpc","remote":{"account":{"id":"bb1b52262f7441a586f49068482f1e60","resource_type":"account"},"region":{"href":"https://us-south.iaas.cloud.ibm.com/v1/regions/us-south","name":"us-south"}},"resource_type":"vpc"}}]}`) } else if requestNumber == 2 { - fmt.Fprintf(res, "%s", `{"total_count":2,"limit":1,"dns_resolution_bindings":[{"created_at":"2019-01-01T12:00:00.000Z","endpoint_gateways":[{"crn":"crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::endpoint-gateway:r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5","href":"https://us-south.iaas.cloud.ibm.com/v1/endpoint_gateways/r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5","id":"r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5","name":"my-endpoint-gateway","remote":{"account":{"id":"bb1b52262f7441a586f49068482f1e60","resource_type":"account"},"region":{"href":"https://us-south.iaas.cloud.ibm.com/v1/regions/us-south","name":"us-south"}},"resource_type":"endpoint_gateway"}],"health_reasons":[{"code":"disconnected_from_bound_vpc","message":"The VPC specified in the DNS resolution binding has been disconnected.","more_info":"https://cloud.ibm.com/docs/vpc?topic=vpc-troubleshoot-hub-spoke-1"}],"health_state":"ok","href":"https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-982d72b7-db1b-4606-afb2-ed6bd4b0bed1/dns_resolution_bindings/r006-8a524686-fcf6-4947-a59b-188c1ed78ad1","id":"r006-8a524686-fcf6-4947-a59b-188c1ed78ad1","lifecycle_state":"stable","name":"my-dns-resolution-binding","resource_type":"vpc_dns_resolution_binding","vpc":{"crn":"crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b","href":"https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b","id":"r006-4727d842-f94f-4a2d-824a-9bc9b02c523b","name":"my-vpc","remote":{"account":{"id":"bb1b52262f7441a586f49068482f1e60","resource_type":"account"},"region":{"href":"https://us-south.iaas.cloud.ibm.com/v1/regions/us-south","name":"us-south"}},"resource_type":"vpc"}}]}`) + fmt.Fprintf(res, "%s", `{"total_count":2,"limit":1,"dns_resolution_bindings":[{"created_at":"2019-01-01T12:00:00.000Z","endpoint_gateways":[{"crn":"crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::endpoint-gateway:r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5","href":"https://us-south.iaas.cloud.ibm.com/v1/endpoint_gateways/r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5","id":"r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5","name":"my-endpoint-gateway","remote":{"account":{"id":"bb1b52262f7441a586f49068482f1e60","resource_type":"account"},"region":{"href":"https://us-south.iaas.cloud.ibm.com/v1/regions/us-south","name":"us-south"}},"resource_type":"endpoint_gateway"}],"health_reasons":[{"code":"disconnected_from_bound_vpc","message":"The VPC specified in the DNS resolution binding has been disconnected.","more_info":"https://cloud.ibm.com/docs/vpc?topic=vpc-troubleshoot-hub-1"}],"health_state":"ok","href":"https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-982d72b7-db1b-4606-afb2-ed6bd4b0bed1/dns_resolution_bindings/r006-8a524686-fcf6-4947-a59b-188c1ed78ad1","id":"r006-8a524686-fcf6-4947-a59b-188c1ed78ad1","lifecycle_state":"stable","name":"my-dns-resolution-binding","resource_type":"vpc_dns_resolution_binding","vpc":{"crn":"crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b","href":"https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b","id":"r006-4727d842-f94f-4a2d-824a-9bc9b02c523b","name":"my-vpc","remote":{"account":{"id":"bb1b52262f7441a586f49068482f1e60","resource_type":"account"},"region":{"href":"https://us-south.iaas.cloud.ibm.com/v1/regions/us-south","name":"us-south"}},"resource_type":"vpc"}}]}`) } else { res.WriteHeader(400) } @@ -3913,7 +3913,7 @@ var _ = Describe(`VpcV1`, func() { VPCID: core.StringPtr("testString"), Sort: core.StringPtr("name"), Limit: core.Int64Ptr(int64(10)), - Name: core.StringPtr("testString"), + Name: core.StringPtr("my-name"), VPCCRN: core.StringPtr("crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b"), VPCName: core.StringPtr("my-vpc"), AccountID: core.StringPtr("bb1b52262f7441a586f49068482f1e60"), @@ -3945,7 +3945,7 @@ var _ = Describe(`VpcV1`, func() { VPCID: core.StringPtr("testString"), Sort: core.StringPtr("name"), Limit: core.Int64Ptr(int64(10)), - Name: core.StringPtr("testString"), + Name: core.StringPtr("my-name"), VPCCRN: core.StringPtr("crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b"), VPCName: core.StringPtr("my-vpc"), AccountID: core.StringPtr("bb1b52262f7441a586f49068482f1e60"), @@ -4053,7 +4053,7 @@ var _ = Describe(`VpcV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(201) - fmt.Fprintf(res, "%s", `{"created_at": "2019-01-01T12:00:00.000Z", "endpoint_gateways": [{"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::endpoint-gateway:r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5", "href": "https://us-south.iaas.cloud.ibm.com/v1/endpoint_gateways/r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5", "id": "r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5", "name": "my-endpoint-gateway", "remote": {"account": {"id": "bb1b52262f7441a586f49068482f1e60", "resource_type": "account"}, "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "endpoint_gateway"}], "health_reasons": [{"code": "disconnected_from_bound_vpc", "message": "The VPC specified in the DNS resolution binding has been disconnected.", "more_info": "https://cloud.ibm.com/docs/vpc?topic=vpc-troubleshoot-hub-spoke-1"}], "health_state": "ok", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-982d72b7-db1b-4606-afb2-ed6bd4b0bed1/dns_resolution_bindings/r006-8a524686-fcf6-4947-a59b-188c1ed78ad1", "id": "r006-8a524686-fcf6-4947-a59b-188c1ed78ad1", "lifecycle_state": "stable", "name": "my-dns-resolution-binding", "resource_type": "vpc_dns_resolution_binding", "vpc": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "remote": {"account": {"id": "bb1b52262f7441a586f49068482f1e60", "resource_type": "account"}, "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "vpc"}}`) + fmt.Fprintf(res, "%s", `{"created_at": "2019-01-01T12:00:00.000Z", "endpoint_gateways": [{"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::endpoint-gateway:r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5", "href": "https://us-south.iaas.cloud.ibm.com/v1/endpoint_gateways/r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5", "id": "r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5", "name": "my-endpoint-gateway", "remote": {"account": {"id": "bb1b52262f7441a586f49068482f1e60", "resource_type": "account"}, "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "endpoint_gateway"}], "health_reasons": [{"code": "disconnected_from_bound_vpc", "message": "The VPC specified in the DNS resolution binding has been disconnected.", "more_info": "https://cloud.ibm.com/docs/vpc?topic=vpc-troubleshoot-hub-1"}], "health_state": "ok", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-982d72b7-db1b-4606-afb2-ed6bd4b0bed1/dns_resolution_bindings/r006-8a524686-fcf6-4947-a59b-188c1ed78ad1", "id": "r006-8a524686-fcf6-4947-a59b-188c1ed78ad1", "lifecycle_state": "stable", "name": "my-dns-resolution-binding", "resource_type": "vpc_dns_resolution_binding", "vpc": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "remote": {"account": {"id": "bb1b52262f7441a586f49068482f1e60", "resource_type": "account"}, "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "vpc"}}`) })) }) It(`Invoke CreateVPCDnsResolutionBinding successfully with retries`, func() { @@ -4132,7 +4132,7 @@ var _ = Describe(`VpcV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(201) - fmt.Fprintf(res, "%s", `{"created_at": "2019-01-01T12:00:00.000Z", "endpoint_gateways": [{"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::endpoint-gateway:r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5", "href": "https://us-south.iaas.cloud.ibm.com/v1/endpoint_gateways/r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5", "id": "r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5", "name": "my-endpoint-gateway", "remote": {"account": {"id": "bb1b52262f7441a586f49068482f1e60", "resource_type": "account"}, "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "endpoint_gateway"}], "health_reasons": [{"code": "disconnected_from_bound_vpc", "message": "The VPC specified in the DNS resolution binding has been disconnected.", "more_info": "https://cloud.ibm.com/docs/vpc?topic=vpc-troubleshoot-hub-spoke-1"}], "health_state": "ok", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-982d72b7-db1b-4606-afb2-ed6bd4b0bed1/dns_resolution_bindings/r006-8a524686-fcf6-4947-a59b-188c1ed78ad1", "id": "r006-8a524686-fcf6-4947-a59b-188c1ed78ad1", "lifecycle_state": "stable", "name": "my-dns-resolution-binding", "resource_type": "vpc_dns_resolution_binding", "vpc": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "remote": {"account": {"id": "bb1b52262f7441a586f49068482f1e60", "resource_type": "account"}, "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "vpc"}}`) + fmt.Fprintf(res, "%s", `{"created_at": "2019-01-01T12:00:00.000Z", "endpoint_gateways": [{"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::endpoint-gateway:r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5", "href": "https://us-south.iaas.cloud.ibm.com/v1/endpoint_gateways/r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5", "id": "r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5", "name": "my-endpoint-gateway", "remote": {"account": {"id": "bb1b52262f7441a586f49068482f1e60", "resource_type": "account"}, "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "endpoint_gateway"}], "health_reasons": [{"code": "disconnected_from_bound_vpc", "message": "The VPC specified in the DNS resolution binding has been disconnected.", "more_info": "https://cloud.ibm.com/docs/vpc?topic=vpc-troubleshoot-hub-1"}], "health_state": "ok", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-982d72b7-db1b-4606-afb2-ed6bd4b0bed1/dns_resolution_bindings/r006-8a524686-fcf6-4947-a59b-188c1ed78ad1", "id": "r006-8a524686-fcf6-4947-a59b-188c1ed78ad1", "lifecycle_state": "stable", "name": "my-dns-resolution-binding", "resource_type": "vpc_dns_resolution_binding", "vpc": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "remote": {"account": {"id": "bb1b52262f7441a586f49068482f1e60", "resource_type": "account"}, "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "vpc"}}`) })) }) It(`Invoke CreateVPCDnsResolutionBinding successfully`, func() { @@ -4319,7 +4319,7 @@ var _ = Describe(`VpcV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(202) - fmt.Fprintf(res, "%s", `{"created_at": "2019-01-01T12:00:00.000Z", "endpoint_gateways": [{"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::endpoint-gateway:r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5", "href": "https://us-south.iaas.cloud.ibm.com/v1/endpoint_gateways/r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5", "id": "r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5", "name": "my-endpoint-gateway", "remote": {"account": {"id": "bb1b52262f7441a586f49068482f1e60", "resource_type": "account"}, "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "endpoint_gateway"}], "health_reasons": [{"code": "disconnected_from_bound_vpc", "message": "The VPC specified in the DNS resolution binding has been disconnected.", "more_info": "https://cloud.ibm.com/docs/vpc?topic=vpc-troubleshoot-hub-spoke-1"}], "health_state": "ok", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-982d72b7-db1b-4606-afb2-ed6bd4b0bed1/dns_resolution_bindings/r006-8a524686-fcf6-4947-a59b-188c1ed78ad1", "id": "r006-8a524686-fcf6-4947-a59b-188c1ed78ad1", "lifecycle_state": "stable", "name": "my-dns-resolution-binding", "resource_type": "vpc_dns_resolution_binding", "vpc": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "remote": {"account": {"id": "bb1b52262f7441a586f49068482f1e60", "resource_type": "account"}, "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "vpc"}}`) + fmt.Fprintf(res, "%s", `{"created_at": "2019-01-01T12:00:00.000Z", "endpoint_gateways": [{"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::endpoint-gateway:r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5", "href": "https://us-south.iaas.cloud.ibm.com/v1/endpoint_gateways/r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5", "id": "r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5", "name": "my-endpoint-gateway", "remote": {"account": {"id": "bb1b52262f7441a586f49068482f1e60", "resource_type": "account"}, "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "endpoint_gateway"}], "health_reasons": [{"code": "disconnected_from_bound_vpc", "message": "The VPC specified in the DNS resolution binding has been disconnected.", "more_info": "https://cloud.ibm.com/docs/vpc?topic=vpc-troubleshoot-hub-1"}], "health_state": "ok", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-982d72b7-db1b-4606-afb2-ed6bd4b0bed1/dns_resolution_bindings/r006-8a524686-fcf6-4947-a59b-188c1ed78ad1", "id": "r006-8a524686-fcf6-4947-a59b-188c1ed78ad1", "lifecycle_state": "stable", "name": "my-dns-resolution-binding", "resource_type": "vpc_dns_resolution_binding", "vpc": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "remote": {"account": {"id": "bb1b52262f7441a586f49068482f1e60", "resource_type": "account"}, "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "vpc"}}`) })) }) It(`Invoke DeleteVPCDnsResolutionBinding successfully with retries`, func() { @@ -4377,7 +4377,7 @@ var _ = Describe(`VpcV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(202) - fmt.Fprintf(res, "%s", `{"created_at": "2019-01-01T12:00:00.000Z", "endpoint_gateways": [{"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::endpoint-gateway:r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5", "href": "https://us-south.iaas.cloud.ibm.com/v1/endpoint_gateways/r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5", "id": "r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5", "name": "my-endpoint-gateway", "remote": {"account": {"id": "bb1b52262f7441a586f49068482f1e60", "resource_type": "account"}, "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "endpoint_gateway"}], "health_reasons": [{"code": "disconnected_from_bound_vpc", "message": "The VPC specified in the DNS resolution binding has been disconnected.", "more_info": "https://cloud.ibm.com/docs/vpc?topic=vpc-troubleshoot-hub-spoke-1"}], "health_state": "ok", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-982d72b7-db1b-4606-afb2-ed6bd4b0bed1/dns_resolution_bindings/r006-8a524686-fcf6-4947-a59b-188c1ed78ad1", "id": "r006-8a524686-fcf6-4947-a59b-188c1ed78ad1", "lifecycle_state": "stable", "name": "my-dns-resolution-binding", "resource_type": "vpc_dns_resolution_binding", "vpc": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "remote": {"account": {"id": "bb1b52262f7441a586f49068482f1e60", "resource_type": "account"}, "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "vpc"}}`) + fmt.Fprintf(res, "%s", `{"created_at": "2019-01-01T12:00:00.000Z", "endpoint_gateways": [{"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::endpoint-gateway:r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5", "href": "https://us-south.iaas.cloud.ibm.com/v1/endpoint_gateways/r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5", "id": "r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5", "name": "my-endpoint-gateway", "remote": {"account": {"id": "bb1b52262f7441a586f49068482f1e60", "resource_type": "account"}, "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "endpoint_gateway"}], "health_reasons": [{"code": "disconnected_from_bound_vpc", "message": "The VPC specified in the DNS resolution binding has been disconnected.", "more_info": "https://cloud.ibm.com/docs/vpc?topic=vpc-troubleshoot-hub-1"}], "health_state": "ok", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-982d72b7-db1b-4606-afb2-ed6bd4b0bed1/dns_resolution_bindings/r006-8a524686-fcf6-4947-a59b-188c1ed78ad1", "id": "r006-8a524686-fcf6-4947-a59b-188c1ed78ad1", "lifecycle_state": "stable", "name": "my-dns-resolution-binding", "resource_type": "vpc_dns_resolution_binding", "vpc": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "remote": {"account": {"id": "bb1b52262f7441a586f49068482f1e60", "resource_type": "account"}, "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "vpc"}}`) })) }) It(`Invoke DeleteVPCDnsResolutionBinding successfully`, func() { @@ -4549,7 +4549,7 @@ var _ = Describe(`VpcV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"created_at": "2019-01-01T12:00:00.000Z", "endpoint_gateways": [{"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::endpoint-gateway:r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5", "href": "https://us-south.iaas.cloud.ibm.com/v1/endpoint_gateways/r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5", "id": "r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5", "name": "my-endpoint-gateway", "remote": {"account": {"id": "bb1b52262f7441a586f49068482f1e60", "resource_type": "account"}, "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "endpoint_gateway"}], "health_reasons": [{"code": "disconnected_from_bound_vpc", "message": "The VPC specified in the DNS resolution binding has been disconnected.", "more_info": "https://cloud.ibm.com/docs/vpc?topic=vpc-troubleshoot-hub-spoke-1"}], "health_state": "ok", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-982d72b7-db1b-4606-afb2-ed6bd4b0bed1/dns_resolution_bindings/r006-8a524686-fcf6-4947-a59b-188c1ed78ad1", "id": "r006-8a524686-fcf6-4947-a59b-188c1ed78ad1", "lifecycle_state": "stable", "name": "my-dns-resolution-binding", "resource_type": "vpc_dns_resolution_binding", "vpc": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "remote": {"account": {"id": "bb1b52262f7441a586f49068482f1e60", "resource_type": "account"}, "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "vpc"}}`) + fmt.Fprintf(res, "%s", `{"created_at": "2019-01-01T12:00:00.000Z", "endpoint_gateways": [{"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::endpoint-gateway:r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5", "href": "https://us-south.iaas.cloud.ibm.com/v1/endpoint_gateways/r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5", "id": "r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5", "name": "my-endpoint-gateway", "remote": {"account": {"id": "bb1b52262f7441a586f49068482f1e60", "resource_type": "account"}, "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "endpoint_gateway"}], "health_reasons": [{"code": "disconnected_from_bound_vpc", "message": "The VPC specified in the DNS resolution binding has been disconnected.", "more_info": "https://cloud.ibm.com/docs/vpc?topic=vpc-troubleshoot-hub-1"}], "health_state": "ok", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-982d72b7-db1b-4606-afb2-ed6bd4b0bed1/dns_resolution_bindings/r006-8a524686-fcf6-4947-a59b-188c1ed78ad1", "id": "r006-8a524686-fcf6-4947-a59b-188c1ed78ad1", "lifecycle_state": "stable", "name": "my-dns-resolution-binding", "resource_type": "vpc_dns_resolution_binding", "vpc": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "remote": {"account": {"id": "bb1b52262f7441a586f49068482f1e60", "resource_type": "account"}, "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "vpc"}}`) })) }) It(`Invoke GetVPCDnsResolutionBinding successfully with retries`, func() { @@ -4607,7 +4607,7 @@ var _ = Describe(`VpcV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"created_at": "2019-01-01T12:00:00.000Z", "endpoint_gateways": [{"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::endpoint-gateway:r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5", "href": "https://us-south.iaas.cloud.ibm.com/v1/endpoint_gateways/r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5", "id": "r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5", "name": "my-endpoint-gateway", "remote": {"account": {"id": "bb1b52262f7441a586f49068482f1e60", "resource_type": "account"}, "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "endpoint_gateway"}], "health_reasons": [{"code": "disconnected_from_bound_vpc", "message": "The VPC specified in the DNS resolution binding has been disconnected.", "more_info": "https://cloud.ibm.com/docs/vpc?topic=vpc-troubleshoot-hub-spoke-1"}], "health_state": "ok", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-982d72b7-db1b-4606-afb2-ed6bd4b0bed1/dns_resolution_bindings/r006-8a524686-fcf6-4947-a59b-188c1ed78ad1", "id": "r006-8a524686-fcf6-4947-a59b-188c1ed78ad1", "lifecycle_state": "stable", "name": "my-dns-resolution-binding", "resource_type": "vpc_dns_resolution_binding", "vpc": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "remote": {"account": {"id": "bb1b52262f7441a586f49068482f1e60", "resource_type": "account"}, "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "vpc"}}`) + fmt.Fprintf(res, "%s", `{"created_at": "2019-01-01T12:00:00.000Z", "endpoint_gateways": [{"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::endpoint-gateway:r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5", "href": "https://us-south.iaas.cloud.ibm.com/v1/endpoint_gateways/r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5", "id": "r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5", "name": "my-endpoint-gateway", "remote": {"account": {"id": "bb1b52262f7441a586f49068482f1e60", "resource_type": "account"}, "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "endpoint_gateway"}], "health_reasons": [{"code": "disconnected_from_bound_vpc", "message": "The VPC specified in the DNS resolution binding has been disconnected.", "more_info": "https://cloud.ibm.com/docs/vpc?topic=vpc-troubleshoot-hub-1"}], "health_state": "ok", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-982d72b7-db1b-4606-afb2-ed6bd4b0bed1/dns_resolution_bindings/r006-8a524686-fcf6-4947-a59b-188c1ed78ad1", "id": "r006-8a524686-fcf6-4947-a59b-188c1ed78ad1", "lifecycle_state": "stable", "name": "my-dns-resolution-binding", "resource_type": "vpc_dns_resolution_binding", "vpc": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "remote": {"account": {"id": "bb1b52262f7441a586f49068482f1e60", "resource_type": "account"}, "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "vpc"}}`) })) }) It(`Invoke GetVPCDnsResolutionBinding successfully`, func() { @@ -4802,7 +4802,7 @@ var _ = Describe(`VpcV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"created_at": "2019-01-01T12:00:00.000Z", "endpoint_gateways": [{"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::endpoint-gateway:r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5", "href": "https://us-south.iaas.cloud.ibm.com/v1/endpoint_gateways/r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5", "id": "r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5", "name": "my-endpoint-gateway", "remote": {"account": {"id": "bb1b52262f7441a586f49068482f1e60", "resource_type": "account"}, "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "endpoint_gateway"}], "health_reasons": [{"code": "disconnected_from_bound_vpc", "message": "The VPC specified in the DNS resolution binding has been disconnected.", "more_info": "https://cloud.ibm.com/docs/vpc?topic=vpc-troubleshoot-hub-spoke-1"}], "health_state": "ok", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-982d72b7-db1b-4606-afb2-ed6bd4b0bed1/dns_resolution_bindings/r006-8a524686-fcf6-4947-a59b-188c1ed78ad1", "id": "r006-8a524686-fcf6-4947-a59b-188c1ed78ad1", "lifecycle_state": "stable", "name": "my-dns-resolution-binding", "resource_type": "vpc_dns_resolution_binding", "vpc": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "remote": {"account": {"id": "bb1b52262f7441a586f49068482f1e60", "resource_type": "account"}, "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "vpc"}}`) + fmt.Fprintf(res, "%s", `{"created_at": "2019-01-01T12:00:00.000Z", "endpoint_gateways": [{"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::endpoint-gateway:r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5", "href": "https://us-south.iaas.cloud.ibm.com/v1/endpoint_gateways/r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5", "id": "r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5", "name": "my-endpoint-gateway", "remote": {"account": {"id": "bb1b52262f7441a586f49068482f1e60", "resource_type": "account"}, "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "endpoint_gateway"}], "health_reasons": [{"code": "disconnected_from_bound_vpc", "message": "The VPC specified in the DNS resolution binding has been disconnected.", "more_info": "https://cloud.ibm.com/docs/vpc?topic=vpc-troubleshoot-hub-1"}], "health_state": "ok", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-982d72b7-db1b-4606-afb2-ed6bd4b0bed1/dns_resolution_bindings/r006-8a524686-fcf6-4947-a59b-188c1ed78ad1", "id": "r006-8a524686-fcf6-4947-a59b-188c1ed78ad1", "lifecycle_state": "stable", "name": "my-dns-resolution-binding", "resource_type": "vpc_dns_resolution_binding", "vpc": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "remote": {"account": {"id": "bb1b52262f7441a586f49068482f1e60", "resource_type": "account"}, "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "vpc"}}`) })) }) It(`Invoke UpdateVPCDnsResolutionBinding successfully with retries`, func() { @@ -4883,7 +4883,7 @@ var _ = Describe(`VpcV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"created_at": "2019-01-01T12:00:00.000Z", "endpoint_gateways": [{"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::endpoint-gateway:r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5", "href": "https://us-south.iaas.cloud.ibm.com/v1/endpoint_gateways/r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5", "id": "r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5", "name": "my-endpoint-gateway", "remote": {"account": {"id": "bb1b52262f7441a586f49068482f1e60", "resource_type": "account"}, "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "endpoint_gateway"}], "health_reasons": [{"code": "disconnected_from_bound_vpc", "message": "The VPC specified in the DNS resolution binding has been disconnected.", "more_info": "https://cloud.ibm.com/docs/vpc?topic=vpc-troubleshoot-hub-spoke-1"}], "health_state": "ok", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-982d72b7-db1b-4606-afb2-ed6bd4b0bed1/dns_resolution_bindings/r006-8a524686-fcf6-4947-a59b-188c1ed78ad1", "id": "r006-8a524686-fcf6-4947-a59b-188c1ed78ad1", "lifecycle_state": "stable", "name": "my-dns-resolution-binding", "resource_type": "vpc_dns_resolution_binding", "vpc": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "remote": {"account": {"id": "bb1b52262f7441a586f49068482f1e60", "resource_type": "account"}, "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "vpc"}}`) + fmt.Fprintf(res, "%s", `{"created_at": "2019-01-01T12:00:00.000Z", "endpoint_gateways": [{"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::endpoint-gateway:r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5", "href": "https://us-south.iaas.cloud.ibm.com/v1/endpoint_gateways/r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5", "id": "r134-d7cc5196-9864-48c4-82d8-3f30da41fcc5", "name": "my-endpoint-gateway", "remote": {"account": {"id": "bb1b52262f7441a586f49068482f1e60", "resource_type": "account"}, "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "endpoint_gateway"}], "health_reasons": [{"code": "disconnected_from_bound_vpc", "message": "The VPC specified in the DNS resolution binding has been disconnected.", "more_info": "https://cloud.ibm.com/docs/vpc?topic=vpc-troubleshoot-hub-1"}], "health_state": "ok", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-982d72b7-db1b-4606-afb2-ed6bd4b0bed1/dns_resolution_bindings/r006-8a524686-fcf6-4947-a59b-188c1ed78ad1", "id": "r006-8a524686-fcf6-4947-a59b-188c1ed78ad1", "lifecycle_state": "stable", "name": "my-dns-resolution-binding", "resource_type": "vpc_dns_resolution_binding", "vpc": {"crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpcs/r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "r006-4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "remote": {"account": {"id": "bb1b52262f7441a586f49068482f1e60", "resource_type": "account"}, "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}}, "resource_type": "vpc"}}`) })) }) It(`Invoke UpdateVPCDnsResolutionBinding successfully`, func() { @@ -5391,9 +5391,9 @@ var _ = Describe(`VpcV1`, func() { zoneIdentityModel := new(vpcv1.ZoneIdentityByName) zoneIdentityModel.Name = core.StringPtr("us-south-1") - // Construct an instance of the RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP model - routePrototypeNextHopModel := new(vpcv1.RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP) - routePrototypeNextHopModel.Address = core.StringPtr("0.0.0.0") + // Construct an instance of the RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP model + routeNextHopPrototypeModel := new(vpcv1.RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP) + routeNextHopPrototypeModel.Address = core.StringPtr("0.0.0.0") // Construct an instance of the CreateVPCRouteOptions model createVPCRouteOptionsModel := new(vpcv1.CreateVPCRouteOptions) @@ -5403,7 +5403,7 @@ var _ = Describe(`VpcV1`, func() { createVPCRouteOptionsModel.Action = core.StringPtr("deliver") createVPCRouteOptionsModel.Advertise = core.BoolPtr(false) createVPCRouteOptionsModel.Name = core.StringPtr("my-route-1") - createVPCRouteOptionsModel.NextHop = routePrototypeNextHopModel + createVPCRouteOptionsModel.NextHop = routeNextHopPrototypeModel createVPCRouteOptionsModel.Priority = core.Int64Ptr(int64(1)) createVPCRouteOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Expect response parsing to fail since we are receiving a text/plain response @@ -5477,9 +5477,9 @@ var _ = Describe(`VpcV1`, func() { zoneIdentityModel := new(vpcv1.ZoneIdentityByName) zoneIdentityModel.Name = core.StringPtr("us-south-1") - // Construct an instance of the RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP model - routePrototypeNextHopModel := new(vpcv1.RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP) - routePrototypeNextHopModel.Address = core.StringPtr("0.0.0.0") + // Construct an instance of the RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP model + routeNextHopPrototypeModel := new(vpcv1.RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP) + routeNextHopPrototypeModel.Address = core.StringPtr("0.0.0.0") // Construct an instance of the CreateVPCRouteOptions model createVPCRouteOptionsModel := new(vpcv1.CreateVPCRouteOptions) @@ -5489,7 +5489,7 @@ var _ = Describe(`VpcV1`, func() { createVPCRouteOptionsModel.Action = core.StringPtr("deliver") createVPCRouteOptionsModel.Advertise = core.BoolPtr(false) createVPCRouteOptionsModel.Name = core.StringPtr("my-route-1") - createVPCRouteOptionsModel.NextHop = routePrototypeNextHopModel + createVPCRouteOptionsModel.NextHop = routeNextHopPrototypeModel createVPCRouteOptionsModel.Priority = core.Int64Ptr(int64(1)) createVPCRouteOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} @@ -5570,9 +5570,9 @@ var _ = Describe(`VpcV1`, func() { zoneIdentityModel := new(vpcv1.ZoneIdentityByName) zoneIdentityModel.Name = core.StringPtr("us-south-1") - // Construct an instance of the RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP model - routePrototypeNextHopModel := new(vpcv1.RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP) - routePrototypeNextHopModel.Address = core.StringPtr("0.0.0.0") + // Construct an instance of the RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP model + routeNextHopPrototypeModel := new(vpcv1.RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP) + routeNextHopPrototypeModel.Address = core.StringPtr("0.0.0.0") // Construct an instance of the CreateVPCRouteOptions model createVPCRouteOptionsModel := new(vpcv1.CreateVPCRouteOptions) @@ -5582,7 +5582,7 @@ var _ = Describe(`VpcV1`, func() { createVPCRouteOptionsModel.Action = core.StringPtr("deliver") createVPCRouteOptionsModel.Advertise = core.BoolPtr(false) createVPCRouteOptionsModel.Name = core.StringPtr("my-route-1") - createVPCRouteOptionsModel.NextHop = routePrototypeNextHopModel + createVPCRouteOptionsModel.NextHop = routeNextHopPrototypeModel createVPCRouteOptionsModel.Priority = core.Int64Ptr(int64(1)) createVPCRouteOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} @@ -5606,9 +5606,9 @@ var _ = Describe(`VpcV1`, func() { zoneIdentityModel := new(vpcv1.ZoneIdentityByName) zoneIdentityModel.Name = core.StringPtr("us-south-1") - // Construct an instance of the RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP model - routePrototypeNextHopModel := new(vpcv1.RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP) - routePrototypeNextHopModel.Address = core.StringPtr("0.0.0.0") + // Construct an instance of the RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP model + routeNextHopPrototypeModel := new(vpcv1.RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP) + routeNextHopPrototypeModel.Address = core.StringPtr("0.0.0.0") // Construct an instance of the CreateVPCRouteOptions model createVPCRouteOptionsModel := new(vpcv1.CreateVPCRouteOptions) @@ -5618,7 +5618,7 @@ var _ = Describe(`VpcV1`, func() { createVPCRouteOptionsModel.Action = core.StringPtr("deliver") createVPCRouteOptionsModel.Advertise = core.BoolPtr(false) createVPCRouteOptionsModel.Name = core.StringPtr("my-route-1") - createVPCRouteOptionsModel.NextHop = routePrototypeNextHopModel + createVPCRouteOptionsModel.NextHop = routeNextHopPrototypeModel createVPCRouteOptionsModel.Priority = core.Int64Ptr(int64(1)) createVPCRouteOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with empty URL (negative test) @@ -5663,9 +5663,9 @@ var _ = Describe(`VpcV1`, func() { zoneIdentityModel := new(vpcv1.ZoneIdentityByName) zoneIdentityModel.Name = core.StringPtr("us-south-1") - // Construct an instance of the RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP model - routePrototypeNextHopModel := new(vpcv1.RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP) - routePrototypeNextHopModel.Address = core.StringPtr("0.0.0.0") + // Construct an instance of the RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP model + routeNextHopPrototypeModel := new(vpcv1.RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP) + routeNextHopPrototypeModel.Address = core.StringPtr("0.0.0.0") // Construct an instance of the CreateVPCRouteOptions model createVPCRouteOptionsModel := new(vpcv1.CreateVPCRouteOptions) @@ -5675,7 +5675,7 @@ var _ = Describe(`VpcV1`, func() { createVPCRouteOptionsModel.Action = core.StringPtr("deliver") createVPCRouteOptionsModel.Advertise = core.BoolPtr(false) createVPCRouteOptionsModel.Name = core.StringPtr("my-route-1") - createVPCRouteOptionsModel.NextHop = routePrototypeNextHopModel + createVPCRouteOptionsModel.NextHop = routeNextHopPrototypeModel createVPCRouteOptionsModel.Priority = core.Int64Ptr(int64(1)) createVPCRouteOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} @@ -6714,9 +6714,9 @@ var _ = Describe(`VpcV1`, func() { resourceFilterModel := new(vpcv1.ResourceFilter) resourceFilterModel.ResourceType = core.StringPtr("vpn_server") - // Construct an instance of the RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP model - routePrototypeNextHopModel := new(vpcv1.RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP) - routePrototypeNextHopModel.Address = core.StringPtr("0.0.0.0") + // Construct an instance of the RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP model + routeNextHopPrototypeModel := new(vpcv1.RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP) + routeNextHopPrototypeModel.Address = core.StringPtr("0.0.0.0") // Construct an instance of the ZoneIdentityByName model zoneIdentityModel := new(vpcv1.ZoneIdentityByName) @@ -6728,7 +6728,7 @@ var _ = Describe(`VpcV1`, func() { routePrototypeModel.Advertise = core.BoolPtr(false) routePrototypeModel.Destination = core.StringPtr("192.168.3.0/24") routePrototypeModel.Name = core.StringPtr("my-route-1") - routePrototypeModel.NextHop = routePrototypeNextHopModel + routePrototypeModel.NextHop = routeNextHopPrototypeModel routePrototypeModel.Priority = core.Int64Ptr(int64(1)) routePrototypeModel.Zone = zoneIdentityModel @@ -6815,9 +6815,9 @@ var _ = Describe(`VpcV1`, func() { resourceFilterModel := new(vpcv1.ResourceFilter) resourceFilterModel.ResourceType = core.StringPtr("vpn_server") - // Construct an instance of the RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP model - routePrototypeNextHopModel := new(vpcv1.RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP) - routePrototypeNextHopModel.Address = core.StringPtr("0.0.0.0") + // Construct an instance of the RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP model + routeNextHopPrototypeModel := new(vpcv1.RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP) + routeNextHopPrototypeModel.Address = core.StringPtr("0.0.0.0") // Construct an instance of the ZoneIdentityByName model zoneIdentityModel := new(vpcv1.ZoneIdentityByName) @@ -6829,7 +6829,7 @@ var _ = Describe(`VpcV1`, func() { routePrototypeModel.Advertise = core.BoolPtr(false) routePrototypeModel.Destination = core.StringPtr("192.168.3.0/24") routePrototypeModel.Name = core.StringPtr("my-route-1") - routePrototypeModel.NextHop = routePrototypeNextHopModel + routePrototypeModel.NextHop = routeNextHopPrototypeModel routePrototypeModel.Priority = core.Int64Ptr(int64(1)) routePrototypeModel.Zone = zoneIdentityModel @@ -6923,9 +6923,9 @@ var _ = Describe(`VpcV1`, func() { resourceFilterModel := new(vpcv1.ResourceFilter) resourceFilterModel.ResourceType = core.StringPtr("vpn_server") - // Construct an instance of the RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP model - routePrototypeNextHopModel := new(vpcv1.RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP) - routePrototypeNextHopModel.Address = core.StringPtr("0.0.0.0") + // Construct an instance of the RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP model + routeNextHopPrototypeModel := new(vpcv1.RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP) + routeNextHopPrototypeModel.Address = core.StringPtr("0.0.0.0") // Construct an instance of the ZoneIdentityByName model zoneIdentityModel := new(vpcv1.ZoneIdentityByName) @@ -6937,7 +6937,7 @@ var _ = Describe(`VpcV1`, func() { routePrototypeModel.Advertise = core.BoolPtr(false) routePrototypeModel.Destination = core.StringPtr("192.168.3.0/24") routePrototypeModel.Name = core.StringPtr("my-route-1") - routePrototypeModel.NextHop = routePrototypeNextHopModel + routePrototypeModel.NextHop = routeNextHopPrototypeModel routePrototypeModel.Priority = core.Int64Ptr(int64(1)) routePrototypeModel.Zone = zoneIdentityModel @@ -6974,9 +6974,9 @@ var _ = Describe(`VpcV1`, func() { resourceFilterModel := new(vpcv1.ResourceFilter) resourceFilterModel.ResourceType = core.StringPtr("vpn_server") - // Construct an instance of the RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP model - routePrototypeNextHopModel := new(vpcv1.RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP) - routePrototypeNextHopModel.Address = core.StringPtr("0.0.0.0") + // Construct an instance of the RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP model + routeNextHopPrototypeModel := new(vpcv1.RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP) + routeNextHopPrototypeModel.Address = core.StringPtr("0.0.0.0") // Construct an instance of the ZoneIdentityByName model zoneIdentityModel := new(vpcv1.ZoneIdentityByName) @@ -6988,7 +6988,7 @@ var _ = Describe(`VpcV1`, func() { routePrototypeModel.Advertise = core.BoolPtr(false) routePrototypeModel.Destination = core.StringPtr("192.168.3.0/24") routePrototypeModel.Name = core.StringPtr("my-route-1") - routePrototypeModel.NextHop = routePrototypeNextHopModel + routePrototypeModel.NextHop = routeNextHopPrototypeModel routePrototypeModel.Priority = core.Int64Ptr(int64(1)) routePrototypeModel.Zone = zoneIdentityModel @@ -7046,9 +7046,9 @@ var _ = Describe(`VpcV1`, func() { resourceFilterModel := new(vpcv1.ResourceFilter) resourceFilterModel.ResourceType = core.StringPtr("vpn_server") - // Construct an instance of the RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP model - routePrototypeNextHopModel := new(vpcv1.RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP) - routePrototypeNextHopModel.Address = core.StringPtr("0.0.0.0") + // Construct an instance of the RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP model + routeNextHopPrototypeModel := new(vpcv1.RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP) + routeNextHopPrototypeModel.Address = core.StringPtr("0.0.0.0") // Construct an instance of the ZoneIdentityByName model zoneIdentityModel := new(vpcv1.ZoneIdentityByName) @@ -7060,7 +7060,7 @@ var _ = Describe(`VpcV1`, func() { routePrototypeModel.Advertise = core.BoolPtr(false) routePrototypeModel.Destination = core.StringPtr("192.168.3.0/24") routePrototypeModel.Name = core.StringPtr("my-route-1") - routePrototypeModel.NextHop = routePrototypeNextHopModel + routePrototypeModel.NextHop = routeNextHopPrototypeModel routePrototypeModel.Priority = core.Int64Ptr(int64(1)) routePrototypeModel.Zone = zoneIdentityModel @@ -8139,9 +8139,9 @@ var _ = Describe(`VpcV1`, func() { zoneIdentityModel := new(vpcv1.ZoneIdentityByName) zoneIdentityModel.Name = core.StringPtr("us-south-1") - // Construct an instance of the RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP model - routePrototypeNextHopModel := new(vpcv1.RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP) - routePrototypeNextHopModel.Address = core.StringPtr("0.0.0.0") + // Construct an instance of the RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP model + routeNextHopPrototypeModel := new(vpcv1.RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP) + routeNextHopPrototypeModel.Address = core.StringPtr("0.0.0.0") // Construct an instance of the CreateVPCRoutingTableRouteOptions model createVPCRoutingTableRouteOptionsModel := new(vpcv1.CreateVPCRoutingTableRouteOptions) @@ -8152,7 +8152,7 @@ var _ = Describe(`VpcV1`, func() { createVPCRoutingTableRouteOptionsModel.Action = core.StringPtr("deliver") createVPCRoutingTableRouteOptionsModel.Advertise = core.BoolPtr(false) createVPCRoutingTableRouteOptionsModel.Name = core.StringPtr("my-route-1") - createVPCRoutingTableRouteOptionsModel.NextHop = routePrototypeNextHopModel + createVPCRoutingTableRouteOptionsModel.NextHop = routeNextHopPrototypeModel createVPCRoutingTableRouteOptionsModel.Priority = core.Int64Ptr(int64(1)) createVPCRoutingTableRouteOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Expect response parsing to fail since we are receiving a text/plain response @@ -8226,9 +8226,9 @@ var _ = Describe(`VpcV1`, func() { zoneIdentityModel := new(vpcv1.ZoneIdentityByName) zoneIdentityModel.Name = core.StringPtr("us-south-1") - // Construct an instance of the RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP model - routePrototypeNextHopModel := new(vpcv1.RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP) - routePrototypeNextHopModel.Address = core.StringPtr("0.0.0.0") + // Construct an instance of the RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP model + routeNextHopPrototypeModel := new(vpcv1.RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP) + routeNextHopPrototypeModel.Address = core.StringPtr("0.0.0.0") // Construct an instance of the CreateVPCRoutingTableRouteOptions model createVPCRoutingTableRouteOptionsModel := new(vpcv1.CreateVPCRoutingTableRouteOptions) @@ -8239,7 +8239,7 @@ var _ = Describe(`VpcV1`, func() { createVPCRoutingTableRouteOptionsModel.Action = core.StringPtr("deliver") createVPCRoutingTableRouteOptionsModel.Advertise = core.BoolPtr(false) createVPCRoutingTableRouteOptionsModel.Name = core.StringPtr("my-route-1") - createVPCRoutingTableRouteOptionsModel.NextHop = routePrototypeNextHopModel + createVPCRoutingTableRouteOptionsModel.NextHop = routeNextHopPrototypeModel createVPCRoutingTableRouteOptionsModel.Priority = core.Int64Ptr(int64(1)) createVPCRoutingTableRouteOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} @@ -8320,9 +8320,9 @@ var _ = Describe(`VpcV1`, func() { zoneIdentityModel := new(vpcv1.ZoneIdentityByName) zoneIdentityModel.Name = core.StringPtr("us-south-1") - // Construct an instance of the RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP model - routePrototypeNextHopModel := new(vpcv1.RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP) - routePrototypeNextHopModel.Address = core.StringPtr("0.0.0.0") + // Construct an instance of the RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP model + routeNextHopPrototypeModel := new(vpcv1.RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP) + routeNextHopPrototypeModel.Address = core.StringPtr("0.0.0.0") // Construct an instance of the CreateVPCRoutingTableRouteOptions model createVPCRoutingTableRouteOptionsModel := new(vpcv1.CreateVPCRoutingTableRouteOptions) @@ -8333,7 +8333,7 @@ var _ = Describe(`VpcV1`, func() { createVPCRoutingTableRouteOptionsModel.Action = core.StringPtr("deliver") createVPCRoutingTableRouteOptionsModel.Advertise = core.BoolPtr(false) createVPCRoutingTableRouteOptionsModel.Name = core.StringPtr("my-route-1") - createVPCRoutingTableRouteOptionsModel.NextHop = routePrototypeNextHopModel + createVPCRoutingTableRouteOptionsModel.NextHop = routeNextHopPrototypeModel createVPCRoutingTableRouteOptionsModel.Priority = core.Int64Ptr(int64(1)) createVPCRoutingTableRouteOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} @@ -8357,9 +8357,9 @@ var _ = Describe(`VpcV1`, func() { zoneIdentityModel := new(vpcv1.ZoneIdentityByName) zoneIdentityModel.Name = core.StringPtr("us-south-1") - // Construct an instance of the RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP model - routePrototypeNextHopModel := new(vpcv1.RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP) - routePrototypeNextHopModel.Address = core.StringPtr("0.0.0.0") + // Construct an instance of the RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP model + routeNextHopPrototypeModel := new(vpcv1.RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP) + routeNextHopPrototypeModel.Address = core.StringPtr("0.0.0.0") // Construct an instance of the CreateVPCRoutingTableRouteOptions model createVPCRoutingTableRouteOptionsModel := new(vpcv1.CreateVPCRoutingTableRouteOptions) @@ -8370,7 +8370,7 @@ var _ = Describe(`VpcV1`, func() { createVPCRoutingTableRouteOptionsModel.Action = core.StringPtr("deliver") createVPCRoutingTableRouteOptionsModel.Advertise = core.BoolPtr(false) createVPCRoutingTableRouteOptionsModel.Name = core.StringPtr("my-route-1") - createVPCRoutingTableRouteOptionsModel.NextHop = routePrototypeNextHopModel + createVPCRoutingTableRouteOptionsModel.NextHop = routeNextHopPrototypeModel createVPCRoutingTableRouteOptionsModel.Priority = core.Int64Ptr(int64(1)) createVPCRoutingTableRouteOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with empty URL (negative test) @@ -8415,9 +8415,9 @@ var _ = Describe(`VpcV1`, func() { zoneIdentityModel := new(vpcv1.ZoneIdentityByName) zoneIdentityModel.Name = core.StringPtr("us-south-1") - // Construct an instance of the RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP model - routePrototypeNextHopModel := new(vpcv1.RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP) - routePrototypeNextHopModel.Address = core.StringPtr("0.0.0.0") + // Construct an instance of the RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP model + routeNextHopPrototypeModel := new(vpcv1.RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP) + routeNextHopPrototypeModel.Address = core.StringPtr("0.0.0.0") // Construct an instance of the CreateVPCRoutingTableRouteOptions model createVPCRoutingTableRouteOptionsModel := new(vpcv1.CreateVPCRoutingTableRouteOptions) @@ -8428,7 +8428,7 @@ var _ = Describe(`VpcV1`, func() { createVPCRoutingTableRouteOptionsModel.Action = core.StringPtr("deliver") createVPCRoutingTableRouteOptionsModel.Advertise = core.BoolPtr(false) createVPCRoutingTableRouteOptionsModel.Name = core.StringPtr("my-route-1") - createVPCRoutingTableRouteOptionsModel.NextHop = routePrototypeNextHopModel + createVPCRoutingTableRouteOptionsModel.NextHop = routeNextHopPrototypeModel createVPCRoutingTableRouteOptionsModel.Priority = core.Int64Ptr(int64(1)) createVPCRoutingTableRouteOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} @@ -13504,7 +13504,7 @@ var _ = Describe(`VpcV1`, func() { 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()["resource_group.id"]).To(Equal([]string{"testString"})) - Expect(req.URL.Query()["name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["name"]).To(Equal([]string{"my-name"})) Expect(req.URL.Query()["visibility"]).To(Equal([]string{"private"})) res.Header().Set("Content-type", "application/json") res.WriteHeader(200) @@ -13525,7 +13525,7 @@ var _ = Describe(`VpcV1`, func() { listImagesOptionsModel.Start = core.StringPtr("testString") listImagesOptionsModel.Limit = core.Int64Ptr(int64(10)) listImagesOptionsModel.ResourceGroupID = core.StringPtr("testString") - listImagesOptionsModel.Name = core.StringPtr("testString") + listImagesOptionsModel.Name = core.StringPtr("my-name") listImagesOptionsModel.Status = []string{"available"} listImagesOptionsModel.Visibility = core.StringPtr("private") listImagesOptionsModel.UserDataFormat = []string{"cloud_init"} @@ -13565,7 +13565,7 @@ var _ = Describe(`VpcV1`, func() { 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()["resource_group.id"]).To(Equal([]string{"testString"})) - Expect(req.URL.Query()["name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["name"]).To(Equal([]string{"my-name"})) Expect(req.URL.Query()["visibility"]).To(Equal([]string{"private"})) // Sleep a short time to support a timeout test time.Sleep(100 * time.Millisecond) @@ -13591,7 +13591,7 @@ var _ = Describe(`VpcV1`, func() { listImagesOptionsModel.Start = core.StringPtr("testString") listImagesOptionsModel.Limit = core.Int64Ptr(int64(10)) listImagesOptionsModel.ResourceGroupID = core.StringPtr("testString") - listImagesOptionsModel.Name = core.StringPtr("testString") + listImagesOptionsModel.Name = core.StringPtr("my-name") listImagesOptionsModel.Status = []string{"available"} listImagesOptionsModel.Visibility = core.StringPtr("private") listImagesOptionsModel.UserDataFormat = []string{"cloud_init"} @@ -13636,7 +13636,7 @@ var _ = Describe(`VpcV1`, func() { 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()["resource_group.id"]).To(Equal([]string{"testString"})) - Expect(req.URL.Query()["name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["name"]).To(Equal([]string{"my-name"})) Expect(req.URL.Query()["visibility"]).To(Equal([]string{"private"})) // Set mock response res.Header().Set("Content-type", "application/json") @@ -13664,7 +13664,7 @@ var _ = Describe(`VpcV1`, func() { listImagesOptionsModel.Start = core.StringPtr("testString") listImagesOptionsModel.Limit = core.Int64Ptr(int64(10)) listImagesOptionsModel.ResourceGroupID = core.StringPtr("testString") - listImagesOptionsModel.Name = core.StringPtr("testString") + listImagesOptionsModel.Name = core.StringPtr("my-name") listImagesOptionsModel.Status = []string{"available"} listImagesOptionsModel.Visibility = core.StringPtr("private") listImagesOptionsModel.UserDataFormat = []string{"cloud_init"} @@ -13691,7 +13691,7 @@ var _ = Describe(`VpcV1`, func() { listImagesOptionsModel.Start = core.StringPtr("testString") listImagesOptionsModel.Limit = core.Int64Ptr(int64(10)) listImagesOptionsModel.ResourceGroupID = core.StringPtr("testString") - listImagesOptionsModel.Name = core.StringPtr("testString") + listImagesOptionsModel.Name = core.StringPtr("my-name") listImagesOptionsModel.Status = []string{"available"} listImagesOptionsModel.Visibility = core.StringPtr("private") listImagesOptionsModel.UserDataFormat = []string{"cloud_init"} @@ -13732,7 +13732,7 @@ var _ = Describe(`VpcV1`, func() { listImagesOptionsModel.Start = core.StringPtr("testString") listImagesOptionsModel.Limit = core.Int64Ptr(int64(10)) listImagesOptionsModel.ResourceGroupID = core.StringPtr("testString") - listImagesOptionsModel.Name = core.StringPtr("testString") + listImagesOptionsModel.Name = core.StringPtr("my-name") listImagesOptionsModel.Status = []string{"available"} listImagesOptionsModel.Visibility = core.StringPtr("private") listImagesOptionsModel.UserDataFormat = []string{"cloud_init"} @@ -13814,7 +13814,7 @@ var _ = Describe(`VpcV1`, func() { listImagesOptionsModel := &vpcv1.ListImagesOptions{ Limit: core.Int64Ptr(int64(10)), ResourceGroupID: core.StringPtr("testString"), - Name: core.StringPtr("testString"), + Name: core.StringPtr("my-name"), Status: []string{"available"}, Visibility: core.StringPtr("private"), UserDataFormat: []string{"cloud_init"}, @@ -13845,7 +13845,7 @@ var _ = Describe(`VpcV1`, func() { listImagesOptionsModel := &vpcv1.ListImagesOptions{ Limit: core.Int64Ptr(int64(10)), ResourceGroupID: core.StringPtr("testString"), - Name: core.StringPtr("testString"), + Name: core.StringPtr("my-name"), Status: []string{"available"}, Visibility: core.StringPtr("private"), UserDataFormat: []string{"cloud_init"}, @@ -15013,7 +15013,7 @@ var _ = Describe(`VpcV1`, func() { Expect(req.Method).To(Equal("GET")) Expect(req.URL.Query()["version"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["generation"]).To(Equal([]string{fmt.Sprint(int64(2))})) - Expect(req.URL.Query()["name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["name"]).To(Equal([]string{"my-name"})) res.Header().Set("Content-type", "application/json") res.WriteHeader(200) fmt.Fprint(res, `} this is not valid json {`) @@ -15031,7 +15031,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the ListImageExportJobsOptions model listImageExportJobsOptionsModel := new(vpcv1.ListImageExportJobsOptions) listImageExportJobsOptionsModel.ImageID = core.StringPtr("testString") - listImageExportJobsOptionsModel.Name = core.StringPtr("testString") + listImageExportJobsOptionsModel.Name = core.StringPtr("my-name") listImageExportJobsOptionsModel.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.ListImageExportJobs(listImageExportJobsOptionsModel) @@ -15065,7 +15065,7 @@ var _ = Describe(`VpcV1`, func() { Expect(req.URL.Query()["version"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["generation"]).To(Equal([]string{fmt.Sprint(int64(2))})) - Expect(req.URL.Query()["name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["name"]).To(Equal([]string{"my-name"})) // Sleep a short time to support a timeout test time.Sleep(100 * time.Millisecond) @@ -15088,7 +15088,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the ListImageExportJobsOptions model listImageExportJobsOptionsModel := new(vpcv1.ListImageExportJobsOptions) listImageExportJobsOptionsModel.ImageID = core.StringPtr("testString") - listImageExportJobsOptionsModel.Name = core.StringPtr("testString") + listImageExportJobsOptionsModel.Name = core.StringPtr("my-name") listImageExportJobsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with a Context to test a timeout error @@ -15127,7 +15127,7 @@ var _ = Describe(`VpcV1`, func() { Expect(req.URL.Query()["version"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["generation"]).To(Equal([]string{fmt.Sprint(int64(2))})) - Expect(req.URL.Query()["name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["name"]).To(Equal([]string{"my-name"})) // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) @@ -15152,7 +15152,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the ListImageExportJobsOptions model listImageExportJobsOptionsModel := new(vpcv1.ListImageExportJobsOptions) listImageExportJobsOptionsModel.ImageID = core.StringPtr("testString") - listImageExportJobsOptionsModel.Name = core.StringPtr("testString") + listImageExportJobsOptionsModel.Name = core.StringPtr("my-name") listImageExportJobsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with valid options model (positive test) @@ -15174,7 +15174,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the ListImageExportJobsOptions model listImageExportJobsOptionsModel := new(vpcv1.ListImageExportJobsOptions) listImageExportJobsOptionsModel.ImageID = core.StringPtr("testString") - listImageExportJobsOptionsModel.Name = core.StringPtr("testString") + listImageExportJobsOptionsModel.Name = core.StringPtr("my-name") listImageExportJobsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with empty URL (negative test) err := vpcService.SetServiceURL("") @@ -15217,7 +15217,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the ListImageExportJobsOptions model listImageExportJobsOptionsModel := new(vpcv1.ListImageExportJobsOptions) listImageExportJobsOptionsModel.ImageID = core.StringPtr("testString") - listImageExportJobsOptionsModel.Name = core.StringPtr("testString") + listImageExportJobsOptionsModel.Name = core.StringPtr("my-name") listImageExportJobsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation @@ -16459,7 +16459,7 @@ var _ = Describe(`VpcV1`, func() { }) Describe(`GetOperatingSystem(getOperatingSystemOptions *GetOperatingSystemOptions) - Operation response error`, func() { version := "testString" - getOperatingSystemPath := "/operating_systems/testString" + getOperatingSystemPath := "/operating_systems/red-7-amd64" Context(`Using mock server endpoint with invalid JSON response`, func() { BeforeEach(func() { testServer = httptest.NewServer(http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) { @@ -16486,7 +16486,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the GetOperatingSystemOptions model getOperatingSystemOptionsModel := new(vpcv1.GetOperatingSystemOptions) - getOperatingSystemOptionsModel.Name = core.StringPtr("testString") + getOperatingSystemOptionsModel.Name = core.StringPtr("red-7-amd64") getOperatingSystemOptionsModel.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.GetOperatingSystem(getOperatingSystemOptionsModel) @@ -16508,7 +16508,7 @@ var _ = Describe(`VpcV1`, func() { }) Describe(`GetOperatingSystem(getOperatingSystemOptions *GetOperatingSystemOptions)`, func() { version := "testString" - getOperatingSystemPath := "/operating_systems/testString" + getOperatingSystemPath := "/operating_systems/red-7-amd64" Context(`Using mock server endpoint with timeout`, func() { BeforeEach(func() { testServer = httptest.NewServer(http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) { @@ -16541,7 +16541,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the GetOperatingSystemOptions model getOperatingSystemOptionsModel := new(vpcv1.GetOperatingSystemOptions) - getOperatingSystemOptionsModel.Name = core.StringPtr("testString") + getOperatingSystemOptionsModel.Name = core.StringPtr("red-7-amd64") getOperatingSystemOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with a Context to test a timeout error @@ -16603,7 +16603,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the GetOperatingSystemOptions model getOperatingSystemOptionsModel := new(vpcv1.GetOperatingSystemOptions) - getOperatingSystemOptionsModel.Name = core.StringPtr("testString") + getOperatingSystemOptionsModel.Name = core.StringPtr("red-7-amd64") getOperatingSystemOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with valid options model (positive test) @@ -16624,7 +16624,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the GetOperatingSystemOptions model getOperatingSystemOptionsModel := new(vpcv1.GetOperatingSystemOptions) - getOperatingSystemOptionsModel.Name = core.StringPtr("testString") + getOperatingSystemOptionsModel.Name = core.StringPtr("red-7-amd64") getOperatingSystemOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with empty URL (negative test) err := vpcService.SetServiceURL("") @@ -16666,7 +16666,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the GetOperatingSystemOptions model getOperatingSystemOptionsModel := new(vpcv1.GetOperatingSystemOptions) - getOperatingSystemOptionsModel.Name = core.StringPtr("testString") + getOperatingSystemOptionsModel.Name = core.StringPtr("red-7-amd64") getOperatingSystemOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation @@ -18109,7 +18109,7 @@ var _ = Describe(`VpcV1`, func() { }) Describe(`GetInstanceProfile(getInstanceProfileOptions *GetInstanceProfileOptions) - Operation response error`, func() { version := "testString" - getInstanceProfilePath := "/instance/profiles/testString" + getInstanceProfilePath := "/instance/profiles/mx2-host-152x1216" Context(`Using mock server endpoint with invalid JSON response`, func() { BeforeEach(func() { testServer = httptest.NewServer(http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) { @@ -18136,7 +18136,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the GetInstanceProfileOptions model getInstanceProfileOptionsModel := new(vpcv1.GetInstanceProfileOptions) - getInstanceProfileOptionsModel.Name = core.StringPtr("testString") + getInstanceProfileOptionsModel.Name = core.StringPtr("mx2-host-152x1216") getInstanceProfileOptionsModel.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.GetInstanceProfile(getInstanceProfileOptionsModel) @@ -18158,7 +18158,7 @@ var _ = Describe(`VpcV1`, func() { }) Describe(`GetInstanceProfile(getInstanceProfileOptions *GetInstanceProfileOptions)`, func() { version := "testString" - getInstanceProfilePath := "/instance/profiles/testString" + getInstanceProfilePath := "/instance/profiles/mx2-host-152x1216" Context(`Using mock server endpoint with timeout`, func() { BeforeEach(func() { testServer = httptest.NewServer(http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) { @@ -18191,7 +18191,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the GetInstanceProfileOptions model getInstanceProfileOptionsModel := new(vpcv1.GetInstanceProfileOptions) - getInstanceProfileOptionsModel.Name = core.StringPtr("testString") + getInstanceProfileOptionsModel.Name = core.StringPtr("mx2-host-152x1216") getInstanceProfileOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with a Context to test a timeout error @@ -18253,7 +18253,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the GetInstanceProfileOptions model getInstanceProfileOptionsModel := new(vpcv1.GetInstanceProfileOptions) - getInstanceProfileOptionsModel.Name = core.StringPtr("testString") + getInstanceProfileOptionsModel.Name = core.StringPtr("mx2-host-152x1216") getInstanceProfileOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with valid options model (positive test) @@ -18274,7 +18274,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the GetInstanceProfileOptions model getInstanceProfileOptionsModel := new(vpcv1.GetInstanceProfileOptions) - getInstanceProfileOptionsModel.Name = core.StringPtr("testString") + getInstanceProfileOptionsModel.Name = core.StringPtr("mx2-host-152x1216") getInstanceProfileOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with empty URL (negative test) err := vpcService.SetServiceURL("") @@ -18316,7 +18316,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the GetInstanceProfileOptions model getInstanceProfileOptionsModel := new(vpcv1.GetInstanceProfileOptions) - getInstanceProfileOptionsModel.Name = core.StringPtr("testString") + getInstanceProfileOptionsModel.Name = core.StringPtr("mx2-host-152x1216") getInstanceProfileOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation @@ -20083,7 +20083,7 @@ var _ = Describe(`VpcV1`, func() { 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()["resource_group.id"]).To(Equal([]string{"testString"})) - Expect(req.URL.Query()["name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["name"]).To(Equal([]string{"my-name"})) Expect(req.URL.Query()["dedicated_host.id"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["dedicated_host.crn"]).To(Equal([]string{"crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host:1e09281b-f177-46fb-baf1-bc152b2e391a"})) Expect(req.URL.Query()["dedicated_host.name"]).To(Equal([]string{"my-dedicated-host"})) @@ -20115,7 +20115,7 @@ var _ = Describe(`VpcV1`, func() { listInstancesOptionsModel.Start = core.StringPtr("testString") listInstancesOptionsModel.Limit = core.Int64Ptr(int64(10)) listInstancesOptionsModel.ResourceGroupID = core.StringPtr("testString") - listInstancesOptionsModel.Name = core.StringPtr("testString") + listInstancesOptionsModel.Name = core.StringPtr("my-name") listInstancesOptionsModel.DedicatedHostID = core.StringPtr("testString") listInstancesOptionsModel.DedicatedHostCRN = core.StringPtr("crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host:1e09281b-f177-46fb-baf1-bc152b2e391a") listInstancesOptionsModel.DedicatedHostName = core.StringPtr("my-dedicated-host") @@ -20164,7 +20164,7 @@ var _ = Describe(`VpcV1`, func() { 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()["resource_group.id"]).To(Equal([]string{"testString"})) - Expect(req.URL.Query()["name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["name"]).To(Equal([]string{"my-name"})) Expect(req.URL.Query()["dedicated_host.id"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["dedicated_host.crn"]).To(Equal([]string{"crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host:1e09281b-f177-46fb-baf1-bc152b2e391a"})) Expect(req.URL.Query()["dedicated_host.name"]).To(Equal([]string{"my-dedicated-host"})) @@ -20201,7 +20201,7 @@ var _ = Describe(`VpcV1`, func() { listInstancesOptionsModel.Start = core.StringPtr("testString") listInstancesOptionsModel.Limit = core.Int64Ptr(int64(10)) listInstancesOptionsModel.ResourceGroupID = core.StringPtr("testString") - listInstancesOptionsModel.Name = core.StringPtr("testString") + listInstancesOptionsModel.Name = core.StringPtr("my-name") listInstancesOptionsModel.DedicatedHostID = core.StringPtr("testString") listInstancesOptionsModel.DedicatedHostCRN = core.StringPtr("crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host:1e09281b-f177-46fb-baf1-bc152b2e391a") listInstancesOptionsModel.DedicatedHostName = core.StringPtr("my-dedicated-host") @@ -20255,7 +20255,7 @@ var _ = Describe(`VpcV1`, func() { 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()["resource_group.id"]).To(Equal([]string{"testString"})) - Expect(req.URL.Query()["name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["name"]).To(Equal([]string{"my-name"})) Expect(req.URL.Query()["dedicated_host.id"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["dedicated_host.crn"]).To(Equal([]string{"crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host:1e09281b-f177-46fb-baf1-bc152b2e391a"})) Expect(req.URL.Query()["dedicated_host.name"]).To(Equal([]string{"my-dedicated-host"})) @@ -20294,7 +20294,7 @@ var _ = Describe(`VpcV1`, func() { listInstancesOptionsModel.Start = core.StringPtr("testString") listInstancesOptionsModel.Limit = core.Int64Ptr(int64(10)) listInstancesOptionsModel.ResourceGroupID = core.StringPtr("testString") - listInstancesOptionsModel.Name = core.StringPtr("testString") + listInstancesOptionsModel.Name = core.StringPtr("my-name") listInstancesOptionsModel.DedicatedHostID = core.StringPtr("testString") listInstancesOptionsModel.DedicatedHostCRN = core.StringPtr("crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host:1e09281b-f177-46fb-baf1-bc152b2e391a") listInstancesOptionsModel.DedicatedHostName = core.StringPtr("my-dedicated-host") @@ -20330,7 +20330,7 @@ var _ = Describe(`VpcV1`, func() { listInstancesOptionsModel.Start = core.StringPtr("testString") listInstancesOptionsModel.Limit = core.Int64Ptr(int64(10)) listInstancesOptionsModel.ResourceGroupID = core.StringPtr("testString") - listInstancesOptionsModel.Name = core.StringPtr("testString") + listInstancesOptionsModel.Name = core.StringPtr("my-name") listInstancesOptionsModel.DedicatedHostID = core.StringPtr("testString") listInstancesOptionsModel.DedicatedHostCRN = core.StringPtr("crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host:1e09281b-f177-46fb-baf1-bc152b2e391a") listInstancesOptionsModel.DedicatedHostName = core.StringPtr("my-dedicated-host") @@ -20380,7 +20380,7 @@ var _ = Describe(`VpcV1`, func() { listInstancesOptionsModel.Start = core.StringPtr("testString") listInstancesOptionsModel.Limit = core.Int64Ptr(int64(10)) listInstancesOptionsModel.ResourceGroupID = core.StringPtr("testString") - listInstancesOptionsModel.Name = core.StringPtr("testString") + listInstancesOptionsModel.Name = core.StringPtr("my-name") listInstancesOptionsModel.DedicatedHostID = core.StringPtr("testString") listInstancesOptionsModel.DedicatedHostCRN = core.StringPtr("crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host:1e09281b-f177-46fb-baf1-bc152b2e391a") listInstancesOptionsModel.DedicatedHostName = core.StringPtr("my-dedicated-host") @@ -20471,7 +20471,7 @@ var _ = Describe(`VpcV1`, func() { listInstancesOptionsModel := &vpcv1.ListInstancesOptions{ Limit: core.Int64Ptr(int64(10)), ResourceGroupID: core.StringPtr("testString"), - Name: core.StringPtr("testString"), + Name: core.StringPtr("my-name"), DedicatedHostID: core.StringPtr("testString"), DedicatedHostCRN: core.StringPtr("crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host:1e09281b-f177-46fb-baf1-bc152b2e391a"), DedicatedHostName: core.StringPtr("my-dedicated-host"), @@ -20511,7 +20511,7 @@ var _ = Describe(`VpcV1`, func() { listInstancesOptionsModel := &vpcv1.ListInstancesOptions{ Limit: core.Int64Ptr(int64(10)), ResourceGroupID: core.StringPtr("testString"), - Name: core.StringPtr("testString"), + Name: core.StringPtr("my-name"), DedicatedHostID: core.StringPtr("testString"), DedicatedHostCRN: core.StringPtr("crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host:1e09281b-f177-46fb-baf1-bc152b2e391a"), DedicatedHostName: core.StringPtr("my-dedicated-host"), @@ -35176,7 +35176,7 @@ 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{"testString"})) + Expect(req.URL.Query()["name"]).To(Equal([]string{"my-name"})) Expect(req.URL.Query()["resource_group.id"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["zone.name"]).To(Equal([]string{"us-south-1"})) res.Header().Set("Content-type", "application/json") @@ -35197,7 +35197,7 @@ var _ = Describe(`VpcV1`, func() { listReservationsOptionsModel := new(vpcv1.ListReservationsOptions) listReservationsOptionsModel.Start = core.StringPtr("testString") listReservationsOptionsModel.Limit = core.Int64Ptr(int64(10)) - listReservationsOptionsModel.Name = core.StringPtr("testString") + listReservationsOptionsModel.Name = core.StringPtr("my-name") listReservationsOptionsModel.ResourceGroupID = core.StringPtr("testString") listReservationsOptionsModel.ZoneName = core.StringPtr("us-south-1") listReservationsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} @@ -35235,7 +35235,7 @@ 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{"testString"})) + Expect(req.URL.Query()["name"]).To(Equal([]string{"my-name"})) Expect(req.URL.Query()["resource_group.id"]).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 @@ -35244,7 +35244,7 @@ var _ = Describe(`VpcV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"first": {"href": "https://us-south.iaas.cloud.ibm.com/v1/reservations?limit=20"}, "limit": 20, "next": {"href": "https://us-south.iaas.cloud.ibm.com/v1/reservations?start=9d5a91a3e2cbd233b5a5b33436855ed1&limit=20"}, "reservations": [{"affinity_policy": "restricted", "capacity": {"allocated": 10, "available": 2, "status": "allocated", "total": 10, "used": 8}, "committed_use": {"expiration_at": "2019-01-01T12:00:00.000Z", "expiration_policy": "release", "term": "Term"}, "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::reservation:7187-ba49df72-37b8-43ac-98da-f8e029de0e63", "href": "https://us-south.iaas.cloud.ibm.com/v1/reservations/7187-ba49df72-37b8-43ac-98da-f8e029de0e63", "id": "7187-ba49df72-37b8-43ac-98da-f8e029de0e63", "lifecycle_state": "stable", "name": "my-reservation", "profile": {"href": "https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16", "name": "bx2-4x16", "resource_type": "instance_profile"}, "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "reservation", "status": "activating", "status_reasons": [{"code": "cannot_activate_no_capacity_available", "message": "The reservation cannot be activated because capacity is unavailable", "more_info": "https://cloud.ibm.com/docs/vpc?topic=vpc-reserved-capacity-status-reasons"}], "zone": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}], "total_count": 132}`) + fmt.Fprintf(res, "%s", `{"first": {"href": "https://us-south.iaas.cloud.ibm.com/v1/reservations?limit=20"}, "limit": 20, "next": {"href": "https://us-south.iaas.cloud.ibm.com/v1/reservations?start=9d5a91a3e2cbd233b5a5b33436855ed1&limit=20"}, "reservations": [{"affinity_policy": "restricted", "capacity": {"allocated": 10, "available": 8, "status": "allocated", "total": 10, "used": 2}, "committed_use": {"expiration_at": "2019-01-01T12:00:00.000Z", "expiration_policy": "release", "term": "Term"}, "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::reservation:7187-ba49df72-37b8-43ac-98da-f8e029de0e63", "href": "https://us-south.iaas.cloud.ibm.com/v1/reservations/7187-ba49df72-37b8-43ac-98da-f8e029de0e63", "id": "7187-ba49df72-37b8-43ac-98da-f8e029de0e63", "lifecycle_state": "stable", "name": "my-reservation", "profile": {"href": "https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16", "name": "bx2-4x16", "resource_type": "instance_profile"}, "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "reservation", "status": "activating", "status_reasons": [{"code": "cannot_activate_no_capacity_available", "message": "The reservation cannot be activated because capacity is unavailable", "more_info": "https://cloud.ibm.com/docs/vpc?topic=vpc-reserved-capacity-status-reasons"}], "zone": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}], "total_count": 132}`) })) }) It(`Invoke ListReservations successfully with retries`, func() { @@ -35261,7 +35261,7 @@ var _ = Describe(`VpcV1`, func() { listReservationsOptionsModel := new(vpcv1.ListReservationsOptions) listReservationsOptionsModel.Start = core.StringPtr("testString") listReservationsOptionsModel.Limit = core.Int64Ptr(int64(10)) - listReservationsOptionsModel.Name = core.StringPtr("testString") + listReservationsOptionsModel.Name = core.StringPtr("my-name") listReservationsOptionsModel.ResourceGroupID = core.StringPtr("testString") listReservationsOptionsModel.ZoneName = core.StringPtr("us-south-1") listReservationsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} @@ -35304,13 +35304,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{"testString"})) + Expect(req.URL.Query()["name"]).To(Equal([]string{"my-name"})) Expect(req.URL.Query()["resource_group.id"]).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) - fmt.Fprintf(res, "%s", `{"first": {"href": "https://us-south.iaas.cloud.ibm.com/v1/reservations?limit=20"}, "limit": 20, "next": {"href": "https://us-south.iaas.cloud.ibm.com/v1/reservations?start=9d5a91a3e2cbd233b5a5b33436855ed1&limit=20"}, "reservations": [{"affinity_policy": "restricted", "capacity": {"allocated": 10, "available": 2, "status": "allocated", "total": 10, "used": 8}, "committed_use": {"expiration_at": "2019-01-01T12:00:00.000Z", "expiration_policy": "release", "term": "Term"}, "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::reservation:7187-ba49df72-37b8-43ac-98da-f8e029de0e63", "href": "https://us-south.iaas.cloud.ibm.com/v1/reservations/7187-ba49df72-37b8-43ac-98da-f8e029de0e63", "id": "7187-ba49df72-37b8-43ac-98da-f8e029de0e63", "lifecycle_state": "stable", "name": "my-reservation", "profile": {"href": "https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16", "name": "bx2-4x16", "resource_type": "instance_profile"}, "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "reservation", "status": "activating", "status_reasons": [{"code": "cannot_activate_no_capacity_available", "message": "The reservation cannot be activated because capacity is unavailable", "more_info": "https://cloud.ibm.com/docs/vpc?topic=vpc-reserved-capacity-status-reasons"}], "zone": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}], "total_count": 132}`) + fmt.Fprintf(res, "%s", `{"first": {"href": "https://us-south.iaas.cloud.ibm.com/v1/reservations?limit=20"}, "limit": 20, "next": {"href": "https://us-south.iaas.cloud.ibm.com/v1/reservations?start=9d5a91a3e2cbd233b5a5b33436855ed1&limit=20"}, "reservations": [{"affinity_policy": "restricted", "capacity": {"allocated": 10, "available": 8, "status": "allocated", "total": 10, "used": 2}, "committed_use": {"expiration_at": "2019-01-01T12:00:00.000Z", "expiration_policy": "release", "term": "Term"}, "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::reservation:7187-ba49df72-37b8-43ac-98da-f8e029de0e63", "href": "https://us-south.iaas.cloud.ibm.com/v1/reservations/7187-ba49df72-37b8-43ac-98da-f8e029de0e63", "id": "7187-ba49df72-37b8-43ac-98da-f8e029de0e63", "lifecycle_state": "stable", "name": "my-reservation", "profile": {"href": "https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16", "name": "bx2-4x16", "resource_type": "instance_profile"}, "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "reservation", "status": "activating", "status_reasons": [{"code": "cannot_activate_no_capacity_available", "message": "The reservation cannot be activated because capacity is unavailable", "more_info": "https://cloud.ibm.com/docs/vpc?topic=vpc-reserved-capacity-status-reasons"}], "zone": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}], "total_count": 132}`) })) }) It(`Invoke ListReservations successfully`, func() { @@ -35332,7 +35332,7 @@ var _ = Describe(`VpcV1`, func() { listReservationsOptionsModel := new(vpcv1.ListReservationsOptions) listReservationsOptionsModel.Start = core.StringPtr("testString") listReservationsOptionsModel.Limit = core.Int64Ptr(int64(10)) - listReservationsOptionsModel.Name = core.StringPtr("testString") + listReservationsOptionsModel.Name = core.StringPtr("my-name") listReservationsOptionsModel.ResourceGroupID = core.StringPtr("testString") listReservationsOptionsModel.ZoneName = core.StringPtr("us-south-1") listReservationsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} @@ -35357,7 +35357,7 @@ var _ = Describe(`VpcV1`, func() { listReservationsOptionsModel := new(vpcv1.ListReservationsOptions) listReservationsOptionsModel.Start = core.StringPtr("testString") listReservationsOptionsModel.Limit = core.Int64Ptr(int64(10)) - listReservationsOptionsModel.Name = core.StringPtr("testString") + listReservationsOptionsModel.Name = core.StringPtr("my-name") listReservationsOptionsModel.ResourceGroupID = core.StringPtr("testString") listReservationsOptionsModel.ZoneName = core.StringPtr("us-south-1") listReservationsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} @@ -35396,7 +35396,7 @@ var _ = Describe(`VpcV1`, func() { listReservationsOptionsModel := new(vpcv1.ListReservationsOptions) listReservationsOptionsModel.Start = core.StringPtr("testString") listReservationsOptionsModel.Limit = core.Int64Ptr(int64(10)) - listReservationsOptionsModel.Name = core.StringPtr("testString") + listReservationsOptionsModel.Name = core.StringPtr("my-name") listReservationsOptionsModel.ResourceGroupID = core.StringPtr("testString") listReservationsOptionsModel.ZoneName = core.StringPtr("us-south-1") listReservationsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} @@ -35457,9 +35457,9 @@ var _ = Describe(`VpcV1`, func() { res.WriteHeader(200) requestNumber++ if requestNumber == 1 { - fmt.Fprintf(res, "%s", `{"next":{"href":"https://myhost.com/somePath?start=1"},"reservations":[{"affinity_policy":"restricted","capacity":{"allocated":10,"available":2,"status":"allocated","total":10,"used":8},"committed_use":{"expiration_at":"2019-01-01T12:00:00.000Z","expiration_policy":"release","term":"Term"},"created_at":"2019-01-01T12:00:00.000Z","crn":"crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::reservation:7187-ba49df72-37b8-43ac-98da-f8e029de0e63","href":"https://us-south.iaas.cloud.ibm.com/v1/reservations/7187-ba49df72-37b8-43ac-98da-f8e029de0e63","id":"7187-ba49df72-37b8-43ac-98da-f8e029de0e63","lifecycle_state":"stable","name":"my-reservation","profile":{"href":"https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16","name":"bx2-4x16","resource_type":"instance_profile"},"resource_group":{"href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345","id":"fee82deba12e4c0fb69c3b09d1f12345","name":"my-resource-group"},"resource_type":"reservation","status":"activating","status_reasons":[{"code":"cannot_activate_no_capacity_available","message":"The reservation cannot be activated because capacity is unavailable","more_info":"https://cloud.ibm.com/docs/vpc?topic=vpc-reserved-capacity-status-reasons"}],"zone":{"href":"https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1","name":"us-south-1"}}],"total_count":2,"limit":1}`) + fmt.Fprintf(res, "%s", `{"next":{"href":"https://myhost.com/somePath?start=1"},"reservations":[{"affinity_policy":"restricted","capacity":{"allocated":10,"available":8,"status":"allocated","total":10,"used":2},"committed_use":{"expiration_at":"2019-01-01T12:00:00.000Z","expiration_policy":"release","term":"Term"},"created_at":"2019-01-01T12:00:00.000Z","crn":"crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::reservation:7187-ba49df72-37b8-43ac-98da-f8e029de0e63","href":"https://us-south.iaas.cloud.ibm.com/v1/reservations/7187-ba49df72-37b8-43ac-98da-f8e029de0e63","id":"7187-ba49df72-37b8-43ac-98da-f8e029de0e63","lifecycle_state":"stable","name":"my-reservation","profile":{"href":"https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16","name":"bx2-4x16","resource_type":"instance_profile"},"resource_group":{"href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345","id":"fee82deba12e4c0fb69c3b09d1f12345","name":"my-resource-group"},"resource_type":"reservation","status":"activating","status_reasons":[{"code":"cannot_activate_no_capacity_available","message":"The reservation cannot be activated because capacity is unavailable","more_info":"https://cloud.ibm.com/docs/vpc?topic=vpc-reserved-capacity-status-reasons"}],"zone":{"href":"https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1","name":"us-south-1"}}],"total_count":2,"limit":1}`) } else if requestNumber == 2 { - fmt.Fprintf(res, "%s", `{"reservations":[{"affinity_policy":"restricted","capacity":{"allocated":10,"available":2,"status":"allocated","total":10,"used":8},"committed_use":{"expiration_at":"2019-01-01T12:00:00.000Z","expiration_policy":"release","term":"Term"},"created_at":"2019-01-01T12:00:00.000Z","crn":"crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::reservation:7187-ba49df72-37b8-43ac-98da-f8e029de0e63","href":"https://us-south.iaas.cloud.ibm.com/v1/reservations/7187-ba49df72-37b8-43ac-98da-f8e029de0e63","id":"7187-ba49df72-37b8-43ac-98da-f8e029de0e63","lifecycle_state":"stable","name":"my-reservation","profile":{"href":"https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16","name":"bx2-4x16","resource_type":"instance_profile"},"resource_group":{"href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345","id":"fee82deba12e4c0fb69c3b09d1f12345","name":"my-resource-group"},"resource_type":"reservation","status":"activating","status_reasons":[{"code":"cannot_activate_no_capacity_available","message":"The reservation cannot be activated because capacity is unavailable","more_info":"https://cloud.ibm.com/docs/vpc?topic=vpc-reserved-capacity-status-reasons"}],"zone":{"href":"https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1","name":"us-south-1"}}],"total_count":2,"limit":1}`) + fmt.Fprintf(res, "%s", `{"reservations":[{"affinity_policy":"restricted","capacity":{"allocated":10,"available":8,"status":"allocated","total":10,"used":2},"committed_use":{"expiration_at":"2019-01-01T12:00:00.000Z","expiration_policy":"release","term":"Term"},"created_at":"2019-01-01T12:00:00.000Z","crn":"crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::reservation:7187-ba49df72-37b8-43ac-98da-f8e029de0e63","href":"https://us-south.iaas.cloud.ibm.com/v1/reservations/7187-ba49df72-37b8-43ac-98da-f8e029de0e63","id":"7187-ba49df72-37b8-43ac-98da-f8e029de0e63","lifecycle_state":"stable","name":"my-reservation","profile":{"href":"https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16","name":"bx2-4x16","resource_type":"instance_profile"},"resource_group":{"href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345","id":"fee82deba12e4c0fb69c3b09d1f12345","name":"my-resource-group"},"resource_type":"reservation","status":"activating","status_reasons":[{"code":"cannot_activate_no_capacity_available","message":"The reservation cannot be activated because capacity is unavailable","more_info":"https://cloud.ibm.com/docs/vpc?topic=vpc-reserved-capacity-status-reasons"}],"zone":{"href":"https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1","name":"us-south-1"}}],"total_count":2,"limit":1}`) } else { res.WriteHeader(400) } @@ -35476,7 +35476,7 @@ var _ = Describe(`VpcV1`, func() { listReservationsOptionsModel := &vpcv1.ListReservationsOptions{ Limit: core.Int64Ptr(int64(10)), - Name: core.StringPtr("testString"), + Name: core.StringPtr("my-name"), ResourceGroupID: core.StringPtr("testString"), ZoneName: core.StringPtr("us-south-1"), } @@ -35505,7 +35505,7 @@ var _ = Describe(`VpcV1`, func() { listReservationsOptionsModel := &vpcv1.ListReservationsOptions{ Limit: core.Int64Ptr(int64(10)), - Name: core.StringPtr("testString"), + Name: core.StringPtr("my-name"), ResourceGroupID: core.StringPtr("testString"), ZoneName: core.StringPtr("us-south-1"), } @@ -35634,7 +35634,7 @@ var _ = Describe(`VpcV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(201) - fmt.Fprintf(res, "%s", `{"affinity_policy": "restricted", "capacity": {"allocated": 10, "available": 2, "status": "allocated", "total": 10, "used": 8}, "committed_use": {"expiration_at": "2019-01-01T12:00:00.000Z", "expiration_policy": "release", "term": "Term"}, "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::reservation:7187-ba49df72-37b8-43ac-98da-f8e029de0e63", "href": "https://us-south.iaas.cloud.ibm.com/v1/reservations/7187-ba49df72-37b8-43ac-98da-f8e029de0e63", "id": "7187-ba49df72-37b8-43ac-98da-f8e029de0e63", "lifecycle_state": "stable", "name": "my-reservation", "profile": {"href": "https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16", "name": "bx2-4x16", "resource_type": "instance_profile"}, "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "reservation", "status": "activating", "status_reasons": [{"code": "cannot_activate_no_capacity_available", "message": "The reservation cannot be activated because capacity is unavailable", "more_info": "https://cloud.ibm.com/docs/vpc?topic=vpc-reserved-capacity-status-reasons"}], "zone": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}`) + fmt.Fprintf(res, "%s", `{"affinity_policy": "restricted", "capacity": {"allocated": 10, "available": 8, "status": "allocated", "total": 10, "used": 2}, "committed_use": {"expiration_at": "2019-01-01T12:00:00.000Z", "expiration_policy": "release", "term": "Term"}, "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::reservation:7187-ba49df72-37b8-43ac-98da-f8e029de0e63", "href": "https://us-south.iaas.cloud.ibm.com/v1/reservations/7187-ba49df72-37b8-43ac-98da-f8e029de0e63", "id": "7187-ba49df72-37b8-43ac-98da-f8e029de0e63", "lifecycle_state": "stable", "name": "my-reservation", "profile": {"href": "https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16", "name": "bx2-4x16", "resource_type": "instance_profile"}, "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "reservation", "status": "activating", "status_reasons": [{"code": "cannot_activate_no_capacity_available", "message": "The reservation cannot be activated because capacity is unavailable", "more_info": "https://cloud.ibm.com/docs/vpc?topic=vpc-reserved-capacity-status-reasons"}], "zone": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}`) })) }) It(`Invoke CreateReservation successfully with retries`, func() { @@ -35735,7 +35735,7 @@ var _ = Describe(`VpcV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(201) - fmt.Fprintf(res, "%s", `{"affinity_policy": "restricted", "capacity": {"allocated": 10, "available": 2, "status": "allocated", "total": 10, "used": 8}, "committed_use": {"expiration_at": "2019-01-01T12:00:00.000Z", "expiration_policy": "release", "term": "Term"}, "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::reservation:7187-ba49df72-37b8-43ac-98da-f8e029de0e63", "href": "https://us-south.iaas.cloud.ibm.com/v1/reservations/7187-ba49df72-37b8-43ac-98da-f8e029de0e63", "id": "7187-ba49df72-37b8-43ac-98da-f8e029de0e63", "lifecycle_state": "stable", "name": "my-reservation", "profile": {"href": "https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16", "name": "bx2-4x16", "resource_type": "instance_profile"}, "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "reservation", "status": "activating", "status_reasons": [{"code": "cannot_activate_no_capacity_available", "message": "The reservation cannot be activated because capacity is unavailable", "more_info": "https://cloud.ibm.com/docs/vpc?topic=vpc-reserved-capacity-status-reasons"}], "zone": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}`) + fmt.Fprintf(res, "%s", `{"affinity_policy": "restricted", "capacity": {"allocated": 10, "available": 8, "status": "allocated", "total": 10, "used": 2}, "committed_use": {"expiration_at": "2019-01-01T12:00:00.000Z", "expiration_policy": "release", "term": "Term"}, "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::reservation:7187-ba49df72-37b8-43ac-98da-f8e029de0e63", "href": "https://us-south.iaas.cloud.ibm.com/v1/reservations/7187-ba49df72-37b8-43ac-98da-f8e029de0e63", "id": "7187-ba49df72-37b8-43ac-98da-f8e029de0e63", "lifecycle_state": "stable", "name": "my-reservation", "profile": {"href": "https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16", "name": "bx2-4x16", "resource_type": "instance_profile"}, "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "reservation", "status": "activating", "status_reasons": [{"code": "cannot_activate_no_capacity_available", "message": "The reservation cannot be activated because capacity is unavailable", "more_info": "https://cloud.ibm.com/docs/vpc?topic=vpc-reserved-capacity-status-reasons"}], "zone": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}`) })) }) It(`Invoke CreateReservation successfully`, func() { @@ -35987,7 +35987,7 @@ var _ = Describe(`VpcV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(202) - fmt.Fprintf(res, "%s", `{"affinity_policy": "restricted", "capacity": {"allocated": 10, "available": 2, "status": "allocated", "total": 10, "used": 8}, "committed_use": {"expiration_at": "2019-01-01T12:00:00.000Z", "expiration_policy": "release", "term": "Term"}, "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::reservation:7187-ba49df72-37b8-43ac-98da-f8e029de0e63", "href": "https://us-south.iaas.cloud.ibm.com/v1/reservations/7187-ba49df72-37b8-43ac-98da-f8e029de0e63", "id": "7187-ba49df72-37b8-43ac-98da-f8e029de0e63", "lifecycle_state": "stable", "name": "my-reservation", "profile": {"href": "https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16", "name": "bx2-4x16", "resource_type": "instance_profile"}, "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "reservation", "status": "activating", "status_reasons": [{"code": "cannot_activate_no_capacity_available", "message": "The reservation cannot be activated because capacity is unavailable", "more_info": "https://cloud.ibm.com/docs/vpc?topic=vpc-reserved-capacity-status-reasons"}], "zone": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}`) + fmt.Fprintf(res, "%s", `{"affinity_policy": "restricted", "capacity": {"allocated": 10, "available": 8, "status": "allocated", "total": 10, "used": 2}, "committed_use": {"expiration_at": "2019-01-01T12:00:00.000Z", "expiration_policy": "release", "term": "Term"}, "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::reservation:7187-ba49df72-37b8-43ac-98da-f8e029de0e63", "href": "https://us-south.iaas.cloud.ibm.com/v1/reservations/7187-ba49df72-37b8-43ac-98da-f8e029de0e63", "id": "7187-ba49df72-37b8-43ac-98da-f8e029de0e63", "lifecycle_state": "stable", "name": "my-reservation", "profile": {"href": "https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16", "name": "bx2-4x16", "resource_type": "instance_profile"}, "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "reservation", "status": "activating", "status_reasons": [{"code": "cannot_activate_no_capacity_available", "message": "The reservation cannot be activated because capacity is unavailable", "more_info": "https://cloud.ibm.com/docs/vpc?topic=vpc-reserved-capacity-status-reasons"}], "zone": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}`) })) }) It(`Invoke DeleteReservation successfully with retries`, func() { @@ -36044,7 +36044,7 @@ var _ = Describe(`VpcV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(202) - fmt.Fprintf(res, "%s", `{"affinity_policy": "restricted", "capacity": {"allocated": 10, "available": 2, "status": "allocated", "total": 10, "used": 8}, "committed_use": {"expiration_at": "2019-01-01T12:00:00.000Z", "expiration_policy": "release", "term": "Term"}, "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::reservation:7187-ba49df72-37b8-43ac-98da-f8e029de0e63", "href": "https://us-south.iaas.cloud.ibm.com/v1/reservations/7187-ba49df72-37b8-43ac-98da-f8e029de0e63", "id": "7187-ba49df72-37b8-43ac-98da-f8e029de0e63", "lifecycle_state": "stable", "name": "my-reservation", "profile": {"href": "https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16", "name": "bx2-4x16", "resource_type": "instance_profile"}, "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "reservation", "status": "activating", "status_reasons": [{"code": "cannot_activate_no_capacity_available", "message": "The reservation cannot be activated because capacity is unavailable", "more_info": "https://cloud.ibm.com/docs/vpc?topic=vpc-reserved-capacity-status-reasons"}], "zone": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}`) + fmt.Fprintf(res, "%s", `{"affinity_policy": "restricted", "capacity": {"allocated": 10, "available": 8, "status": "allocated", "total": 10, "used": 2}, "committed_use": {"expiration_at": "2019-01-01T12:00:00.000Z", "expiration_policy": "release", "term": "Term"}, "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::reservation:7187-ba49df72-37b8-43ac-98da-f8e029de0e63", "href": "https://us-south.iaas.cloud.ibm.com/v1/reservations/7187-ba49df72-37b8-43ac-98da-f8e029de0e63", "id": "7187-ba49df72-37b8-43ac-98da-f8e029de0e63", "lifecycle_state": "stable", "name": "my-reservation", "profile": {"href": "https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16", "name": "bx2-4x16", "resource_type": "instance_profile"}, "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "reservation", "status": "activating", "status_reasons": [{"code": "cannot_activate_no_capacity_available", "message": "The reservation cannot be activated because capacity is unavailable", "more_info": "https://cloud.ibm.com/docs/vpc?topic=vpc-reserved-capacity-status-reasons"}], "zone": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}`) })) }) It(`Invoke DeleteReservation successfully`, func() { @@ -36212,7 +36212,7 @@ var _ = Describe(`VpcV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"affinity_policy": "restricted", "capacity": {"allocated": 10, "available": 2, "status": "allocated", "total": 10, "used": 8}, "committed_use": {"expiration_at": "2019-01-01T12:00:00.000Z", "expiration_policy": "release", "term": "Term"}, "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::reservation:7187-ba49df72-37b8-43ac-98da-f8e029de0e63", "href": "https://us-south.iaas.cloud.ibm.com/v1/reservations/7187-ba49df72-37b8-43ac-98da-f8e029de0e63", "id": "7187-ba49df72-37b8-43ac-98da-f8e029de0e63", "lifecycle_state": "stable", "name": "my-reservation", "profile": {"href": "https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16", "name": "bx2-4x16", "resource_type": "instance_profile"}, "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "reservation", "status": "activating", "status_reasons": [{"code": "cannot_activate_no_capacity_available", "message": "The reservation cannot be activated because capacity is unavailable", "more_info": "https://cloud.ibm.com/docs/vpc?topic=vpc-reserved-capacity-status-reasons"}], "zone": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}`) + fmt.Fprintf(res, "%s", `{"affinity_policy": "restricted", "capacity": {"allocated": 10, "available": 8, "status": "allocated", "total": 10, "used": 2}, "committed_use": {"expiration_at": "2019-01-01T12:00:00.000Z", "expiration_policy": "release", "term": "Term"}, "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::reservation:7187-ba49df72-37b8-43ac-98da-f8e029de0e63", "href": "https://us-south.iaas.cloud.ibm.com/v1/reservations/7187-ba49df72-37b8-43ac-98da-f8e029de0e63", "id": "7187-ba49df72-37b8-43ac-98da-f8e029de0e63", "lifecycle_state": "stable", "name": "my-reservation", "profile": {"href": "https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16", "name": "bx2-4x16", "resource_type": "instance_profile"}, "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "reservation", "status": "activating", "status_reasons": [{"code": "cannot_activate_no_capacity_available", "message": "The reservation cannot be activated because capacity is unavailable", "more_info": "https://cloud.ibm.com/docs/vpc?topic=vpc-reserved-capacity-status-reasons"}], "zone": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}`) })) }) It(`Invoke GetReservation successfully with retries`, func() { @@ -36269,7 +36269,7 @@ var _ = Describe(`VpcV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"affinity_policy": "restricted", "capacity": {"allocated": 10, "available": 2, "status": "allocated", "total": 10, "used": 8}, "committed_use": {"expiration_at": "2019-01-01T12:00:00.000Z", "expiration_policy": "release", "term": "Term"}, "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::reservation:7187-ba49df72-37b8-43ac-98da-f8e029de0e63", "href": "https://us-south.iaas.cloud.ibm.com/v1/reservations/7187-ba49df72-37b8-43ac-98da-f8e029de0e63", "id": "7187-ba49df72-37b8-43ac-98da-f8e029de0e63", "lifecycle_state": "stable", "name": "my-reservation", "profile": {"href": "https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16", "name": "bx2-4x16", "resource_type": "instance_profile"}, "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "reservation", "status": "activating", "status_reasons": [{"code": "cannot_activate_no_capacity_available", "message": "The reservation cannot be activated because capacity is unavailable", "more_info": "https://cloud.ibm.com/docs/vpc?topic=vpc-reserved-capacity-status-reasons"}], "zone": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}`) + fmt.Fprintf(res, "%s", `{"affinity_policy": "restricted", "capacity": {"allocated": 10, "available": 8, "status": "allocated", "total": 10, "used": 2}, "committed_use": {"expiration_at": "2019-01-01T12:00:00.000Z", "expiration_policy": "release", "term": "Term"}, "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::reservation:7187-ba49df72-37b8-43ac-98da-f8e029de0e63", "href": "https://us-south.iaas.cloud.ibm.com/v1/reservations/7187-ba49df72-37b8-43ac-98da-f8e029de0e63", "id": "7187-ba49df72-37b8-43ac-98da-f8e029de0e63", "lifecycle_state": "stable", "name": "my-reservation", "profile": {"href": "https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16", "name": "bx2-4x16", "resource_type": "instance_profile"}, "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "reservation", "status": "activating", "status_reasons": [{"code": "cannot_activate_no_capacity_available", "message": "The reservation cannot be activated because capacity is unavailable", "more_info": "https://cloud.ibm.com/docs/vpc?topic=vpc-reserved-capacity-status-reasons"}], "zone": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}`) })) }) It(`Invoke GetReservation successfully`, func() { @@ -36477,7 +36477,7 @@ var _ = Describe(`VpcV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"affinity_policy": "restricted", "capacity": {"allocated": 10, "available": 2, "status": "allocated", "total": 10, "used": 8}, "committed_use": {"expiration_at": "2019-01-01T12:00:00.000Z", "expiration_policy": "release", "term": "Term"}, "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::reservation:7187-ba49df72-37b8-43ac-98da-f8e029de0e63", "href": "https://us-south.iaas.cloud.ibm.com/v1/reservations/7187-ba49df72-37b8-43ac-98da-f8e029de0e63", "id": "7187-ba49df72-37b8-43ac-98da-f8e029de0e63", "lifecycle_state": "stable", "name": "my-reservation", "profile": {"href": "https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16", "name": "bx2-4x16", "resource_type": "instance_profile"}, "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "reservation", "status": "activating", "status_reasons": [{"code": "cannot_activate_no_capacity_available", "message": "The reservation cannot be activated because capacity is unavailable", "more_info": "https://cloud.ibm.com/docs/vpc?topic=vpc-reserved-capacity-status-reasons"}], "zone": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}`) + fmt.Fprintf(res, "%s", `{"affinity_policy": "restricted", "capacity": {"allocated": 10, "available": 8, "status": "allocated", "total": 10, "used": 2}, "committed_use": {"expiration_at": "2019-01-01T12:00:00.000Z", "expiration_policy": "release", "term": "Term"}, "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::reservation:7187-ba49df72-37b8-43ac-98da-f8e029de0e63", "href": "https://us-south.iaas.cloud.ibm.com/v1/reservations/7187-ba49df72-37b8-43ac-98da-f8e029de0e63", "id": "7187-ba49df72-37b8-43ac-98da-f8e029de0e63", "lifecycle_state": "stable", "name": "my-reservation", "profile": {"href": "https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16", "name": "bx2-4x16", "resource_type": "instance_profile"}, "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "reservation", "status": "activating", "status_reasons": [{"code": "cannot_activate_no_capacity_available", "message": "The reservation cannot be activated because capacity is unavailable", "more_info": "https://cloud.ibm.com/docs/vpc?topic=vpc-reserved-capacity-status-reasons"}], "zone": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}`) })) }) It(`Invoke UpdateReservation successfully with retries`, func() { @@ -36574,7 +36574,7 @@ var _ = Describe(`VpcV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"affinity_policy": "restricted", "capacity": {"allocated": 10, "available": 2, "status": "allocated", "total": 10, "used": 8}, "committed_use": {"expiration_at": "2019-01-01T12:00:00.000Z", "expiration_policy": "release", "term": "Term"}, "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::reservation:7187-ba49df72-37b8-43ac-98da-f8e029de0e63", "href": "https://us-south.iaas.cloud.ibm.com/v1/reservations/7187-ba49df72-37b8-43ac-98da-f8e029de0e63", "id": "7187-ba49df72-37b8-43ac-98da-f8e029de0e63", "lifecycle_state": "stable", "name": "my-reservation", "profile": {"href": "https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16", "name": "bx2-4x16", "resource_type": "instance_profile"}, "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "reservation", "status": "activating", "status_reasons": [{"code": "cannot_activate_no_capacity_available", "message": "The reservation cannot be activated because capacity is unavailable", "more_info": "https://cloud.ibm.com/docs/vpc?topic=vpc-reserved-capacity-status-reasons"}], "zone": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}`) + fmt.Fprintf(res, "%s", `{"affinity_policy": "restricted", "capacity": {"allocated": 10, "available": 8, "status": "allocated", "total": 10, "used": 2}, "committed_use": {"expiration_at": "2019-01-01T12:00:00.000Z", "expiration_policy": "release", "term": "Term"}, "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::reservation:7187-ba49df72-37b8-43ac-98da-f8e029de0e63", "href": "https://us-south.iaas.cloud.ibm.com/v1/reservations/7187-ba49df72-37b8-43ac-98da-f8e029de0e63", "id": "7187-ba49df72-37b8-43ac-98da-f8e029de0e63", "lifecycle_state": "stable", "name": "my-reservation", "profile": {"href": "https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16", "name": "bx2-4x16", "resource_type": "instance_profile"}, "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "reservation", "status": "activating", "status_reasons": [{"code": "cannot_activate_no_capacity_available", "message": "The reservation cannot be activated because capacity is unavailable", "more_info": "https://cloud.ibm.com/docs/vpc?topic=vpc-reserved-capacity-status-reasons"}], "zone": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}`) })) }) It(`Invoke UpdateReservation successfully`, func() { @@ -36835,7 +36835,7 @@ var _ = Describe(`VpcV1`, func() { Expect(req.URL.Query()["limit"]).To(Equal([]string{fmt.Sprint(int64(10))})) Expect(req.URL.Query()["resource_group.id"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["zone.name"]).To(Equal([]string{"us-south-1"})) - Expect(req.URL.Query()["name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["name"]).To(Equal([]string{"my-name"})) res.Header().Set("Content-type", "application/json") res.WriteHeader(200) fmt.Fprint(res, `} this is not valid json {`) @@ -36856,7 +36856,7 @@ var _ = Describe(`VpcV1`, func() { listDedicatedHostGroupsOptionsModel.Limit = core.Int64Ptr(int64(10)) listDedicatedHostGroupsOptionsModel.ResourceGroupID = core.StringPtr("testString") listDedicatedHostGroupsOptionsModel.ZoneName = core.StringPtr("us-south-1") - listDedicatedHostGroupsOptionsModel.Name = core.StringPtr("testString") + listDedicatedHostGroupsOptionsModel.Name = core.StringPtr("my-name") listDedicatedHostGroupsOptionsModel.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.ListDedicatedHostGroups(listDedicatedHostGroupsOptionsModel) @@ -36894,14 +36894,14 @@ var _ = Describe(`VpcV1`, func() { Expect(req.URL.Query()["limit"]).To(Equal([]string{fmt.Sprint(int64(10))})) Expect(req.URL.Query()["resource_group.id"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["zone.name"]).To(Equal([]string{"us-south-1"})) - Expect(req.URL.Query()["name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["name"]).To(Equal([]string{"my-name"})) // 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": "https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/groups?limit=20"}, "groups": [{"class": "mx2", "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host-group:bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0", "dedicated_hosts": [{"crn": "crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host:0717-1e09281b-f177-46fb-baf1-bc152b2e391a", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a", "id": "0717-1e09281b-f177-46fb-baf1-bc152b2e391a", "name": "my-host", "resource_type": "dedicated_host"}], "family": "balanced", "href": "https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/groups/bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0", "id": "bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0", "name": "my-host-group", "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "dedicated_host_group", "supported_instance_profiles": [{"href": "https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16", "name": "bx2-4x16", "resource_type": "instance_profile"}], "zone": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}], "limit": 20, "next": {"href": "https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/groups?start=9d5a91a3e2cbd233b5a5b33436855ed1&limit=20"}, "total_count": 132}`) + fmt.Fprintf(res, "%s", `{"first": {"href": "https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/groups?limit=20"}, "groups": [{"class": "bx2", "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host-group:bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0", "dedicated_hosts": [{"crn": "crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host:0717-1e09281b-f177-46fb-baf1-bc152b2e391a", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a", "id": "0717-1e09281b-f177-46fb-baf1-bc152b2e391a", "name": "my-host", "resource_type": "dedicated_host"}], "family": "balanced", "href": "https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/groups/bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0", "id": "bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0", "name": "my-host-group", "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "dedicated_host_group", "supported_instance_profiles": [{"href": "https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16", "name": "bx2-4x16", "resource_type": "instance_profile"}], "zone": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}], "limit": 20, "next": {"href": "https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/groups?start=9d5a91a3e2cbd233b5a5b33436855ed1&limit=20"}, "total_count": 132}`) })) }) It(`Invoke ListDedicatedHostGroups successfully with retries`, func() { @@ -36920,7 +36920,7 @@ var _ = Describe(`VpcV1`, func() { listDedicatedHostGroupsOptionsModel.Limit = core.Int64Ptr(int64(10)) listDedicatedHostGroupsOptionsModel.ResourceGroupID = core.StringPtr("testString") listDedicatedHostGroupsOptionsModel.ZoneName = core.StringPtr("us-south-1") - listDedicatedHostGroupsOptionsModel.Name = core.StringPtr("testString") + listDedicatedHostGroupsOptionsModel.Name = core.StringPtr("my-name") listDedicatedHostGroupsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with a Context to test a timeout error @@ -36963,11 +36963,11 @@ var _ = Describe(`VpcV1`, func() { Expect(req.URL.Query()["limit"]).To(Equal([]string{fmt.Sprint(int64(10))})) Expect(req.URL.Query()["resource_group.id"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["zone.name"]).To(Equal([]string{"us-south-1"})) - Expect(req.URL.Query()["name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["name"]).To(Equal([]string{"my-name"})) // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"first": {"href": "https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/groups?limit=20"}, "groups": [{"class": "mx2", "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host-group:bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0", "dedicated_hosts": [{"crn": "crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host:0717-1e09281b-f177-46fb-baf1-bc152b2e391a", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a", "id": "0717-1e09281b-f177-46fb-baf1-bc152b2e391a", "name": "my-host", "resource_type": "dedicated_host"}], "family": "balanced", "href": "https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/groups/bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0", "id": "bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0", "name": "my-host-group", "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "dedicated_host_group", "supported_instance_profiles": [{"href": "https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16", "name": "bx2-4x16", "resource_type": "instance_profile"}], "zone": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}], "limit": 20, "next": {"href": "https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/groups?start=9d5a91a3e2cbd233b5a5b33436855ed1&limit=20"}, "total_count": 132}`) + fmt.Fprintf(res, "%s", `{"first": {"href": "https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/groups?limit=20"}, "groups": [{"class": "bx2", "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host-group:bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0", "dedicated_hosts": [{"crn": "crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host:0717-1e09281b-f177-46fb-baf1-bc152b2e391a", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a", "id": "0717-1e09281b-f177-46fb-baf1-bc152b2e391a", "name": "my-host", "resource_type": "dedicated_host"}], "family": "balanced", "href": "https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/groups/bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0", "id": "bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0", "name": "my-host-group", "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "dedicated_host_group", "supported_instance_profiles": [{"href": "https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16", "name": "bx2-4x16", "resource_type": "instance_profile"}], "zone": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}], "limit": 20, "next": {"href": "https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/groups?start=9d5a91a3e2cbd233b5a5b33436855ed1&limit=20"}, "total_count": 132}`) })) }) It(`Invoke ListDedicatedHostGroups successfully`, func() { @@ -36991,7 +36991,7 @@ var _ = Describe(`VpcV1`, func() { listDedicatedHostGroupsOptionsModel.Limit = core.Int64Ptr(int64(10)) listDedicatedHostGroupsOptionsModel.ResourceGroupID = core.StringPtr("testString") listDedicatedHostGroupsOptionsModel.ZoneName = core.StringPtr("us-south-1") - listDedicatedHostGroupsOptionsModel.Name = core.StringPtr("testString") + listDedicatedHostGroupsOptionsModel.Name = core.StringPtr("my-name") listDedicatedHostGroupsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with valid options model (positive test) @@ -37016,7 +37016,7 @@ var _ = Describe(`VpcV1`, func() { listDedicatedHostGroupsOptionsModel.Limit = core.Int64Ptr(int64(10)) listDedicatedHostGroupsOptionsModel.ResourceGroupID = core.StringPtr("testString") listDedicatedHostGroupsOptionsModel.ZoneName = core.StringPtr("us-south-1") - listDedicatedHostGroupsOptionsModel.Name = core.StringPtr("testString") + listDedicatedHostGroupsOptionsModel.Name = core.StringPtr("my-name") listDedicatedHostGroupsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with empty URL (negative test) err := vpcService.SetServiceURL("") @@ -37055,7 +37055,7 @@ var _ = Describe(`VpcV1`, func() { listDedicatedHostGroupsOptionsModel.Limit = core.Int64Ptr(int64(10)) listDedicatedHostGroupsOptionsModel.ResourceGroupID = core.StringPtr("testString") listDedicatedHostGroupsOptionsModel.ZoneName = core.StringPtr("us-south-1") - listDedicatedHostGroupsOptionsModel.Name = core.StringPtr("testString") + listDedicatedHostGroupsOptionsModel.Name = core.StringPtr("my-name") listDedicatedHostGroupsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation @@ -37114,9 +37114,9 @@ var _ = Describe(`VpcV1`, func() { res.WriteHeader(200) requestNumber++ if requestNumber == 1 { - fmt.Fprintf(res, "%s", `{"next":{"href":"https://myhost.com/somePath?start=1"},"total_count":2,"limit":1,"groups":[{"class":"mx2","created_at":"2019-01-01T12:00:00.000Z","crn":"crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host-group:bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0","dedicated_hosts":[{"crn":"crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host:0717-1e09281b-f177-46fb-baf1-bc152b2e391a","deleted":{"more_info":"https://cloud.ibm.com/apidocs/vpc#deleted-resources"},"href":"https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a","id":"0717-1e09281b-f177-46fb-baf1-bc152b2e391a","name":"my-host","resource_type":"dedicated_host"}],"family":"balanced","href":"https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/groups/bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0","id":"bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0","name":"my-host-group","resource_group":{"href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345","id":"fee82deba12e4c0fb69c3b09d1f12345","name":"my-resource-group"},"resource_type":"dedicated_host_group","supported_instance_profiles":[{"href":"https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16","name":"bx2-4x16","resource_type":"instance_profile"}],"zone":{"href":"https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1","name":"us-south-1"}}]}`) + fmt.Fprintf(res, "%s", `{"next":{"href":"https://myhost.com/somePath?start=1"},"total_count":2,"limit":1,"groups":[{"class":"bx2","created_at":"2019-01-01T12:00:00.000Z","crn":"crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host-group:bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0","dedicated_hosts":[{"crn":"crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host:0717-1e09281b-f177-46fb-baf1-bc152b2e391a","deleted":{"more_info":"https://cloud.ibm.com/apidocs/vpc#deleted-resources"},"href":"https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a","id":"0717-1e09281b-f177-46fb-baf1-bc152b2e391a","name":"my-host","resource_type":"dedicated_host"}],"family":"balanced","href":"https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/groups/bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0","id":"bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0","name":"my-host-group","resource_group":{"href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345","id":"fee82deba12e4c0fb69c3b09d1f12345","name":"my-resource-group"},"resource_type":"dedicated_host_group","supported_instance_profiles":[{"href":"https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16","name":"bx2-4x16","resource_type":"instance_profile"}],"zone":{"href":"https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1","name":"us-south-1"}}]}`) } else if requestNumber == 2 { - fmt.Fprintf(res, "%s", `{"total_count":2,"limit":1,"groups":[{"class":"mx2","created_at":"2019-01-01T12:00:00.000Z","crn":"crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host-group:bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0","dedicated_hosts":[{"crn":"crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host:0717-1e09281b-f177-46fb-baf1-bc152b2e391a","deleted":{"more_info":"https://cloud.ibm.com/apidocs/vpc#deleted-resources"},"href":"https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a","id":"0717-1e09281b-f177-46fb-baf1-bc152b2e391a","name":"my-host","resource_type":"dedicated_host"}],"family":"balanced","href":"https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/groups/bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0","id":"bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0","name":"my-host-group","resource_group":{"href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345","id":"fee82deba12e4c0fb69c3b09d1f12345","name":"my-resource-group"},"resource_type":"dedicated_host_group","supported_instance_profiles":[{"href":"https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16","name":"bx2-4x16","resource_type":"instance_profile"}],"zone":{"href":"https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1","name":"us-south-1"}}]}`) + fmt.Fprintf(res, "%s", `{"total_count":2,"limit":1,"groups":[{"class":"bx2","created_at":"2019-01-01T12:00:00.000Z","crn":"crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host-group:bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0","dedicated_hosts":[{"crn":"crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host:0717-1e09281b-f177-46fb-baf1-bc152b2e391a","deleted":{"more_info":"https://cloud.ibm.com/apidocs/vpc#deleted-resources"},"href":"https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a","id":"0717-1e09281b-f177-46fb-baf1-bc152b2e391a","name":"my-host","resource_type":"dedicated_host"}],"family":"balanced","href":"https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/groups/bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0","id":"bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0","name":"my-host-group","resource_group":{"href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345","id":"fee82deba12e4c0fb69c3b09d1f12345","name":"my-resource-group"},"resource_type":"dedicated_host_group","supported_instance_profiles":[{"href":"https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16","name":"bx2-4x16","resource_type":"instance_profile"}],"zone":{"href":"https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1","name":"us-south-1"}}]}`) } else { res.WriteHeader(400) } @@ -37135,7 +37135,7 @@ var _ = Describe(`VpcV1`, func() { Limit: core.Int64Ptr(int64(10)), ResourceGroupID: core.StringPtr("testString"), ZoneName: core.StringPtr("us-south-1"), - Name: core.StringPtr("testString"), + Name: core.StringPtr("my-name"), } pager, err := vpcService.NewDedicatedHostGroupsPager(listDedicatedHostGroupsOptionsModel) @@ -37164,7 +37164,7 @@ var _ = Describe(`VpcV1`, func() { Limit: core.Int64Ptr(int64(10)), ResourceGroupID: core.StringPtr("testString"), ZoneName: core.StringPtr("us-south-1"), - Name: core.StringPtr("testString"), + Name: core.StringPtr("my-name"), } pager, err := vpcService.NewDedicatedHostGroupsPager(listDedicatedHostGroupsOptionsModel) @@ -37275,7 +37275,7 @@ var _ = Describe(`VpcV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(201) - fmt.Fprintf(res, "%s", `{"class": "mx2", "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host-group:bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0", "dedicated_hosts": [{"crn": "crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host:0717-1e09281b-f177-46fb-baf1-bc152b2e391a", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a", "id": "0717-1e09281b-f177-46fb-baf1-bc152b2e391a", "name": "my-host", "resource_type": "dedicated_host"}], "family": "balanced", "href": "https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/groups/bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0", "id": "bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0", "name": "my-host-group", "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "dedicated_host_group", "supported_instance_profiles": [{"href": "https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16", "name": "bx2-4x16", "resource_type": "instance_profile"}], "zone": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}`) + fmt.Fprintf(res, "%s", `{"class": "bx2", "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host-group:bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0", "dedicated_hosts": [{"crn": "crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host:0717-1e09281b-f177-46fb-baf1-bc152b2e391a", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a", "id": "0717-1e09281b-f177-46fb-baf1-bc152b2e391a", "name": "my-host", "resource_type": "dedicated_host"}], "family": "balanced", "href": "https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/groups/bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0", "id": "bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0", "name": "my-host-group", "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "dedicated_host_group", "supported_instance_profiles": [{"href": "https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16", "name": "bx2-4x16", "resource_type": "instance_profile"}], "zone": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}`) })) }) It(`Invoke CreateDedicatedHostGroup successfully with retries`, func() { @@ -37360,7 +37360,7 @@ var _ = Describe(`VpcV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(201) - fmt.Fprintf(res, "%s", `{"class": "mx2", "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host-group:bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0", "dedicated_hosts": [{"crn": "crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host:0717-1e09281b-f177-46fb-baf1-bc152b2e391a", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a", "id": "0717-1e09281b-f177-46fb-baf1-bc152b2e391a", "name": "my-host", "resource_type": "dedicated_host"}], "family": "balanced", "href": "https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/groups/bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0", "id": "bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0", "name": "my-host-group", "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "dedicated_host_group", "supported_instance_profiles": [{"href": "https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16", "name": "bx2-4x16", "resource_type": "instance_profile"}], "zone": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}`) + fmt.Fprintf(res, "%s", `{"class": "bx2", "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host-group:bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0", "dedicated_hosts": [{"crn": "crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host:0717-1e09281b-f177-46fb-baf1-bc152b2e391a", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a", "id": "0717-1e09281b-f177-46fb-baf1-bc152b2e391a", "name": "my-host", "resource_type": "dedicated_host"}], "family": "balanced", "href": "https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/groups/bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0", "id": "bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0", "name": "my-host-group", "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "dedicated_host_group", "supported_instance_profiles": [{"href": "https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16", "name": "bx2-4x16", "resource_type": "instance_profile"}], "zone": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}`) })) }) It(`Invoke CreateDedicatedHostGroup successfully`, func() { @@ -37637,7 +37637,7 @@ var _ = Describe(`VpcV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"class": "mx2", "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host-group:bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0", "dedicated_hosts": [{"crn": "crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host:0717-1e09281b-f177-46fb-baf1-bc152b2e391a", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a", "id": "0717-1e09281b-f177-46fb-baf1-bc152b2e391a", "name": "my-host", "resource_type": "dedicated_host"}], "family": "balanced", "href": "https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/groups/bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0", "id": "bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0", "name": "my-host-group", "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "dedicated_host_group", "supported_instance_profiles": [{"href": "https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16", "name": "bx2-4x16", "resource_type": "instance_profile"}], "zone": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}`) + fmt.Fprintf(res, "%s", `{"class": "bx2", "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host-group:bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0", "dedicated_hosts": [{"crn": "crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host:0717-1e09281b-f177-46fb-baf1-bc152b2e391a", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a", "id": "0717-1e09281b-f177-46fb-baf1-bc152b2e391a", "name": "my-host", "resource_type": "dedicated_host"}], "family": "balanced", "href": "https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/groups/bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0", "id": "bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0", "name": "my-host-group", "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "dedicated_host_group", "supported_instance_profiles": [{"href": "https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16", "name": "bx2-4x16", "resource_type": "instance_profile"}], "zone": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}`) })) }) It(`Invoke GetDedicatedHostGroup successfully with retries`, func() { @@ -37694,7 +37694,7 @@ var _ = Describe(`VpcV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"class": "mx2", "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host-group:bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0", "dedicated_hosts": [{"crn": "crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host:0717-1e09281b-f177-46fb-baf1-bc152b2e391a", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a", "id": "0717-1e09281b-f177-46fb-baf1-bc152b2e391a", "name": "my-host", "resource_type": "dedicated_host"}], "family": "balanced", "href": "https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/groups/bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0", "id": "bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0", "name": "my-host-group", "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "dedicated_host_group", "supported_instance_profiles": [{"href": "https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16", "name": "bx2-4x16", "resource_type": "instance_profile"}], "zone": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}`) + fmt.Fprintf(res, "%s", `{"class": "bx2", "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host-group:bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0", "dedicated_hosts": [{"crn": "crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host:0717-1e09281b-f177-46fb-baf1-bc152b2e391a", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a", "id": "0717-1e09281b-f177-46fb-baf1-bc152b2e391a", "name": "my-host", "resource_type": "dedicated_host"}], "family": "balanced", "href": "https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/groups/bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0", "id": "bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0", "name": "my-host-group", "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "dedicated_host_group", "supported_instance_profiles": [{"href": "https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16", "name": "bx2-4x16", "resource_type": "instance_profile"}], "zone": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}`) })) }) It(`Invoke GetDedicatedHostGroup successfully`, func() { @@ -37885,7 +37885,7 @@ var _ = Describe(`VpcV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"class": "mx2", "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host-group:bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0", "dedicated_hosts": [{"crn": "crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host:0717-1e09281b-f177-46fb-baf1-bc152b2e391a", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a", "id": "0717-1e09281b-f177-46fb-baf1-bc152b2e391a", "name": "my-host", "resource_type": "dedicated_host"}], "family": "balanced", "href": "https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/groups/bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0", "id": "bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0", "name": "my-host-group", "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "dedicated_host_group", "supported_instance_profiles": [{"href": "https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16", "name": "bx2-4x16", "resource_type": "instance_profile"}], "zone": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}`) + fmt.Fprintf(res, "%s", `{"class": "bx2", "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host-group:bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0", "dedicated_hosts": [{"crn": "crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host:0717-1e09281b-f177-46fb-baf1-bc152b2e391a", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a", "id": "0717-1e09281b-f177-46fb-baf1-bc152b2e391a", "name": "my-host", "resource_type": "dedicated_host"}], "family": "balanced", "href": "https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/groups/bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0", "id": "bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0", "name": "my-host-group", "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "dedicated_host_group", "supported_instance_profiles": [{"href": "https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16", "name": "bx2-4x16", "resource_type": "instance_profile"}], "zone": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}`) })) }) It(`Invoke UpdateDedicatedHostGroup successfully with retries`, func() { @@ -37965,7 +37965,7 @@ var _ = Describe(`VpcV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"class": "mx2", "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host-group:bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0", "dedicated_hosts": [{"crn": "crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host:0717-1e09281b-f177-46fb-baf1-bc152b2e391a", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a", "id": "0717-1e09281b-f177-46fb-baf1-bc152b2e391a", "name": "my-host", "resource_type": "dedicated_host"}], "family": "balanced", "href": "https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/groups/bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0", "id": "bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0", "name": "my-host-group", "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "dedicated_host_group", "supported_instance_profiles": [{"href": "https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16", "name": "bx2-4x16", "resource_type": "instance_profile"}], "zone": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}`) + fmt.Fprintf(res, "%s", `{"class": "bx2", "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host-group:bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0", "dedicated_hosts": [{"crn": "crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host:0717-1e09281b-f177-46fb-baf1-bc152b2e391a", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a", "id": "0717-1e09281b-f177-46fb-baf1-bc152b2e391a", "name": "my-host", "resource_type": "dedicated_host"}], "family": "balanced", "href": "https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/groups/bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0", "id": "bcc5b834-1258-4b9c-c3b4-43bc9cf5cde0", "name": "my-host-group", "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "dedicated_host_group", "supported_instance_profiles": [{"href": "https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16", "name": "bx2-4x16", "resource_type": "instance_profile"}], "zone": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1"}}`) })) }) It(`Invoke UpdateDedicatedHostGroup successfully`, func() { @@ -38159,7 +38159,7 @@ var _ = Describe(`VpcV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"first": {"href": "https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/profiles?limit=20"}, "limit": 20, "next": {"href": "https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/profiles?start=9da91&limit=20"}, "profiles": [{"class": "mx2", "disks": [{"interface_type": {"type": "fixed", "value": "nvme"}, "quantity": {"type": "fixed", "value": 4}, "size": {"type": "fixed", "value": 3200}, "supported_instance_interface_types": {"type": "fixed", "value": ["nvme"]}}], "family": "balanced", "href": "https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a", "memory": {"type": "fixed", "value": 16}, "name": "mx2-host-152x1216", "socket_count": {"type": "fixed", "value": 2}, "status": "current", "supported_instance_profiles": [{"href": "https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16", "name": "bx2-4x16", "resource_type": "instance_profile"}], "vcpu_architecture": {"type": "fixed", "value": "amd64"}, "vcpu_count": {"type": "fixed", "value": 16}, "vcpu_manufacturer": {"type": "fixed", "value": "intel"}}], "total_count": 132}`) + fmt.Fprintf(res, "%s", `{"first": {"href": "https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/profiles?limit=20"}, "limit": 20, "next": {"href": "https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/profiles?start=9da91&limit=20"}, "profiles": [{"class": "bx2", "disks": [{"interface_type": {"type": "fixed", "value": "nvme"}, "quantity": {"type": "fixed", "value": 4}, "size": {"type": "fixed", "value": 3200}, "supported_instance_interface_types": {"type": "fixed", "value": ["nvme"]}}], "family": "balanced", "href": "https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a", "memory": {"type": "fixed", "value": 16}, "name": "mx2-host-152x1216", "socket_count": {"type": "fixed", "value": 2}, "status": "current", "supported_instance_profiles": [{"href": "https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16", "name": "bx2-4x16", "resource_type": "instance_profile"}], "vcpu_architecture": {"type": "fixed", "value": "amd64"}, "vcpu_count": {"type": "fixed", "value": 16}, "vcpu_manufacturer": {"type": "fixed", "value": "intel"}}], "total_count": 132}`) })) }) It(`Invoke ListDedicatedHostProfiles successfully with retries`, func() { @@ -38219,7 +38219,7 @@ var _ = Describe(`VpcV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"first": {"href": "https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/profiles?limit=20"}, "limit": 20, "next": {"href": "https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/profiles?start=9da91&limit=20"}, "profiles": [{"class": "mx2", "disks": [{"interface_type": {"type": "fixed", "value": "nvme"}, "quantity": {"type": "fixed", "value": 4}, "size": {"type": "fixed", "value": 3200}, "supported_instance_interface_types": {"type": "fixed", "value": ["nvme"]}}], "family": "balanced", "href": "https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a", "memory": {"type": "fixed", "value": 16}, "name": "mx2-host-152x1216", "socket_count": {"type": "fixed", "value": 2}, "status": "current", "supported_instance_profiles": [{"href": "https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16", "name": "bx2-4x16", "resource_type": "instance_profile"}], "vcpu_architecture": {"type": "fixed", "value": "amd64"}, "vcpu_count": {"type": "fixed", "value": 16}, "vcpu_manufacturer": {"type": "fixed", "value": "intel"}}], "total_count": 132}`) + fmt.Fprintf(res, "%s", `{"first": {"href": "https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/profiles?limit=20"}, "limit": 20, "next": {"href": "https://us-south.iaas.cloud.ibm.com/v1/dedicated_host/profiles?start=9da91&limit=20"}, "profiles": [{"class": "bx2", "disks": [{"interface_type": {"type": "fixed", "value": "nvme"}, "quantity": {"type": "fixed", "value": 4}, "size": {"type": "fixed", "value": 3200}, "supported_instance_interface_types": {"type": "fixed", "value": ["nvme"]}}], "family": "balanced", "href": "https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a", "memory": {"type": "fixed", "value": 16}, "name": "mx2-host-152x1216", "socket_count": {"type": "fixed", "value": 2}, "status": "current", "supported_instance_profiles": [{"href": "https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16", "name": "bx2-4x16", "resource_type": "instance_profile"}], "vcpu_architecture": {"type": "fixed", "value": "amd64"}, "vcpu_count": {"type": "fixed", "value": 16}, "vcpu_manufacturer": {"type": "fixed", "value": "intel"}}], "total_count": 132}`) })) }) It(`Invoke ListDedicatedHostProfiles successfully`, func() { @@ -38357,9 +38357,9 @@ var _ = Describe(`VpcV1`, func() { res.WriteHeader(200) requestNumber++ if requestNumber == 1 { - fmt.Fprintf(res, "%s", `{"next":{"href":"https://myhost.com/somePath?start=1"},"total_count":2,"limit":1,"profiles":[{"class":"mx2","disks":[{"interface_type":{"type":"fixed","value":"nvme"},"quantity":{"type":"fixed","value":4},"size":{"type":"fixed","value":3200},"supported_instance_interface_types":{"type":"fixed","value":["nvme"]}}],"family":"balanced","href":"https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a","memory":{"type":"fixed","value":16},"name":"mx2-host-152x1216","socket_count":{"type":"fixed","value":2},"status":"current","supported_instance_profiles":[{"href":"https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16","name":"bx2-4x16","resource_type":"instance_profile"}],"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":16},"vcpu_manufacturer":{"type":"fixed","value":"intel"}}]}`) + fmt.Fprintf(res, "%s", `{"next":{"href":"https://myhost.com/somePath?start=1"},"total_count":2,"limit":1,"profiles":[{"class":"bx2","disks":[{"interface_type":{"type":"fixed","value":"nvme"},"quantity":{"type":"fixed","value":4},"size":{"type":"fixed","value":3200},"supported_instance_interface_types":{"type":"fixed","value":["nvme"]}}],"family":"balanced","href":"https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a","memory":{"type":"fixed","value":16},"name":"mx2-host-152x1216","socket_count":{"type":"fixed","value":2},"status":"current","supported_instance_profiles":[{"href":"https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16","name":"bx2-4x16","resource_type":"instance_profile"}],"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":16},"vcpu_manufacturer":{"type":"fixed","value":"intel"}}]}`) } else if requestNumber == 2 { - fmt.Fprintf(res, "%s", `{"total_count":2,"limit":1,"profiles":[{"class":"mx2","disks":[{"interface_type":{"type":"fixed","value":"nvme"},"quantity":{"type":"fixed","value":4},"size":{"type":"fixed","value":3200},"supported_instance_interface_types":{"type":"fixed","value":["nvme"]}}],"family":"balanced","href":"https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a","memory":{"type":"fixed","value":16},"name":"mx2-host-152x1216","socket_count":{"type":"fixed","value":2},"status":"current","supported_instance_profiles":[{"href":"https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16","name":"bx2-4x16","resource_type":"instance_profile"}],"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":16},"vcpu_manufacturer":{"type":"fixed","value":"intel"}}]}`) + fmt.Fprintf(res, "%s", `{"total_count":2,"limit":1,"profiles":[{"class":"bx2","disks":[{"interface_type":{"type":"fixed","value":"nvme"},"quantity":{"type":"fixed","value":4},"size":{"type":"fixed","value":3200},"supported_instance_interface_types":{"type":"fixed","value":["nvme"]}}],"family":"balanced","href":"https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a","memory":{"type":"fixed","value":16},"name":"mx2-host-152x1216","socket_count":{"type":"fixed","value":2},"status":"current","supported_instance_profiles":[{"href":"https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16","name":"bx2-4x16","resource_type":"instance_profile"}],"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":16},"vcpu_manufacturer":{"type":"fixed","value":"intel"}}]}`) } else { res.WriteHeader(400) } @@ -38417,7 +38417,7 @@ var _ = Describe(`VpcV1`, func() { }) Describe(`GetDedicatedHostProfile(getDedicatedHostProfileOptions *GetDedicatedHostProfileOptions) - Operation response error`, func() { version := "testString" - getDedicatedHostProfilePath := "/dedicated_host/profiles/testString" + getDedicatedHostProfilePath := "/dedicated_host/profiles/mx2-host-152x1216" Context(`Using mock server endpoint with invalid JSON response`, func() { BeforeEach(func() { testServer = httptest.NewServer(http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) { @@ -38444,7 +38444,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the GetDedicatedHostProfileOptions model getDedicatedHostProfileOptionsModel := new(vpcv1.GetDedicatedHostProfileOptions) - getDedicatedHostProfileOptionsModel.Name = core.StringPtr("testString") + getDedicatedHostProfileOptionsModel.Name = core.StringPtr("mx2-host-152x1216") getDedicatedHostProfileOptionsModel.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.GetDedicatedHostProfile(getDedicatedHostProfileOptionsModel) @@ -38466,7 +38466,7 @@ var _ = Describe(`VpcV1`, func() { }) Describe(`GetDedicatedHostProfile(getDedicatedHostProfileOptions *GetDedicatedHostProfileOptions)`, func() { version := "testString" - getDedicatedHostProfilePath := "/dedicated_host/profiles/testString" + getDedicatedHostProfilePath := "/dedicated_host/profiles/mx2-host-152x1216" Context(`Using mock server endpoint with timeout`, func() { BeforeEach(func() { testServer = httptest.NewServer(http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) { @@ -38484,7 +38484,7 @@ var _ = Describe(`VpcV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"class": "mx2", "disks": [{"interface_type": {"type": "fixed", "value": "nvme"}, "quantity": {"type": "fixed", "value": 4}, "size": {"type": "fixed", "value": 3200}, "supported_instance_interface_types": {"type": "fixed", "value": ["nvme"]}}], "family": "balanced", "href": "https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a", "memory": {"type": "fixed", "value": 16}, "name": "mx2-host-152x1216", "socket_count": {"type": "fixed", "value": 2}, "status": "current", "supported_instance_profiles": [{"href": "https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16", "name": "bx2-4x16", "resource_type": "instance_profile"}], "vcpu_architecture": {"type": "fixed", "value": "amd64"}, "vcpu_count": {"type": "fixed", "value": 16}, "vcpu_manufacturer": {"type": "fixed", "value": "intel"}}`) + fmt.Fprintf(res, "%s", `{"class": "bx2", "disks": [{"interface_type": {"type": "fixed", "value": "nvme"}, "quantity": {"type": "fixed", "value": 4}, "size": {"type": "fixed", "value": 3200}, "supported_instance_interface_types": {"type": "fixed", "value": ["nvme"]}}], "family": "balanced", "href": "https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a", "memory": {"type": "fixed", "value": 16}, "name": "mx2-host-152x1216", "socket_count": {"type": "fixed", "value": 2}, "status": "current", "supported_instance_profiles": [{"href": "https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16", "name": "bx2-4x16", "resource_type": "instance_profile"}], "vcpu_architecture": {"type": "fixed", "value": "amd64"}, "vcpu_count": {"type": "fixed", "value": 16}, "vcpu_manufacturer": {"type": "fixed", "value": "intel"}}`) })) }) It(`Invoke GetDedicatedHostProfile successfully with retries`, func() { @@ -38499,7 +38499,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the GetDedicatedHostProfileOptions model getDedicatedHostProfileOptionsModel := new(vpcv1.GetDedicatedHostProfileOptions) - getDedicatedHostProfileOptionsModel.Name = core.StringPtr("testString") + getDedicatedHostProfileOptionsModel.Name = core.StringPtr("mx2-host-152x1216") getDedicatedHostProfileOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with a Context to test a timeout error @@ -38541,7 +38541,7 @@ var _ = Describe(`VpcV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"class": "mx2", "disks": [{"interface_type": {"type": "fixed", "value": "nvme"}, "quantity": {"type": "fixed", "value": 4}, "size": {"type": "fixed", "value": 3200}, "supported_instance_interface_types": {"type": "fixed", "value": ["nvme"]}}], "family": "balanced", "href": "https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a", "memory": {"type": "fixed", "value": 16}, "name": "mx2-host-152x1216", "socket_count": {"type": "fixed", "value": 2}, "status": "current", "supported_instance_profiles": [{"href": "https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16", "name": "bx2-4x16", "resource_type": "instance_profile"}], "vcpu_architecture": {"type": "fixed", "value": "amd64"}, "vcpu_count": {"type": "fixed", "value": 16}, "vcpu_manufacturer": {"type": "fixed", "value": "intel"}}`) + fmt.Fprintf(res, "%s", `{"class": "bx2", "disks": [{"interface_type": {"type": "fixed", "value": "nvme"}, "quantity": {"type": "fixed", "value": 4}, "size": {"type": "fixed", "value": 3200}, "supported_instance_interface_types": {"type": "fixed", "value": ["nvme"]}}], "family": "balanced", "href": "https://us-south.iaas.cloud.ibm.com/v1/dedicated_hosts/0717-1e09281b-f177-46fb-baf1-bc152b2e391a", "memory": {"type": "fixed", "value": 16}, "name": "mx2-host-152x1216", "socket_count": {"type": "fixed", "value": 2}, "status": "current", "supported_instance_profiles": [{"href": "https://us-south.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16", "name": "bx2-4x16", "resource_type": "instance_profile"}], "vcpu_architecture": {"type": "fixed", "value": "amd64"}, "vcpu_count": {"type": "fixed", "value": 16}, "vcpu_manufacturer": {"type": "fixed", "value": "intel"}}`) })) }) It(`Invoke GetDedicatedHostProfile successfully`, func() { @@ -38561,7 +38561,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the GetDedicatedHostProfileOptions model getDedicatedHostProfileOptionsModel := new(vpcv1.GetDedicatedHostProfileOptions) - getDedicatedHostProfileOptionsModel.Name = core.StringPtr("testString") + getDedicatedHostProfileOptionsModel.Name = core.StringPtr("mx2-host-152x1216") getDedicatedHostProfileOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with valid options model (positive test) @@ -38582,7 +38582,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the GetDedicatedHostProfileOptions model getDedicatedHostProfileOptionsModel := new(vpcv1.GetDedicatedHostProfileOptions) - getDedicatedHostProfileOptionsModel.Name = core.StringPtr("testString") + getDedicatedHostProfileOptionsModel.Name = core.StringPtr("mx2-host-152x1216") getDedicatedHostProfileOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with empty URL (negative test) err := vpcService.SetServiceURL("") @@ -38624,7 +38624,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the GetDedicatedHostProfileOptions model getDedicatedHostProfileOptionsModel := new(vpcv1.GetDedicatedHostProfileOptions) - getDedicatedHostProfileOptionsModel.Name = core.StringPtr("testString") + getDedicatedHostProfileOptionsModel.Name = core.StringPtr("mx2-host-152x1216") getDedicatedHostProfileOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation @@ -38658,7 +38658,7 @@ var _ = Describe(`VpcV1`, func() { Expect(req.URL.Query()["limit"]).To(Equal([]string{fmt.Sprint(int64(10))})) Expect(req.URL.Query()["resource_group.id"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["zone.name"]).To(Equal([]string{"us-south-1"})) - Expect(req.URL.Query()["name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["name"]).To(Equal([]string{"my-name"})) res.Header().Set("Content-type", "application/json") res.WriteHeader(200) fmt.Fprint(res, `} this is not valid json {`) @@ -38680,7 +38680,7 @@ var _ = Describe(`VpcV1`, func() { listDedicatedHostsOptionsModel.Limit = core.Int64Ptr(int64(10)) listDedicatedHostsOptionsModel.ResourceGroupID = core.StringPtr("testString") listDedicatedHostsOptionsModel.ZoneName = core.StringPtr("us-south-1") - listDedicatedHostsOptionsModel.Name = core.StringPtr("testString") + listDedicatedHostsOptionsModel.Name = core.StringPtr("my-name") listDedicatedHostsOptionsModel.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.ListDedicatedHosts(listDedicatedHostsOptionsModel) @@ -38719,7 +38719,7 @@ var _ = Describe(`VpcV1`, func() { Expect(req.URL.Query()["limit"]).To(Equal([]string{fmt.Sprint(int64(10))})) Expect(req.URL.Query()["resource_group.id"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["zone.name"]).To(Equal([]string{"us-south-1"})) - Expect(req.URL.Query()["name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["name"]).To(Equal([]string{"my-name"})) // Sleep a short time to support a timeout test time.Sleep(100 * time.Millisecond) @@ -38746,7 +38746,7 @@ var _ = Describe(`VpcV1`, func() { listDedicatedHostsOptionsModel.Limit = core.Int64Ptr(int64(10)) listDedicatedHostsOptionsModel.ResourceGroupID = core.StringPtr("testString") listDedicatedHostsOptionsModel.ZoneName = core.StringPtr("us-south-1") - listDedicatedHostsOptionsModel.Name = core.StringPtr("testString") + listDedicatedHostsOptionsModel.Name = core.StringPtr("my-name") listDedicatedHostsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with a Context to test a timeout error @@ -38790,7 +38790,7 @@ var _ = Describe(`VpcV1`, func() { Expect(req.URL.Query()["limit"]).To(Equal([]string{fmt.Sprint(int64(10))})) Expect(req.URL.Query()["resource_group.id"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["zone.name"]).To(Equal([]string{"us-south-1"})) - Expect(req.URL.Query()["name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["name"]).To(Equal([]string{"my-name"})) // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) @@ -38819,7 +38819,7 @@ var _ = Describe(`VpcV1`, func() { listDedicatedHostsOptionsModel.Limit = core.Int64Ptr(int64(10)) listDedicatedHostsOptionsModel.ResourceGroupID = core.StringPtr("testString") listDedicatedHostsOptionsModel.ZoneName = core.StringPtr("us-south-1") - listDedicatedHostsOptionsModel.Name = core.StringPtr("testString") + listDedicatedHostsOptionsModel.Name = core.StringPtr("my-name") listDedicatedHostsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with valid options model (positive test) @@ -38845,7 +38845,7 @@ var _ = Describe(`VpcV1`, func() { listDedicatedHostsOptionsModel.Limit = core.Int64Ptr(int64(10)) listDedicatedHostsOptionsModel.ResourceGroupID = core.StringPtr("testString") listDedicatedHostsOptionsModel.ZoneName = core.StringPtr("us-south-1") - listDedicatedHostsOptionsModel.Name = core.StringPtr("testString") + listDedicatedHostsOptionsModel.Name = core.StringPtr("my-name") listDedicatedHostsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with empty URL (negative test) err := vpcService.SetServiceURL("") @@ -38885,7 +38885,7 @@ var _ = Describe(`VpcV1`, func() { listDedicatedHostsOptionsModel.Limit = core.Int64Ptr(int64(10)) listDedicatedHostsOptionsModel.ResourceGroupID = core.StringPtr("testString") listDedicatedHostsOptionsModel.ZoneName = core.StringPtr("us-south-1") - listDedicatedHostsOptionsModel.Name = core.StringPtr("testString") + listDedicatedHostsOptionsModel.Name = core.StringPtr("my-name") listDedicatedHostsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation @@ -38966,7 +38966,7 @@ var _ = Describe(`VpcV1`, func() { Limit: core.Int64Ptr(int64(10)), ResourceGroupID: core.StringPtr("testString"), ZoneName: core.StringPtr("us-south-1"), - Name: core.StringPtr("testString"), + Name: core.StringPtr("my-name"), } pager, err := vpcService.NewDedicatedHostsPager(listDedicatedHostsOptionsModel) @@ -38996,7 +38996,7 @@ var _ = Describe(`VpcV1`, func() { Limit: core.Int64Ptr(int64(10)), ResourceGroupID: core.StringPtr("testString"), ZoneName: core.StringPtr("us-south-1"), - Name: core.StringPtr("testString"), + Name: core.StringPtr("my-name"), } pager, err := vpcService.NewDedicatedHostsPager(listDedicatedHostsOptionsModel) @@ -42253,7 +42253,7 @@ var _ = Describe(`VpcV1`, func() { }) Describe(`GetBareMetalServerProfile(getBareMetalServerProfileOptions *GetBareMetalServerProfileOptions) - Operation response error`, func() { version := "testString" - getBareMetalServerProfilePath := "/bare_metal_server/profiles/testString" + getBareMetalServerProfilePath := "/bare_metal_server/profiles/bx2-metal-192x768" Context(`Using mock server endpoint with invalid JSON response`, func() { BeforeEach(func() { testServer = httptest.NewServer(http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) { @@ -42280,7 +42280,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the GetBareMetalServerProfileOptions model getBareMetalServerProfileOptionsModel := new(vpcv1.GetBareMetalServerProfileOptions) - getBareMetalServerProfileOptionsModel.Name = core.StringPtr("testString") + getBareMetalServerProfileOptionsModel.Name = core.StringPtr("bx2-metal-192x768") getBareMetalServerProfileOptionsModel.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.GetBareMetalServerProfile(getBareMetalServerProfileOptionsModel) @@ -42302,7 +42302,7 @@ var _ = Describe(`VpcV1`, func() { }) Describe(`GetBareMetalServerProfile(getBareMetalServerProfileOptions *GetBareMetalServerProfileOptions)`, func() { version := "testString" - getBareMetalServerProfilePath := "/bare_metal_server/profiles/testString" + getBareMetalServerProfilePath := "/bare_metal_server/profiles/bx2-metal-192x768" Context(`Using mock server endpoint with timeout`, func() { BeforeEach(func() { testServer = httptest.NewServer(http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) { @@ -42335,7 +42335,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the GetBareMetalServerProfileOptions model getBareMetalServerProfileOptionsModel := new(vpcv1.GetBareMetalServerProfileOptions) - getBareMetalServerProfileOptionsModel.Name = core.StringPtr("testString") + getBareMetalServerProfileOptionsModel.Name = core.StringPtr("bx2-metal-192x768") getBareMetalServerProfileOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with a Context to test a timeout error @@ -42397,7 +42397,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the GetBareMetalServerProfileOptions model getBareMetalServerProfileOptionsModel := new(vpcv1.GetBareMetalServerProfileOptions) - getBareMetalServerProfileOptionsModel.Name = core.StringPtr("testString") + getBareMetalServerProfileOptionsModel.Name = core.StringPtr("bx2-metal-192x768") getBareMetalServerProfileOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with valid options model (positive test) @@ -42418,7 +42418,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the GetBareMetalServerProfileOptions model getBareMetalServerProfileOptionsModel := new(vpcv1.GetBareMetalServerProfileOptions) - getBareMetalServerProfileOptionsModel.Name = core.StringPtr("testString") + getBareMetalServerProfileOptionsModel.Name = core.StringPtr("bx2-metal-192x768") getBareMetalServerProfileOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with empty URL (negative test) err := vpcService.SetServiceURL("") @@ -42460,7 +42460,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the GetBareMetalServerProfileOptions model getBareMetalServerProfileOptionsModel := new(vpcv1.GetBareMetalServerProfileOptions) - getBareMetalServerProfileOptionsModel.Name = core.StringPtr("testString") + getBareMetalServerProfileOptionsModel.Name = core.StringPtr("bx2-metal-192x768") getBareMetalServerProfileOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation @@ -42492,7 +42492,7 @@ var _ = Describe(`VpcV1`, func() { 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()["resource_group.id"]).To(Equal([]string{"testString"})) - Expect(req.URL.Query()["name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["name"]).To(Equal([]string{"my-name"})) Expect(req.URL.Query()["vpc.id"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["vpc.crn"]).To(Equal([]string{"crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b"})) Expect(req.URL.Query()["vpc.name"]).To(Equal([]string{"my-vpc"})) @@ -42515,7 +42515,7 @@ var _ = Describe(`VpcV1`, func() { listBareMetalServersOptionsModel.Start = core.StringPtr("testString") listBareMetalServersOptionsModel.Limit = core.Int64Ptr(int64(10)) listBareMetalServersOptionsModel.ResourceGroupID = core.StringPtr("testString") - listBareMetalServersOptionsModel.Name = core.StringPtr("testString") + listBareMetalServersOptionsModel.Name = core.StringPtr("my-name") listBareMetalServersOptionsModel.VPCID = core.StringPtr("testString") listBareMetalServersOptionsModel.VPCCRN = core.StringPtr("crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b") listBareMetalServersOptionsModel.VPCName = core.StringPtr("my-vpc") @@ -42555,7 +42555,7 @@ var _ = Describe(`VpcV1`, func() { 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()["resource_group.id"]).To(Equal([]string{"testString"})) - Expect(req.URL.Query()["name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["name"]).To(Equal([]string{"my-name"})) Expect(req.URL.Query()["vpc.id"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["vpc.crn"]).To(Equal([]string{"crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b"})) Expect(req.URL.Query()["vpc.name"]).To(Equal([]string{"my-vpc"})) @@ -42583,7 +42583,7 @@ var _ = Describe(`VpcV1`, func() { listBareMetalServersOptionsModel.Start = core.StringPtr("testString") listBareMetalServersOptionsModel.Limit = core.Int64Ptr(int64(10)) listBareMetalServersOptionsModel.ResourceGroupID = core.StringPtr("testString") - listBareMetalServersOptionsModel.Name = core.StringPtr("testString") + listBareMetalServersOptionsModel.Name = core.StringPtr("my-name") listBareMetalServersOptionsModel.VPCID = core.StringPtr("testString") listBareMetalServersOptionsModel.VPCCRN = core.StringPtr("crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b") listBareMetalServersOptionsModel.VPCName = core.StringPtr("my-vpc") @@ -42628,7 +42628,7 @@ var _ = Describe(`VpcV1`, func() { 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()["resource_group.id"]).To(Equal([]string{"testString"})) - Expect(req.URL.Query()["name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["name"]).To(Equal([]string{"my-name"})) Expect(req.URL.Query()["vpc.id"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["vpc.crn"]).To(Equal([]string{"crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b"})) Expect(req.URL.Query()["vpc.name"]).To(Equal([]string{"my-vpc"})) @@ -42658,7 +42658,7 @@ var _ = Describe(`VpcV1`, func() { listBareMetalServersOptionsModel.Start = core.StringPtr("testString") listBareMetalServersOptionsModel.Limit = core.Int64Ptr(int64(10)) listBareMetalServersOptionsModel.ResourceGroupID = core.StringPtr("testString") - listBareMetalServersOptionsModel.Name = core.StringPtr("testString") + listBareMetalServersOptionsModel.Name = core.StringPtr("my-name") listBareMetalServersOptionsModel.VPCID = core.StringPtr("testString") listBareMetalServersOptionsModel.VPCCRN = core.StringPtr("crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b") listBareMetalServersOptionsModel.VPCName = core.StringPtr("my-vpc") @@ -42685,7 +42685,7 @@ var _ = Describe(`VpcV1`, func() { listBareMetalServersOptionsModel.Start = core.StringPtr("testString") listBareMetalServersOptionsModel.Limit = core.Int64Ptr(int64(10)) listBareMetalServersOptionsModel.ResourceGroupID = core.StringPtr("testString") - listBareMetalServersOptionsModel.Name = core.StringPtr("testString") + listBareMetalServersOptionsModel.Name = core.StringPtr("my-name") listBareMetalServersOptionsModel.VPCID = core.StringPtr("testString") listBareMetalServersOptionsModel.VPCCRN = core.StringPtr("crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b") listBareMetalServersOptionsModel.VPCName = core.StringPtr("my-vpc") @@ -42726,7 +42726,7 @@ var _ = Describe(`VpcV1`, func() { listBareMetalServersOptionsModel.Start = core.StringPtr("testString") listBareMetalServersOptionsModel.Limit = core.Int64Ptr(int64(10)) listBareMetalServersOptionsModel.ResourceGroupID = core.StringPtr("testString") - listBareMetalServersOptionsModel.Name = core.StringPtr("testString") + listBareMetalServersOptionsModel.Name = core.StringPtr("my-name") listBareMetalServersOptionsModel.VPCID = core.StringPtr("testString") listBareMetalServersOptionsModel.VPCCRN = core.StringPtr("crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b") listBareMetalServersOptionsModel.VPCName = core.StringPtr("my-vpc") @@ -42808,7 +42808,7 @@ var _ = Describe(`VpcV1`, func() { listBareMetalServersOptionsModel := &vpcv1.ListBareMetalServersOptions{ Limit: core.Int64Ptr(int64(10)), ResourceGroupID: core.StringPtr("testString"), - Name: core.StringPtr("testString"), + Name: core.StringPtr("my-name"), VPCID: core.StringPtr("testString"), VPCCRN: core.StringPtr("crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b"), VPCName: core.StringPtr("my-vpc"), @@ -42839,7 +42839,7 @@ var _ = Describe(`VpcV1`, func() { listBareMetalServersOptionsModel := &vpcv1.ListBareMetalServersOptions{ Limit: core.Int64Ptr(int64(10)), ResourceGroupID: core.StringPtr("testString"), - Name: core.StringPtr("testString"), + Name: core.StringPtr("my-name"), VPCID: core.StringPtr("testString"), VPCCRN: core.StringPtr("crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b"), VPCName: core.StringPtr("my-vpc"), @@ -50447,7 +50447,7 @@ var _ = Describe(`VpcV1`, func() { }) Describe(`GetVolumeProfile(getVolumeProfileOptions *GetVolumeProfileOptions) - Operation response error`, func() { version := "testString" - getVolumeProfilePath := "/volume/profiles/testString" + getVolumeProfilePath := "/volume/profiles/10iops-tier" Context(`Using mock server endpoint with invalid JSON response`, func() { BeforeEach(func() { testServer = httptest.NewServer(http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) { @@ -50474,7 +50474,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the GetVolumeProfileOptions model getVolumeProfileOptionsModel := new(vpcv1.GetVolumeProfileOptions) - getVolumeProfileOptionsModel.Name = core.StringPtr("testString") + getVolumeProfileOptionsModel.Name = core.StringPtr("10iops-tier") getVolumeProfileOptionsModel.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.GetVolumeProfile(getVolumeProfileOptionsModel) @@ -50496,7 +50496,7 @@ var _ = Describe(`VpcV1`, func() { }) Describe(`GetVolumeProfile(getVolumeProfileOptions *GetVolumeProfileOptions)`, func() { version := "testString" - getVolumeProfilePath := "/volume/profiles/testString" + getVolumeProfilePath := "/volume/profiles/10iops-tier" Context(`Using mock server endpoint with timeout`, func() { BeforeEach(func() { testServer = httptest.NewServer(http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) { @@ -50529,7 +50529,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the GetVolumeProfileOptions model getVolumeProfileOptionsModel := new(vpcv1.GetVolumeProfileOptions) - getVolumeProfileOptionsModel.Name = core.StringPtr("testString") + getVolumeProfileOptionsModel.Name = core.StringPtr("10iops-tier") getVolumeProfileOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with a Context to test a timeout error @@ -50591,7 +50591,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the GetVolumeProfileOptions model getVolumeProfileOptionsModel := new(vpcv1.GetVolumeProfileOptions) - getVolumeProfileOptionsModel.Name = core.StringPtr("testString") + getVolumeProfileOptionsModel.Name = core.StringPtr("10iops-tier") getVolumeProfileOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with valid options model (positive test) @@ -50612,7 +50612,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the GetVolumeProfileOptions model getVolumeProfileOptionsModel := new(vpcv1.GetVolumeProfileOptions) - getVolumeProfileOptionsModel.Name = core.StringPtr("testString") + getVolumeProfileOptionsModel.Name = core.StringPtr("10iops-tier") getVolumeProfileOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with empty URL (negative test) err := vpcService.SetServiceURL("") @@ -50654,7 +50654,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the GetVolumeProfileOptions model getVolumeProfileOptionsModel := new(vpcv1.GetVolumeProfileOptions) - getVolumeProfileOptionsModel.Name = core.StringPtr("testString") + getVolumeProfileOptionsModel.Name = core.StringPtr("10iops-tier") getVolumeProfileOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation @@ -50685,7 +50685,7 @@ 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{"testString"})) + 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()["operating_system.family"]).To(Equal([]string{"Ubuntu Server"})) @@ -50710,7 +50710,7 @@ var _ = Describe(`VpcV1`, func() { listVolumesOptionsModel := new(vpcv1.ListVolumesOptions) listVolumesOptionsModel.Start = core.StringPtr("testString") listVolumesOptionsModel.Limit = core.Int64Ptr(int64(10)) - listVolumesOptionsModel.Name = core.StringPtr("testString") + listVolumesOptionsModel.Name = core.StringPtr("my-name") listVolumesOptionsModel.AttachmentState = core.StringPtr("attached") listVolumesOptionsModel.Encryption = core.StringPtr("provider_managed") listVolumesOptionsModel.OperatingSystemFamily = core.StringPtr("Ubuntu Server") @@ -50752,7 +50752,7 @@ 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{"testString"})) + 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()["operating_system.family"]).To(Equal([]string{"Ubuntu Server"})) @@ -50782,7 +50782,7 @@ var _ = Describe(`VpcV1`, func() { listVolumesOptionsModel := new(vpcv1.ListVolumesOptions) listVolumesOptionsModel.Start = core.StringPtr("testString") listVolumesOptionsModel.Limit = core.Int64Ptr(int64(10)) - listVolumesOptionsModel.Name = core.StringPtr("testString") + listVolumesOptionsModel.Name = core.StringPtr("my-name") listVolumesOptionsModel.AttachmentState = core.StringPtr("attached") listVolumesOptionsModel.Encryption = core.StringPtr("provider_managed") listVolumesOptionsModel.OperatingSystemFamily = core.StringPtr("Ubuntu Server") @@ -50829,7 +50829,7 @@ 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{"testString"})) + 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()["operating_system.family"]).To(Equal([]string{"Ubuntu Server"})) @@ -50861,7 +50861,7 @@ var _ = Describe(`VpcV1`, func() { listVolumesOptionsModel := new(vpcv1.ListVolumesOptions) listVolumesOptionsModel.Start = core.StringPtr("testString") listVolumesOptionsModel.Limit = core.Int64Ptr(int64(10)) - listVolumesOptionsModel.Name = core.StringPtr("testString") + listVolumesOptionsModel.Name = core.StringPtr("my-name") listVolumesOptionsModel.AttachmentState = core.StringPtr("attached") listVolumesOptionsModel.Encryption = core.StringPtr("provider_managed") listVolumesOptionsModel.OperatingSystemFamily = core.StringPtr("Ubuntu Server") @@ -50890,7 +50890,7 @@ var _ = Describe(`VpcV1`, func() { listVolumesOptionsModel := new(vpcv1.ListVolumesOptions) listVolumesOptionsModel.Start = core.StringPtr("testString") listVolumesOptionsModel.Limit = core.Int64Ptr(int64(10)) - listVolumesOptionsModel.Name = core.StringPtr("testString") + listVolumesOptionsModel.Name = core.StringPtr("my-name") listVolumesOptionsModel.AttachmentState = core.StringPtr("attached") listVolumesOptionsModel.Encryption = core.StringPtr("provider_managed") listVolumesOptionsModel.OperatingSystemFamily = core.StringPtr("Ubuntu Server") @@ -50933,7 +50933,7 @@ var _ = Describe(`VpcV1`, func() { listVolumesOptionsModel := new(vpcv1.ListVolumesOptions) listVolumesOptionsModel.Start = core.StringPtr("testString") listVolumesOptionsModel.Limit = core.Int64Ptr(int64(10)) - listVolumesOptionsModel.Name = core.StringPtr("testString") + listVolumesOptionsModel.Name = core.StringPtr("my-name") listVolumesOptionsModel.AttachmentState = core.StringPtr("attached") listVolumesOptionsModel.Encryption = core.StringPtr("provider_managed") listVolumesOptionsModel.OperatingSystemFamily = core.StringPtr("Ubuntu Server") @@ -51017,7 +51017,7 @@ var _ = Describe(`VpcV1`, func() { listVolumesOptionsModel := &vpcv1.ListVolumesOptions{ Limit: core.Int64Ptr(int64(10)), - Name: core.StringPtr("testString"), + Name: core.StringPtr("my-name"), AttachmentState: core.StringPtr("attached"), Encryption: core.StringPtr("provider_managed"), OperatingSystemFamily: core.StringPtr("Ubuntu Server"), @@ -51050,7 +51050,7 @@ var _ = Describe(`VpcV1`, func() { listVolumesOptionsModel := &vpcv1.ListVolumesOptions{ Limit: core.Int64Ptr(int64(10)), - Name: core.StringPtr("testString"), + Name: core.StringPtr("my-name"), AttachmentState: core.StringPtr("attached"), Encryption: core.StringPtr("provider_managed"), OperatingSystemFamily: core.StringPtr("Ubuntu Server"), @@ -52123,7 +52123,7 @@ var _ = Describe(`VpcV1`, func() { 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()["resource_group.id"]).To(Equal([]string{"testString"})) - Expect(req.URL.Query()["name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["name"]).To(Equal([]string{"my-name"})) Expect(req.URL.Query()["sort"]).To(Equal([]string{"name"})) Expect(req.URL.Query()["backup_policy_plan.id"]).To(Equal([]string{"testString"})) res.Header().Set("Content-type", "application/json") @@ -52145,7 +52145,7 @@ var _ = Describe(`VpcV1`, func() { listSnapshotConsistencyGroupsOptionsModel.Start = core.StringPtr("testString") listSnapshotConsistencyGroupsOptionsModel.Limit = core.Int64Ptr(int64(10)) listSnapshotConsistencyGroupsOptionsModel.ResourceGroupID = core.StringPtr("testString") - listSnapshotConsistencyGroupsOptionsModel.Name = core.StringPtr("testString") + listSnapshotConsistencyGroupsOptionsModel.Name = core.StringPtr("my-name") listSnapshotConsistencyGroupsOptionsModel.Sort = core.StringPtr("name") listSnapshotConsistencyGroupsOptionsModel.BackupPolicyPlanID = core.StringPtr("testString") listSnapshotConsistencyGroupsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} @@ -52184,7 +52184,7 @@ var _ = Describe(`VpcV1`, func() { 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()["resource_group.id"]).To(Equal([]string{"testString"})) - Expect(req.URL.Query()["name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["name"]).To(Equal([]string{"my-name"})) Expect(req.URL.Query()["sort"]).To(Equal([]string{"name"})) Expect(req.URL.Query()["backup_policy_plan.id"]).To(Equal([]string{"testString"})) // Sleep a short time to support a timeout test @@ -52211,7 +52211,7 @@ var _ = Describe(`VpcV1`, func() { listSnapshotConsistencyGroupsOptionsModel.Start = core.StringPtr("testString") listSnapshotConsistencyGroupsOptionsModel.Limit = core.Int64Ptr(int64(10)) listSnapshotConsistencyGroupsOptionsModel.ResourceGroupID = core.StringPtr("testString") - listSnapshotConsistencyGroupsOptionsModel.Name = core.StringPtr("testString") + listSnapshotConsistencyGroupsOptionsModel.Name = core.StringPtr("my-name") listSnapshotConsistencyGroupsOptionsModel.Sort = core.StringPtr("name") listSnapshotConsistencyGroupsOptionsModel.BackupPolicyPlanID = core.StringPtr("testString") listSnapshotConsistencyGroupsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} @@ -52255,7 +52255,7 @@ var _ = Describe(`VpcV1`, func() { 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()["resource_group.id"]).To(Equal([]string{"testString"})) - Expect(req.URL.Query()["name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["name"]).To(Equal([]string{"my-name"})) Expect(req.URL.Query()["sort"]).To(Equal([]string{"name"})) Expect(req.URL.Query()["backup_policy_plan.id"]).To(Equal([]string{"testString"})) // Set mock response @@ -52284,7 +52284,7 @@ var _ = Describe(`VpcV1`, func() { listSnapshotConsistencyGroupsOptionsModel.Start = core.StringPtr("testString") listSnapshotConsistencyGroupsOptionsModel.Limit = core.Int64Ptr(int64(10)) listSnapshotConsistencyGroupsOptionsModel.ResourceGroupID = core.StringPtr("testString") - listSnapshotConsistencyGroupsOptionsModel.Name = core.StringPtr("testString") + listSnapshotConsistencyGroupsOptionsModel.Name = core.StringPtr("my-name") listSnapshotConsistencyGroupsOptionsModel.Sort = core.StringPtr("name") listSnapshotConsistencyGroupsOptionsModel.BackupPolicyPlanID = core.StringPtr("testString") listSnapshotConsistencyGroupsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} @@ -52310,7 +52310,7 @@ var _ = Describe(`VpcV1`, func() { listSnapshotConsistencyGroupsOptionsModel.Start = core.StringPtr("testString") listSnapshotConsistencyGroupsOptionsModel.Limit = core.Int64Ptr(int64(10)) listSnapshotConsistencyGroupsOptionsModel.ResourceGroupID = core.StringPtr("testString") - listSnapshotConsistencyGroupsOptionsModel.Name = core.StringPtr("testString") + listSnapshotConsistencyGroupsOptionsModel.Name = core.StringPtr("my-name") listSnapshotConsistencyGroupsOptionsModel.Sort = core.StringPtr("name") listSnapshotConsistencyGroupsOptionsModel.BackupPolicyPlanID = core.StringPtr("testString") listSnapshotConsistencyGroupsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} @@ -52350,7 +52350,7 @@ var _ = Describe(`VpcV1`, func() { listSnapshotConsistencyGroupsOptionsModel.Start = core.StringPtr("testString") listSnapshotConsistencyGroupsOptionsModel.Limit = core.Int64Ptr(int64(10)) listSnapshotConsistencyGroupsOptionsModel.ResourceGroupID = core.StringPtr("testString") - listSnapshotConsistencyGroupsOptionsModel.Name = core.StringPtr("testString") + listSnapshotConsistencyGroupsOptionsModel.Name = core.StringPtr("my-name") listSnapshotConsistencyGroupsOptionsModel.Sort = core.StringPtr("name") listSnapshotConsistencyGroupsOptionsModel.BackupPolicyPlanID = core.StringPtr("testString") listSnapshotConsistencyGroupsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} @@ -52431,7 +52431,7 @@ var _ = Describe(`VpcV1`, func() { listSnapshotConsistencyGroupsOptionsModel := &vpcv1.ListSnapshotConsistencyGroupsOptions{ Limit: core.Int64Ptr(int64(10)), ResourceGroupID: core.StringPtr("testString"), - Name: core.StringPtr("testString"), + Name: core.StringPtr("my-name"), Sort: core.StringPtr("name"), BackupPolicyPlanID: core.StringPtr("testString"), } @@ -52461,7 +52461,7 @@ var _ = Describe(`VpcV1`, func() { listSnapshotConsistencyGroupsOptionsModel := &vpcv1.ListSnapshotConsistencyGroupsOptions{ Limit: core.Int64Ptr(int64(10)), ResourceGroupID: core.StringPtr("testString"), - Name: core.StringPtr("testString"), + Name: core.StringPtr("my-name"), Sort: core.StringPtr("name"), BackupPolicyPlanID: core.StringPtr("testString"), } @@ -53688,7 +53688,7 @@ var _ = Describe(`VpcV1`, func() { Expect(req.URL.Query()["limit"]).To(Equal([]string{fmt.Sprint(int64(10))})) Expect(req.URL.Query()["tag"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["resource_group.id"]).To(Equal([]string{"testString"})) - Expect(req.URL.Query()["name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["name"]).To(Equal([]string{"my-name"})) Expect(req.URL.Query()["source_volume.id"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["source_volume.crn"]).To(Equal([]string{"crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:1a6b7274-678d-4dfb-8981-c71dd9d4daa5"})) Expect(req.URL.Query()["source_image.id"]).To(Equal([]string{"testString"})) @@ -53697,7 +53697,7 @@ var _ = Describe(`VpcV1`, func() { Expect(req.URL.Query()["backup_policy_plan.id"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["copies[].id"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["copies[].name"]).To(Equal([]string{"my-snapshot-copy"})) - Expect(req.URL.Query()["copies[].crn"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["copies[].crn"]).To(Equal([]string{"crn:[...]"})) Expect(req.URL.Query()["copies[].remote.region.name"]).To(Equal([]string{"us-south"})) Expect(req.URL.Query()["source_snapshot.id"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["source_snapshot.remote.region.name"]).To(Equal([]string{"us-south"})) @@ -53726,7 +53726,7 @@ var _ = Describe(`VpcV1`, func() { listSnapshotsOptionsModel.Limit = core.Int64Ptr(int64(10)) listSnapshotsOptionsModel.Tag = core.StringPtr("testString") listSnapshotsOptionsModel.ResourceGroupID = core.StringPtr("testString") - listSnapshotsOptionsModel.Name = core.StringPtr("testString") + listSnapshotsOptionsModel.Name = core.StringPtr("my-name") listSnapshotsOptionsModel.SourceVolumeID = core.StringPtr("testString") listSnapshotsOptionsModel.SourceVolumeCRN = core.StringPtr("crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:1a6b7274-678d-4dfb-8981-c71dd9d4daa5") listSnapshotsOptionsModel.SourceImageID = core.StringPtr("testString") @@ -53735,7 +53735,7 @@ var _ = Describe(`VpcV1`, func() { listSnapshotsOptionsModel.BackupPolicyPlanID = core.StringPtr("testString") listSnapshotsOptionsModel.CopiesID = core.StringPtr("testString") listSnapshotsOptionsModel.CopiesName = core.StringPtr("my-snapshot-copy") - listSnapshotsOptionsModel.CopiesCRN = core.StringPtr("testString") + listSnapshotsOptionsModel.CopiesCRN = core.StringPtr("crn:[...]") listSnapshotsOptionsModel.CopiesRemoteRegionName = core.StringPtr("us-south") listSnapshotsOptionsModel.SourceSnapshotID = core.StringPtr("testString") listSnapshotsOptionsModel.SourceSnapshotRemoteRegionName = core.StringPtr("us-south") @@ -53781,7 +53781,7 @@ var _ = Describe(`VpcV1`, func() { Expect(req.URL.Query()["limit"]).To(Equal([]string{fmt.Sprint(int64(10))})) Expect(req.URL.Query()["tag"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["resource_group.id"]).To(Equal([]string{"testString"})) - Expect(req.URL.Query()["name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["name"]).To(Equal([]string{"my-name"})) Expect(req.URL.Query()["source_volume.id"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["source_volume.crn"]).To(Equal([]string{"crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:1a6b7274-678d-4dfb-8981-c71dd9d4daa5"})) Expect(req.URL.Query()["source_image.id"]).To(Equal([]string{"testString"})) @@ -53790,7 +53790,7 @@ var _ = Describe(`VpcV1`, func() { Expect(req.URL.Query()["backup_policy_plan.id"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["copies[].id"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["copies[].name"]).To(Equal([]string{"my-snapshot-copy"})) - Expect(req.URL.Query()["copies[].crn"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["copies[].crn"]).To(Equal([]string{"crn:[...]"})) Expect(req.URL.Query()["copies[].remote.region.name"]).To(Equal([]string{"us-south"})) Expect(req.URL.Query()["source_snapshot.id"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["source_snapshot.remote.region.name"]).To(Equal([]string{"us-south"})) @@ -53824,7 +53824,7 @@ var _ = Describe(`VpcV1`, func() { listSnapshotsOptionsModel.Limit = core.Int64Ptr(int64(10)) listSnapshotsOptionsModel.Tag = core.StringPtr("testString") listSnapshotsOptionsModel.ResourceGroupID = core.StringPtr("testString") - listSnapshotsOptionsModel.Name = core.StringPtr("testString") + listSnapshotsOptionsModel.Name = core.StringPtr("my-name") listSnapshotsOptionsModel.SourceVolumeID = core.StringPtr("testString") listSnapshotsOptionsModel.SourceVolumeCRN = core.StringPtr("crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:1a6b7274-678d-4dfb-8981-c71dd9d4daa5") listSnapshotsOptionsModel.SourceImageID = core.StringPtr("testString") @@ -53833,7 +53833,7 @@ var _ = Describe(`VpcV1`, func() { listSnapshotsOptionsModel.BackupPolicyPlanID = core.StringPtr("testString") listSnapshotsOptionsModel.CopiesID = core.StringPtr("testString") listSnapshotsOptionsModel.CopiesName = core.StringPtr("my-snapshot-copy") - listSnapshotsOptionsModel.CopiesCRN = core.StringPtr("testString") + listSnapshotsOptionsModel.CopiesCRN = core.StringPtr("crn:[...]") listSnapshotsOptionsModel.CopiesRemoteRegionName = core.StringPtr("us-south") listSnapshotsOptionsModel.SourceSnapshotID = core.StringPtr("testString") listSnapshotsOptionsModel.SourceSnapshotRemoteRegionName = core.StringPtr("us-south") @@ -53884,7 +53884,7 @@ var _ = Describe(`VpcV1`, func() { Expect(req.URL.Query()["limit"]).To(Equal([]string{fmt.Sprint(int64(10))})) Expect(req.URL.Query()["tag"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["resource_group.id"]).To(Equal([]string{"testString"})) - Expect(req.URL.Query()["name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["name"]).To(Equal([]string{"my-name"})) Expect(req.URL.Query()["source_volume.id"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["source_volume.crn"]).To(Equal([]string{"crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:1a6b7274-678d-4dfb-8981-c71dd9d4daa5"})) Expect(req.URL.Query()["source_image.id"]).To(Equal([]string{"testString"})) @@ -53893,7 +53893,7 @@ var _ = Describe(`VpcV1`, func() { Expect(req.URL.Query()["backup_policy_plan.id"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["copies[].id"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["copies[].name"]).To(Equal([]string{"my-snapshot-copy"})) - Expect(req.URL.Query()["copies[].crn"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["copies[].crn"]).To(Equal([]string{"crn:[...]"})) Expect(req.URL.Query()["copies[].remote.region.name"]).To(Equal([]string{"us-south"})) Expect(req.URL.Query()["source_snapshot.id"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["source_snapshot.remote.region.name"]).To(Equal([]string{"us-south"})) @@ -53929,7 +53929,7 @@ var _ = Describe(`VpcV1`, func() { listSnapshotsOptionsModel.Limit = core.Int64Ptr(int64(10)) listSnapshotsOptionsModel.Tag = core.StringPtr("testString") listSnapshotsOptionsModel.ResourceGroupID = core.StringPtr("testString") - listSnapshotsOptionsModel.Name = core.StringPtr("testString") + listSnapshotsOptionsModel.Name = core.StringPtr("my-name") listSnapshotsOptionsModel.SourceVolumeID = core.StringPtr("testString") listSnapshotsOptionsModel.SourceVolumeCRN = core.StringPtr("crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:1a6b7274-678d-4dfb-8981-c71dd9d4daa5") listSnapshotsOptionsModel.SourceImageID = core.StringPtr("testString") @@ -53938,7 +53938,7 @@ var _ = Describe(`VpcV1`, func() { listSnapshotsOptionsModel.BackupPolicyPlanID = core.StringPtr("testString") listSnapshotsOptionsModel.CopiesID = core.StringPtr("testString") listSnapshotsOptionsModel.CopiesName = core.StringPtr("my-snapshot-copy") - listSnapshotsOptionsModel.CopiesCRN = core.StringPtr("testString") + listSnapshotsOptionsModel.CopiesCRN = core.StringPtr("crn:[...]") listSnapshotsOptionsModel.CopiesRemoteRegionName = core.StringPtr("us-south") listSnapshotsOptionsModel.SourceSnapshotID = core.StringPtr("testString") listSnapshotsOptionsModel.SourceSnapshotRemoteRegionName = core.StringPtr("us-south") @@ -53971,7 +53971,7 @@ var _ = Describe(`VpcV1`, func() { listSnapshotsOptionsModel.Limit = core.Int64Ptr(int64(10)) listSnapshotsOptionsModel.Tag = core.StringPtr("testString") listSnapshotsOptionsModel.ResourceGroupID = core.StringPtr("testString") - listSnapshotsOptionsModel.Name = core.StringPtr("testString") + listSnapshotsOptionsModel.Name = core.StringPtr("my-name") listSnapshotsOptionsModel.SourceVolumeID = core.StringPtr("testString") listSnapshotsOptionsModel.SourceVolumeCRN = core.StringPtr("crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:1a6b7274-678d-4dfb-8981-c71dd9d4daa5") listSnapshotsOptionsModel.SourceImageID = core.StringPtr("testString") @@ -53980,7 +53980,7 @@ var _ = Describe(`VpcV1`, func() { listSnapshotsOptionsModel.BackupPolicyPlanID = core.StringPtr("testString") listSnapshotsOptionsModel.CopiesID = core.StringPtr("testString") listSnapshotsOptionsModel.CopiesName = core.StringPtr("my-snapshot-copy") - listSnapshotsOptionsModel.CopiesCRN = core.StringPtr("testString") + listSnapshotsOptionsModel.CopiesCRN = core.StringPtr("crn:[...]") listSnapshotsOptionsModel.CopiesRemoteRegionName = core.StringPtr("us-south") listSnapshotsOptionsModel.SourceSnapshotID = core.StringPtr("testString") listSnapshotsOptionsModel.SourceSnapshotRemoteRegionName = core.StringPtr("us-south") @@ -54027,7 +54027,7 @@ var _ = Describe(`VpcV1`, func() { listSnapshotsOptionsModel.Limit = core.Int64Ptr(int64(10)) listSnapshotsOptionsModel.Tag = core.StringPtr("testString") listSnapshotsOptionsModel.ResourceGroupID = core.StringPtr("testString") - listSnapshotsOptionsModel.Name = core.StringPtr("testString") + listSnapshotsOptionsModel.Name = core.StringPtr("my-name") listSnapshotsOptionsModel.SourceVolumeID = core.StringPtr("testString") listSnapshotsOptionsModel.SourceVolumeCRN = core.StringPtr("crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:1a6b7274-678d-4dfb-8981-c71dd9d4daa5") listSnapshotsOptionsModel.SourceImageID = core.StringPtr("testString") @@ -54036,7 +54036,7 @@ var _ = Describe(`VpcV1`, func() { listSnapshotsOptionsModel.BackupPolicyPlanID = core.StringPtr("testString") listSnapshotsOptionsModel.CopiesID = core.StringPtr("testString") listSnapshotsOptionsModel.CopiesName = core.StringPtr("my-snapshot-copy") - listSnapshotsOptionsModel.CopiesCRN = core.StringPtr("testString") + listSnapshotsOptionsModel.CopiesCRN = core.StringPtr("crn:[...]") listSnapshotsOptionsModel.CopiesRemoteRegionName = core.StringPtr("us-south") listSnapshotsOptionsModel.SourceSnapshotID = core.StringPtr("testString") listSnapshotsOptionsModel.SourceSnapshotRemoteRegionName = core.StringPtr("us-south") @@ -54124,7 +54124,7 @@ var _ = Describe(`VpcV1`, func() { Limit: core.Int64Ptr(int64(10)), Tag: core.StringPtr("testString"), ResourceGroupID: core.StringPtr("testString"), - Name: core.StringPtr("testString"), + Name: core.StringPtr("my-name"), SourceVolumeID: core.StringPtr("testString"), SourceVolumeCRN: core.StringPtr("crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:1a6b7274-678d-4dfb-8981-c71dd9d4daa5"), SourceImageID: core.StringPtr("testString"), @@ -54133,7 +54133,7 @@ var _ = Describe(`VpcV1`, func() { BackupPolicyPlanID: core.StringPtr("testString"), CopiesID: core.StringPtr("testString"), CopiesName: core.StringPtr("my-snapshot-copy"), - CopiesCRN: core.StringPtr("testString"), + CopiesCRN: core.StringPtr("crn:[...]"), CopiesRemoteRegionName: core.StringPtr("us-south"), SourceSnapshotID: core.StringPtr("testString"), SourceSnapshotRemoteRegionName: core.StringPtr("us-south"), @@ -54170,7 +54170,7 @@ var _ = Describe(`VpcV1`, func() { Limit: core.Int64Ptr(int64(10)), Tag: core.StringPtr("testString"), ResourceGroupID: core.StringPtr("testString"), - Name: core.StringPtr("testString"), + Name: core.StringPtr("my-name"), SourceVolumeID: core.StringPtr("testString"), SourceVolumeCRN: core.StringPtr("crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:1a6b7274-678d-4dfb-8981-c71dd9d4daa5"), SourceImageID: core.StringPtr("testString"), @@ -54179,7 +54179,7 @@ var _ = Describe(`VpcV1`, func() { BackupPolicyPlanID: core.StringPtr("testString"), CopiesID: core.StringPtr("testString"), CopiesName: core.StringPtr("my-snapshot-copy"), - CopiesCRN: core.StringPtr("testString"), + CopiesCRN: core.StringPtr("crn:[...]"), CopiesRemoteRegionName: core.StringPtr("us-south"), SourceSnapshotID: core.StringPtr("testString"), SourceSnapshotRemoteRegionName: core.StringPtr("us-south"), @@ -55415,7 +55415,7 @@ var _ = Describe(`VpcV1`, func() { }) Describe(`DeleteSnapshotClone(deleteSnapshotCloneOptions *DeleteSnapshotCloneOptions)`, func() { version := "testString" - deleteSnapshotClonePath := "/snapshots/testString/clones/testString" + deleteSnapshotClonePath := "/snapshots/testString/clones/us-south-1" Context(`Using mock server endpoint`, func() { BeforeEach(func() { testServer = httptest.NewServer(http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) { @@ -55447,7 +55447,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the DeleteSnapshotCloneOptions model deleteSnapshotCloneOptionsModel := new(vpcv1.DeleteSnapshotCloneOptions) deleteSnapshotCloneOptionsModel.ID = core.StringPtr("testString") - deleteSnapshotCloneOptionsModel.ZoneName = core.StringPtr("testString") + deleteSnapshotCloneOptionsModel.ZoneName = core.StringPtr("us-south-1") deleteSnapshotCloneOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with valid options model (positive test) @@ -55467,7 +55467,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the DeleteSnapshotCloneOptions model deleteSnapshotCloneOptionsModel := new(vpcv1.DeleteSnapshotCloneOptions) deleteSnapshotCloneOptionsModel.ID = core.StringPtr("testString") - deleteSnapshotCloneOptionsModel.ZoneName = core.StringPtr("testString") + deleteSnapshotCloneOptionsModel.ZoneName = core.StringPtr("us-south-1") deleteSnapshotCloneOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with empty URL (negative test) err := vpcService.SetServiceURL("") @@ -55490,7 +55490,7 @@ var _ = Describe(`VpcV1`, func() { }) Describe(`GetSnapshotClone(getSnapshotCloneOptions *GetSnapshotCloneOptions) - Operation response error`, func() { version := "testString" - getSnapshotClonePath := "/snapshots/testString/clones/testString" + getSnapshotClonePath := "/snapshots/testString/clones/us-south-1" Context(`Using mock server endpoint with invalid JSON response`, func() { BeforeEach(func() { testServer = httptest.NewServer(http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) { @@ -55518,7 +55518,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the GetSnapshotCloneOptions model getSnapshotCloneOptionsModel := new(vpcv1.GetSnapshotCloneOptions) getSnapshotCloneOptionsModel.ID = core.StringPtr("testString") - getSnapshotCloneOptionsModel.ZoneName = core.StringPtr("testString") + getSnapshotCloneOptionsModel.ZoneName = core.StringPtr("us-south-1") getSnapshotCloneOptionsModel.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.GetSnapshotClone(getSnapshotCloneOptionsModel) @@ -55540,7 +55540,7 @@ var _ = Describe(`VpcV1`, func() { }) Describe(`GetSnapshotClone(getSnapshotCloneOptions *GetSnapshotCloneOptions)`, func() { version := "testString" - getSnapshotClonePath := "/snapshots/testString/clones/testString" + getSnapshotClonePath := "/snapshots/testString/clones/us-south-1" Context(`Using mock server endpoint with timeout`, func() { BeforeEach(func() { testServer = httptest.NewServer(http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) { @@ -55574,7 +55574,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the GetSnapshotCloneOptions model getSnapshotCloneOptionsModel := new(vpcv1.GetSnapshotCloneOptions) getSnapshotCloneOptionsModel.ID = core.StringPtr("testString") - getSnapshotCloneOptionsModel.ZoneName = core.StringPtr("testString") + getSnapshotCloneOptionsModel.ZoneName = core.StringPtr("us-south-1") getSnapshotCloneOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with a Context to test a timeout error @@ -55637,7 +55637,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the GetSnapshotCloneOptions model getSnapshotCloneOptionsModel := new(vpcv1.GetSnapshotCloneOptions) getSnapshotCloneOptionsModel.ID = core.StringPtr("testString") - getSnapshotCloneOptionsModel.ZoneName = core.StringPtr("testString") + getSnapshotCloneOptionsModel.ZoneName = core.StringPtr("us-south-1") getSnapshotCloneOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with valid options model (positive test) @@ -55659,7 +55659,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the GetSnapshotCloneOptions model getSnapshotCloneOptionsModel := new(vpcv1.GetSnapshotCloneOptions) getSnapshotCloneOptionsModel.ID = core.StringPtr("testString") - getSnapshotCloneOptionsModel.ZoneName = core.StringPtr("testString") + getSnapshotCloneOptionsModel.ZoneName = core.StringPtr("us-south-1") getSnapshotCloneOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with empty URL (negative test) err := vpcService.SetServiceURL("") @@ -55702,7 +55702,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the GetSnapshotCloneOptions model getSnapshotCloneOptionsModel := new(vpcv1.GetSnapshotCloneOptions) getSnapshotCloneOptionsModel.ID = core.StringPtr("testString") - getSnapshotCloneOptionsModel.ZoneName = core.StringPtr("testString") + getSnapshotCloneOptionsModel.ZoneName = core.StringPtr("us-south-1") getSnapshotCloneOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation @@ -55720,7 +55720,7 @@ var _ = Describe(`VpcV1`, func() { }) Describe(`CreateSnapshotClone(createSnapshotCloneOptions *CreateSnapshotCloneOptions) - Operation response error`, func() { version := "testString" - createSnapshotClonePath := "/snapshots/testString/clones/testString" + createSnapshotClonePath := "/snapshots/testString/clones/us-south-1" Context(`Using mock server endpoint with invalid JSON response`, func() { BeforeEach(func() { testServer = httptest.NewServer(http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) { @@ -55748,7 +55748,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the CreateSnapshotCloneOptions model createSnapshotCloneOptionsModel := new(vpcv1.CreateSnapshotCloneOptions) createSnapshotCloneOptionsModel.ID = core.StringPtr("testString") - createSnapshotCloneOptionsModel.ZoneName = core.StringPtr("testString") + createSnapshotCloneOptionsModel.ZoneName = core.StringPtr("us-south-1") createSnapshotCloneOptionsModel.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.CreateSnapshotClone(createSnapshotCloneOptionsModel) @@ -55770,7 +55770,7 @@ var _ = Describe(`VpcV1`, func() { }) Describe(`CreateSnapshotClone(createSnapshotCloneOptions *CreateSnapshotCloneOptions)`, func() { version := "testString" - createSnapshotClonePath := "/snapshots/testString/clones/testString" + createSnapshotClonePath := "/snapshots/testString/clones/us-south-1" Context(`Using mock server endpoint with timeout`, func() { BeforeEach(func() { testServer = httptest.NewServer(http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) { @@ -55804,7 +55804,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the CreateSnapshotCloneOptions model createSnapshotCloneOptionsModel := new(vpcv1.CreateSnapshotCloneOptions) createSnapshotCloneOptionsModel.ID = core.StringPtr("testString") - createSnapshotCloneOptionsModel.ZoneName = core.StringPtr("testString") + createSnapshotCloneOptionsModel.ZoneName = core.StringPtr("us-south-1") createSnapshotCloneOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with a Context to test a timeout error @@ -55867,7 +55867,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the CreateSnapshotCloneOptions model createSnapshotCloneOptionsModel := new(vpcv1.CreateSnapshotCloneOptions) createSnapshotCloneOptionsModel.ID = core.StringPtr("testString") - createSnapshotCloneOptionsModel.ZoneName = core.StringPtr("testString") + createSnapshotCloneOptionsModel.ZoneName = core.StringPtr("us-south-1") createSnapshotCloneOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with valid options model (positive test) @@ -55889,7 +55889,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the CreateSnapshotCloneOptions model createSnapshotCloneOptionsModel := new(vpcv1.CreateSnapshotCloneOptions) createSnapshotCloneOptionsModel.ID = core.StringPtr("testString") - createSnapshotCloneOptionsModel.ZoneName = core.StringPtr("testString") + createSnapshotCloneOptionsModel.ZoneName = core.StringPtr("us-south-1") createSnapshotCloneOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with empty URL (negative test) err := vpcService.SetServiceURL("") @@ -55932,7 +55932,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the CreateSnapshotCloneOptions model createSnapshotCloneOptionsModel := new(vpcv1.CreateSnapshotCloneOptions) createSnapshotCloneOptionsModel.ID = core.StringPtr("testString") - createSnapshotCloneOptionsModel.ZoneName = core.StringPtr("testString") + createSnapshotCloneOptionsModel.ZoneName = core.StringPtr("us-south-1") createSnapshotCloneOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation @@ -56290,7 +56290,7 @@ var _ = Describe(`VpcV1`, func() { }) Describe(`GetShareProfile(getShareProfileOptions *GetShareProfileOptions) - Operation response error`, func() { version := "testString" - getShareProfilePath := "/share/profiles/testString" + getShareProfilePath := "/share/profiles/dp2" Context(`Using mock server endpoint with invalid JSON response`, func() { BeforeEach(func() { testServer = httptest.NewServer(http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) { @@ -56317,7 +56317,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the GetShareProfileOptions model getShareProfileOptionsModel := new(vpcv1.GetShareProfileOptions) - getShareProfileOptionsModel.Name = core.StringPtr("testString") + getShareProfileOptionsModel.Name = core.StringPtr("dp2") getShareProfileOptionsModel.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.GetShareProfile(getShareProfileOptionsModel) @@ -56339,7 +56339,7 @@ var _ = Describe(`VpcV1`, func() { }) Describe(`GetShareProfile(getShareProfileOptions *GetShareProfileOptions)`, func() { version := "testString" - getShareProfilePath := "/share/profiles/testString" + getShareProfilePath := "/share/profiles/dp2" Context(`Using mock server endpoint with timeout`, func() { BeforeEach(func() { testServer = httptest.NewServer(http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) { @@ -56372,7 +56372,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the GetShareProfileOptions model getShareProfileOptionsModel := new(vpcv1.GetShareProfileOptions) - getShareProfileOptionsModel.Name = core.StringPtr("testString") + getShareProfileOptionsModel.Name = core.StringPtr("dp2") getShareProfileOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with a Context to test a timeout error @@ -56434,7 +56434,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the GetShareProfileOptions model getShareProfileOptionsModel := new(vpcv1.GetShareProfileOptions) - getShareProfileOptionsModel.Name = core.StringPtr("testString") + getShareProfileOptionsModel.Name = core.StringPtr("dp2") getShareProfileOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with valid options model (positive test) @@ -56455,7 +56455,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the GetShareProfileOptions model getShareProfileOptionsModel := new(vpcv1.GetShareProfileOptions) - getShareProfileOptionsModel.Name = core.StringPtr("testString") + getShareProfileOptionsModel.Name = core.StringPtr("dp2") getShareProfileOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with empty URL (negative test) err := vpcService.SetServiceURL("") @@ -56497,7 +56497,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the GetShareProfileOptions model getShareProfileOptionsModel := new(vpcv1.GetShareProfileOptions) - getShareProfileOptionsModel.Name = core.StringPtr("testString") + getShareProfileOptionsModel.Name = core.StringPtr("dp2") getShareProfileOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation @@ -56529,7 +56529,7 @@ var _ = Describe(`VpcV1`, func() { 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()["resource_group.id"]).To(Equal([]string{"testString"})) - Expect(req.URL.Query()["name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["name"]).To(Equal([]string{"my-name"})) Expect(req.URL.Query()["sort"]).To(Equal([]string{"name"})) Expect(req.URL.Query()["replication_role"]).To(Equal([]string{"none"})) res.Header().Set("Content-type", "application/json") @@ -56551,7 +56551,7 @@ var _ = Describe(`VpcV1`, func() { listSharesOptionsModel.Start = core.StringPtr("testString") listSharesOptionsModel.Limit = core.Int64Ptr(int64(10)) listSharesOptionsModel.ResourceGroupID = core.StringPtr("testString") - listSharesOptionsModel.Name = core.StringPtr("testString") + listSharesOptionsModel.Name = core.StringPtr("my-name") listSharesOptionsModel.Sort = core.StringPtr("name") listSharesOptionsModel.ReplicationRole = core.StringPtr("none") listSharesOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} @@ -56590,7 +56590,7 @@ var _ = Describe(`VpcV1`, func() { 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()["resource_group.id"]).To(Equal([]string{"testString"})) - Expect(req.URL.Query()["name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["name"]).To(Equal([]string{"my-name"})) Expect(req.URL.Query()["sort"]).To(Equal([]string{"name"})) Expect(req.URL.Query()["replication_role"]).To(Equal([]string{"none"})) // Sleep a short time to support a timeout test @@ -56617,7 +56617,7 @@ var _ = Describe(`VpcV1`, func() { listSharesOptionsModel.Start = core.StringPtr("testString") listSharesOptionsModel.Limit = core.Int64Ptr(int64(10)) listSharesOptionsModel.ResourceGroupID = core.StringPtr("testString") - listSharesOptionsModel.Name = core.StringPtr("testString") + listSharesOptionsModel.Name = core.StringPtr("my-name") listSharesOptionsModel.Sort = core.StringPtr("name") listSharesOptionsModel.ReplicationRole = core.StringPtr("none") listSharesOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} @@ -56661,7 +56661,7 @@ var _ = Describe(`VpcV1`, func() { 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()["resource_group.id"]).To(Equal([]string{"testString"})) - Expect(req.URL.Query()["name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["name"]).To(Equal([]string{"my-name"})) Expect(req.URL.Query()["sort"]).To(Equal([]string{"name"})) Expect(req.URL.Query()["replication_role"]).To(Equal([]string{"none"})) // Set mock response @@ -56690,7 +56690,7 @@ var _ = Describe(`VpcV1`, func() { listSharesOptionsModel.Start = core.StringPtr("testString") listSharesOptionsModel.Limit = core.Int64Ptr(int64(10)) listSharesOptionsModel.ResourceGroupID = core.StringPtr("testString") - listSharesOptionsModel.Name = core.StringPtr("testString") + listSharesOptionsModel.Name = core.StringPtr("my-name") listSharesOptionsModel.Sort = core.StringPtr("name") listSharesOptionsModel.ReplicationRole = core.StringPtr("none") listSharesOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} @@ -56716,7 +56716,7 @@ var _ = Describe(`VpcV1`, func() { listSharesOptionsModel.Start = core.StringPtr("testString") listSharesOptionsModel.Limit = core.Int64Ptr(int64(10)) listSharesOptionsModel.ResourceGroupID = core.StringPtr("testString") - listSharesOptionsModel.Name = core.StringPtr("testString") + listSharesOptionsModel.Name = core.StringPtr("my-name") listSharesOptionsModel.Sort = core.StringPtr("name") listSharesOptionsModel.ReplicationRole = core.StringPtr("none") listSharesOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} @@ -56756,7 +56756,7 @@ var _ = Describe(`VpcV1`, func() { listSharesOptionsModel.Start = core.StringPtr("testString") listSharesOptionsModel.Limit = core.Int64Ptr(int64(10)) listSharesOptionsModel.ResourceGroupID = core.StringPtr("testString") - listSharesOptionsModel.Name = core.StringPtr("testString") + listSharesOptionsModel.Name = core.StringPtr("my-name") listSharesOptionsModel.Sort = core.StringPtr("name") listSharesOptionsModel.ReplicationRole = core.StringPtr("none") listSharesOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} @@ -56837,7 +56837,7 @@ var _ = Describe(`VpcV1`, func() { listSharesOptionsModel := &vpcv1.ListSharesOptions{ Limit: core.Int64Ptr(int64(10)), ResourceGroupID: core.StringPtr("testString"), - Name: core.StringPtr("testString"), + Name: core.StringPtr("my-name"), Sort: core.StringPtr("name"), ReplicationRole: core.StringPtr("none"), } @@ -56867,7 +56867,7 @@ var _ = Describe(`VpcV1`, func() { listSharesOptionsModel := &vpcv1.ListSharesOptions{ Limit: core.Int64Ptr(int64(10)), ResourceGroupID: core.StringPtr("testString"), - Name: core.StringPtr("testString"), + Name: core.StringPtr("my-name"), Sort: core.StringPtr("name"), ReplicationRole: core.StringPtr("none"), } @@ -59154,7 +59154,7 @@ var _ = Describe(`VpcV1`, func() { Expect(req.Method).To(Equal("GET")) Expect(req.URL.Query()["version"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["generation"]).To(Equal([]string{fmt.Sprint(int64(2))})) - Expect(req.URL.Query()["name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["name"]).To(Equal([]string{"my-name"})) Expect(req.URL.Query()["start"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["limit"]).To(Equal([]string{fmt.Sprint(int64(10))})) res.Header().Set("Content-type", "application/json") @@ -59174,7 +59174,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the ListShareMountTargetsOptions model listShareMountTargetsOptionsModel := new(vpcv1.ListShareMountTargetsOptions) listShareMountTargetsOptionsModel.ShareID = core.StringPtr("testString") - listShareMountTargetsOptionsModel.Name = core.StringPtr("testString") + listShareMountTargetsOptionsModel.Name = core.StringPtr("my-name") listShareMountTargetsOptionsModel.Start = core.StringPtr("testString") listShareMountTargetsOptionsModel.Limit = core.Int64Ptr(int64(10)) listShareMountTargetsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} @@ -59210,7 +59210,7 @@ var _ = Describe(`VpcV1`, func() { Expect(req.URL.Query()["version"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["generation"]).To(Equal([]string{fmt.Sprint(int64(2))})) - Expect(req.URL.Query()["name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["name"]).To(Equal([]string{"my-name"})) Expect(req.URL.Query()["start"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["limit"]).To(Equal([]string{fmt.Sprint(int64(10))})) // Sleep a short time to support a timeout test @@ -59235,7 +59235,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the ListShareMountTargetsOptions model listShareMountTargetsOptionsModel := new(vpcv1.ListShareMountTargetsOptions) listShareMountTargetsOptionsModel.ShareID = core.StringPtr("testString") - listShareMountTargetsOptionsModel.Name = core.StringPtr("testString") + listShareMountTargetsOptionsModel.Name = core.StringPtr("my-name") listShareMountTargetsOptionsModel.Start = core.StringPtr("testString") listShareMountTargetsOptionsModel.Limit = core.Int64Ptr(int64(10)) listShareMountTargetsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} @@ -59276,7 +59276,7 @@ var _ = Describe(`VpcV1`, func() { Expect(req.URL.Query()["version"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["generation"]).To(Equal([]string{fmt.Sprint(int64(2))})) - Expect(req.URL.Query()["name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["name"]).To(Equal([]string{"my-name"})) Expect(req.URL.Query()["start"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["limit"]).To(Equal([]string{fmt.Sprint(int64(10))})) // Set mock response @@ -59303,7 +59303,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the ListShareMountTargetsOptions model listShareMountTargetsOptionsModel := new(vpcv1.ListShareMountTargetsOptions) listShareMountTargetsOptionsModel.ShareID = core.StringPtr("testString") - listShareMountTargetsOptionsModel.Name = core.StringPtr("testString") + listShareMountTargetsOptionsModel.Name = core.StringPtr("my-name") listShareMountTargetsOptionsModel.Start = core.StringPtr("testString") listShareMountTargetsOptionsModel.Limit = core.Int64Ptr(int64(10)) listShareMountTargetsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} @@ -59327,7 +59327,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the ListShareMountTargetsOptions model listShareMountTargetsOptionsModel := new(vpcv1.ListShareMountTargetsOptions) listShareMountTargetsOptionsModel.ShareID = core.StringPtr("testString") - listShareMountTargetsOptionsModel.Name = core.StringPtr("testString") + listShareMountTargetsOptionsModel.Name = core.StringPtr("my-name") listShareMountTargetsOptionsModel.Start = core.StringPtr("testString") listShareMountTargetsOptionsModel.Limit = core.Int64Ptr(int64(10)) listShareMountTargetsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} @@ -59372,7 +59372,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the ListShareMountTargetsOptions model listShareMountTargetsOptionsModel := new(vpcv1.ListShareMountTargetsOptions) listShareMountTargetsOptionsModel.ShareID = core.StringPtr("testString") - listShareMountTargetsOptionsModel.Name = core.StringPtr("testString") + listShareMountTargetsOptionsModel.Name = core.StringPtr("my-name") listShareMountTargetsOptionsModel.Start = core.StringPtr("testString") listShareMountTargetsOptionsModel.Limit = core.Int64Ptr(int64(10)) listShareMountTargetsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} @@ -59452,7 +59452,7 @@ var _ = Describe(`VpcV1`, func() { listShareMountTargetsOptionsModel := &vpcv1.ListShareMountTargetsOptions{ ShareID: core.StringPtr("testString"), - Name: core.StringPtr("testString"), + Name: core.StringPtr("my-name"), Limit: core.Int64Ptr(int64(10)), } @@ -59480,7 +59480,7 @@ var _ = Describe(`VpcV1`, func() { listShareMountTargetsOptionsModel := &vpcv1.ListShareMountTargetsOptions{ ShareID: core.StringPtr("testString"), - Name: core.StringPtr("testString"), + Name: core.StringPtr("my-name"), Limit: core.Int64Ptr(int64(10)), } @@ -61043,7 +61043,7 @@ var _ = Describe(`VpcV1`, func() { 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()["resource_group.id"]).To(Equal([]string{"testString"})) - Expect(req.URL.Query()["name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["name"]).To(Equal([]string{"my-name"})) Expect(req.URL.Query()["tag"]).To(Equal([]string{"testString"})) res.Header().Set("Content-type", "application/json") res.WriteHeader(200) @@ -61064,7 +61064,7 @@ var _ = Describe(`VpcV1`, func() { listBackupPoliciesOptionsModel.Start = core.StringPtr("testString") listBackupPoliciesOptionsModel.Limit = core.Int64Ptr(int64(10)) listBackupPoliciesOptionsModel.ResourceGroupID = core.StringPtr("testString") - listBackupPoliciesOptionsModel.Name = core.StringPtr("testString") + listBackupPoliciesOptionsModel.Name = core.StringPtr("my-name") listBackupPoliciesOptionsModel.Tag = core.StringPtr("testString") listBackupPoliciesOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Expect response parsing to fail since we are receiving a text/plain response @@ -61102,7 +61102,7 @@ var _ = Describe(`VpcV1`, func() { 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()["resource_group.id"]).To(Equal([]string{"testString"})) - Expect(req.URL.Query()["name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["name"]).To(Equal([]string{"my-name"})) Expect(req.URL.Query()["tag"]).To(Equal([]string{"testString"})) // Sleep a short time to support a timeout test time.Sleep(100 * time.Millisecond) @@ -61128,7 +61128,7 @@ var _ = Describe(`VpcV1`, func() { listBackupPoliciesOptionsModel.Start = core.StringPtr("testString") listBackupPoliciesOptionsModel.Limit = core.Int64Ptr(int64(10)) listBackupPoliciesOptionsModel.ResourceGroupID = core.StringPtr("testString") - listBackupPoliciesOptionsModel.Name = core.StringPtr("testString") + listBackupPoliciesOptionsModel.Name = core.StringPtr("my-name") listBackupPoliciesOptionsModel.Tag = core.StringPtr("testString") listBackupPoliciesOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} @@ -61171,7 +61171,7 @@ var _ = Describe(`VpcV1`, func() { 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()["resource_group.id"]).To(Equal([]string{"testString"})) - Expect(req.URL.Query()["name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["name"]).To(Equal([]string{"my-name"})) Expect(req.URL.Query()["tag"]).To(Equal([]string{"testString"})) // Set mock response res.Header().Set("Content-type", "application/json") @@ -61199,7 +61199,7 @@ var _ = Describe(`VpcV1`, func() { listBackupPoliciesOptionsModel.Start = core.StringPtr("testString") listBackupPoliciesOptionsModel.Limit = core.Int64Ptr(int64(10)) listBackupPoliciesOptionsModel.ResourceGroupID = core.StringPtr("testString") - listBackupPoliciesOptionsModel.Name = core.StringPtr("testString") + listBackupPoliciesOptionsModel.Name = core.StringPtr("my-name") listBackupPoliciesOptionsModel.Tag = core.StringPtr("testString") listBackupPoliciesOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} @@ -61224,7 +61224,7 @@ var _ = Describe(`VpcV1`, func() { listBackupPoliciesOptionsModel.Start = core.StringPtr("testString") listBackupPoliciesOptionsModel.Limit = core.Int64Ptr(int64(10)) listBackupPoliciesOptionsModel.ResourceGroupID = core.StringPtr("testString") - listBackupPoliciesOptionsModel.Name = core.StringPtr("testString") + listBackupPoliciesOptionsModel.Name = core.StringPtr("my-name") listBackupPoliciesOptionsModel.Tag = core.StringPtr("testString") listBackupPoliciesOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with empty URL (negative test) @@ -61263,7 +61263,7 @@ var _ = Describe(`VpcV1`, func() { listBackupPoliciesOptionsModel.Start = core.StringPtr("testString") listBackupPoliciesOptionsModel.Limit = core.Int64Ptr(int64(10)) listBackupPoliciesOptionsModel.ResourceGroupID = core.StringPtr("testString") - listBackupPoliciesOptionsModel.Name = core.StringPtr("testString") + listBackupPoliciesOptionsModel.Name = core.StringPtr("my-name") listBackupPoliciesOptionsModel.Tag = core.StringPtr("testString") listBackupPoliciesOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} @@ -61343,7 +61343,7 @@ var _ = Describe(`VpcV1`, func() { listBackupPoliciesOptionsModel := &vpcv1.ListBackupPoliciesOptions{ Limit: core.Int64Ptr(int64(10)), ResourceGroupID: core.StringPtr("testString"), - Name: core.StringPtr("testString"), + Name: core.StringPtr("my-name"), Tag: core.StringPtr("testString"), } @@ -61372,7 +61372,7 @@ var _ = Describe(`VpcV1`, func() { listBackupPoliciesOptionsModel := &vpcv1.ListBackupPoliciesOptions{ Limit: core.Int64Ptr(int64(10)), ResourceGroupID: core.StringPtr("testString"), - Name: core.StringPtr("testString"), + Name: core.StringPtr("my-name"), Tag: core.StringPtr("testString"), } @@ -62571,7 +62571,7 @@ var _ = Describe(`VpcV1`, func() { Expect(req.Method).To(Equal("GET")) Expect(req.URL.Query()["version"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["generation"]).To(Equal([]string{fmt.Sprint(int64(2))})) - Expect(req.URL.Query()["name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["name"]).To(Equal([]string{"my-name"})) res.Header().Set("Content-type", "application/json") res.WriteHeader(200) fmt.Fprint(res, `} this is not valid json {`) @@ -62589,7 +62589,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the ListBackupPolicyPlansOptions model listBackupPolicyPlansOptionsModel := new(vpcv1.ListBackupPolicyPlansOptions) listBackupPolicyPlansOptionsModel.BackupPolicyID = core.StringPtr("testString") - listBackupPolicyPlansOptionsModel.Name = core.StringPtr("testString") + listBackupPolicyPlansOptionsModel.Name = core.StringPtr("my-name") listBackupPolicyPlansOptionsModel.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.ListBackupPolicyPlans(listBackupPolicyPlansOptionsModel) @@ -62623,7 +62623,7 @@ var _ = Describe(`VpcV1`, func() { Expect(req.URL.Query()["version"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["generation"]).To(Equal([]string{fmt.Sprint(int64(2))})) - Expect(req.URL.Query()["name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["name"]).To(Equal([]string{"my-name"})) // Sleep a short time to support a timeout test time.Sleep(100 * time.Millisecond) @@ -62646,7 +62646,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the ListBackupPolicyPlansOptions model listBackupPolicyPlansOptionsModel := new(vpcv1.ListBackupPolicyPlansOptions) listBackupPolicyPlansOptionsModel.BackupPolicyID = core.StringPtr("testString") - listBackupPolicyPlansOptionsModel.Name = core.StringPtr("testString") + listBackupPolicyPlansOptionsModel.Name = core.StringPtr("my-name") listBackupPolicyPlansOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with a Context to test a timeout error @@ -62685,7 +62685,7 @@ var _ = Describe(`VpcV1`, func() { Expect(req.URL.Query()["version"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["generation"]).To(Equal([]string{fmt.Sprint(int64(2))})) - Expect(req.URL.Query()["name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["name"]).To(Equal([]string{"my-name"})) // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) @@ -62710,7 +62710,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the ListBackupPolicyPlansOptions model listBackupPolicyPlansOptionsModel := new(vpcv1.ListBackupPolicyPlansOptions) listBackupPolicyPlansOptionsModel.BackupPolicyID = core.StringPtr("testString") - listBackupPolicyPlansOptionsModel.Name = core.StringPtr("testString") + listBackupPolicyPlansOptionsModel.Name = core.StringPtr("my-name") listBackupPolicyPlansOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with valid options model (positive test) @@ -62732,7 +62732,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the ListBackupPolicyPlansOptions model listBackupPolicyPlansOptionsModel := new(vpcv1.ListBackupPolicyPlansOptions) listBackupPolicyPlansOptionsModel.BackupPolicyID = core.StringPtr("testString") - listBackupPolicyPlansOptionsModel.Name = core.StringPtr("testString") + listBackupPolicyPlansOptionsModel.Name = core.StringPtr("my-name") listBackupPolicyPlansOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with empty URL (negative test) err := vpcService.SetServiceURL("") @@ -62775,7 +62775,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the ListBackupPolicyPlansOptions model listBackupPolicyPlansOptionsModel := new(vpcv1.ListBackupPolicyPlansOptions) listBackupPolicyPlansOptionsModel.BackupPolicyID = core.StringPtr("testString") - listBackupPolicyPlansOptionsModel.Name = core.StringPtr("testString") + listBackupPolicyPlansOptionsModel.Name = core.StringPtr("my-name") listBackupPolicyPlansOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation @@ -65171,7 +65171,7 @@ var _ = Describe(`VpcV1`, func() { }) Describe(`GetRegion(getRegionOptions *GetRegionOptions) - Operation response error`, func() { version := "testString" - getRegionPath := "/regions/testString" + getRegionPath := "/regions/us-south" Context(`Using mock server endpoint with invalid JSON response`, func() { BeforeEach(func() { testServer = httptest.NewServer(http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) { @@ -65198,7 +65198,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the GetRegionOptions model getRegionOptionsModel := new(vpcv1.GetRegionOptions) - getRegionOptionsModel.Name = core.StringPtr("testString") + getRegionOptionsModel.Name = core.StringPtr("us-south") getRegionOptionsModel.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.GetRegion(getRegionOptionsModel) @@ -65220,7 +65220,7 @@ var _ = Describe(`VpcV1`, func() { }) Describe(`GetRegion(getRegionOptions *GetRegionOptions)`, func() { version := "testString" - getRegionPath := "/regions/testString" + getRegionPath := "/regions/us-south" Context(`Using mock server endpoint with timeout`, func() { BeforeEach(func() { testServer = httptest.NewServer(http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) { @@ -65253,7 +65253,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the GetRegionOptions model getRegionOptionsModel := new(vpcv1.GetRegionOptions) - getRegionOptionsModel.Name = core.StringPtr("testString") + getRegionOptionsModel.Name = core.StringPtr("us-south") getRegionOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with a Context to test a timeout error @@ -65315,7 +65315,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the GetRegionOptions model getRegionOptionsModel := new(vpcv1.GetRegionOptions) - getRegionOptionsModel.Name = core.StringPtr("testString") + getRegionOptionsModel.Name = core.StringPtr("us-south") getRegionOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with valid options model (positive test) @@ -65336,7 +65336,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the GetRegionOptions model getRegionOptionsModel := new(vpcv1.GetRegionOptions) - getRegionOptionsModel.Name = core.StringPtr("testString") + getRegionOptionsModel.Name = core.StringPtr("us-south") getRegionOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with empty URL (negative test) err := vpcService.SetServiceURL("") @@ -65378,7 +65378,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the GetRegionOptions model getRegionOptionsModel := new(vpcv1.GetRegionOptions) - getRegionOptionsModel.Name = core.StringPtr("testString") + getRegionOptionsModel.Name = core.StringPtr("us-south") getRegionOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation @@ -65396,7 +65396,7 @@ var _ = Describe(`VpcV1`, func() { }) Describe(`ListRegionZones(listRegionZonesOptions *ListRegionZonesOptions) - Operation response error`, func() { version := "testString" - listRegionZonesPath := "/regions/testString/zones" + listRegionZonesPath := "/regions/us-south/zones" Context(`Using mock server endpoint with invalid JSON response`, func() { BeforeEach(func() { testServer = httptest.NewServer(http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) { @@ -65423,7 +65423,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the ListRegionZonesOptions model listRegionZonesOptionsModel := new(vpcv1.ListRegionZonesOptions) - listRegionZonesOptionsModel.RegionName = core.StringPtr("testString") + listRegionZonesOptionsModel.RegionName = core.StringPtr("us-south") listRegionZonesOptionsModel.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.ListRegionZones(listRegionZonesOptionsModel) @@ -65445,7 +65445,7 @@ var _ = Describe(`VpcV1`, func() { }) Describe(`ListRegionZones(listRegionZonesOptions *ListRegionZonesOptions)`, func() { version := "testString" - listRegionZonesPath := "/regions/testString/zones" + listRegionZonesPath := "/regions/us-south/zones" Context(`Using mock server endpoint with timeout`, func() { BeforeEach(func() { testServer = httptest.NewServer(http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) { @@ -65463,7 +65463,7 @@ var _ = Describe(`VpcV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"zones": [{"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1", "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}, "status": "available"}]}`) + fmt.Fprintf(res, "%s", `{"zones": [{"data_center": "DAL12", "href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1", "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}, "status": "available", "universal_name": "us-south-dal10-a"}]}`) })) }) It(`Invoke ListRegionZones successfully with retries`, func() { @@ -65478,7 +65478,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the ListRegionZonesOptions model listRegionZonesOptionsModel := new(vpcv1.ListRegionZonesOptions) - listRegionZonesOptionsModel.RegionName = core.StringPtr("testString") + listRegionZonesOptionsModel.RegionName = core.StringPtr("us-south") listRegionZonesOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with a Context to test a timeout error @@ -65520,7 +65520,7 @@ var _ = Describe(`VpcV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"zones": [{"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1", "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}, "status": "available"}]}`) + fmt.Fprintf(res, "%s", `{"zones": [{"data_center": "DAL12", "href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1", "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}, "status": "available", "universal_name": "us-south-dal10-a"}]}`) })) }) It(`Invoke ListRegionZones successfully`, func() { @@ -65540,7 +65540,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the ListRegionZonesOptions model listRegionZonesOptionsModel := new(vpcv1.ListRegionZonesOptions) - listRegionZonesOptionsModel.RegionName = core.StringPtr("testString") + listRegionZonesOptionsModel.RegionName = core.StringPtr("us-south") listRegionZonesOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with valid options model (positive test) @@ -65561,7 +65561,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the ListRegionZonesOptions model listRegionZonesOptionsModel := new(vpcv1.ListRegionZonesOptions) - listRegionZonesOptionsModel.RegionName = core.StringPtr("testString") + listRegionZonesOptionsModel.RegionName = core.StringPtr("us-south") listRegionZonesOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with empty URL (negative test) err := vpcService.SetServiceURL("") @@ -65603,7 +65603,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the ListRegionZonesOptions model listRegionZonesOptionsModel := new(vpcv1.ListRegionZonesOptions) - listRegionZonesOptionsModel.RegionName = core.StringPtr("testString") + listRegionZonesOptionsModel.RegionName = core.StringPtr("us-south") listRegionZonesOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation @@ -65621,7 +65621,7 @@ var _ = Describe(`VpcV1`, func() { }) Describe(`GetRegionZone(getRegionZoneOptions *GetRegionZoneOptions) - Operation response error`, func() { version := "testString" - getRegionZonePath := "/regions/testString/zones/testString" + getRegionZonePath := "/regions/us-south/zones/us-south-1" Context(`Using mock server endpoint with invalid JSON response`, func() { BeforeEach(func() { testServer = httptest.NewServer(http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) { @@ -65648,8 +65648,8 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the GetRegionZoneOptions model getRegionZoneOptionsModel := new(vpcv1.GetRegionZoneOptions) - getRegionZoneOptionsModel.RegionName = core.StringPtr("testString") - getRegionZoneOptionsModel.Name = core.StringPtr("testString") + getRegionZoneOptionsModel.RegionName = core.StringPtr("us-south") + getRegionZoneOptionsModel.Name = core.StringPtr("us-south-1") getRegionZoneOptionsModel.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.GetRegionZone(getRegionZoneOptionsModel) @@ -65671,7 +65671,7 @@ var _ = Describe(`VpcV1`, func() { }) Describe(`GetRegionZone(getRegionZoneOptions *GetRegionZoneOptions)`, func() { version := "testString" - getRegionZonePath := "/regions/testString/zones/testString" + getRegionZonePath := "/regions/us-south/zones/us-south-1" Context(`Using mock server endpoint with timeout`, func() { BeforeEach(func() { testServer = httptest.NewServer(http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) { @@ -65689,7 +65689,7 @@ var _ = Describe(`VpcV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1", "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}, "status": "available"}`) + fmt.Fprintf(res, "%s", `{"data_center": "DAL12", "href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1", "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}, "status": "available", "universal_name": "us-south-dal10-a"}`) })) }) It(`Invoke GetRegionZone successfully with retries`, func() { @@ -65704,8 +65704,8 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the GetRegionZoneOptions model getRegionZoneOptionsModel := new(vpcv1.GetRegionZoneOptions) - getRegionZoneOptionsModel.RegionName = core.StringPtr("testString") - getRegionZoneOptionsModel.Name = core.StringPtr("testString") + getRegionZoneOptionsModel.RegionName = core.StringPtr("us-south") + getRegionZoneOptionsModel.Name = core.StringPtr("us-south-1") getRegionZoneOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with a Context to test a timeout error @@ -65747,7 +65747,7 @@ var _ = Describe(`VpcV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1", "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}, "status": "available"}`) + fmt.Fprintf(res, "%s", `{"data_center": "DAL12", "href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south/zones/us-south-1", "name": "us-south-1", "region": {"href": "https://us-south.iaas.cloud.ibm.com/v1/regions/us-south", "name": "us-south"}, "status": "available", "universal_name": "us-south-dal10-a"}`) })) }) It(`Invoke GetRegionZone successfully`, func() { @@ -65767,8 +65767,8 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the GetRegionZoneOptions model getRegionZoneOptionsModel := new(vpcv1.GetRegionZoneOptions) - getRegionZoneOptionsModel.RegionName = core.StringPtr("testString") - getRegionZoneOptionsModel.Name = core.StringPtr("testString") + getRegionZoneOptionsModel.RegionName = core.StringPtr("us-south") + getRegionZoneOptionsModel.Name = core.StringPtr("us-south-1") getRegionZoneOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with valid options model (positive test) @@ -65789,8 +65789,8 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the GetRegionZoneOptions model getRegionZoneOptionsModel := new(vpcv1.GetRegionZoneOptions) - getRegionZoneOptionsModel.RegionName = core.StringPtr("testString") - getRegionZoneOptionsModel.Name = core.StringPtr("testString") + getRegionZoneOptionsModel.RegionName = core.StringPtr("us-south") + getRegionZoneOptionsModel.Name = core.StringPtr("us-south-1") getRegionZoneOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with empty URL (negative test) err := vpcService.SetServiceURL("") @@ -65832,8 +65832,8 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the GetRegionZoneOptions model getRegionZoneOptionsModel := new(vpcv1.GetRegionZoneOptions) - getRegionZoneOptionsModel.RegionName = core.StringPtr("testString") - getRegionZoneOptionsModel.Name = core.StringPtr("testString") + getRegionZoneOptionsModel.RegionName = core.StringPtr("us-south") + getRegionZoneOptionsModel.Name = core.StringPtr("us-south-1") getRegionZoneOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation @@ -84890,7 +84890,7 @@ var _ = Describe(`VpcV1`, func() { Expect(req.Method).To(Equal("GET")) Expect(req.URL.Query()["version"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["generation"]).To(Equal([]string{fmt.Sprint(int64(2))})) - Expect(req.URL.Query()["name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["name"]).To(Equal([]string{"my-name"})) 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()["resource_group.id"]).To(Equal([]string{"testString"})) @@ -84911,7 +84911,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the ListVPNServersOptions model listVPNServersOptionsModel := new(vpcv1.ListVPNServersOptions) - listVPNServersOptionsModel.Name = core.StringPtr("testString") + listVPNServersOptionsModel.Name = core.StringPtr("my-name") listVPNServersOptionsModel.Start = core.StringPtr("testString") listVPNServersOptionsModel.Limit = core.Int64Ptr(int64(10)) listVPNServersOptionsModel.ResourceGroupID = core.StringPtr("testString") @@ -84949,7 +84949,7 @@ var _ = Describe(`VpcV1`, func() { Expect(req.URL.Query()["version"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["generation"]).To(Equal([]string{fmt.Sprint(int64(2))})) - Expect(req.URL.Query()["name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["name"]).To(Equal([]string{"my-name"})) 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()["resource_group.id"]).To(Equal([]string{"testString"})) @@ -84975,7 +84975,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the ListVPNServersOptions model listVPNServersOptionsModel := new(vpcv1.ListVPNServersOptions) - listVPNServersOptionsModel.Name = core.StringPtr("testString") + listVPNServersOptionsModel.Name = core.StringPtr("my-name") listVPNServersOptionsModel.Start = core.StringPtr("testString") listVPNServersOptionsModel.Limit = core.Int64Ptr(int64(10)) listVPNServersOptionsModel.ResourceGroupID = core.StringPtr("testString") @@ -85018,7 +85018,7 @@ var _ = Describe(`VpcV1`, func() { Expect(req.URL.Query()["version"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["generation"]).To(Equal([]string{fmt.Sprint(int64(2))})) - Expect(req.URL.Query()["name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["name"]).To(Equal([]string{"my-name"})) 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()["resource_group.id"]).To(Equal([]string{"testString"})) @@ -85046,7 +85046,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the ListVPNServersOptions model listVPNServersOptionsModel := new(vpcv1.ListVPNServersOptions) - listVPNServersOptionsModel.Name = core.StringPtr("testString") + listVPNServersOptionsModel.Name = core.StringPtr("my-name") listVPNServersOptionsModel.Start = core.StringPtr("testString") listVPNServersOptionsModel.Limit = core.Int64Ptr(int64(10)) listVPNServersOptionsModel.ResourceGroupID = core.StringPtr("testString") @@ -85071,7 +85071,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the ListVPNServersOptions model listVPNServersOptionsModel := new(vpcv1.ListVPNServersOptions) - listVPNServersOptionsModel.Name = core.StringPtr("testString") + listVPNServersOptionsModel.Name = core.StringPtr("my-name") listVPNServersOptionsModel.Start = core.StringPtr("testString") listVPNServersOptionsModel.Limit = core.Int64Ptr(int64(10)) listVPNServersOptionsModel.ResourceGroupID = core.StringPtr("testString") @@ -85110,7 +85110,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the ListVPNServersOptions model listVPNServersOptionsModel := new(vpcv1.ListVPNServersOptions) - listVPNServersOptionsModel.Name = core.StringPtr("testString") + listVPNServersOptionsModel.Name = core.StringPtr("my-name") listVPNServersOptionsModel.Start = core.StringPtr("testString") listVPNServersOptionsModel.Limit = core.Int64Ptr(int64(10)) listVPNServersOptionsModel.ResourceGroupID = core.StringPtr("testString") @@ -85191,7 +85191,7 @@ var _ = Describe(`VpcV1`, func() { Expect(vpcService).ToNot(BeNil()) listVPNServersOptionsModel := &vpcv1.ListVPNServersOptions{ - Name: core.StringPtr("testString"), + Name: core.StringPtr("my-name"), Limit: core.Int64Ptr(int64(10)), ResourceGroupID: core.StringPtr("testString"), Sort: core.StringPtr("name"), @@ -85220,7 +85220,7 @@ var _ = Describe(`VpcV1`, func() { Expect(vpcService).ToNot(BeNil()) listVPNServersOptionsModel := &vpcv1.ListVPNServersOptions{ - Name: core.StringPtr("testString"), + Name: core.StringPtr("my-name"), Limit: core.Int64Ptr(int64(10)), ResourceGroupID: core.StringPtr("testString"), Sort: core.StringPtr("name"), @@ -88919,7 +88919,7 @@ var _ = Describe(`VpcV1`, func() { }) Describe(`GetLoadBalancerProfile(getLoadBalancerProfileOptions *GetLoadBalancerProfileOptions) - Operation response error`, func() { version := "testString" - getLoadBalancerProfilePath := "/load_balancer/profiles/testString" + getLoadBalancerProfilePath := "/load_balancer/profiles/network-fixed" Context(`Using mock server endpoint with invalid JSON response`, func() { BeforeEach(func() { testServer = httptest.NewServer(http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) { @@ -88946,7 +88946,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the GetLoadBalancerProfileOptions model getLoadBalancerProfileOptionsModel := new(vpcv1.GetLoadBalancerProfileOptions) - getLoadBalancerProfileOptionsModel.Name = core.StringPtr("testString") + getLoadBalancerProfileOptionsModel.Name = core.StringPtr("network-fixed") getLoadBalancerProfileOptionsModel.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.GetLoadBalancerProfile(getLoadBalancerProfileOptionsModel) @@ -88968,7 +88968,7 @@ var _ = Describe(`VpcV1`, func() { }) Describe(`GetLoadBalancerProfile(getLoadBalancerProfileOptions *GetLoadBalancerProfileOptions)`, func() { version := "testString" - getLoadBalancerProfilePath := "/load_balancer/profiles/testString" + getLoadBalancerProfilePath := "/load_balancer/profiles/network-fixed" Context(`Using mock server endpoint with timeout`, func() { BeforeEach(func() { testServer = httptest.NewServer(http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) { @@ -89001,7 +89001,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the GetLoadBalancerProfileOptions model getLoadBalancerProfileOptionsModel := new(vpcv1.GetLoadBalancerProfileOptions) - getLoadBalancerProfileOptionsModel.Name = core.StringPtr("testString") + getLoadBalancerProfileOptionsModel.Name = core.StringPtr("network-fixed") getLoadBalancerProfileOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with a Context to test a timeout error @@ -89063,7 +89063,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the GetLoadBalancerProfileOptions model getLoadBalancerProfileOptionsModel := new(vpcv1.GetLoadBalancerProfileOptions) - getLoadBalancerProfileOptionsModel.Name = core.StringPtr("testString") + getLoadBalancerProfileOptionsModel.Name = core.StringPtr("network-fixed") getLoadBalancerProfileOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with valid options model (positive test) @@ -89084,7 +89084,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the GetLoadBalancerProfileOptions model getLoadBalancerProfileOptionsModel := new(vpcv1.GetLoadBalancerProfileOptions) - getLoadBalancerProfileOptionsModel.Name = core.StringPtr("testString") + getLoadBalancerProfileOptionsModel.Name = core.StringPtr("network-fixed") getLoadBalancerProfileOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with empty URL (negative test) err := vpcService.SetServiceURL("") @@ -89126,7 +89126,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the GetLoadBalancerProfileOptions model getLoadBalancerProfileOptionsModel := new(vpcv1.GetLoadBalancerProfileOptions) - getLoadBalancerProfileOptionsModel.Name = core.StringPtr("testString") + getLoadBalancerProfileOptionsModel.Name = core.StringPtr("network-fixed") getLoadBalancerProfileOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation @@ -97932,7 +97932,7 @@ var _ = Describe(`VpcV1`, func() { Expect(req.Method).To(Equal("GET")) Expect(req.URL.Query()["version"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["generation"]).To(Equal([]string{fmt.Sprint(int64(2))})) - Expect(req.URL.Query()["name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["name"]).To(Equal([]string{"my-name"})) 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()["resource_group.id"]).To(Equal([]string{"testString"})) @@ -97956,7 +97956,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the ListEndpointGatewaysOptions model listEndpointGatewaysOptionsModel := new(vpcv1.ListEndpointGatewaysOptions) - listEndpointGatewaysOptionsModel.Name = core.StringPtr("testString") + listEndpointGatewaysOptionsModel.Name = core.StringPtr("my-name") listEndpointGatewaysOptionsModel.Start = core.StringPtr("testString") listEndpointGatewaysOptionsModel.Limit = core.Int64Ptr(int64(10)) listEndpointGatewaysOptionsModel.ResourceGroupID = core.StringPtr("testString") @@ -97997,7 +97997,7 @@ var _ = Describe(`VpcV1`, func() { Expect(req.URL.Query()["version"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["generation"]).To(Equal([]string{fmt.Sprint(int64(2))})) - Expect(req.URL.Query()["name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["name"]).To(Equal([]string{"my-name"})) 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()["resource_group.id"]).To(Equal([]string{"testString"})) @@ -98026,7 +98026,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the ListEndpointGatewaysOptions model listEndpointGatewaysOptionsModel := new(vpcv1.ListEndpointGatewaysOptions) - listEndpointGatewaysOptionsModel.Name = core.StringPtr("testString") + listEndpointGatewaysOptionsModel.Name = core.StringPtr("my-name") listEndpointGatewaysOptionsModel.Start = core.StringPtr("testString") listEndpointGatewaysOptionsModel.Limit = core.Int64Ptr(int64(10)) listEndpointGatewaysOptionsModel.ResourceGroupID = core.StringPtr("testString") @@ -98072,7 +98072,7 @@ var _ = Describe(`VpcV1`, func() { Expect(req.URL.Query()["version"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["generation"]).To(Equal([]string{fmt.Sprint(int64(2))})) - Expect(req.URL.Query()["name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["name"]).To(Equal([]string{"my-name"})) 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()["resource_group.id"]).To(Equal([]string{"testString"})) @@ -98103,7 +98103,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the ListEndpointGatewaysOptions model listEndpointGatewaysOptionsModel := new(vpcv1.ListEndpointGatewaysOptions) - listEndpointGatewaysOptionsModel.Name = core.StringPtr("testString") + listEndpointGatewaysOptionsModel.Name = core.StringPtr("my-name") listEndpointGatewaysOptionsModel.Start = core.StringPtr("testString") listEndpointGatewaysOptionsModel.Limit = core.Int64Ptr(int64(10)) listEndpointGatewaysOptionsModel.ResourceGroupID = core.StringPtr("testString") @@ -98131,7 +98131,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the ListEndpointGatewaysOptions model listEndpointGatewaysOptionsModel := new(vpcv1.ListEndpointGatewaysOptions) - listEndpointGatewaysOptionsModel.Name = core.StringPtr("testString") + listEndpointGatewaysOptionsModel.Name = core.StringPtr("my-name") listEndpointGatewaysOptionsModel.Start = core.StringPtr("testString") listEndpointGatewaysOptionsModel.Limit = core.Int64Ptr(int64(10)) listEndpointGatewaysOptionsModel.ResourceGroupID = core.StringPtr("testString") @@ -98173,7 +98173,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the ListEndpointGatewaysOptions model listEndpointGatewaysOptionsModel := new(vpcv1.ListEndpointGatewaysOptions) - listEndpointGatewaysOptionsModel.Name = core.StringPtr("testString") + listEndpointGatewaysOptionsModel.Name = core.StringPtr("my-name") listEndpointGatewaysOptionsModel.Start = core.StringPtr("testString") listEndpointGatewaysOptionsModel.Limit = core.Int64Ptr(int64(10)) listEndpointGatewaysOptionsModel.ResourceGroupID = core.StringPtr("testString") @@ -98257,7 +98257,7 @@ var _ = Describe(`VpcV1`, func() { Expect(vpcService).ToNot(BeNil()) listEndpointGatewaysOptionsModel := &vpcv1.ListEndpointGatewaysOptions{ - Name: core.StringPtr("testString"), + Name: core.StringPtr("my-name"), Limit: core.Int64Ptr(int64(10)), ResourceGroupID: core.StringPtr("testString"), VPCID: core.StringPtr("testString"), @@ -98289,7 +98289,7 @@ var _ = Describe(`VpcV1`, func() { Expect(vpcService).ToNot(BeNil()) listEndpointGatewaysOptionsModel := &vpcv1.ListEndpointGatewaysOptions{ - Name: core.StringPtr("testString"), + Name: core.StringPtr("my-name"), Limit: core.Int64Ptr(int64(10)), ResourceGroupID: core.StringPtr("testString"), VPCID: core.StringPtr("testString"), @@ -100201,7 +100201,7 @@ var _ = Describe(`VpcV1`, func() { 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()["resource_group.id"]).To(Equal([]string{"testString"})) - Expect(req.URL.Query()["name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["name"]).To(Equal([]string{"my-name"})) Expect(req.URL.Query()["vpc.id"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["vpc.crn"]).To(Equal([]string{"crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b"})) Expect(req.URL.Query()["vpc.name"]).To(Equal([]string{"my-vpc"})) @@ -100226,7 +100226,7 @@ var _ = Describe(`VpcV1`, func() { listFlowLogCollectorsOptionsModel.Start = core.StringPtr("testString") listFlowLogCollectorsOptionsModel.Limit = core.Int64Ptr(int64(10)) listFlowLogCollectorsOptionsModel.ResourceGroupID = core.StringPtr("testString") - listFlowLogCollectorsOptionsModel.Name = core.StringPtr("testString") + listFlowLogCollectorsOptionsModel.Name = core.StringPtr("my-name") listFlowLogCollectorsOptionsModel.VPCID = core.StringPtr("testString") listFlowLogCollectorsOptionsModel.VPCCRN = core.StringPtr("crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b") listFlowLogCollectorsOptionsModel.VPCName = core.StringPtr("my-vpc") @@ -100268,7 +100268,7 @@ var _ = Describe(`VpcV1`, func() { 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()["resource_group.id"]).To(Equal([]string{"testString"})) - Expect(req.URL.Query()["name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["name"]).To(Equal([]string{"my-name"})) Expect(req.URL.Query()["vpc.id"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["vpc.crn"]).To(Equal([]string{"crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b"})) Expect(req.URL.Query()["vpc.name"]).To(Equal([]string{"my-vpc"})) @@ -100298,7 +100298,7 @@ var _ = Describe(`VpcV1`, func() { listFlowLogCollectorsOptionsModel.Start = core.StringPtr("testString") listFlowLogCollectorsOptionsModel.Limit = core.Int64Ptr(int64(10)) listFlowLogCollectorsOptionsModel.ResourceGroupID = core.StringPtr("testString") - listFlowLogCollectorsOptionsModel.Name = core.StringPtr("testString") + listFlowLogCollectorsOptionsModel.Name = core.StringPtr("my-name") listFlowLogCollectorsOptionsModel.VPCID = core.StringPtr("testString") listFlowLogCollectorsOptionsModel.VPCCRN = core.StringPtr("crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b") listFlowLogCollectorsOptionsModel.VPCName = core.StringPtr("my-vpc") @@ -100345,7 +100345,7 @@ var _ = Describe(`VpcV1`, func() { 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()["resource_group.id"]).To(Equal([]string{"testString"})) - Expect(req.URL.Query()["name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["name"]).To(Equal([]string{"my-name"})) Expect(req.URL.Query()["vpc.id"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["vpc.crn"]).To(Equal([]string{"crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b"})) Expect(req.URL.Query()["vpc.name"]).To(Equal([]string{"my-vpc"})) @@ -100377,7 +100377,7 @@ var _ = Describe(`VpcV1`, func() { listFlowLogCollectorsOptionsModel.Start = core.StringPtr("testString") listFlowLogCollectorsOptionsModel.Limit = core.Int64Ptr(int64(10)) listFlowLogCollectorsOptionsModel.ResourceGroupID = core.StringPtr("testString") - listFlowLogCollectorsOptionsModel.Name = core.StringPtr("testString") + listFlowLogCollectorsOptionsModel.Name = core.StringPtr("my-name") listFlowLogCollectorsOptionsModel.VPCID = core.StringPtr("testString") listFlowLogCollectorsOptionsModel.VPCCRN = core.StringPtr("crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b") listFlowLogCollectorsOptionsModel.VPCName = core.StringPtr("my-vpc") @@ -100406,7 +100406,7 @@ var _ = Describe(`VpcV1`, func() { listFlowLogCollectorsOptionsModel.Start = core.StringPtr("testString") listFlowLogCollectorsOptionsModel.Limit = core.Int64Ptr(int64(10)) listFlowLogCollectorsOptionsModel.ResourceGroupID = core.StringPtr("testString") - listFlowLogCollectorsOptionsModel.Name = core.StringPtr("testString") + listFlowLogCollectorsOptionsModel.Name = core.StringPtr("my-name") listFlowLogCollectorsOptionsModel.VPCID = core.StringPtr("testString") listFlowLogCollectorsOptionsModel.VPCCRN = core.StringPtr("crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b") listFlowLogCollectorsOptionsModel.VPCName = core.StringPtr("my-vpc") @@ -100449,7 +100449,7 @@ var _ = Describe(`VpcV1`, func() { listFlowLogCollectorsOptionsModel.Start = core.StringPtr("testString") listFlowLogCollectorsOptionsModel.Limit = core.Int64Ptr(int64(10)) listFlowLogCollectorsOptionsModel.ResourceGroupID = core.StringPtr("testString") - listFlowLogCollectorsOptionsModel.Name = core.StringPtr("testString") + listFlowLogCollectorsOptionsModel.Name = core.StringPtr("my-name") listFlowLogCollectorsOptionsModel.VPCID = core.StringPtr("testString") listFlowLogCollectorsOptionsModel.VPCCRN = core.StringPtr("crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b") listFlowLogCollectorsOptionsModel.VPCName = core.StringPtr("my-vpc") @@ -100533,7 +100533,7 @@ var _ = Describe(`VpcV1`, func() { listFlowLogCollectorsOptionsModel := &vpcv1.ListFlowLogCollectorsOptions{ Limit: core.Int64Ptr(int64(10)), ResourceGroupID: core.StringPtr("testString"), - Name: core.StringPtr("testString"), + Name: core.StringPtr("my-name"), VPCID: core.StringPtr("testString"), VPCCRN: core.StringPtr("crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b"), VPCName: core.StringPtr("my-vpc"), @@ -100566,7 +100566,7 @@ var _ = Describe(`VpcV1`, func() { listFlowLogCollectorsOptionsModel := &vpcv1.ListFlowLogCollectorsOptions{ Limit: core.Int64Ptr(int64(10)), ResourceGroupID: core.StringPtr("testString"), - Name: core.StringPtr("testString"), + Name: core.StringPtr("my-name"), VPCID: core.StringPtr("testString"), VPCCRN: core.StringPtr("crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b"), VPCName: core.StringPtr("my-vpc"), @@ -104426,14 +104426,14 @@ var _ = Describe(`VpcV1`, func() { It(`Invoke NewCreateSnapshotCloneOptions successfully`, func() { // Construct an instance of the CreateSnapshotCloneOptions model id := "testString" - zoneName := "testString" + zoneName := "us-south-1" createSnapshotCloneOptionsModel := vpcService.NewCreateSnapshotCloneOptions(id, zoneName) createSnapshotCloneOptionsModel.SetID("testString") - createSnapshotCloneOptionsModel.SetZoneName("testString") + createSnapshotCloneOptionsModel.SetZoneName("us-south-1") createSnapshotCloneOptionsModel.SetHeaders(map[string]string{"foo": "bar"}) Expect(createSnapshotCloneOptionsModel).ToNot(BeNil()) Expect(createSnapshotCloneOptionsModel.ID).To(Equal(core.StringPtr("testString"))) - Expect(createSnapshotCloneOptionsModel.ZoneName).To(Equal(core.StringPtr("testString"))) + Expect(createSnapshotCloneOptionsModel.ZoneName).To(Equal(core.StringPtr("us-south-1"))) Expect(createSnapshotCloneOptionsModel.Headers).To(Equal(map[string]string{"foo": "bar"})) }) It(`Invoke NewCreateSnapshotConsistencyGroupOptions successfully`, func() { @@ -104838,11 +104838,11 @@ var _ = Describe(`VpcV1`, func() { zoneIdentityModel.Name = core.StringPtr("us-south-1") Expect(zoneIdentityModel.Name).To(Equal(core.StringPtr("us-south-1"))) - // Construct an instance of the RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP model - routePrototypeNextHopModel := new(vpcv1.RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP) - Expect(routePrototypeNextHopModel).ToNot(BeNil()) - routePrototypeNextHopModel.Address = core.StringPtr("0.0.0.0") - Expect(routePrototypeNextHopModel.Address).To(Equal(core.StringPtr("0.0.0.0"))) + // Construct an instance of the RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP model + routeNextHopPrototypeModel := new(vpcv1.RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP) + Expect(routeNextHopPrototypeModel).ToNot(BeNil()) + routeNextHopPrototypeModel.Address = core.StringPtr("0.0.0.0") + Expect(routeNextHopPrototypeModel.Address).To(Equal(core.StringPtr("0.0.0.0"))) // Construct an instance of the CreateVPCRouteOptions model vpcID := "testString" @@ -104855,7 +104855,7 @@ var _ = Describe(`VpcV1`, func() { createVPCRouteOptionsModel.SetAction("deliver") createVPCRouteOptionsModel.SetAdvertise(false) createVPCRouteOptionsModel.SetName("my-route-1") - createVPCRouteOptionsModel.SetNextHop(routePrototypeNextHopModel) + createVPCRouteOptionsModel.SetNextHop(routeNextHopPrototypeModel) createVPCRouteOptionsModel.SetPriority(int64(1)) createVPCRouteOptionsModel.SetHeaders(map[string]string{"foo": "bar"}) Expect(createVPCRouteOptionsModel).ToNot(BeNil()) @@ -104865,7 +104865,7 @@ var _ = Describe(`VpcV1`, func() { Expect(createVPCRouteOptionsModel.Action).To(Equal(core.StringPtr("deliver"))) Expect(createVPCRouteOptionsModel.Advertise).To(Equal(core.BoolPtr(false))) Expect(createVPCRouteOptionsModel.Name).To(Equal(core.StringPtr("my-route-1"))) - Expect(createVPCRouteOptionsModel.NextHop).To(Equal(routePrototypeNextHopModel)) + Expect(createVPCRouteOptionsModel.NextHop).To(Equal(routeNextHopPrototypeModel)) Expect(createVPCRouteOptionsModel.Priority).To(Equal(core.Int64Ptr(int64(1)))) Expect(createVPCRouteOptionsModel.Headers).To(Equal(map[string]string{"foo": "bar"})) }) @@ -104876,11 +104876,11 @@ var _ = Describe(`VpcV1`, func() { resourceFilterModel.ResourceType = core.StringPtr("vpn_server") Expect(resourceFilterModel.ResourceType).To(Equal(core.StringPtr("vpn_server"))) - // Construct an instance of the RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP model - routePrototypeNextHopModel := new(vpcv1.RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP) - Expect(routePrototypeNextHopModel).ToNot(BeNil()) - routePrototypeNextHopModel.Address = core.StringPtr("0.0.0.0") - Expect(routePrototypeNextHopModel.Address).To(Equal(core.StringPtr("0.0.0.0"))) + // Construct an instance of the RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP model + routeNextHopPrototypeModel := new(vpcv1.RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP) + Expect(routeNextHopPrototypeModel).ToNot(BeNil()) + routeNextHopPrototypeModel.Address = core.StringPtr("0.0.0.0") + Expect(routeNextHopPrototypeModel.Address).To(Equal(core.StringPtr("0.0.0.0"))) // Construct an instance of the ZoneIdentityByName model zoneIdentityModel := new(vpcv1.ZoneIdentityByName) @@ -104895,14 +104895,14 @@ var _ = Describe(`VpcV1`, func() { routePrototypeModel.Advertise = core.BoolPtr(false) routePrototypeModel.Destination = core.StringPtr("192.168.3.0/24") routePrototypeModel.Name = core.StringPtr("my-route-1") - routePrototypeModel.NextHop = routePrototypeNextHopModel + routePrototypeModel.NextHop = routeNextHopPrototypeModel routePrototypeModel.Priority = core.Int64Ptr(int64(1)) routePrototypeModel.Zone = zoneIdentityModel Expect(routePrototypeModel.Action).To(Equal(core.StringPtr("deliver"))) Expect(routePrototypeModel.Advertise).To(Equal(core.BoolPtr(false))) Expect(routePrototypeModel.Destination).To(Equal(core.StringPtr("192.168.3.0/24"))) Expect(routePrototypeModel.Name).To(Equal(core.StringPtr("my-route-1"))) - Expect(routePrototypeModel.NextHop).To(Equal(routePrototypeNextHopModel)) + Expect(routePrototypeModel.NextHop).To(Equal(routeNextHopPrototypeModel)) Expect(routePrototypeModel.Priority).To(Equal(core.Int64Ptr(int64(1)))) Expect(routePrototypeModel.Zone).To(Equal(zoneIdentityModel)) @@ -104938,11 +104938,11 @@ var _ = Describe(`VpcV1`, func() { zoneIdentityModel.Name = core.StringPtr("us-south-1") Expect(zoneIdentityModel.Name).To(Equal(core.StringPtr("us-south-1"))) - // Construct an instance of the RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP model - routePrototypeNextHopModel := new(vpcv1.RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP) - Expect(routePrototypeNextHopModel).ToNot(BeNil()) - routePrototypeNextHopModel.Address = core.StringPtr("0.0.0.0") - Expect(routePrototypeNextHopModel.Address).To(Equal(core.StringPtr("0.0.0.0"))) + // Construct an instance of the RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP model + routeNextHopPrototypeModel := new(vpcv1.RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP) + Expect(routeNextHopPrototypeModel).ToNot(BeNil()) + routeNextHopPrototypeModel.Address = core.StringPtr("0.0.0.0") + Expect(routeNextHopPrototypeModel.Address).To(Equal(core.StringPtr("0.0.0.0"))) // Construct an instance of the CreateVPCRoutingTableRouteOptions model vpcID := "testString" @@ -104957,7 +104957,7 @@ var _ = Describe(`VpcV1`, func() { createVPCRoutingTableRouteOptionsModel.SetAction("deliver") createVPCRoutingTableRouteOptionsModel.SetAdvertise(false) createVPCRoutingTableRouteOptionsModel.SetName("my-route-1") - createVPCRoutingTableRouteOptionsModel.SetNextHop(routePrototypeNextHopModel) + createVPCRoutingTableRouteOptionsModel.SetNextHop(routeNextHopPrototypeModel) createVPCRoutingTableRouteOptionsModel.SetPriority(int64(1)) createVPCRoutingTableRouteOptionsModel.SetHeaders(map[string]string{"foo": "bar"}) Expect(createVPCRoutingTableRouteOptionsModel).ToNot(BeNil()) @@ -104968,7 +104968,7 @@ var _ = Describe(`VpcV1`, func() { Expect(createVPCRoutingTableRouteOptionsModel.Action).To(Equal(core.StringPtr("deliver"))) Expect(createVPCRoutingTableRouteOptionsModel.Advertise).To(Equal(core.BoolPtr(false))) Expect(createVPCRoutingTableRouteOptionsModel.Name).To(Equal(core.StringPtr("my-route-1"))) - Expect(createVPCRoutingTableRouteOptionsModel.NextHop).To(Equal(routePrototypeNextHopModel)) + Expect(createVPCRoutingTableRouteOptionsModel.NextHop).To(Equal(routeNextHopPrototypeModel)) Expect(createVPCRoutingTableRouteOptionsModel.Priority).To(Equal(core.Int64Ptr(int64(1)))) Expect(createVPCRoutingTableRouteOptionsModel.Headers).To(Equal(map[string]string{"foo": "bar"})) }) @@ -105733,14 +105733,14 @@ var _ = Describe(`VpcV1`, func() { It(`Invoke NewDeleteSnapshotCloneOptions successfully`, func() { // Construct an instance of the DeleteSnapshotCloneOptions model id := "testString" - zoneName := "testString" + zoneName := "us-south-1" deleteSnapshotCloneOptionsModel := vpcService.NewDeleteSnapshotCloneOptions(id, zoneName) deleteSnapshotCloneOptionsModel.SetID("testString") - deleteSnapshotCloneOptionsModel.SetZoneName("testString") + deleteSnapshotCloneOptionsModel.SetZoneName("us-south-1") deleteSnapshotCloneOptionsModel.SetHeaders(map[string]string{"foo": "bar"}) Expect(deleteSnapshotCloneOptionsModel).ToNot(BeNil()) Expect(deleteSnapshotCloneOptionsModel.ID).To(Equal(core.StringPtr("testString"))) - Expect(deleteSnapshotCloneOptionsModel.ZoneName).To(Equal(core.StringPtr("testString"))) + Expect(deleteSnapshotCloneOptionsModel.ZoneName).To(Equal(core.StringPtr("us-south-1"))) Expect(deleteSnapshotCloneOptionsModel.Headers).To(Equal(map[string]string{"foo": "bar"})) }) It(`Invoke NewDeleteSnapshotConsistencyGroupOptions successfully`, func() { @@ -106129,12 +106129,12 @@ var _ = Describe(`VpcV1`, func() { }) It(`Invoke NewGetBareMetalServerProfileOptions successfully`, func() { // Construct an instance of the GetBareMetalServerProfileOptions model - name := "testString" + name := "bx2-metal-192x768" getBareMetalServerProfileOptionsModel := vpcService.NewGetBareMetalServerProfileOptions(name) - getBareMetalServerProfileOptionsModel.SetName("testString") + getBareMetalServerProfileOptionsModel.SetName("bx2-metal-192x768") getBareMetalServerProfileOptionsModel.SetHeaders(map[string]string{"foo": "bar"}) Expect(getBareMetalServerProfileOptionsModel).ToNot(BeNil()) - Expect(getBareMetalServerProfileOptionsModel.Name).To(Equal(core.StringPtr("testString"))) + Expect(getBareMetalServerProfileOptionsModel.Name).To(Equal(core.StringPtr("bx2-metal-192x768"))) Expect(getBareMetalServerProfileOptionsModel.Headers).To(Equal(map[string]string{"foo": "bar"})) }) It(`Invoke NewGetDedicatedHostDiskOptions successfully`, func() { @@ -106172,12 +106172,12 @@ var _ = Describe(`VpcV1`, func() { }) It(`Invoke NewGetDedicatedHostProfileOptions successfully`, func() { // Construct an instance of the GetDedicatedHostProfileOptions model - name := "testString" + name := "mx2-host-152x1216" getDedicatedHostProfileOptionsModel := vpcService.NewGetDedicatedHostProfileOptions(name) - getDedicatedHostProfileOptionsModel.SetName("testString") + getDedicatedHostProfileOptionsModel.SetName("mx2-host-152x1216") getDedicatedHostProfileOptionsModel.SetHeaders(map[string]string{"foo": "bar"}) Expect(getDedicatedHostProfileOptionsModel).ToNot(BeNil()) - Expect(getDedicatedHostProfileOptionsModel.Name).To(Equal(core.StringPtr("testString"))) + Expect(getDedicatedHostProfileOptionsModel.Name).To(Equal(core.StringPtr("mx2-host-152x1216"))) Expect(getDedicatedHostProfileOptionsModel.Headers).To(Equal(map[string]string{"foo": "bar"})) }) It(`Invoke NewGetEndpointGatewayIPOptions successfully`, func() { @@ -106417,12 +106417,12 @@ var _ = Describe(`VpcV1`, func() { }) It(`Invoke NewGetInstanceProfileOptions successfully`, func() { // Construct an instance of the GetInstanceProfileOptions model - name := "testString" + name := "mx2-host-152x1216" getInstanceProfileOptionsModel := vpcService.NewGetInstanceProfileOptions(name) - getInstanceProfileOptionsModel.SetName("testString") + getInstanceProfileOptionsModel.SetName("mx2-host-152x1216") getInstanceProfileOptionsModel.SetHeaders(map[string]string{"foo": "bar"}) Expect(getInstanceProfileOptionsModel).ToNot(BeNil()) - Expect(getInstanceProfileOptionsModel.Name).To(Equal(core.StringPtr("testString"))) + Expect(getInstanceProfileOptionsModel.Name).To(Equal(core.StringPtr("mx2-host-152x1216"))) Expect(getInstanceProfileOptionsModel.Headers).To(Equal(map[string]string{"foo": "bar"})) }) It(`Invoke NewGetInstanceTemplateOptions successfully`, func() { @@ -106557,12 +106557,12 @@ var _ = Describe(`VpcV1`, func() { }) It(`Invoke NewGetLoadBalancerProfileOptions successfully`, func() { // Construct an instance of the GetLoadBalancerProfileOptions model - name := "testString" + name := "network-fixed" getLoadBalancerProfileOptionsModel := vpcService.NewGetLoadBalancerProfileOptions(name) - getLoadBalancerProfileOptionsModel.SetName("testString") + getLoadBalancerProfileOptionsModel.SetName("network-fixed") getLoadBalancerProfileOptionsModel.SetHeaders(map[string]string{"foo": "bar"}) Expect(getLoadBalancerProfileOptionsModel).ToNot(BeNil()) - Expect(getLoadBalancerProfileOptionsModel.Name).To(Equal(core.StringPtr("testString"))) + Expect(getLoadBalancerProfileOptionsModel.Name).To(Equal(core.StringPtr("network-fixed"))) Expect(getLoadBalancerProfileOptionsModel.Headers).To(Equal(map[string]string{"foo": "bar"})) }) It(`Invoke NewGetLoadBalancerStatisticsOptions successfully`, func() { @@ -106613,12 +106613,12 @@ var _ = Describe(`VpcV1`, func() { }) It(`Invoke NewGetOperatingSystemOptions successfully`, func() { // Construct an instance of the GetOperatingSystemOptions model - name := "testString" + name := "red-7-amd64" getOperatingSystemOptionsModel := vpcService.NewGetOperatingSystemOptions(name) - getOperatingSystemOptionsModel.SetName("testString") + getOperatingSystemOptionsModel.SetName("red-7-amd64") getOperatingSystemOptionsModel.SetHeaders(map[string]string{"foo": "bar"}) Expect(getOperatingSystemOptionsModel).ToNot(BeNil()) - Expect(getOperatingSystemOptionsModel.Name).To(Equal(core.StringPtr("testString"))) + Expect(getOperatingSystemOptionsModel.Name).To(Equal(core.StringPtr("red-7-amd64"))) Expect(getOperatingSystemOptionsModel.Headers).To(Equal(map[string]string{"foo": "bar"})) }) It(`Invoke NewGetPlacementGroupOptions successfully`, func() { @@ -106643,25 +106643,25 @@ var _ = Describe(`VpcV1`, func() { }) It(`Invoke NewGetRegionOptions successfully`, func() { // Construct an instance of the GetRegionOptions model - name := "testString" + name := "us-south" getRegionOptionsModel := vpcService.NewGetRegionOptions(name) - getRegionOptionsModel.SetName("testString") + getRegionOptionsModel.SetName("us-south") getRegionOptionsModel.SetHeaders(map[string]string{"foo": "bar"}) Expect(getRegionOptionsModel).ToNot(BeNil()) - Expect(getRegionOptionsModel.Name).To(Equal(core.StringPtr("testString"))) + Expect(getRegionOptionsModel.Name).To(Equal(core.StringPtr("us-south"))) Expect(getRegionOptionsModel.Headers).To(Equal(map[string]string{"foo": "bar"})) }) It(`Invoke NewGetRegionZoneOptions successfully`, func() { // Construct an instance of the GetRegionZoneOptions model - regionName := "testString" - name := "testString" + regionName := "us-south" + name := "us-south-1" getRegionZoneOptionsModel := vpcService.NewGetRegionZoneOptions(regionName, name) - getRegionZoneOptionsModel.SetRegionName("testString") - getRegionZoneOptionsModel.SetName("testString") + getRegionZoneOptionsModel.SetRegionName("us-south") + getRegionZoneOptionsModel.SetName("us-south-1") getRegionZoneOptionsModel.SetHeaders(map[string]string{"foo": "bar"}) Expect(getRegionZoneOptionsModel).ToNot(BeNil()) - Expect(getRegionZoneOptionsModel.RegionName).To(Equal(core.StringPtr("testString"))) - Expect(getRegionZoneOptionsModel.Name).To(Equal(core.StringPtr("testString"))) + Expect(getRegionZoneOptionsModel.RegionName).To(Equal(core.StringPtr("us-south"))) + Expect(getRegionZoneOptionsModel.Name).To(Equal(core.StringPtr("us-south-1"))) Expect(getRegionZoneOptionsModel.Headers).To(Equal(map[string]string{"foo": "bar"})) }) It(`Invoke NewGetReservationOptions successfully`, func() { @@ -106748,12 +106748,12 @@ var _ = Describe(`VpcV1`, func() { }) It(`Invoke NewGetShareProfileOptions successfully`, func() { // Construct an instance of the GetShareProfileOptions model - name := "testString" + name := "dp2" getShareProfileOptionsModel := vpcService.NewGetShareProfileOptions(name) - getShareProfileOptionsModel.SetName("testString") + getShareProfileOptionsModel.SetName("dp2") getShareProfileOptionsModel.SetHeaders(map[string]string{"foo": "bar"}) Expect(getShareProfileOptionsModel).ToNot(BeNil()) - Expect(getShareProfileOptionsModel.Name).To(Equal(core.StringPtr("testString"))) + Expect(getShareProfileOptionsModel.Name).To(Equal(core.StringPtr("dp2"))) Expect(getShareProfileOptionsModel.Headers).To(Equal(map[string]string{"foo": "bar"})) }) It(`Invoke NewGetShareSourceOptions successfully`, func() { @@ -106769,14 +106769,14 @@ var _ = Describe(`VpcV1`, func() { It(`Invoke NewGetSnapshotCloneOptions successfully`, func() { // Construct an instance of the GetSnapshotCloneOptions model id := "testString" - zoneName := "testString" + zoneName := "us-south-1" getSnapshotCloneOptionsModel := vpcService.NewGetSnapshotCloneOptions(id, zoneName) getSnapshotCloneOptionsModel.SetID("testString") - getSnapshotCloneOptionsModel.SetZoneName("testString") + getSnapshotCloneOptionsModel.SetZoneName("us-south-1") getSnapshotCloneOptionsModel.SetHeaders(map[string]string{"foo": "bar"}) Expect(getSnapshotCloneOptionsModel).ToNot(BeNil()) Expect(getSnapshotCloneOptionsModel.ID).To(Equal(core.StringPtr("testString"))) - Expect(getSnapshotCloneOptionsModel.ZoneName).To(Equal(core.StringPtr("testString"))) + Expect(getSnapshotCloneOptionsModel.ZoneName).To(Equal(core.StringPtr("us-south-1"))) Expect(getSnapshotCloneOptionsModel.Headers).To(Equal(map[string]string{"foo": "bar"})) }) It(`Invoke NewGetSnapshotConsistencyGroupOptions successfully`, func() { @@ -106887,12 +106887,12 @@ var _ = Describe(`VpcV1`, func() { }) It(`Invoke NewGetVolumeProfileOptions successfully`, func() { // Construct an instance of the GetVolumeProfileOptions model - name := "testString" + name := "10iops-tier" getVolumeProfileOptionsModel := vpcService.NewGetVolumeProfileOptions(name) - getVolumeProfileOptionsModel.SetName("testString") + getVolumeProfileOptionsModel.SetName("10iops-tier") getVolumeProfileOptionsModel.SetHeaders(map[string]string{"foo": "bar"}) Expect(getVolumeProfileOptionsModel).ToNot(BeNil()) - Expect(getVolumeProfileOptionsModel.Name).To(Equal(core.StringPtr("testString"))) + Expect(getVolumeProfileOptionsModel.Name).To(Equal(core.StringPtr("10iops-tier"))) Expect(getVolumeProfileOptionsModel.Headers).To(Equal(map[string]string{"foo": "bar"})) }) It(`Invoke NewGetVPCAddressPrefixOptions successfully`, func() { @@ -107106,14 +107106,14 @@ var _ = Describe(`VpcV1`, func() { listBackupPoliciesOptionsModel.SetStart("testString") listBackupPoliciesOptionsModel.SetLimit(int64(10)) listBackupPoliciesOptionsModel.SetResourceGroupID("testString") - listBackupPoliciesOptionsModel.SetName("testString") + listBackupPoliciesOptionsModel.SetName("my-name") listBackupPoliciesOptionsModel.SetTag("testString") listBackupPoliciesOptionsModel.SetHeaders(map[string]string{"foo": "bar"}) Expect(listBackupPoliciesOptionsModel).ToNot(BeNil()) Expect(listBackupPoliciesOptionsModel.Start).To(Equal(core.StringPtr("testString"))) Expect(listBackupPoliciesOptionsModel.Limit).To(Equal(core.Int64Ptr(int64(10)))) Expect(listBackupPoliciesOptionsModel.ResourceGroupID).To(Equal(core.StringPtr("testString"))) - Expect(listBackupPoliciesOptionsModel.Name).To(Equal(core.StringPtr("testString"))) + Expect(listBackupPoliciesOptionsModel.Name).To(Equal(core.StringPtr("my-name"))) Expect(listBackupPoliciesOptionsModel.Tag).To(Equal(core.StringPtr("testString"))) Expect(listBackupPoliciesOptionsModel.Headers).To(Equal(map[string]string{"foo": "bar"})) }) @@ -107148,11 +107148,11 @@ var _ = Describe(`VpcV1`, func() { backupPolicyID := "testString" listBackupPolicyPlansOptionsModel := vpcService.NewListBackupPolicyPlansOptions(backupPolicyID) listBackupPolicyPlansOptionsModel.SetBackupPolicyID("testString") - listBackupPolicyPlansOptionsModel.SetName("testString") + listBackupPolicyPlansOptionsModel.SetName("my-name") listBackupPolicyPlansOptionsModel.SetHeaders(map[string]string{"foo": "bar"}) Expect(listBackupPolicyPlansOptionsModel).ToNot(BeNil()) Expect(listBackupPolicyPlansOptionsModel.BackupPolicyID).To(Equal(core.StringPtr("testString"))) - Expect(listBackupPolicyPlansOptionsModel.Name).To(Equal(core.StringPtr("testString"))) + Expect(listBackupPolicyPlansOptionsModel.Name).To(Equal(core.StringPtr("my-name"))) Expect(listBackupPolicyPlansOptionsModel.Headers).To(Equal(map[string]string{"foo": "bar"})) }) It(`Invoke NewListBareMetalServerDisksOptions successfully`, func() { @@ -107236,7 +107236,7 @@ var _ = Describe(`VpcV1`, func() { listBareMetalServersOptionsModel.SetStart("testString") listBareMetalServersOptionsModel.SetLimit(int64(10)) listBareMetalServersOptionsModel.SetResourceGroupID("testString") - listBareMetalServersOptionsModel.SetName("testString") + listBareMetalServersOptionsModel.SetName("my-name") listBareMetalServersOptionsModel.SetVPCID("testString") listBareMetalServersOptionsModel.SetVPCCRN("crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b") listBareMetalServersOptionsModel.SetVPCName("my-vpc") @@ -107245,7 +107245,7 @@ var _ = Describe(`VpcV1`, func() { Expect(listBareMetalServersOptionsModel.Start).To(Equal(core.StringPtr("testString"))) Expect(listBareMetalServersOptionsModel.Limit).To(Equal(core.Int64Ptr(int64(10)))) Expect(listBareMetalServersOptionsModel.ResourceGroupID).To(Equal(core.StringPtr("testString"))) - Expect(listBareMetalServersOptionsModel.Name).To(Equal(core.StringPtr("testString"))) + Expect(listBareMetalServersOptionsModel.Name).To(Equal(core.StringPtr("my-name"))) Expect(listBareMetalServersOptionsModel.VPCID).To(Equal(core.StringPtr("testString"))) Expect(listBareMetalServersOptionsModel.VPCCRN).To(Equal(core.StringPtr("crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b"))) Expect(listBareMetalServersOptionsModel.VPCName).To(Equal(core.StringPtr("my-vpc"))) @@ -107268,14 +107268,14 @@ var _ = Describe(`VpcV1`, func() { listDedicatedHostGroupsOptionsModel.SetLimit(int64(10)) listDedicatedHostGroupsOptionsModel.SetResourceGroupID("testString") listDedicatedHostGroupsOptionsModel.SetZoneName("us-south-1") - listDedicatedHostGroupsOptionsModel.SetName("testString") + listDedicatedHostGroupsOptionsModel.SetName("my-name") listDedicatedHostGroupsOptionsModel.SetHeaders(map[string]string{"foo": "bar"}) Expect(listDedicatedHostGroupsOptionsModel).ToNot(BeNil()) Expect(listDedicatedHostGroupsOptionsModel.Start).To(Equal(core.StringPtr("testString"))) Expect(listDedicatedHostGroupsOptionsModel.Limit).To(Equal(core.Int64Ptr(int64(10)))) Expect(listDedicatedHostGroupsOptionsModel.ResourceGroupID).To(Equal(core.StringPtr("testString"))) Expect(listDedicatedHostGroupsOptionsModel.ZoneName).To(Equal(core.StringPtr("us-south-1"))) - Expect(listDedicatedHostGroupsOptionsModel.Name).To(Equal(core.StringPtr("testString"))) + Expect(listDedicatedHostGroupsOptionsModel.Name).To(Equal(core.StringPtr("my-name"))) Expect(listDedicatedHostGroupsOptionsModel.Headers).To(Equal(map[string]string{"foo": "bar"})) }) It(`Invoke NewListDedicatedHostProfilesOptions successfully`, func() { @@ -107297,7 +107297,7 @@ var _ = Describe(`VpcV1`, func() { listDedicatedHostsOptionsModel.SetLimit(int64(10)) listDedicatedHostsOptionsModel.SetResourceGroupID("testString") listDedicatedHostsOptionsModel.SetZoneName("us-south-1") - listDedicatedHostsOptionsModel.SetName("testString") + listDedicatedHostsOptionsModel.SetName("my-name") listDedicatedHostsOptionsModel.SetHeaders(map[string]string{"foo": "bar"}) Expect(listDedicatedHostsOptionsModel).ToNot(BeNil()) Expect(listDedicatedHostsOptionsModel.DedicatedHostGroupID).To(Equal(core.StringPtr("testString"))) @@ -107305,7 +107305,7 @@ var _ = Describe(`VpcV1`, func() { Expect(listDedicatedHostsOptionsModel.Limit).To(Equal(core.Int64Ptr(int64(10)))) Expect(listDedicatedHostsOptionsModel.ResourceGroupID).To(Equal(core.StringPtr("testString"))) Expect(listDedicatedHostsOptionsModel.ZoneName).To(Equal(core.StringPtr("us-south-1"))) - Expect(listDedicatedHostsOptionsModel.Name).To(Equal(core.StringPtr("testString"))) + Expect(listDedicatedHostsOptionsModel.Name).To(Equal(core.StringPtr("my-name"))) Expect(listDedicatedHostsOptionsModel.Headers).To(Equal(map[string]string{"foo": "bar"})) }) It(`Invoke NewListEndpointGatewayIpsOptions successfully`, func() { @@ -107327,7 +107327,7 @@ var _ = Describe(`VpcV1`, func() { It(`Invoke NewListEndpointGatewaysOptions successfully`, func() { // Construct an instance of the ListEndpointGatewaysOptions model listEndpointGatewaysOptionsModel := vpcService.NewListEndpointGatewaysOptions() - listEndpointGatewaysOptionsModel.SetName("testString") + listEndpointGatewaysOptionsModel.SetName("my-name") listEndpointGatewaysOptionsModel.SetStart("testString") listEndpointGatewaysOptionsModel.SetLimit(int64(10)) listEndpointGatewaysOptionsModel.SetResourceGroupID("testString") @@ -107337,7 +107337,7 @@ var _ = Describe(`VpcV1`, func() { listEndpointGatewaysOptionsModel.SetAllowDnsResolutionBinding(true) listEndpointGatewaysOptionsModel.SetHeaders(map[string]string{"foo": "bar"}) Expect(listEndpointGatewaysOptionsModel).ToNot(BeNil()) - Expect(listEndpointGatewaysOptionsModel.Name).To(Equal(core.StringPtr("testString"))) + Expect(listEndpointGatewaysOptionsModel.Name).To(Equal(core.StringPtr("my-name"))) Expect(listEndpointGatewaysOptionsModel.Start).To(Equal(core.StringPtr("testString"))) Expect(listEndpointGatewaysOptionsModel.Limit).To(Equal(core.Int64Ptr(int64(10)))) Expect(listEndpointGatewaysOptionsModel.ResourceGroupID).To(Equal(core.StringPtr("testString"))) @@ -107376,7 +107376,7 @@ var _ = Describe(`VpcV1`, func() { listFlowLogCollectorsOptionsModel.SetStart("testString") listFlowLogCollectorsOptionsModel.SetLimit(int64(10)) listFlowLogCollectorsOptionsModel.SetResourceGroupID("testString") - listFlowLogCollectorsOptionsModel.SetName("testString") + listFlowLogCollectorsOptionsModel.SetName("my-name") listFlowLogCollectorsOptionsModel.SetVPCID("testString") listFlowLogCollectorsOptionsModel.SetVPCCRN("crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b") listFlowLogCollectorsOptionsModel.SetVPCName("my-vpc") @@ -107387,7 +107387,7 @@ var _ = Describe(`VpcV1`, func() { Expect(listFlowLogCollectorsOptionsModel.Start).To(Equal(core.StringPtr("testString"))) Expect(listFlowLogCollectorsOptionsModel.Limit).To(Equal(core.Int64Ptr(int64(10)))) Expect(listFlowLogCollectorsOptionsModel.ResourceGroupID).To(Equal(core.StringPtr("testString"))) - Expect(listFlowLogCollectorsOptionsModel.Name).To(Equal(core.StringPtr("testString"))) + Expect(listFlowLogCollectorsOptionsModel.Name).To(Equal(core.StringPtr("my-name"))) Expect(listFlowLogCollectorsOptionsModel.VPCID).To(Equal(core.StringPtr("testString"))) Expect(listFlowLogCollectorsOptionsModel.VPCCRN).To(Equal(core.StringPtr("crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b"))) Expect(listFlowLogCollectorsOptionsModel.VPCName).To(Equal(core.StringPtr("my-vpc"))) @@ -107425,11 +107425,11 @@ var _ = Describe(`VpcV1`, func() { imageID := "testString" listImageExportJobsOptionsModel := vpcService.NewListImageExportJobsOptions(imageID) listImageExportJobsOptionsModel.SetImageID("testString") - listImageExportJobsOptionsModel.SetName("testString") + listImageExportJobsOptionsModel.SetName("my-name") listImageExportJobsOptionsModel.SetHeaders(map[string]string{"foo": "bar"}) Expect(listImageExportJobsOptionsModel).ToNot(BeNil()) Expect(listImageExportJobsOptionsModel.ImageID).To(Equal(core.StringPtr("testString"))) - Expect(listImageExportJobsOptionsModel.Name).To(Equal(core.StringPtr("testString"))) + Expect(listImageExportJobsOptionsModel.Name).To(Equal(core.StringPtr("my-name"))) Expect(listImageExportJobsOptionsModel.Headers).To(Equal(map[string]string{"foo": "bar"})) }) It(`Invoke NewListImagesOptions successfully`, func() { @@ -107438,7 +107438,7 @@ var _ = Describe(`VpcV1`, func() { listImagesOptionsModel.SetStart("testString") listImagesOptionsModel.SetLimit(int64(10)) listImagesOptionsModel.SetResourceGroupID("testString") - listImagesOptionsModel.SetName("testString") + listImagesOptionsModel.SetName("my-name") listImagesOptionsModel.SetStatus([]string{"available"}) listImagesOptionsModel.SetVisibility("private") listImagesOptionsModel.SetUserDataFormat([]string{"cloud_init"}) @@ -107447,7 +107447,7 @@ var _ = Describe(`VpcV1`, func() { Expect(listImagesOptionsModel.Start).To(Equal(core.StringPtr("testString"))) Expect(listImagesOptionsModel.Limit).To(Equal(core.Int64Ptr(int64(10)))) Expect(listImagesOptionsModel.ResourceGroupID).To(Equal(core.StringPtr("testString"))) - Expect(listImagesOptionsModel.Name).To(Equal(core.StringPtr("testString"))) + Expect(listImagesOptionsModel.Name).To(Equal(core.StringPtr("my-name"))) Expect(listImagesOptionsModel.Status).To(Equal([]string{"available"})) Expect(listImagesOptionsModel.Visibility).To(Equal(core.StringPtr("private"))) Expect(listImagesOptionsModel.UserDataFormat).To(Equal([]string{"cloud_init"})) @@ -107616,7 +107616,7 @@ var _ = Describe(`VpcV1`, func() { listInstancesOptionsModel.SetStart("testString") listInstancesOptionsModel.SetLimit(int64(10)) listInstancesOptionsModel.SetResourceGroupID("testString") - listInstancesOptionsModel.SetName("testString") + listInstancesOptionsModel.SetName("my-name") listInstancesOptionsModel.SetDedicatedHostID("testString") listInstancesOptionsModel.SetDedicatedHostCRN("crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host:1e09281b-f177-46fb-baf1-bc152b2e391a") listInstancesOptionsModel.SetDedicatedHostName("my-dedicated-host") @@ -107634,7 +107634,7 @@ var _ = Describe(`VpcV1`, func() { Expect(listInstancesOptionsModel.Start).To(Equal(core.StringPtr("testString"))) Expect(listInstancesOptionsModel.Limit).To(Equal(core.Int64Ptr(int64(10)))) Expect(listInstancesOptionsModel.ResourceGroupID).To(Equal(core.StringPtr("testString"))) - Expect(listInstancesOptionsModel.Name).To(Equal(core.StringPtr("testString"))) + Expect(listInstancesOptionsModel.Name).To(Equal(core.StringPtr("my-name"))) Expect(listInstancesOptionsModel.DedicatedHostID).To(Equal(core.StringPtr("testString"))) Expect(listInstancesOptionsModel.DedicatedHostCRN).To(Equal(core.StringPtr("crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::dedicated-host:1e09281b-f177-46fb-baf1-bc152b2e391a"))) Expect(listInstancesOptionsModel.DedicatedHostName).To(Equal(core.StringPtr("my-dedicated-host"))) @@ -107851,12 +107851,12 @@ var _ = Describe(`VpcV1`, func() { }) It(`Invoke NewListRegionZonesOptions successfully`, func() { // Construct an instance of the ListRegionZonesOptions model - regionName := "testString" + regionName := "us-south" listRegionZonesOptionsModel := vpcService.NewListRegionZonesOptions(regionName) - listRegionZonesOptionsModel.SetRegionName("testString") + listRegionZonesOptionsModel.SetRegionName("us-south") listRegionZonesOptionsModel.SetHeaders(map[string]string{"foo": "bar"}) Expect(listRegionZonesOptionsModel).ToNot(BeNil()) - Expect(listRegionZonesOptionsModel.RegionName).To(Equal(core.StringPtr("testString"))) + Expect(listRegionZonesOptionsModel.RegionName).To(Equal(core.StringPtr("us-south"))) Expect(listRegionZonesOptionsModel.Headers).To(Equal(map[string]string{"foo": "bar"})) }) It(`Invoke NewListRegionsOptions successfully`, func() { @@ -107871,14 +107871,14 @@ var _ = Describe(`VpcV1`, func() { listReservationsOptionsModel := vpcService.NewListReservationsOptions() listReservationsOptionsModel.SetStart("testString") listReservationsOptionsModel.SetLimit(int64(10)) - listReservationsOptionsModel.SetName("testString") + listReservationsOptionsModel.SetName("my-name") listReservationsOptionsModel.SetResourceGroupID("testString") listReservationsOptionsModel.SetZoneName("us-south-1") listReservationsOptionsModel.SetHeaders(map[string]string{"foo": "bar"}) Expect(listReservationsOptionsModel).ToNot(BeNil()) Expect(listReservationsOptionsModel.Start).To(Equal(core.StringPtr("testString"))) Expect(listReservationsOptionsModel.Limit).To(Equal(core.Int64Ptr(int64(10)))) - Expect(listReservationsOptionsModel.Name).To(Equal(core.StringPtr("testString"))) + Expect(listReservationsOptionsModel.Name).To(Equal(core.StringPtr("my-name"))) Expect(listReservationsOptionsModel.ResourceGroupID).To(Equal(core.StringPtr("testString"))) Expect(listReservationsOptionsModel.ZoneName).To(Equal(core.StringPtr("us-south-1"))) Expect(listReservationsOptionsModel.Headers).To(Equal(map[string]string{"foo": "bar"})) @@ -107945,13 +107945,13 @@ var _ = Describe(`VpcV1`, func() { shareID := "testString" listShareMountTargetsOptionsModel := vpcService.NewListShareMountTargetsOptions(shareID) listShareMountTargetsOptionsModel.SetShareID("testString") - listShareMountTargetsOptionsModel.SetName("testString") + listShareMountTargetsOptionsModel.SetName("my-name") listShareMountTargetsOptionsModel.SetStart("testString") listShareMountTargetsOptionsModel.SetLimit(int64(10)) listShareMountTargetsOptionsModel.SetHeaders(map[string]string{"foo": "bar"}) Expect(listShareMountTargetsOptionsModel).ToNot(BeNil()) Expect(listShareMountTargetsOptionsModel.ShareID).To(Equal(core.StringPtr("testString"))) - Expect(listShareMountTargetsOptionsModel.Name).To(Equal(core.StringPtr("testString"))) + Expect(listShareMountTargetsOptionsModel.Name).To(Equal(core.StringPtr("my-name"))) Expect(listShareMountTargetsOptionsModel.Start).To(Equal(core.StringPtr("testString"))) Expect(listShareMountTargetsOptionsModel.Limit).To(Equal(core.Int64Ptr(int64(10)))) Expect(listShareMountTargetsOptionsModel.Headers).To(Equal(map[string]string{"foo": "bar"})) @@ -107975,7 +107975,7 @@ var _ = Describe(`VpcV1`, func() { listSharesOptionsModel.SetStart("testString") listSharesOptionsModel.SetLimit(int64(10)) listSharesOptionsModel.SetResourceGroupID("testString") - listSharesOptionsModel.SetName("testString") + listSharesOptionsModel.SetName("my-name") listSharesOptionsModel.SetSort("name") listSharesOptionsModel.SetReplicationRole("none") listSharesOptionsModel.SetHeaders(map[string]string{"foo": "bar"}) @@ -107983,7 +107983,7 @@ var _ = Describe(`VpcV1`, func() { Expect(listSharesOptionsModel.Start).To(Equal(core.StringPtr("testString"))) Expect(listSharesOptionsModel.Limit).To(Equal(core.Int64Ptr(int64(10)))) Expect(listSharesOptionsModel.ResourceGroupID).To(Equal(core.StringPtr("testString"))) - Expect(listSharesOptionsModel.Name).To(Equal(core.StringPtr("testString"))) + Expect(listSharesOptionsModel.Name).To(Equal(core.StringPtr("my-name"))) Expect(listSharesOptionsModel.Sort).To(Equal(core.StringPtr("name"))) Expect(listSharesOptionsModel.ReplicationRole).To(Equal(core.StringPtr("none"))) Expect(listSharesOptionsModel.Headers).To(Equal(map[string]string{"foo": "bar"})) @@ -108004,7 +108004,7 @@ var _ = Describe(`VpcV1`, func() { listSnapshotConsistencyGroupsOptionsModel.SetStart("testString") listSnapshotConsistencyGroupsOptionsModel.SetLimit(int64(10)) listSnapshotConsistencyGroupsOptionsModel.SetResourceGroupID("testString") - listSnapshotConsistencyGroupsOptionsModel.SetName("testString") + listSnapshotConsistencyGroupsOptionsModel.SetName("my-name") listSnapshotConsistencyGroupsOptionsModel.SetSort("name") listSnapshotConsistencyGroupsOptionsModel.SetBackupPolicyPlanID("testString") listSnapshotConsistencyGroupsOptionsModel.SetHeaders(map[string]string{"foo": "bar"}) @@ -108012,7 +108012,7 @@ var _ = Describe(`VpcV1`, func() { Expect(listSnapshotConsistencyGroupsOptionsModel.Start).To(Equal(core.StringPtr("testString"))) Expect(listSnapshotConsistencyGroupsOptionsModel.Limit).To(Equal(core.Int64Ptr(int64(10)))) Expect(listSnapshotConsistencyGroupsOptionsModel.ResourceGroupID).To(Equal(core.StringPtr("testString"))) - Expect(listSnapshotConsistencyGroupsOptionsModel.Name).To(Equal(core.StringPtr("testString"))) + Expect(listSnapshotConsistencyGroupsOptionsModel.Name).To(Equal(core.StringPtr("my-name"))) Expect(listSnapshotConsistencyGroupsOptionsModel.Sort).To(Equal(core.StringPtr("name"))) Expect(listSnapshotConsistencyGroupsOptionsModel.BackupPolicyPlanID).To(Equal(core.StringPtr("testString"))) Expect(listSnapshotConsistencyGroupsOptionsModel.Headers).To(Equal(map[string]string{"foo": "bar"})) @@ -108024,7 +108024,7 @@ var _ = Describe(`VpcV1`, func() { listSnapshotsOptionsModel.SetLimit(int64(10)) listSnapshotsOptionsModel.SetTag("testString") listSnapshotsOptionsModel.SetResourceGroupID("testString") - listSnapshotsOptionsModel.SetName("testString") + listSnapshotsOptionsModel.SetName("my-name") listSnapshotsOptionsModel.SetSourceVolumeID("testString") listSnapshotsOptionsModel.SetSourceVolumeCRN("crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:1a6b7274-678d-4dfb-8981-c71dd9d4daa5") listSnapshotsOptionsModel.SetSourceImageID("testString") @@ -108033,7 +108033,7 @@ var _ = Describe(`VpcV1`, func() { listSnapshotsOptionsModel.SetBackupPolicyPlanID("testString") listSnapshotsOptionsModel.SetCopiesID("testString") listSnapshotsOptionsModel.SetCopiesName("my-snapshot-copy") - listSnapshotsOptionsModel.SetCopiesCRN("testString") + listSnapshotsOptionsModel.SetCopiesCRN("crn:[...]") listSnapshotsOptionsModel.SetCopiesRemoteRegionName("us-south") listSnapshotsOptionsModel.SetSourceSnapshotID("testString") listSnapshotsOptionsModel.SetSourceSnapshotRemoteRegionName("us-south") @@ -108048,7 +108048,7 @@ var _ = Describe(`VpcV1`, func() { Expect(listSnapshotsOptionsModel.Limit).To(Equal(core.Int64Ptr(int64(10)))) Expect(listSnapshotsOptionsModel.Tag).To(Equal(core.StringPtr("testString"))) Expect(listSnapshotsOptionsModel.ResourceGroupID).To(Equal(core.StringPtr("testString"))) - Expect(listSnapshotsOptionsModel.Name).To(Equal(core.StringPtr("testString"))) + Expect(listSnapshotsOptionsModel.Name).To(Equal(core.StringPtr("my-name"))) Expect(listSnapshotsOptionsModel.SourceVolumeID).To(Equal(core.StringPtr("testString"))) Expect(listSnapshotsOptionsModel.SourceVolumeCRN).To(Equal(core.StringPtr("crn:v1:bluemix:public:is:us-south-1:a/aa2432b1fa4d4ace891e9b80fc104e34::volume:1a6b7274-678d-4dfb-8981-c71dd9d4daa5"))) Expect(listSnapshotsOptionsModel.SourceImageID).To(Equal(core.StringPtr("testString"))) @@ -108057,7 +108057,7 @@ var _ = Describe(`VpcV1`, func() { Expect(listSnapshotsOptionsModel.BackupPolicyPlanID).To(Equal(core.StringPtr("testString"))) Expect(listSnapshotsOptionsModel.CopiesID).To(Equal(core.StringPtr("testString"))) Expect(listSnapshotsOptionsModel.CopiesName).To(Equal(core.StringPtr("my-snapshot-copy"))) - Expect(listSnapshotsOptionsModel.CopiesCRN).To(Equal(core.StringPtr("testString"))) + Expect(listSnapshotsOptionsModel.CopiesCRN).To(Equal(core.StringPtr("crn:[...]"))) Expect(listSnapshotsOptionsModel.CopiesRemoteRegionName).To(Equal(core.StringPtr("us-south"))) Expect(listSnapshotsOptionsModel.SourceSnapshotID).To(Equal(core.StringPtr("testString"))) Expect(listSnapshotsOptionsModel.SourceSnapshotRemoteRegionName).To(Equal(core.StringPtr("us-south"))) @@ -108162,7 +108162,7 @@ var _ = Describe(`VpcV1`, func() { listVolumesOptionsModel := vpcService.NewListVolumesOptions() listVolumesOptionsModel.SetStart("testString") listVolumesOptionsModel.SetLimit(int64(10)) - listVolumesOptionsModel.SetName("testString") + listVolumesOptionsModel.SetName("my-name") listVolumesOptionsModel.SetAttachmentState("attached") listVolumesOptionsModel.SetEncryption("provider_managed") listVolumesOptionsModel.SetOperatingSystemFamily("Ubuntu Server") @@ -108173,7 +108173,7 @@ var _ = Describe(`VpcV1`, func() { 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("testString"))) + 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.OperatingSystemFamily).To(Equal(core.StringPtr("Ubuntu Server"))) @@ -108204,7 +108204,7 @@ var _ = Describe(`VpcV1`, func() { listVPCDnsResolutionBindingsOptionsModel.SetSort("name") listVPCDnsResolutionBindingsOptionsModel.SetStart("testString") listVPCDnsResolutionBindingsOptionsModel.SetLimit(int64(10)) - listVPCDnsResolutionBindingsOptionsModel.SetName("testString") + listVPCDnsResolutionBindingsOptionsModel.SetName("my-name") listVPCDnsResolutionBindingsOptionsModel.SetVPCCRN("crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b") listVPCDnsResolutionBindingsOptionsModel.SetVPCName("my-vpc") listVPCDnsResolutionBindingsOptionsModel.SetAccountID("bb1b52262f7441a586f49068482f1e60") @@ -108214,7 +108214,7 @@ var _ = Describe(`VpcV1`, func() { Expect(listVPCDnsResolutionBindingsOptionsModel.Sort).To(Equal(core.StringPtr("name"))) Expect(listVPCDnsResolutionBindingsOptionsModel.Start).To(Equal(core.StringPtr("testString"))) Expect(listVPCDnsResolutionBindingsOptionsModel.Limit).To(Equal(core.Int64Ptr(int64(10)))) - Expect(listVPCDnsResolutionBindingsOptionsModel.Name).To(Equal(core.StringPtr("testString"))) + Expect(listVPCDnsResolutionBindingsOptionsModel.Name).To(Equal(core.StringPtr("my-name"))) Expect(listVPCDnsResolutionBindingsOptionsModel.VPCCRN).To(Equal(core.StringPtr("crn:v1:bluemix:public:is:us-south:a/aa2432b1fa4d4ace891e9b80fc104e34::vpc:r006-4727d842-f94f-4a2d-824a-9bc9b02c523b"))) Expect(listVPCDnsResolutionBindingsOptionsModel.VPCName).To(Equal(core.StringPtr("my-vpc"))) Expect(listVPCDnsResolutionBindingsOptionsModel.AccountID).To(Equal(core.StringPtr("bb1b52262f7441a586f49068482f1e60"))) @@ -108378,14 +108378,14 @@ var _ = Describe(`VpcV1`, func() { It(`Invoke NewListVPNServersOptions successfully`, func() { // Construct an instance of the ListVPNServersOptions model listVPNServersOptionsModel := vpcService.NewListVPNServersOptions() - listVPNServersOptionsModel.SetName("testString") + listVPNServersOptionsModel.SetName("my-name") listVPNServersOptionsModel.SetStart("testString") listVPNServersOptionsModel.SetLimit(int64(10)) listVPNServersOptionsModel.SetResourceGroupID("testString") listVPNServersOptionsModel.SetSort("name") listVPNServersOptionsModel.SetHeaders(map[string]string{"foo": "bar"}) Expect(listVPNServersOptionsModel).ToNot(BeNil()) - Expect(listVPNServersOptionsModel.Name).To(Equal(core.StringPtr("testString"))) + Expect(listVPNServersOptionsModel.Name).To(Equal(core.StringPtr("my-name"))) Expect(listVPNServersOptionsModel.Start).To(Equal(core.StringPtr("testString"))) Expect(listVPNServersOptionsModel.Limit).To(Equal(core.Int64Ptr(int64(10)))) Expect(listVPNServersOptionsModel.ResourceGroupID).To(Equal(core.StringPtr("testString"))) @@ -111417,27 +111417,27 @@ var _ = Describe(`VpcV1`, func() { Expect(_model).ToNot(BeNil()) Expect(err).To(BeNil()) }) - It(`Invoke NewRoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP successfully`, func() { + It(`Invoke NewRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP successfully`, func() { address := "0.0.0.0" - _model, err := vpcService.NewRoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP(address) + _model, err := vpcService.NewRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP(address) Expect(_model).ToNot(BeNil()) Expect(err).To(BeNil()) }) - It(`Invoke NewRoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP successfully`, func() { + It(`Invoke NewRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP successfully`, func() { address := "192.168.3.4" - _model, err := vpcService.NewRoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP(address) + _model, err := vpcService.NewRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP(address) Expect(_model).ToNot(BeNil()) Expect(err).To(BeNil()) }) - It(`Invoke NewRoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref successfully`, func() { + It(`Invoke NewRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref successfully`, func() { href := "https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b/connections/93487806-7743-4c46-81d6-72869883ea0b" - _model, err := vpcService.NewRoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref(href) + _model, err := vpcService.NewRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref(href) Expect(_model).ToNot(BeNil()) Expect(err).To(BeNil()) }) - It(`Invoke NewRoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID successfully`, func() { + It(`Invoke NewRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID successfully`, func() { id := "a10a5771-dc23-442c-8460-c3601d8542f7" - _model, err := vpcService.NewRoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID(id) + _model, err := vpcService.NewRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID(id) Expect(_model).ToNot(BeNil()) Expect(err).To(BeNil()) }) @@ -114798,6 +114798,26 @@ var _ = Describe(`VpcV1`, func() { Expect(result).ToNot(BeNil()) Expect(result).To(Equal(model)) }) + It(`Invoke UnmarshalRouteNextHopPrototype successfully`, func() { + // Construct an instance of the model. + model := new(vpcv1.RouteNextHopPrototype) + model.Address = core.StringPtr("0.0.0.0") + model.ID = core.StringPtr("a10a5771-dc23-442c-8460-c3601d8542f7") + model.Href = core.StringPtr("https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b/connections/93487806-7743-4c46-81d6-72869883ea0b") + + b, err := json.Marshal(model) + Expect(err).To(BeNil()) + + var raw map[string]json.RawMessage + err = json.Unmarshal(b, &raw) + Expect(err).To(BeNil()) + + var result *vpcv1.RouteNextHopPrototype + err = vpcv1.UnmarshalRouteNextHopPrototype(raw, &result) + Expect(err).To(BeNil()) + Expect(result).ToNot(BeNil()) + Expect(result).To(Equal(model)) + }) It(`Invoke UnmarshalRoutePatch successfully`, func() { // Construct an instance of the model. model := new(vpcv1.RoutePatch) @@ -114843,26 +114863,6 @@ var _ = Describe(`VpcV1`, func() { Expect(result).ToNot(BeNil()) Expect(result).To(Equal(model)) }) - It(`Invoke UnmarshalRoutePrototypeNextHop successfully`, func() { - // Construct an instance of the model. - model := new(vpcv1.RoutePrototypeNextHop) - model.Address = core.StringPtr("0.0.0.0") - model.ID = core.StringPtr("a10a5771-dc23-442c-8460-c3601d8542f7") - model.Href = core.StringPtr("https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b/connections/93487806-7743-4c46-81d6-72869883ea0b") - - b, err := json.Marshal(model) - Expect(err).To(BeNil()) - - var raw map[string]json.RawMessage - err = json.Unmarshal(b, &raw) - Expect(err).To(BeNil()) - - var result *vpcv1.RoutePrototypeNextHop - err = vpcv1.UnmarshalRoutePrototypeNextHop(raw, &result) - Expect(err).To(BeNil()) - Expect(result).ToNot(BeNil()) - Expect(result).To(Equal(model)) - }) It(`Invoke UnmarshalRoutingTableIdentity successfully`, func() { // Construct an instance of the model. model := new(vpcv1.RoutingTableIdentity) @@ -119431,9 +119431,9 @@ var _ = Describe(`VpcV1`, func() { Expect(result).ToNot(BeNil()) Expect(result).To(Equal(model)) }) - It(`Invoke UnmarshalRoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIP successfully`, func() { + It(`Invoke UnmarshalRouteNextHopPrototypeRouteNextHopIP successfully`, func() { // Construct an instance of the model. - model := new(vpcv1.RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIP) + model := new(vpcv1.RouteNextHopPrototypeRouteNextHopIP) model.Address = core.StringPtr("0.0.0.0") b, err := json.Marshal(model) @@ -119443,15 +119443,15 @@ var _ = Describe(`VpcV1`, func() { err = json.Unmarshal(b, &raw) Expect(err).To(BeNil()) - var result *vpcv1.RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIP - err = vpcv1.UnmarshalRoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIP(raw, &result) + var result *vpcv1.RouteNextHopPrototypeRouteNextHopIP + err = vpcv1.UnmarshalRouteNextHopPrototypeRouteNextHopIP(raw, &result) Expect(err).To(BeNil()) Expect(result).ToNot(BeNil()) Expect(result).To(Equal(model)) }) - It(`Invoke UnmarshalRoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentity successfully`, func() { + It(`Invoke UnmarshalRouteNextHopPrototypeVPNGatewayConnectionIdentity successfully`, func() { // Construct an instance of the model. - model := new(vpcv1.RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentity) + model := new(vpcv1.RouteNextHopPrototypeVPNGatewayConnectionIdentity) model.ID = core.StringPtr("a10a5771-dc23-442c-8460-c3601d8542f7") model.Href = core.StringPtr("https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b/connections/93487806-7743-4c46-81d6-72869883ea0b") @@ -119462,8 +119462,8 @@ var _ = Describe(`VpcV1`, func() { err = json.Unmarshal(b, &raw) Expect(err).To(BeNil()) - var result *vpcv1.RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentity - err = vpcv1.UnmarshalRoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentity(raw, &result) + var result *vpcv1.RouteNextHopPrototypeVPNGatewayConnectionIdentity + err = vpcv1.UnmarshalRouteNextHopPrototypeVPNGatewayConnectionIdentity(raw, &result) Expect(err).To(BeNil()) Expect(result).ToNot(BeNil()) Expect(result).To(Equal(model)) @@ -123338,9 +123338,9 @@ var _ = Describe(`VpcV1`, func() { Expect(result).ToNot(BeNil()) Expect(result).To(Equal(model)) }) - It(`Invoke UnmarshalRoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP successfully`, func() { + It(`Invoke UnmarshalRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP successfully`, func() { // Construct an instance of the model. - model := new(vpcv1.RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP) + model := new(vpcv1.RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP) model.Address = core.StringPtr("0.0.0.0") b, err := json.Marshal(model) @@ -123350,15 +123350,15 @@ var _ = Describe(`VpcV1`, func() { err = json.Unmarshal(b, &raw) Expect(err).To(BeNil()) - var result *vpcv1.RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP - err = vpcv1.UnmarshalRoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP(raw, &result) + var result *vpcv1.RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP + err = vpcv1.UnmarshalRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP(raw, &result) Expect(err).To(BeNil()) Expect(result).ToNot(BeNil()) Expect(result).To(Equal(model)) }) - It(`Invoke UnmarshalRoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP successfully`, func() { + It(`Invoke UnmarshalRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP successfully`, func() { // Construct an instance of the model. - model := new(vpcv1.RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP) + model := new(vpcv1.RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP) model.Address = core.StringPtr("192.168.3.4") b, err := json.Marshal(model) @@ -123368,15 +123368,15 @@ var _ = Describe(`VpcV1`, func() { err = json.Unmarshal(b, &raw) Expect(err).To(BeNil()) - var result *vpcv1.RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP - err = vpcv1.UnmarshalRoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP(raw, &result) + var result *vpcv1.RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP + err = vpcv1.UnmarshalRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP(raw, &result) Expect(err).To(BeNil()) Expect(result).ToNot(BeNil()) Expect(result).To(Equal(model)) }) - It(`Invoke UnmarshalRoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref successfully`, func() { + It(`Invoke UnmarshalRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref successfully`, func() { // Construct an instance of the model. - model := new(vpcv1.RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref) + model := new(vpcv1.RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref) model.Href = core.StringPtr("https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b/connections/93487806-7743-4c46-81d6-72869883ea0b") b, err := json.Marshal(model) @@ -123386,15 +123386,15 @@ var _ = Describe(`VpcV1`, func() { err = json.Unmarshal(b, &raw) Expect(err).To(BeNil()) - var result *vpcv1.RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref - err = vpcv1.UnmarshalRoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref(raw, &result) + var result *vpcv1.RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref + err = vpcv1.UnmarshalRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref(raw, &result) Expect(err).To(BeNil()) Expect(result).ToNot(BeNil()) Expect(result).To(Equal(model)) }) - It(`Invoke UnmarshalRoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID successfully`, func() { + It(`Invoke UnmarshalRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID successfully`, func() { // Construct an instance of the model. - model := new(vpcv1.RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID) + model := new(vpcv1.RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID) model.ID = core.StringPtr("a10a5771-dc23-442c-8460-c3601d8542f7") b, err := json.Marshal(model) @@ -123404,8 +123404,8 @@ var _ = Describe(`VpcV1`, func() { err = json.Unmarshal(b, &raw) Expect(err).To(BeNil()) - var result *vpcv1.RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID - err = vpcv1.UnmarshalRoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID(raw, &result) + var result *vpcv1.RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID + err = vpcv1.UnmarshalRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID(raw, &result) Expect(err).To(BeNil()) Expect(result).ToNot(BeNil()) Expect(result).To(Equal(model))