From e64bd30c2b2bee287e58d4f0dd148f0cf725189e Mon Sep 17 00:00:00 2001 From: Ujjwal Kumar <78945437+ujjwal-ibm@users.noreply.github.com> Date: Mon, 29 May 2023 14:06:25 +0530 Subject: [PATCH] feat(2023-05-24): updated the sdk as per the api spec released on 2023-05-24 (#74) Signed-off-by: Ujjwal Kumar --- README.md | 8 +- common/version.go | 2 +- vpcv1/vpc_v1.go | 368 ++++++++++----------- vpcv1/vpc_v1_integration_utils_test.go | 8 +- vpcv1/vpc_v1_test.go | 424 ++++++++++++------------- 5 files changed, 394 insertions(+), 416 deletions(-) diff --git a/README.md b/README.md index ded689b..f958644 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.37.0 +# IBM Cloud VPC Go SDK Version 0.38.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.37.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.38.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.37.0 +go get github.com/IBM/vpc-go-sdk@v0.38.0 ``` @@ -90,7 +90,7 @@ to your `Gopkg.toml` file. Here is an example: ``` [[constraint]] name = "github.com/IBM/vpc-go-sdk/" - version = "0.37.0" + version = "0.38.0" ``` Then run `dep ensure`. diff --git a/common/version.go b/common/version.go index 867a08c..0ca373a 100644 --- a/common/version.go +++ b/common/version.go @@ -1,4 +1,4 @@ package common // Version of the SDK -const Version = "0.37.0" +const Version = "0.38.0" diff --git a/vpcv1/vpc_v1.go b/vpcv1/vpc_v1.go index 017dae1..8e7acc8 100644 --- a/vpcv1/vpc_v1.go +++ b/vpcv1/vpc_v1.go @@ -46,7 +46,7 @@ type VpcV1 struct { generation *int64 // The API version, in format `YYYY-MM-DD`. For the API behavior documented here, specify any date between `2022-09-13` - // and today's date (UTC). + // and `2023-05-24`. Version *string } @@ -63,7 +63,7 @@ type VpcV1Options struct { Authenticator core.Authenticator // The API version, in format `YYYY-MM-DD`. For the API behavior documented here, specify any date between `2022-09-13` - // and today's date (UTC). + // and `2023-05-24`. Version *string } @@ -121,7 +121,7 @@ func NewVpcV1(options *VpcV1Options) (service *VpcV1, err error) { } if options.Version == nil { - options.Version = core.StringPtr("2022-09-13") + options.Version = core.StringPtr("2023-05-23") } service = &VpcV1{ @@ -446,7 +446,8 @@ func (vpc *VpcV1) GetVPCWithContext(ctx context.Context, getVPCOptions *GetVPCOp } // UpdateVPC : Update a VPC -// This request updates a VPC's name. +// This request updates a VPC with the information provided in a VPC patch object. The patch object is structured in the +// same way as a retrieved VPC and needs to contain only the information to be updated. func (vpc *VpcV1) UpdateVPC(updateVPCOptions *UpdateVPCOptions) (result *VPC, response *core.DetailedResponse, err error) { return vpc.UpdateVPCWithContext(context.Background(), updateVPCOptions) } @@ -3658,9 +3659,9 @@ func (vpc *VpcV1) ListImageExportJobsWithContext(ctx context.Context, listImageE // CreateImageExportJob : Create an image export job // This request creates and queues a new export job for the image specified in the URL using the image export job -// prototype object. The image must be owned by the account and be in the `available`, `deprecated`, `obsolete`, or -// `unusable` state. The prototype object is structured in the same way as a retrieved image export job, and contains -// the information necessary to create and queue the new image export job. +// prototype object. The image must be owned by the account and be in the `available`, `deprecated`, or `unusable` +// state. The prototype object is structured in the same way as a retrieved image export job, and contains the +// information necessary to create and queue the new image export job. func (vpc *VpcV1) CreateImageExportJob(createImageExportJobOptions *CreateImageExportJobOptions) (result *ImageExportJob, response *core.DetailedResponse, err error) { return vpc.CreateImageExportJobWithContext(context.Background(), createImageExportJobOptions) } @@ -5153,8 +5154,8 @@ func (vpc *VpcV1) UpdateInstanceWithContext(ctx context.Context, updateInstanceO } // GetInstanceInitialization : Retrieve initialization configuration for an instance -// This request retrieves configuration variables used to initialize the instance, such as SSH keys and the Windows -// administrator password. +// This request retrieves configuration used to initialize the instance, such as SSH keys and the Windows administrator +// password. These can subsequently be changed on the instance and therefore may not be current. func (vpc *VpcV1) GetInstanceInitialization(getInstanceInitializationOptions *GetInstanceInitializationOptions) (result *InstanceInitialization, response *core.DetailedResponse, err error) { return vpc.GetInstanceInitializationWithContext(context.Background(), getInstanceInitializationOptions) } @@ -11990,9 +11991,9 @@ func (vpc *VpcV1) UpdateBareMetalServerWithContext(ctx context.Context, updateBa } // GetBareMetalServerInitialization : Retrieve initialization configuration for a bare metal server -// This request retrieves configuration variables used to initialize the bare metal server, such as the image used, SSH -// keys, and any configured usernames and passwords. These attributes can subsequently be changed manually by the user -// and so are not guaranteed to be current. +// This request retrieves configuration used to initialize the bare metal server, such as the image used, SSH keys, and +// any configured usernames and passwords. These can subsequently be changed on the server and therefore may not be +// current. func (vpc *VpcV1) GetBareMetalServerInitialization(getBareMetalServerInitializationOptions *GetBareMetalServerInitializationOptions) (result *BareMetalServerInitialization, response *core.DetailedResponse, err error) { return vpc.GetBareMetalServerInitializationWithContext(context.Background(), getBareMetalServerInitializationOptions) } @@ -27117,19 +27118,13 @@ func (options *CreateFlowLogCollectorOptions) SetHeaders(param map[string]string // CreateIkePolicyOptions : The CreateIkePolicy options. type CreateIkePolicyOptions struct { - // The authentication algorithm - // - // The `md5` and `sha1` algorithms have been deprecated. + // The authentication algorithm. AuthenticationAlgorithm *string `json:"authentication_algorithm" validate:"required"` - // The Diffie-Hellman group - // - // Groups `2` and `5` have been deprecated. + // The Diffie-Hellman group. DhGroup *int64 `json:"dh_group" validate:"required"` - // The encryption algorithm - // - // The `triple_des` algorithm has been deprecated. + // The encryption algorithm. EncryptionAlgorithm *string `json:"encryption_algorithm" validate:"required"` // The IKE protocol version. @@ -27151,26 +27146,19 @@ type CreateIkePolicyOptions struct { } // Constants associated with the CreateIkePolicyOptions.AuthenticationAlgorithm property. -// The authentication algorithm -// -// The `md5` and `sha1` algorithms have been deprecated. +// The authentication algorithm. const ( - CreateIkePolicyOptionsAuthenticationAlgorithmMd5Const = "md5" - CreateIkePolicyOptionsAuthenticationAlgorithmSha1Const = "sha1" CreateIkePolicyOptionsAuthenticationAlgorithmSha256Const = "sha256" CreateIkePolicyOptionsAuthenticationAlgorithmSha384Const = "sha384" CreateIkePolicyOptionsAuthenticationAlgorithmSha512Const = "sha512" ) // Constants associated with the CreateIkePolicyOptions.EncryptionAlgorithm property. -// The encryption algorithm -// -// The `triple_des` algorithm has been deprecated. +// The encryption algorithm. const ( - CreateIkePolicyOptionsEncryptionAlgorithmAes128Const = "aes128" - CreateIkePolicyOptionsEncryptionAlgorithmAes192Const = "aes192" - CreateIkePolicyOptionsEncryptionAlgorithmAes256Const = "aes256" - CreateIkePolicyOptionsEncryptionAlgorithmTripleDesConst = "triple_des" + CreateIkePolicyOptionsEncryptionAlgorithmAes128Const = "aes128" + CreateIkePolicyOptionsEncryptionAlgorithmAes192Const = "aes192" + CreateIkePolicyOptionsEncryptionAlgorithmAes256Const = "aes256" ) // NewCreateIkePolicyOptions : Instantiate CreateIkePolicyOptions @@ -27876,24 +27864,18 @@ func (options *CreateInstanceVolumeAttachmentOptions) SetHeaders(param map[strin type CreateIpsecPolicyOptions struct { // The authentication algorithm // - // The `md5` and `sha1` algorithms have been deprecated - // // Must be `disabled` if and only if the `encryption_algorithm` is // `aes128gcm16`, `aes192gcm16`, or `aes256gcm16`. AuthenticationAlgorithm *string `json:"authentication_algorithm" validate:"required"` // The encryption algorithm // - // The `triple_des` algorithm has been deprecated - // // The `authentication_algorithm` must be `disabled` if and only if // `encryption_algorithm` is `aes128gcm16`, `aes192gcm16`, or // `aes256gcm16`. EncryptionAlgorithm *string `json:"encryption_algorithm" validate:"required"` - // Perfect Forward Secrecy - // - // Groups `group_2` and `group_5` have been deprecated. + // Perfect Forward Secrecy. Pfs *string `json:"pfs" validate:"required"` // The key lifetime in seconds. @@ -27914,14 +27896,10 @@ type CreateIpsecPolicyOptions struct { // Constants associated with the CreateIpsecPolicyOptions.AuthenticationAlgorithm property. // The authentication algorithm // -// # The `md5` and `sha1` algorithms have been deprecated -// // Must be `disabled` if and only if the `encryption_algorithm` is // `aes128gcm16`, `aes192gcm16`, or `aes256gcm16`. const ( CreateIpsecPolicyOptionsAuthenticationAlgorithmDisabledConst = "disabled" - CreateIpsecPolicyOptionsAuthenticationAlgorithmMd5Const = "md5" - CreateIpsecPolicyOptionsAuthenticationAlgorithmSha1Const = "sha1" CreateIpsecPolicyOptionsAuthenticationAlgorithmSha256Const = "sha256" CreateIpsecPolicyOptionsAuthenticationAlgorithmSha384Const = "sha384" CreateIpsecPolicyOptionsAuthenticationAlgorithmSha512Const = "sha512" @@ -27930,8 +27908,6 @@ const ( // Constants associated with the CreateIpsecPolicyOptions.EncryptionAlgorithm property. // The encryption algorithm // -// The `triple_des` algorithm has been deprecated -// // The `authentication_algorithm` must be `disabled` if and only if // `encryption_algorithm` is `aes128gcm16`, `aes192gcm16`, or // `aes256gcm16`. @@ -27942,13 +27918,10 @@ const ( CreateIpsecPolicyOptionsEncryptionAlgorithmAes192gcm16Const = "aes192gcm16" CreateIpsecPolicyOptionsEncryptionAlgorithmAes256Const = "aes256" CreateIpsecPolicyOptionsEncryptionAlgorithmAes256gcm16Const = "aes256gcm16" - CreateIpsecPolicyOptionsEncryptionAlgorithmTripleDesConst = "triple_des" ) // Constants associated with the CreateIpsecPolicyOptions.Pfs property. -// Perfect Forward Secrecy -// -// Groups `group_2` and `group_5` have been deprecated. +// Perfect Forward Secrecy. const ( CreateIpsecPolicyOptionsPfsDisabledConst = "disabled" CreateIpsecPolicyOptionsPfsGroup14Const = "group_14" @@ -27957,14 +27930,12 @@ const ( CreateIpsecPolicyOptionsPfsGroup17Const = "group_17" CreateIpsecPolicyOptionsPfsGroup18Const = "group_18" CreateIpsecPolicyOptionsPfsGroup19Const = "group_19" - CreateIpsecPolicyOptionsPfsGroup2Const = "group_2" CreateIpsecPolicyOptionsPfsGroup20Const = "group_20" CreateIpsecPolicyOptionsPfsGroup21Const = "group_21" CreateIpsecPolicyOptionsPfsGroup22Const = "group_22" CreateIpsecPolicyOptionsPfsGroup23Const = "group_23" CreateIpsecPolicyOptionsPfsGroup24Const = "group_24" CreateIpsecPolicyOptionsPfsGroup31Const = "group_31" - CreateIpsecPolicyOptionsPfsGroup5Const = "group_5" ) // NewCreateIpsecPolicyOptions : Instantiate CreateIpsecPolicyOptions @@ -33741,7 +33712,7 @@ func (options *DeleteSnapshotOptions) SetHeaders(param map[string]string) *Delet // DeleteSnapshotsOptions : The DeleteSnapshots options. type DeleteSnapshotsOptions struct { - // Filters the collection to resources with the source volume with the specified identifier. + // Filters the collection to resources with a `source_volume.id` property matching the specified identifier. SourceVolumeID *string `json:"source_volume.id" validate:"required"` // Allows users to set headers on API requests @@ -38569,19 +38540,13 @@ func (resp *IkePolicyCollection) GetNextStart() (*string, error) { // IkePolicyPatch : IkePolicyPatch struct type IkePolicyPatch struct { - // The authentication algorithm - // - // The `md5` and `sha1` algorithms have been deprecated. + // The authentication algorithm. AuthenticationAlgorithm *string `json:"authentication_algorithm,omitempty"` - // The Diffie-Hellman group - // - // Groups `2` and `5` have been deprecated. + // The Diffie-Hellman group. DhGroup *int64 `json:"dh_group,omitempty"` - // The encryption algorithm - // - // The `triple_des` algorithm has been deprecated. + // The encryption algorithm. EncryptionAlgorithm *string `json:"encryption_algorithm,omitempty"` // The IKE protocol version. @@ -38595,26 +38560,19 @@ type IkePolicyPatch struct { } // Constants associated with the IkePolicyPatch.AuthenticationAlgorithm property. -// The authentication algorithm -// -// The `md5` and `sha1` algorithms have been deprecated. +// The authentication algorithm. const ( - IkePolicyPatchAuthenticationAlgorithmMd5Const = "md5" - IkePolicyPatchAuthenticationAlgorithmSha1Const = "sha1" IkePolicyPatchAuthenticationAlgorithmSha256Const = "sha256" IkePolicyPatchAuthenticationAlgorithmSha384Const = "sha384" IkePolicyPatchAuthenticationAlgorithmSha512Const = "sha512" ) // Constants associated with the IkePolicyPatch.EncryptionAlgorithm property. -// The encryption algorithm -// -// The `triple_des` algorithm has been deprecated. +// The encryption algorithm. const ( - IkePolicyPatchEncryptionAlgorithmAes128Const = "aes128" - IkePolicyPatchEncryptionAlgorithmAes192Const = "aes192" - IkePolicyPatchEncryptionAlgorithmAes256Const = "aes256" - IkePolicyPatchEncryptionAlgorithmTripleDesConst = "triple_des" + IkePolicyPatchEncryptionAlgorithmAes128Const = "aes128" + IkePolicyPatchEncryptionAlgorithmAes192Const = "aes192" + IkePolicyPatchEncryptionAlgorithmAes256Const = "aes256" ) // UnmarshalIkePolicyPatch unmarshals an instance of IkePolicyPatch from the specified map of raw messages. @@ -39024,16 +38982,12 @@ func UnmarshalIPsecPolicyCollectionNext(m map[string]json.RawMessage, result int type IPsecPolicyPatch struct { // The authentication algorithm // - // The `md5` and `sha1` algorithms have been deprecated - // // Must be `disabled` if and only if the `encryption_algorithm` is // `aes128gcm16`, `aes192gcm16`, or `aes256gcm16`. AuthenticationAlgorithm *string `json:"authentication_algorithm,omitempty"` // The encryption algorithm // - // The `triple_des` algorithm has been deprecated - // // The `authentication_algorithm` must be `disabled` if and only if // `encryption_algorithm` is `aes128gcm16`, `aes192gcm16`, or // `aes256gcm16`. @@ -39045,23 +38999,17 @@ type IPsecPolicyPatch struct { // The name for this IPsec policy. The name must not be used by another IPsec policy in the region. Name *string `json:"name,omitempty"` - // Perfect Forward Secrecy - // - // Groups `group_2` and `group_5` have been deprecated. + // Perfect Forward Secrecy. Pfs *string `json:"pfs,omitempty"` } // Constants associated with the IPsecPolicyPatch.AuthenticationAlgorithm property. // The authentication algorithm // -// # The `md5` and `sha1` algorithms have been deprecated -// // Must be `disabled` if and only if the `encryption_algorithm` is // `aes128gcm16`, `aes192gcm16`, or `aes256gcm16`. const ( IPsecPolicyPatchAuthenticationAlgorithmDisabledConst = "disabled" - IPsecPolicyPatchAuthenticationAlgorithmMd5Const = "md5" - IPsecPolicyPatchAuthenticationAlgorithmSha1Const = "sha1" IPsecPolicyPatchAuthenticationAlgorithmSha256Const = "sha256" IPsecPolicyPatchAuthenticationAlgorithmSha384Const = "sha384" IPsecPolicyPatchAuthenticationAlgorithmSha512Const = "sha512" @@ -39070,8 +39018,6 @@ const ( // Constants associated with the IPsecPolicyPatch.EncryptionAlgorithm property. // The encryption algorithm // -// The `triple_des` algorithm has been deprecated -// // The `authentication_algorithm` must be `disabled` if and only if // `encryption_algorithm` is `aes128gcm16`, `aes192gcm16`, or // `aes256gcm16`. @@ -39082,13 +39028,10 @@ const ( IPsecPolicyPatchEncryptionAlgorithmAes192gcm16Const = "aes192gcm16" IPsecPolicyPatchEncryptionAlgorithmAes256Const = "aes256" IPsecPolicyPatchEncryptionAlgorithmAes256gcm16Const = "aes256gcm16" - IPsecPolicyPatchEncryptionAlgorithmTripleDesConst = "triple_des" ) // Constants associated with the IPsecPolicyPatch.Pfs property. -// Perfect Forward Secrecy -// -// Groups `group_2` and `group_5` have been deprecated. +// Perfect Forward Secrecy. const ( IPsecPolicyPatchPfsDisabledConst = "disabled" IPsecPolicyPatchPfsGroup14Const = "group_14" @@ -39097,14 +39040,12 @@ const ( IPsecPolicyPatchPfsGroup17Const = "group_17" IPsecPolicyPatchPfsGroup18Const = "group_18" IPsecPolicyPatchPfsGroup19Const = "group_19" - IPsecPolicyPatchPfsGroup2Const = "group_2" IPsecPolicyPatchPfsGroup20Const = "group_20" IPsecPolicyPatchPfsGroup21Const = "group_21" IPsecPolicyPatchPfsGroup22Const = "group_22" IPsecPolicyPatchPfsGroup23Const = "group_23" IPsecPolicyPatchPfsGroup24Const = "group_24" IPsecPolicyPatchPfsGroup31Const = "group_31" - IPsecPolicyPatchPfsGroup5Const = "group_5" ) // UnmarshalIPsecPolicyPatch unmarshals an instance of IPsecPolicyPatch from the specified map of raw messages. @@ -39345,7 +39286,9 @@ type Image struct { // unexpected reason code was encountered. StatusReasons []ImageStatusReason `json:"status_reasons" validate:"required"` - // Whether the image is publicly visible or private to the account. + // The visibility of this image. + // - `private`: Visible only to this account + // - `public`: Visible to all accounts. Visibility *string `json:"visibility" validate:"required"` } @@ -39379,7 +39322,9 @@ const ( ) // Constants associated with the Image.Visibility property. -// Whether the image is publicly visible or private to the account. +// The visibility of this image. +// - `private`: Visible only to this account +// - `public`: Visible to all accounts. const ( ImageVisibilityPrivateConst = "private" ImageVisibilityPublicConst = "public" @@ -39501,6 +39446,9 @@ type ImageCollection struct { // A link to the next page of resources. This property is present for all pages // except the last page. Next *ImageCollectionNext `json:"next,omitempty"` + + // The total number of resources across all pages. + TotalCount *int64 `json:"total_count" validate:"required"` } // UnmarshalImageCollection unmarshals an instance of ImageCollection from the specified map of raw messages. @@ -39522,6 +39470,10 @@ func UnmarshalImageCollection(m map[string]json.RawMessage, result interface{}) if err != nil { return } + err = core.UnmarshalPrimitive(m, "total_count", &obj.TotalCount) + if err != nil { + return + } reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) return } @@ -46128,13 +46080,13 @@ type ListBackupPoliciesOptions struct { // The number of resources to return on a page. Limit *int64 `json:"limit,omitempty"` - // Filters the collection to resources in the resource group with the specified identifier. + // Filters the collection to resources with a `resource_group.id` property matching the specified identifier. ResourceGroupID *string `json:"resource_group.id,omitempty"` - // Filters the collection to resources with the exact specified name. + // Filters the collection to resources with a `name` property matching the exact specified name. Name *string `json:"name,omitempty"` - // Filters the collection to resources with the exact tag value. + // Filters the collection to resources with an item in the `tags` property matching the exact specified tag. Tag *string `json:"tag,omitempty"` // Allows users to set headers on API requests @@ -46187,10 +46139,11 @@ type ListBackupPolicyJobsOptions struct { // The backup policy identifier. BackupPolicyID *string `json:"backup_policy_id" validate:"required,ne="` - // Filters the collection to backup policy jobs with the specified status. + // Filters the collection to backup policy jobs with a `status` property matching the specified value. Status *string `json:"status,omitempty"` - // Filters the collection to backup policy jobs with the backup plan with the specified identifier. + // Filters the collection to backup policy jobs with a `backup_policy_plan.id` property matching the specified + // identifier. BackupPolicyPlanID *string `json:"backup_policy_plan.id,omitempty"` // A server-provided token determining what resource to start the page on. @@ -46204,19 +46157,29 @@ type ListBackupPolicyJobsOptions struct { // in descending order, and the value `name` sorts it by the `name` property in ascending order. Sort *string `json:"sort,omitempty"` - // Filters the collection to backup policy jobs with a source with the specified identifier. + // Filters the collection to backup policy jobs with a `source.id` property matching the specified identifier. SourceID *string `json:"source.id,omitempty"` - // Filters the collection to resources with the target snapshot with the specified identifier. + // Filters the collection to backup policy jobs with an item in the `target_snapshots` property with an `id` property + // matching the specified identifier. TargetSnapshotsID *string `json:"target_snapshots[].id,omitempty"` - // Filters the collection to backup policy jobs with the target snapshot with the specified CRN. + // Filters the collection to backup policy jobs with an item in the `target_snapshots` property with a `crn` property + // matching the specified CRN. TargetSnapshotsCRN *string `json:"target_snapshots[].crn,omitempty"` // Allows users to set headers on API requests Headers map[string]string } +// Constants associated with the ListBackupPolicyJobsOptions.Status property. +// Filters the collection to backup policy jobs with a `status` property matching the specified value. +const ( + ListBackupPolicyJobsOptionsStatusFailedConst = "failed" + ListBackupPolicyJobsOptionsStatusRunningConst = "running" + ListBackupPolicyJobsOptionsStatusSucceededConst = "succeeded" +) + // Constants associated with the ListBackupPolicyJobsOptions.Sort property. // Sorts the returned collection by the specified property name in ascending order. A `-` may be prepended to the name // to sort in descending order. For example, the value `-created_at` sorts the collection by the `created_at` property @@ -46298,7 +46261,7 @@ type ListBackupPolicyPlansOptions struct { // The backup policy identifier. BackupPolicyID *string `json:"backup_policy_id" validate:"required,ne="` - // Filters the collection to resources with the exact specified name. + // Filters the collection to resources with a `name` property matching the exact specified name. Name *string `json:"name,omitempty"` // Allows users to set headers on API requests @@ -46523,28 +46486,31 @@ type ListBareMetalServersOptions struct { // The number of resources to return on a page. Limit *int64 `json:"limit,omitempty"` - // Filters the collection to resources in the resource group with the specified identifier. + // Filters the collection to resources with a `resource_group.id` property matching the specified identifier. ResourceGroupID *string `json:"resource_group.id,omitempty"` - // Filters the collection to resources with the exact specified name. + // Filters the collection to resources with a `name` property matching the exact specified name. Name *string `json:"name,omitempty"` - // Filters the collection to resources in the VPC with the specified identifier. + // Filters the collection to resources with a `vpc.id` property matching the specified identifier. VPCID *string `json:"vpc.id,omitempty"` - // Filters the collection to resources in the VPC with the specified CRN. + // Filters the collection to resources with a `vpc.crn` property matching the specified CRN. VPCCRN *string `json:"vpc.crn,omitempty"` - // Filters the collection to resources in the VPC with the exact specified name. + // Filters the collection to resources with a `vpc.name` property matching the exact specified name. VPCName *string `json:"vpc.name,omitempty"` - // Filters the collection to bare metal servers on the subnet with the specified identifier. + // Filters the collection to bare metal servers with an item in the `network_interfaces` property with a `subnet.id` + // property matching the specified identifier. NetworkInterfacesSubnetID *string `json:"network_interfaces.subnet.id,omitempty"` - // Filters the collection to bare metal servers on the subnet with the specified CRN. + // Filters the collection to bare metal servers with an item in the `network_interfaces` property with a `subnet.crn` + // property matching the specified CRN. NetworkInterfacesSubnetCRN *string `json:"network_interfaces.subnet.crn,omitempty"` - // Filters the collection to bare metal servers on the subnet with the specified name. + // Filters the collection to bare metal servers with an item in the `network_interfaces` property with a `subnet.name` + // property matching the exact specified name. NetworkInterfacesSubnetName *string `json:"network_interfaces.subnet.name,omitempty"` // Allows users to set headers on API requests @@ -46658,13 +46624,13 @@ type ListDedicatedHostGroupsOptions struct { // The number of resources to return on a page. Limit *int64 `json:"limit,omitempty"` - // Filters the collection to resources in the resource group with the specified identifier. + // Filters the collection to resources with a `resource_group.id` property matching the specified identifier. ResourceGroupID *string `json:"resource_group.id,omitempty"` - // Filters the collection to resources in the zone with the exact specified name. + // Filters the collection to resources with a `zone.name` property matching the exact specified name. ZoneName *string `json:"zone.name,omitempty"` - // Filters the collection to resources with the exact specified name. + // Filters the collection to resources with a `name` property matching the exact specified name. Name *string `json:"name,omitempty"` // Allows users to set headers on API requests @@ -46749,7 +46715,7 @@ func (options *ListDedicatedHostProfilesOptions) SetHeaders(param map[string]str // ListDedicatedHostsOptions : The ListDedicatedHosts options. type ListDedicatedHostsOptions struct { - // Filters the collection to dedicated host groups with the specified identifier. + // Filters the collection to dedicated hosts with a `group.id` property matching the specified identifier. DedicatedHostGroupID *string `json:"dedicated_host_group.id,omitempty"` // A server-provided token determining what resource to start the page on. @@ -46758,13 +46724,13 @@ type ListDedicatedHostsOptions struct { // The number of resources to return on a page. Limit *int64 `json:"limit,omitempty"` - // Filters the collection to resources in the resource group with the specified identifier. + // Filters the collection to resources with a `resource_group.id` property matching the specified identifier. ResourceGroupID *string `json:"resource_group.id,omitempty"` - // Filters the collection to resources in the zone with the exact specified name. + // Filters the collection to resources with a `zone.name` property matching the exact specified name. ZoneName *string `json:"zone.name,omitempty"` - // Filters the collection to resources with the exact specified name. + // Filters the collection to resources with a `name` property matching the exact specified name. Name *string `json:"name,omitempty"` // Allows users to set headers on API requests @@ -46887,7 +46853,7 @@ func (options *ListEndpointGatewayIpsOptions) SetHeaders(param map[string]string // ListEndpointGatewaysOptions : The ListEndpointGateways options. type ListEndpointGatewaysOptions struct { - // Filters the collection to resources with the exact specified name. + // Filters the collection to resources with a `name` property matching the exact specified name. Name *string `json:"name,omitempty"` // A server-provided token determining what resource to start the page on. @@ -46896,7 +46862,7 @@ type ListEndpointGatewaysOptions struct { // The number of resources to return on a page. Limit *int64 `json:"limit,omitempty"` - // Filters the collection to resources in the resource group with the specified identifier. + // Filters the collection to resources with a `resource_group.id` property matching the specified identifier. ResourceGroupID *string `json:"resource_group.id,omitempty"` // Allows users to set headers on API requests @@ -46946,7 +46912,7 @@ type ListFloatingIpsOptions struct { // The number of resources to return on a page. Limit *int64 `json:"limit,omitempty"` - // Filters the collection to resources in the resource group with the specified identifier. + // Filters the collection to resources with a `resource_group.id` property matching the specified identifier. ResourceGroupID *string `json:"resource_group.id,omitempty"` // Sorts the returned collection by the specified property name in ascending order. A `-` may be prepended to the name @@ -47010,40 +46976,31 @@ type ListFlowLogCollectorsOptions struct { // The number of resources to return on a page. Limit *int64 `json:"limit,omitempty"` - // Filters the collection to resources in the resource group with the specified identifier. + // Filters the collection to resources with a `resource_group.id` property matching the specified identifier. ResourceGroupID *string `json:"resource_group.id,omitempty"` - // Filters the collection to resources with the exact specified name. + // Filters the collection to resources with a `name` property matching the exact specified name. Name *string `json:"name,omitempty"` - // Filters the collection to resources in the VPC with the specified identifier. + // Filters the collection to resources with a `vpc.id` property matching the specified identifier. VPCID *string `json:"vpc.id,omitempty"` - // Filters the collection to resources in the VPC with the specified CRN. + // Filters the collection to resources with a `vpc.crn` property matching the specified CRN. VPCCRN *string `json:"vpc.crn,omitempty"` - // Filters the collection to resources in the VPC with the exact specified name. + // Filters the collection to resources with a `vpc.name` property matching the exact specified name. VPCName *string `json:"vpc.name,omitempty"` - // Filters the collection to flow log collectors that target the specified resource. + // Filters the collection to resources with a `target.id` property matching the specified identifier. TargetID *string `json:"target.id,omitempty"` - // Filters the collection to flow log collectors that target the specified resource type. + // Filters the collection to resources with a `target.resource_type` property matching the specified value. TargetResourceType *string `json:"target.resource_type,omitempty"` // Allows users to set headers on API requests Headers map[string]string } -// Constants associated with the ListFlowLogCollectorsOptions.TargetResourceType property. -// Filters the collection to flow log collectors that target the specified resource type. -const ( - ListFlowLogCollectorsOptionsTargetResourceTypeInstanceConst = "instance" - ListFlowLogCollectorsOptionsTargetResourceTypeNetworkInterfaceConst = "network_interface" - ListFlowLogCollectorsOptionsTargetResourceTypeSubnetConst = "subnet" - ListFlowLogCollectorsOptionsTargetResourceTypeVPCConst = "vpc" -) - // NewListFlowLogCollectorsOptions : Instantiate ListFlowLogCollectorsOptions func (*VpcV1) NewListFlowLogCollectorsOptions() *ListFlowLogCollectorsOptions { return &ListFlowLogCollectorsOptions{} @@ -47177,7 +47134,7 @@ type ListImageExportJobsOptions struct { // The image identifier. ImageID *string `json:"image_id" validate:"required,ne="` - // Filters the collection to resources with the exact specified name. + // Filters the collection to resources with a `name` property matching the exact specified name. Name *string `json:"name,omitempty"` // Allows users to set headers on API requests @@ -47217,13 +47174,13 @@ type ListImagesOptions struct { // The number of resources to return on a page. Limit *int64 `json:"limit,omitempty"` - // Filters the collection to resources in the resource group with the specified identifier. + // Filters the collection to resources with a `resource_group.id` property matching the specified identifier. ResourceGroupID *string `json:"resource_group.id,omitempty"` - // Filters the collection to resources with the exact specified name. + // Filters the collection to resources with a `name` property matching the exact specified name. Name *string `json:"name,omitempty"` - // Filters the collection to images with the specified `visibility`. + // Filters the collection to images with a `visibility` property matching the specified value. Visibility *string `json:"visibility,omitempty"` // Allows users to set headers on API requests @@ -47231,7 +47188,7 @@ type ListImagesOptions struct { } // Constants associated with the ListImagesOptions.Visibility property. -// Filters the collection to images with the specified `visibility`. +// Filters the collection to images with a `visibility` property matching the specified value. const ( ListImagesOptionsVisibilityPrivateConst = "private" ListImagesOptionsVisibilityPublicConst = "public" @@ -47739,37 +47696,40 @@ type ListInstancesOptions struct { // The number of resources to return on a page. Limit *int64 `json:"limit,omitempty"` - // Filters the collection to resources in the resource group with the specified identifier. + // Filters the collection to resources with a `resource_group.id` property matching the specified identifier. ResourceGroupID *string `json:"resource_group.id,omitempty"` - // Filters the collection to resources with the exact specified name. + // Filters the collection to resources with a `name` property matching the exact specified name. Name *string `json:"name,omitempty"` - // Filters the collection to resources in the VPC with the specified identifier. + // Filters the collection to resources with a `vpc.id` property matching the specified identifier. VPCID *string `json:"vpc.id,omitempty"` - // Filters the collection to resources in the VPC with the specified CRN. + // Filters the collection to resources with a `vpc.crn` property matching the specified CRN. VPCCRN *string `json:"vpc.crn,omitempty"` - // Filters the collection to resources in the VPC with the exact specified name. + // Filters the collection to resources with a `vpc.name` property matching the exact specified name. VPCName *string `json:"vpc.name,omitempty"` - // Filters the collection to instances on the dedicated host with the specified identifier. + // Filters the collection to instances with a `dedicated_host.id` property matching the specified identifier. DedicatedHostID *string `json:"dedicated_host.id,omitempty"` - // Filters the collection to instances on the dedicated host with the specified CRN. + // Filters the collection to instances with a `dedicated_host.crn` property matching the specified CRN. DedicatedHostCRN *string `json:"dedicated_host.crn,omitempty"` - // Filters the collection to instances on the dedicated host with the specified name. + // Filters the collection to instances with a `dedicated_host.name` property matching the exact specified name. DedicatedHostName *string `json:"dedicated_host.name,omitempty"` - // Filters the collection to instances in the placement group with the specified identifier. + // Filters the collection to instances with a `placement_target.id` property matching the specified placement group + // identifier. PlacementGroupID *string `json:"placement_group.id,omitempty"` - // Filters the collection to instances in the placement group with the specified CRN. + // Filters the collection to instances with a `placement_target.crn` property matching the specified placement group + // CRN. PlacementGroupCRN *string `json:"placement_group.crn,omitempty"` - // Filters the collection to instances in the placement group with the specified name. + // Filters the collection to instances with a `placement_target.name` property matching the exact specified placement + // group name. PlacementGroupName *string `json:"placement_group.name,omitempty"` // Allows users to set headers on API requests @@ -48224,7 +48184,7 @@ type ListNetworkACLRulesOptions struct { // The number of resources to return on a page. Limit *int64 `json:"limit,omitempty"` - // Filters the collection to rules with the specified direction. + // Filters the collection to rules with a `direction` property matching the specified value. Direction *string `json:"direction,omitempty"` // Allows users to set headers on API requests @@ -48232,7 +48192,7 @@ type ListNetworkACLRulesOptions struct { } // Constants associated with the ListNetworkACLRulesOptions.Direction property. -// Filters the collection to rules with the specified direction. +// Filters the collection to rules with a `direction` property matching the specified value. const ( ListNetworkACLRulesOptionsDirectionInboundConst = "inbound" ListNetworkACLRulesOptionsDirectionOutboundConst = "outbound" @@ -48283,7 +48243,7 @@ type ListNetworkAclsOptions struct { // The number of resources to return on a page. Limit *int64 `json:"limit,omitempty"` - // Filters the collection to resources in the resource group with the specified identifier. + // Filters the collection to resources with a `resource_group.id` property matching the specified identifier. ResourceGroupID *string `json:"resource_group.id,omitempty"` // Allows users to set headers on API requests @@ -48397,7 +48357,7 @@ type ListPublicGatewaysOptions struct { // The number of resources to return on a page. Limit *int64 `json:"limit,omitempty"` - // Filters the collection to resources in the resource group with the specified identifier. + // Filters the collection to resources with a `resource_group.id` property matching the specified identifier. ResourceGroupID *string `json:"resource_group.id,omitempty"` // Allows users to set headers on API requests @@ -48561,16 +48521,16 @@ type ListSecurityGroupsOptions struct { // The number of resources to return on a page. Limit *int64 `json:"limit,omitempty"` - // Filters the collection to resources in the resource group with the specified identifier. + // Filters the collection to resources with a `resource_group.id` property matching the specified identifier. ResourceGroupID *string `json:"resource_group.id,omitempty"` - // Filters the collection to resources in the VPC with the specified identifier. + // Filters the collection to resources with a `vpc.id` property matching the specified identifier. VPCID *string `json:"vpc.id,omitempty"` - // Filters the collection to resources in the VPC with the specified CRN. + // Filters the collection to resources with a `vpc.crn` property matching the specified CRN. VPCCRN *string `json:"vpc.crn,omitempty"` - // Filters the collection to resources in the VPC with the exact specified name. + // Filters the collection to resources with a `vpc.name` property matching the exact specified name. VPCName *string `json:"vpc.name,omitempty"` // Allows users to set headers on API requests @@ -48660,28 +48620,28 @@ type ListSnapshotsOptions struct { // The number of resources to return on a page. Limit *int64 `json:"limit,omitempty"` - // Filters the collection to resources with the exact tag value. + // Filters the collection to resources with an item in the `tags` property matching the exact specified tag. Tag *string `json:"tag,omitempty"` - // Filters the collection to resources in the resource group with the specified identifier. + // Filters the collection to resources with a `resource_group.id` property matching the specified identifier. ResourceGroupID *string `json:"resource_group.id,omitempty"` - // Filters the collection to resources with the exact specified name. + // Filters the collection to resources with a `name` property matching the exact specified name. Name *string `json:"name,omitempty"` - // Filters the collection to resources with the source volume with the specified identifier. + // Filters the collection to resources with a `source_volume.id` property matching the specified identifier. SourceVolumeID *string `json:"source_volume.id,omitempty"` - // Filters the collection to resources with the source volume with the specified CRN. + // Filters the collection to resources with a `source_volume.crn` property matching the specified CRN. SourceVolumeCRN *string `json:"source_volume.crn,omitempty"` - // Filters the collection to resources with the source image with the specified identifier. + // Filters the collection to resources with a `source_image.id` property matching the specified identifier. // // This parameter also supports the values `null` and `not:null` which filter the collection to resources which have no // source image or any existent source image, respectively. SourceImageID *string `json:"source_image.id,omitempty"` - // Filters the collection to resources with the source volume with the specified CRN. + // Filters the collection to resources with a `source_image.crn` property matching the specified CRN. // // This parameter also supports the values `null` and `not:null` which filter the collection to resources which have no // source image or any existent source image, respectively. @@ -48692,10 +48652,12 @@ type ListSnapshotsOptions struct { // in descending order, and the value `name` sorts it by the `name` property in ascending order. Sort *string `json:"sort,omitempty"` - // Filters the collection to backup policy jobs with the backup plan with the specified identifier. + // Filters the collection to backup policy jobs with a `backup_policy_plan.id` property matching the specified + // identifier. BackupPolicyPlanID *string `json:"backup_policy_plan.id,omitempty"` - // Filters the collection to resources with a clone in the specified zone. + // Filters the collection to snapshots with an item in the `clones` property with a `zone.name` property matching the + // exact specified name. ClonesZoneName *string `json:"clones[].zone.name,omitempty"` // Allows users to set headers on API requests @@ -48869,13 +48831,13 @@ type ListSubnetsOptions struct { // The number of resources to return on a page. Limit *int64 `json:"limit,omitempty"` - // Filters the collection to resources in the resource group with the specified identifier. + // Filters the collection to resources with a `resource_group.id` property matching the specified identifier. ResourceGroupID *string `json:"resource_group.id,omitempty"` - // Filters the collection to subnets attached to the routing table with the specified identifier. + // Filters the collection to subnets with a `routing_table.id` property matching the specified identifier. RoutingTableID *string `json:"routing_table.id,omitempty"` - // Filters the collection to subnets attached to the routing table with the specified name. + // Filters the collection to subnets with a `routing_table.name` property matching the exact specified name. RoutingTableName *string `json:"routing_table.name,omitempty"` // Allows users to set headers on API requests @@ -48966,28 +48928,30 @@ type ListVolumesOptions struct { // The number of resources to return on a page. Limit *int64 `json:"limit,omitempty"` - // Filters the collection to resources with the exact specified name. + // Filters the collection to resources with a `name` property matching the exact specified name. Name *string `json:"name,omitempty"` - // Filters the collection to volumes with the specified attachment state. + // Filters the collection to volumes with an `attachment_state` property matching the specified value. AttachmentState *string `json:"attachment_state,omitempty"` - // Filters the collection to resources with the specified encryption type. + // Filters the collection to resources with an `encryption` property matching the specified value. Encryption *string `json:"encryption,omitempty"` - // Filters the collection to resources with the exact specified operating system family. + // Filters the collection to resources with an `operating_system.family` property matching the specified operating + // system family. // // This parameter also supports the values `null` and `not:null` which filter the collection to resources which have no // operating system or any operating system, respectively. OperatingSystemFamily *string `json:"operating_system.family,omitempty"` - // Filters the collection to resources with the exact specified operating system architecture. + // Filters the collection to resources with an `operating_system.architecture` property matching the specified + // operating system architecture. // // This parameter also supports the values `null` and `not:null` which filter the collection to resources which have no // operating system or any operating system, respectively. OperatingSystemArchitecture *string `json:"operating_system.architecture,omitempty"` - // Filters the collection to resources in the zone with the exact specified name. + // Filters the collection to resources with a `zone.name` property matching the exact specified name. ZoneName *string `json:"zone.name,omitempty"` // Allows users to set headers on API requests @@ -48995,7 +48959,7 @@ type ListVolumesOptions struct { } // Constants associated with the ListVolumesOptions.AttachmentState property. -// Filters the collection to volumes with the specified attachment state. +// Filters the collection to volumes with an `attachment_state` property matching the specified value. const ( ListVolumesOptionsAttachmentStateAttachedConst = "attached" ListVolumesOptionsAttachmentStateUnattachedConst = "unattached" @@ -49003,7 +48967,7 @@ const ( ) // Constants associated with the ListVolumesOptions.Encryption property. -// Filters the collection to resources with the specified encryption type. +// Filters the collection to resources with an `encryption` property matching the specified value. const ( ListVolumesOptionsEncryptionProviderManagedConst = "provider_managed" ListVolumesOptionsEncryptionUserManagedConst = "user_managed" @@ -49119,7 +49083,7 @@ type ListVPCRoutesOptions struct { // The VPC identifier. VPCID *string `json:"vpc_id" validate:"required,ne="` - // Filters the collection to resources in the zone with the exact specified name. + // Filters the collection to resources with a `zone.name` property matching the exact specified name. ZoneName *string `json:"zone.name,omitempty"` // A server-provided token determining what resource to start the page on. @@ -49236,7 +49200,7 @@ type ListVPCRoutingTablesOptions struct { // The number of resources to return on a page. Limit *int64 `json:"limit,omitempty"` - // Filters the collection to routing tables with the specified `is_default` value. + // Filters the collection to routing tables with an `is_default` property matching the specified value. IsDefault *bool `json:"is_default,omitempty"` // Allows users to set headers on API requests @@ -49288,10 +49252,10 @@ type ListVpcsOptions struct { // The number of resources to return on a page. Limit *int64 `json:"limit,omitempty"` - // Filters the collection to resources in the resource group with the specified identifier. + // Filters the collection to resources with a `resource_group.id` property matching the specified identifier. ResourceGroupID *string `json:"resource_group.id,omitempty"` - // Filters the collection to VPCs with the specified `classic_access` value. + // Filters the collection to VPCs with a `classic_access` property matching the specified value. ClassicAccess *bool `json:"classic_access,omitempty"` // Allows users to set headers on API requests @@ -49414,13 +49378,20 @@ type ListVPNGatewayConnectionsOptions struct { // The VPN gateway identifier. VPNGatewayID *string `json:"vpn_gateway_id" validate:"required,ne="` - // Filters the collection to VPN gateway connections with the specified status. + // Filters the collection to VPN gateway connections with a `status` property matching the specified value. Status *string `json:"status,omitempty"` // Allows users to set headers on API requests Headers map[string]string } +// Constants associated with the ListVPNGatewayConnectionsOptions.Status property. +// Filters the collection to VPN gateway connections with a `status` property matching the specified value. +const ( + ListVPNGatewayConnectionsOptionsStatusDownConst = "down" + ListVPNGatewayConnectionsOptionsStatusUpConst = "up" +) + // NewListVPNGatewayConnectionsOptions : Instantiate ListVPNGatewayConnectionsOptions func (*VpcV1) NewListVPNGatewayConnectionsOptions(vpnGatewayID string) *ListVPNGatewayConnectionsOptions { return &ListVPNGatewayConnectionsOptions{ @@ -49454,7 +49425,7 @@ type ListVPNGatewaysOptions struct { // The number of resources to return on a page. Limit *int64 `json:"limit,omitempty"` - // Filters the collection to resources in the resource group with the specified identifier. + // Filters the collection to resources with a `resource_group.id` property matching the specified identifier. ResourceGroupID *string `json:"resource_group.id,omitempty"` // Sorts the returned collection by the specified property name in ascending order. A `-` may be prepended to the name @@ -49462,7 +49433,7 @@ type ListVPNGatewaysOptions struct { // in descending order, and the value `name` sorts it by the `name` property in ascending order. Sort *string `json:"sort,omitempty"` - // Filters the collection to VPN gateways with the specified mode. + // Filters the collection to VPN gateways with a `mode` property matching the specified value. Mode *string `json:"mode,omitempty"` // Allows users to set headers on API requests @@ -49479,7 +49450,7 @@ const ( ) // Constants associated with the ListVPNGatewaysOptions.Mode property. -// Filters the collection to VPN gateways with the specified mode. +// Filters the collection to VPN gateways with a `mode` property matching the specified value. const ( ListVPNGatewaysOptionsModePolicyConst = "policy" ListVPNGatewaysOptionsModeRouteConst = "route" @@ -49659,7 +49630,7 @@ func (options *ListVPNServerRoutesOptions) SetHeaders(param map[string]string) * // ListVPNServersOptions : The ListVPNServers options. type ListVPNServersOptions struct { - // Filters the collection to resources with the exact specified name. + // Filters the collection to resources with a `name` property matching the exact specified name. Name *string `json:"name,omitempty"` // A server-provided token determining what resource to start the page on. @@ -49668,7 +49639,7 @@ type ListVPNServersOptions struct { // The number of resources to return on a page. Limit *int64 `json:"limit,omitempty"` - // Filters the collection to resources in the resource group with the specified identifier. + // Filters the collection to resources with a `resource_group.id` property matching the specified identifier. ResourceGroupID *string `json:"resource_group.id,omitempty"` // Sorts the returned collection by the specified property name in ascending order. A `-` may be prepended to the name @@ -55430,6 +55401,9 @@ type OperatingSystemCollection struct { // Collection of operating systems. OperatingSystems []OperatingSystem `json:"operating_systems" validate:"required"` + + // The total number of resources across all pages. + TotalCount *int64 `json:"total_count" validate:"required"` } // UnmarshalOperatingSystemCollection unmarshals an instance of OperatingSystemCollection from the specified map of raw messages. @@ -55451,6 +55425,10 @@ func UnmarshalOperatingSystemCollection(m map[string]json.RawMessage, result int if err != nil { return } + err = core.UnmarshalPrimitive(m, "total_count", &obj.TotalCount) + if err != nil { + return + } reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) return } @@ -64711,10 +64689,10 @@ func UnmarshalVPNGatewayConnectionStaticRouteModeTunnel(m map[string]json.RawMes // VPNGatewayMember : VPNGatewayMember struct type VPNGatewayMember struct { - // The private IP address assigned to the VPN gateway member. + // The reserved IP address assigned to the VPN gateway member. // // This property will be present only when the VPN gateway status is `available`. - PrivateIP *IP `json:"private_ip,omitempty"` + PrivateIP *ReservedIPReference `json:"private_ip" validate:"required"` // The public IP address assigned to the VPN gateway member. PublicIP *IP `json:"public_ip" validate:"required"` @@ -64745,7 +64723,7 @@ const ( // UnmarshalVPNGatewayMember unmarshals an instance of VPNGatewayMember from the specified map of raw messages. func UnmarshalVPNGatewayMember(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(VPNGatewayMember) - err = core.UnmarshalModel(m, "private_ip", &obj.PrivateIP, UnmarshalIP) + err = core.UnmarshalModel(m, "private_ip", &obj.PrivateIP, UnmarshalReservedIPReference) if err != nil { return } diff --git a/vpcv1/vpc_v1_integration_utils_test.go b/vpcv1/vpc_v1_integration_utils_test.go index da25a66..01c3e03 100644 --- a/vpcv1/vpc_v1_integration_utils_test.go +++ b/vpcv1/vpc_v1_integration_utils_test.go @@ -1965,8 +1965,8 @@ func ListIkePolicies(vpcService *vpcv1.VpcV1) (ikePolicies *vpcv1.IkePolicyColle func CreateIkePolicy(vpcService *vpcv1.VpcV1, name string) (ikePolicy *vpcv1.IkePolicy, response *core.DetailedResponse, err error) { options := &vpcv1.CreateIkePolicyOptions{} options.SetName(name) - options.SetAuthenticationAlgorithm("md5") - options.SetDhGroup(2) + options.SetAuthenticationAlgorithm("sha512") + options.SetDhGroup(14) options.SetEncryptionAlgorithm("aes128") options.SetIkeVersion(1) ikePolicy, response, err = vpcService.CreateIkePolicy(options) @@ -1997,7 +1997,7 @@ func GetIkePolicy(vpcService *vpcv1.VpcV1, id string) (ikePolicy *vpcv1.IkePolic func UpdateIkePolicy(vpcService *vpcv1.VpcV1, id string) (ikePolicy *vpcv1.IkePolicy, response *core.DetailedResponse, err error) { body := &vpcv1.IkePolicyPatch{ Name: core.StringPtr("go-ike-policy-2"), - DhGroup: core.Int64Ptr(5), + DhGroup: core.Int64Ptr(14), } patchBody, _ := body.AsPatch() options := &vpcv1.UpdateIkePolicyOptions{ @@ -2034,7 +2034,7 @@ func ListIpsecPolicies(vpcService *vpcv1.VpcV1) (ipsecPolicies *vpcv1.IPsecPolic func CreateIpsecPolicy(vpcService *vpcv1.VpcV1, name string) (ipsecPolicy *vpcv1.IPsecPolicy, response *core.DetailedResponse, err error) { options := &vpcv1.CreateIpsecPolicyOptions{} options.SetName(name) - options.SetAuthenticationAlgorithm("md5") + options.SetAuthenticationAlgorithm("sha512") options.SetEncryptionAlgorithm("aes128") options.SetPfs("disabled") ipsecPolicy, response, err = vpcService.CreateIpsecPolicy(options) diff --git a/vpcv1/vpc_v1_test.go b/vpcv1/vpc_v1_test.go index 68e37a9..9cfff16 100644 --- a/vpcv1/vpc_v1_test.go +++ b/vpcv1/vpc_v1_test.go @@ -3339,7 +3339,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()["zone.name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["zone.name"]).To(Equal([]string{"us-south-1"})) 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") @@ -3359,7 +3359,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the ListVPCRoutesOptions model listVPCRoutesOptionsModel := new(vpcv1.ListVPCRoutesOptions) listVPCRoutesOptionsModel.VPCID = core.StringPtr("testString") - listVPCRoutesOptionsModel.ZoneName = core.StringPtr("testString") + listVPCRoutesOptionsModel.ZoneName = core.StringPtr("us-south-1") listVPCRoutesOptionsModel.Start = core.StringPtr("testString") listVPCRoutesOptionsModel.Limit = core.Int64Ptr(int64(10)) listVPCRoutesOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} @@ -3395,7 +3395,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()["zone.name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["zone.name"]).To(Equal([]string{"us-south-1"})) 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 @@ -3420,7 +3420,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the ListVPCRoutesOptions model listVPCRoutesOptionsModel := new(vpcv1.ListVPCRoutesOptions) listVPCRoutesOptionsModel.VPCID = core.StringPtr("testString") - listVPCRoutesOptionsModel.ZoneName = core.StringPtr("testString") + listVPCRoutesOptionsModel.ZoneName = core.StringPtr("us-south-1") listVPCRoutesOptionsModel.Start = core.StringPtr("testString") listVPCRoutesOptionsModel.Limit = core.Int64Ptr(int64(10)) listVPCRoutesOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} @@ -3461,7 +3461,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()["zone.name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["zone.name"]).To(Equal([]string{"us-south-1"})) Expect(req.URL.Query()["start"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["limit"]).To(Equal([]string{fmt.Sprint(int64(10))})) // Set mock response @@ -3488,7 +3488,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the ListVPCRoutesOptions model listVPCRoutesOptionsModel := new(vpcv1.ListVPCRoutesOptions) listVPCRoutesOptionsModel.VPCID = core.StringPtr("testString") - listVPCRoutesOptionsModel.ZoneName = core.StringPtr("testString") + listVPCRoutesOptionsModel.ZoneName = core.StringPtr("us-south-1") listVPCRoutesOptionsModel.Start = core.StringPtr("testString") listVPCRoutesOptionsModel.Limit = core.Int64Ptr(int64(10)) listVPCRoutesOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} @@ -3512,7 +3512,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the ListVPCRoutesOptions model listVPCRoutesOptionsModel := new(vpcv1.ListVPCRoutesOptions) listVPCRoutesOptionsModel.VPCID = core.StringPtr("testString") - listVPCRoutesOptionsModel.ZoneName = core.StringPtr("testString") + listVPCRoutesOptionsModel.ZoneName = core.StringPtr("us-south-1") listVPCRoutesOptionsModel.Start = core.StringPtr("testString") listVPCRoutesOptionsModel.Limit = core.Int64Ptr(int64(10)) listVPCRoutesOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} @@ -3557,7 +3557,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the ListVPCRoutesOptions model listVPCRoutesOptionsModel := new(vpcv1.ListVPCRoutesOptions) listVPCRoutesOptionsModel.VPCID = core.StringPtr("testString") - listVPCRoutesOptionsModel.ZoneName = core.StringPtr("testString") + listVPCRoutesOptionsModel.ZoneName = core.StringPtr("us-south-1") listVPCRoutesOptionsModel.Start = core.StringPtr("testString") listVPCRoutesOptionsModel.Limit = core.Int64Ptr(int64(10)) listVPCRoutesOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} @@ -3637,7 +3637,7 @@ var _ = Describe(`VpcV1`, func() { listVPCRoutesOptionsModel := &vpcv1.ListVPCRoutesOptions{ VPCID: core.StringPtr("testString"), - ZoneName: core.StringPtr("testString"), + ZoneName: core.StringPtr("us-south-1"), Limit: core.Int64Ptr(int64(10)), } @@ -3665,7 +3665,7 @@ var _ = Describe(`VpcV1`, func() { listVPCRoutesOptionsModel := &vpcv1.ListVPCRoutesOptions{ VPCID: core.StringPtr("testString"), - ZoneName: core.StringPtr("testString"), + ZoneName: core.StringPtr("us-south-1"), Limit: core.Int64Ptr(int64(10)), } @@ -7396,7 +7396,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()["routing_table.id"]).To(Equal([]string{"testString"})) - Expect(req.URL.Query()["routing_table.name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["routing_table.name"]).To(Equal([]string{"my-routing-table"})) res.Header().Set("Content-type", "application/json") res.WriteHeader(200) fmt.Fprint(res, `} this is not valid json {`) @@ -7417,7 +7417,7 @@ var _ = Describe(`VpcV1`, func() { listSubnetsOptionsModel.Limit = core.Int64Ptr(int64(10)) listSubnetsOptionsModel.ResourceGroupID = core.StringPtr("testString") listSubnetsOptionsModel.RoutingTableID = core.StringPtr("testString") - listSubnetsOptionsModel.RoutingTableName = core.StringPtr("testString") + listSubnetsOptionsModel.RoutingTableName = core.StringPtr("my-routing-table") listSubnetsOptionsModel.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.ListSubnets(listSubnetsOptionsModel) @@ -7455,7 +7455,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()["routing_table.id"]).To(Equal([]string{"testString"})) - Expect(req.URL.Query()["routing_table.name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["routing_table.name"]).To(Equal([]string{"my-routing-table"})) // Sleep a short time to support a timeout test time.Sleep(100 * time.Millisecond) @@ -7481,7 +7481,7 @@ var _ = Describe(`VpcV1`, func() { listSubnetsOptionsModel.Limit = core.Int64Ptr(int64(10)) listSubnetsOptionsModel.ResourceGroupID = core.StringPtr("testString") listSubnetsOptionsModel.RoutingTableID = core.StringPtr("testString") - listSubnetsOptionsModel.RoutingTableName = core.StringPtr("testString") + listSubnetsOptionsModel.RoutingTableName = core.StringPtr("my-routing-table") listSubnetsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with a Context to test a timeout error @@ -7524,7 +7524,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()["routing_table.id"]).To(Equal([]string{"testString"})) - Expect(req.URL.Query()["routing_table.name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["routing_table.name"]).To(Equal([]string{"my-routing-table"})) // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) @@ -7552,7 +7552,7 @@ var _ = Describe(`VpcV1`, func() { listSubnetsOptionsModel.Limit = core.Int64Ptr(int64(10)) listSubnetsOptionsModel.ResourceGroupID = core.StringPtr("testString") listSubnetsOptionsModel.RoutingTableID = core.StringPtr("testString") - listSubnetsOptionsModel.RoutingTableName = core.StringPtr("testString") + listSubnetsOptionsModel.RoutingTableName = core.StringPtr("my-routing-table") listSubnetsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with valid options model (positive test) @@ -7577,7 +7577,7 @@ var _ = Describe(`VpcV1`, func() { listSubnetsOptionsModel.Limit = core.Int64Ptr(int64(10)) listSubnetsOptionsModel.ResourceGroupID = core.StringPtr("testString") listSubnetsOptionsModel.RoutingTableID = core.StringPtr("testString") - listSubnetsOptionsModel.RoutingTableName = core.StringPtr("testString") + listSubnetsOptionsModel.RoutingTableName = core.StringPtr("my-routing-table") listSubnetsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with empty URL (negative test) err := vpcService.SetServiceURL("") @@ -7616,7 +7616,7 @@ var _ = Describe(`VpcV1`, func() { listSubnetsOptionsModel.Limit = core.Int64Ptr(int64(10)) listSubnetsOptionsModel.ResourceGroupID = core.StringPtr("testString") listSubnetsOptionsModel.RoutingTableID = core.StringPtr("testString") - listSubnetsOptionsModel.RoutingTableName = core.StringPtr("testString") + listSubnetsOptionsModel.RoutingTableName = core.StringPtr("my-routing-table") listSubnetsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation @@ -7696,7 +7696,7 @@ var _ = Describe(`VpcV1`, func() { Limit: core.Int64Ptr(int64(10)), ResourceGroupID: core.StringPtr("testString"), RoutingTableID: core.StringPtr("testString"), - RoutingTableName: core.StringPtr("testString"), + RoutingTableName: core.StringPtr("my-routing-table"), } pager, err := vpcService.NewSubnetsPager(listSubnetsOptionsModel) @@ -7725,7 +7725,7 @@ var _ = Describe(`VpcV1`, func() { Limit: core.Int64Ptr(int64(10)), ResourceGroupID: core.StringPtr("testString"), RoutingTableID: core.StringPtr("testString"), - RoutingTableName: core.StringPtr("testString"), + RoutingTableName: core.StringPtr("my-routing-table"), } pager, err := vpcService.NewSubnetsPager(listSubnetsOptionsModel) @@ -11776,7 +11776,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/images?limit=20"}, "images": [{"catalog_offering": {"managed": false, "version": {"crn": "crn:v1:bluemix:public:globalcatalog-collection:global:a/123456:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:version:00111601-0ec5-41ac-b142-96d1e64e6442/ec66bec2-6a33-42d6-9323-26dd4dc8875d"}}, "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/123456::image:72b27b5c-f4b0-48bb-b954-5becc7c1dcb8", "encryption": "user_managed", "encryption_key": {"crn": "crn:v1:bluemix:public:kms:us-south:a/dffc98a0f1f0f95f6613b3b752286b87:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179"}, "file": {"checksums": {"sha256": "e992a84f113d3a35d2145ca3e7aca4fc95fe6daf470a08d8af3422ee59c92e15"}, "size": 1}, "href": "https://us-south.iaas.cloud.ibm.com/v1/images/72b27b5c-f4b0-48bb-b954-5becc7c1dcb8", "id": "72b27b5c-f4b0-48bb-b954-5becc7c1dcb8", "minimum_provisioned_size": 22, "name": "my-image", "operating_system": {"architecture": "amd64", "dedicated_host_only": false, "display_name": "Ubuntu Server 16.04 LTS amd64", "family": "Ubuntu Server", "href": "https://us-south.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-16-amd64", "name": "ubuntu-16-amd64", "vendor": "Canonical", "version": "16.04 LTS"}, "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "source_volume": {"crn": "crn:v1:bluemix:public:is:us-south-1:a/123456::volume:1a6b7274-678d-4dfb-8981-c71dd9d4daa5", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/volumes/1a6b7274-678d-4dfb-8981-c71dd9d4daa5", "id": "1a6b7274-678d-4dfb-8981-c71dd9d4daa5", "name": "my-volume"}, "status": "available", "status_reasons": [{"code": "encryption_key_deleted", "message": "Message", "more_info": "https://cloud.ibm.com/docs/key-protect?topic=key-protect-restore-keys"}], "visibility": "private"}], "limit": 20, "next": {"href": "https://us-south.iaas.cloud.ibm.com/v1/images?start=9d5a91a3e2cbd233b5a5b33436855ed1&limit=20"}}`) + fmt.Fprintf(res, "%s", `{"first": {"href": "https://us-south.iaas.cloud.ibm.com/v1/images?limit=20"}, "images": [{"catalog_offering": {"managed": false, "version": {"crn": "crn:v1:bluemix:public:globalcatalog-collection:global:a/123456:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:version:00111601-0ec5-41ac-b142-96d1e64e6442/ec66bec2-6a33-42d6-9323-26dd4dc8875d"}}, "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/123456::image:72b27b5c-f4b0-48bb-b954-5becc7c1dcb8", "encryption": "user_managed", "encryption_key": {"crn": "crn:v1:bluemix:public:kms:us-south:a/dffc98a0f1f0f95f6613b3b752286b87:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179"}, "file": {"checksums": {"sha256": "e992a84f113d3a35d2145ca3e7aca4fc95fe6daf470a08d8af3422ee59c92e15"}, "size": 1}, "href": "https://us-south.iaas.cloud.ibm.com/v1/images/72b27b5c-f4b0-48bb-b954-5becc7c1dcb8", "id": "72b27b5c-f4b0-48bb-b954-5becc7c1dcb8", "minimum_provisioned_size": 22, "name": "my-image", "operating_system": {"architecture": "amd64", "dedicated_host_only": false, "display_name": "Ubuntu Server 16.04 LTS amd64", "family": "Ubuntu Server", "href": "https://us-south.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-16-amd64", "name": "ubuntu-16-amd64", "vendor": "Canonical", "version": "16.04 LTS"}, "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "source_volume": {"crn": "crn:v1:bluemix:public:is:us-south-1:a/123456::volume:1a6b7274-678d-4dfb-8981-c71dd9d4daa5", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/volumes/1a6b7274-678d-4dfb-8981-c71dd9d4daa5", "id": "1a6b7274-678d-4dfb-8981-c71dd9d4daa5", "name": "my-volume"}, "status": "available", "status_reasons": [{"code": "encryption_key_deleted", "message": "Message", "more_info": "https://cloud.ibm.com/docs/key-protect?topic=key-protect-restore-keys"}], "visibility": "private"}], "limit": 20, "next": {"href": "https://us-south.iaas.cloud.ibm.com/v1/images?start=9d5a91a3e2cbd233b5a5b33436855ed1&limit=20"}, "total_count": 132}`) })) }) It(`Invoke ListImages successfully with retries`, func() { @@ -11842,7 +11842,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/images?limit=20"}, "images": [{"catalog_offering": {"managed": false, "version": {"crn": "crn:v1:bluemix:public:globalcatalog-collection:global:a/123456:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:version:00111601-0ec5-41ac-b142-96d1e64e6442/ec66bec2-6a33-42d6-9323-26dd4dc8875d"}}, "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/123456::image:72b27b5c-f4b0-48bb-b954-5becc7c1dcb8", "encryption": "user_managed", "encryption_key": {"crn": "crn:v1:bluemix:public:kms:us-south:a/dffc98a0f1f0f95f6613b3b752286b87:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179"}, "file": {"checksums": {"sha256": "e992a84f113d3a35d2145ca3e7aca4fc95fe6daf470a08d8af3422ee59c92e15"}, "size": 1}, "href": "https://us-south.iaas.cloud.ibm.com/v1/images/72b27b5c-f4b0-48bb-b954-5becc7c1dcb8", "id": "72b27b5c-f4b0-48bb-b954-5becc7c1dcb8", "minimum_provisioned_size": 22, "name": "my-image", "operating_system": {"architecture": "amd64", "dedicated_host_only": false, "display_name": "Ubuntu Server 16.04 LTS amd64", "family": "Ubuntu Server", "href": "https://us-south.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-16-amd64", "name": "ubuntu-16-amd64", "vendor": "Canonical", "version": "16.04 LTS"}, "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "source_volume": {"crn": "crn:v1:bluemix:public:is:us-south-1:a/123456::volume:1a6b7274-678d-4dfb-8981-c71dd9d4daa5", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/volumes/1a6b7274-678d-4dfb-8981-c71dd9d4daa5", "id": "1a6b7274-678d-4dfb-8981-c71dd9d4daa5", "name": "my-volume"}, "status": "available", "status_reasons": [{"code": "encryption_key_deleted", "message": "Message", "more_info": "https://cloud.ibm.com/docs/key-protect?topic=key-protect-restore-keys"}], "visibility": "private"}], "limit": 20, "next": {"href": "https://us-south.iaas.cloud.ibm.com/v1/images?start=9d5a91a3e2cbd233b5a5b33436855ed1&limit=20"}}`) + fmt.Fprintf(res, "%s", `{"first": {"href": "https://us-south.iaas.cloud.ibm.com/v1/images?limit=20"}, "images": [{"catalog_offering": {"managed": false, "version": {"crn": "crn:v1:bluemix:public:globalcatalog-collection:global:a/123456:1082e7d2-5e2f-0a11-a3bc-f88a8e1931fc:version:00111601-0ec5-41ac-b142-96d1e64e6442/ec66bec2-6a33-42d6-9323-26dd4dc8875d"}}, "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/123456::image:72b27b5c-f4b0-48bb-b954-5becc7c1dcb8", "encryption": "user_managed", "encryption_key": {"crn": "crn:v1:bluemix:public:kms:us-south:a/dffc98a0f1f0f95f6613b3b752286b87:e4a29d1a-2ef0-42a6-8fd2-350deb1c647e:key:5437653b-c4b1-447f-9646-b2a2a4cd6179"}, "file": {"checksums": {"sha256": "e992a84f113d3a35d2145ca3e7aca4fc95fe6daf470a08d8af3422ee59c92e15"}, "size": 1}, "href": "https://us-south.iaas.cloud.ibm.com/v1/images/72b27b5c-f4b0-48bb-b954-5becc7c1dcb8", "id": "72b27b5c-f4b0-48bb-b954-5becc7c1dcb8", "minimum_provisioned_size": 22, "name": "my-image", "operating_system": {"architecture": "amd64", "dedicated_host_only": false, "display_name": "Ubuntu Server 16.04 LTS amd64", "family": "Ubuntu Server", "href": "https://us-south.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-16-amd64", "name": "ubuntu-16-amd64", "vendor": "Canonical", "version": "16.04 LTS"}, "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "source_volume": {"crn": "crn:v1:bluemix:public:is:us-south-1:a/123456::volume:1a6b7274-678d-4dfb-8981-c71dd9d4daa5", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/volumes/1a6b7274-678d-4dfb-8981-c71dd9d4daa5", "id": "1a6b7274-678d-4dfb-8981-c71dd9d4daa5", "name": "my-volume"}, "status": "available", "status_reasons": [{"code": "encryption_key_deleted", "message": "Message", "more_info": "https://cloud.ibm.com/docs/key-protect?topic=key-protect-restore-keys"}], "visibility": "private"}], "limit": 20, "next": {"href": "https://us-south.iaas.cloud.ibm.com/v1/images?start=9d5a91a3e2cbd233b5a5b33436855ed1&limit=20"}, "total_count": 132}`) })) }) It(`Invoke ListImages successfully`, func() { @@ -14226,7 +14226,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/operating_systems?limit=20"}, "limit": 20, "next": {"href": "https://us-south.iaas.cloud.ibm.com/v1/operating_systems?start=9d5a91a3e2cbd233b5a5b33436855ed1&limit=20"}, "operating_systems": [{"architecture": "amd64", "dedicated_host_only": false, "display_name": "Ubuntu Server 16.04 LTS amd64", "family": "Ubuntu Server", "href": "https://us-south.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-16-amd64", "name": "ubuntu-16-amd64", "vendor": "Canonical", "version": "16.04 LTS"}]}`) + fmt.Fprintf(res, "%s", `{"first": {"href": "https://us-south.iaas.cloud.ibm.com/v1/operating_systems?limit=20"}, "limit": 20, "next": {"href": "https://us-south.iaas.cloud.ibm.com/v1/operating_systems?start=9d5a91a3e2cbd233b5a5b33436855ed1&limit=20"}, "operating_systems": [{"architecture": "amd64", "dedicated_host_only": false, "display_name": "Ubuntu Server 16.04 LTS amd64", "family": "Ubuntu Server", "href": "https://us-south.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-16-amd64", "name": "ubuntu-16-amd64", "vendor": "Canonical", "version": "16.04 LTS"}], "total_count": 132}`) })) }) It(`Invoke ListOperatingSystems successfully with retries`, func() { @@ -14286,7 +14286,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/operating_systems?limit=20"}, "limit": 20, "next": {"href": "https://us-south.iaas.cloud.ibm.com/v1/operating_systems?start=9d5a91a3e2cbd233b5a5b33436855ed1&limit=20"}, "operating_systems": [{"architecture": "amd64", "dedicated_host_only": false, "display_name": "Ubuntu Server 16.04 LTS amd64", "family": "Ubuntu Server", "href": "https://us-south.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-16-amd64", "name": "ubuntu-16-amd64", "vendor": "Canonical", "version": "16.04 LTS"}]}`) + fmt.Fprintf(res, "%s", `{"first": {"href": "https://us-south.iaas.cloud.ibm.com/v1/operating_systems?limit=20"}, "limit": 20, "next": {"href": "https://us-south.iaas.cloud.ibm.com/v1/operating_systems?start=9d5a91a3e2cbd233b5a5b33436855ed1&limit=20"}, "operating_systems": [{"architecture": "amd64", "dedicated_host_only": false, "display_name": "Ubuntu Server 16.04 LTS amd64", "family": "Ubuntu Server", "href": "https://us-south.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-16-amd64", "name": "ubuntu-16-amd64", "vendor": "Canonical", "version": "16.04 LTS"}], "total_count": 132}`) })) }) It(`Invoke ListOperatingSystems successfully`, func() { @@ -18046,13 +18046,13 @@ var _ = Describe(`VpcV1`, func() { Expect(req.URL.Query()["name"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["vpc.id"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["vpc.crn"]).To(Equal([]string{"testString"})) - Expect(req.URL.Query()["vpc.name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["vpc.name"]).To(Equal([]string{"my-vpc"})) Expect(req.URL.Query()["dedicated_host.id"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["dedicated_host.crn"]).To(Equal([]string{"testString"})) - Expect(req.URL.Query()["dedicated_host.name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["dedicated_host.name"]).To(Equal([]string{"my-dedicated-host"})) Expect(req.URL.Query()["placement_group.id"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["placement_group.crn"]).To(Equal([]string{"testString"})) - Expect(req.URL.Query()["placement_group.name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["placement_group.name"]).To(Equal([]string{"my-placement-group"})) res.Header().Set("Content-type", "application/json") res.WriteHeader(200) fmt.Fprint(res, `} this is not valid json {`) @@ -18075,13 +18075,13 @@ var _ = Describe(`VpcV1`, func() { listInstancesOptionsModel.Name = core.StringPtr("testString") listInstancesOptionsModel.VPCID = core.StringPtr("testString") listInstancesOptionsModel.VPCCRN = core.StringPtr("testString") - listInstancesOptionsModel.VPCName = core.StringPtr("testString") + listInstancesOptionsModel.VPCName = core.StringPtr("my-vpc") listInstancesOptionsModel.DedicatedHostID = core.StringPtr("testString") listInstancesOptionsModel.DedicatedHostCRN = core.StringPtr("testString") - listInstancesOptionsModel.DedicatedHostName = core.StringPtr("testString") + listInstancesOptionsModel.DedicatedHostName = core.StringPtr("my-dedicated-host") listInstancesOptionsModel.PlacementGroupID = core.StringPtr("testString") listInstancesOptionsModel.PlacementGroupCRN = core.StringPtr("testString") - listInstancesOptionsModel.PlacementGroupName = core.StringPtr("testString") + listInstancesOptionsModel.PlacementGroupName = core.StringPtr("my-placement-group") listInstancesOptionsModel.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.ListInstances(listInstancesOptionsModel) @@ -18121,13 +18121,13 @@ var _ = Describe(`VpcV1`, func() { Expect(req.URL.Query()["name"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["vpc.id"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["vpc.crn"]).To(Equal([]string{"testString"})) - Expect(req.URL.Query()["vpc.name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["vpc.name"]).To(Equal([]string{"my-vpc"})) Expect(req.URL.Query()["dedicated_host.id"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["dedicated_host.crn"]).To(Equal([]string{"testString"})) - Expect(req.URL.Query()["dedicated_host.name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["dedicated_host.name"]).To(Equal([]string{"my-dedicated-host"})) Expect(req.URL.Query()["placement_group.id"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["placement_group.crn"]).To(Equal([]string{"testString"})) - Expect(req.URL.Query()["placement_group.name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["placement_group.name"]).To(Equal([]string{"my-placement-group"})) // Sleep a short time to support a timeout test time.Sleep(100 * time.Millisecond) @@ -18155,13 +18155,13 @@ var _ = Describe(`VpcV1`, func() { listInstancesOptionsModel.Name = core.StringPtr("testString") listInstancesOptionsModel.VPCID = core.StringPtr("testString") listInstancesOptionsModel.VPCCRN = core.StringPtr("testString") - listInstancesOptionsModel.VPCName = core.StringPtr("testString") + listInstancesOptionsModel.VPCName = core.StringPtr("my-vpc") listInstancesOptionsModel.DedicatedHostID = core.StringPtr("testString") listInstancesOptionsModel.DedicatedHostCRN = core.StringPtr("testString") - listInstancesOptionsModel.DedicatedHostName = core.StringPtr("testString") + listInstancesOptionsModel.DedicatedHostName = core.StringPtr("my-dedicated-host") listInstancesOptionsModel.PlacementGroupID = core.StringPtr("testString") listInstancesOptionsModel.PlacementGroupCRN = core.StringPtr("testString") - listInstancesOptionsModel.PlacementGroupName = core.StringPtr("testString") + listInstancesOptionsModel.PlacementGroupName = core.StringPtr("my-placement-group") listInstancesOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with a Context to test a timeout error @@ -18206,13 +18206,13 @@ var _ = Describe(`VpcV1`, func() { Expect(req.URL.Query()["name"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["vpc.id"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["vpc.crn"]).To(Equal([]string{"testString"})) - Expect(req.URL.Query()["vpc.name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["vpc.name"]).To(Equal([]string{"my-vpc"})) Expect(req.URL.Query()["dedicated_host.id"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["dedicated_host.crn"]).To(Equal([]string{"testString"})) - Expect(req.URL.Query()["dedicated_host.name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["dedicated_host.name"]).To(Equal([]string{"my-dedicated-host"})) Expect(req.URL.Query()["placement_group.id"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["placement_group.crn"]).To(Equal([]string{"testString"})) - Expect(req.URL.Query()["placement_group.name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["placement_group.name"]).To(Equal([]string{"my-placement-group"})) // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) @@ -18242,13 +18242,13 @@ var _ = Describe(`VpcV1`, func() { listInstancesOptionsModel.Name = core.StringPtr("testString") listInstancesOptionsModel.VPCID = core.StringPtr("testString") listInstancesOptionsModel.VPCCRN = core.StringPtr("testString") - listInstancesOptionsModel.VPCName = core.StringPtr("testString") + listInstancesOptionsModel.VPCName = core.StringPtr("my-vpc") listInstancesOptionsModel.DedicatedHostID = core.StringPtr("testString") listInstancesOptionsModel.DedicatedHostCRN = core.StringPtr("testString") - listInstancesOptionsModel.DedicatedHostName = core.StringPtr("testString") + listInstancesOptionsModel.DedicatedHostName = core.StringPtr("my-dedicated-host") listInstancesOptionsModel.PlacementGroupID = core.StringPtr("testString") listInstancesOptionsModel.PlacementGroupCRN = core.StringPtr("testString") - listInstancesOptionsModel.PlacementGroupName = core.StringPtr("testString") + listInstancesOptionsModel.PlacementGroupName = core.StringPtr("my-placement-group") listInstancesOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with valid options model (positive test) @@ -18275,13 +18275,13 @@ var _ = Describe(`VpcV1`, func() { listInstancesOptionsModel.Name = core.StringPtr("testString") listInstancesOptionsModel.VPCID = core.StringPtr("testString") listInstancesOptionsModel.VPCCRN = core.StringPtr("testString") - listInstancesOptionsModel.VPCName = core.StringPtr("testString") + listInstancesOptionsModel.VPCName = core.StringPtr("my-vpc") listInstancesOptionsModel.DedicatedHostID = core.StringPtr("testString") listInstancesOptionsModel.DedicatedHostCRN = core.StringPtr("testString") - listInstancesOptionsModel.DedicatedHostName = core.StringPtr("testString") + listInstancesOptionsModel.DedicatedHostName = core.StringPtr("my-dedicated-host") listInstancesOptionsModel.PlacementGroupID = core.StringPtr("testString") listInstancesOptionsModel.PlacementGroupCRN = core.StringPtr("testString") - listInstancesOptionsModel.PlacementGroupName = core.StringPtr("testString") + listInstancesOptionsModel.PlacementGroupName = core.StringPtr("my-placement-group") listInstancesOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with empty URL (negative test) err := vpcService.SetServiceURL("") @@ -18322,13 +18322,13 @@ var _ = Describe(`VpcV1`, func() { listInstancesOptionsModel.Name = core.StringPtr("testString") listInstancesOptionsModel.VPCID = core.StringPtr("testString") listInstancesOptionsModel.VPCCRN = core.StringPtr("testString") - listInstancesOptionsModel.VPCName = core.StringPtr("testString") + listInstancesOptionsModel.VPCName = core.StringPtr("my-vpc") listInstancesOptionsModel.DedicatedHostID = core.StringPtr("testString") listInstancesOptionsModel.DedicatedHostCRN = core.StringPtr("testString") - listInstancesOptionsModel.DedicatedHostName = core.StringPtr("testString") + listInstancesOptionsModel.DedicatedHostName = core.StringPtr("my-dedicated-host") listInstancesOptionsModel.PlacementGroupID = core.StringPtr("testString") listInstancesOptionsModel.PlacementGroupCRN = core.StringPtr("testString") - listInstancesOptionsModel.PlacementGroupName = core.StringPtr("testString") + listInstancesOptionsModel.PlacementGroupName = core.StringPtr("my-placement-group") listInstancesOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation @@ -18410,13 +18410,13 @@ var _ = Describe(`VpcV1`, func() { Name: core.StringPtr("testString"), VPCID: core.StringPtr("testString"), VPCCRN: core.StringPtr("testString"), - VPCName: core.StringPtr("testString"), + VPCName: core.StringPtr("my-vpc"), DedicatedHostID: core.StringPtr("testString"), DedicatedHostCRN: core.StringPtr("testString"), - DedicatedHostName: core.StringPtr("testString"), + DedicatedHostName: core.StringPtr("my-dedicated-host"), PlacementGroupID: core.StringPtr("testString"), PlacementGroupCRN: core.StringPtr("testString"), - PlacementGroupName: core.StringPtr("testString"), + PlacementGroupName: core.StringPtr("my-placement-group"), } pager, err := vpcService.NewInstancesPager(listInstancesOptionsModel) @@ -18447,13 +18447,13 @@ var _ = Describe(`VpcV1`, func() { Name: core.StringPtr("testString"), VPCID: core.StringPtr("testString"), VPCCRN: core.StringPtr("testString"), - VPCName: core.StringPtr("testString"), + VPCName: core.StringPtr("my-vpc"), DedicatedHostID: core.StringPtr("testString"), DedicatedHostCRN: core.StringPtr("testString"), - DedicatedHostName: core.StringPtr("testString"), + DedicatedHostName: core.StringPtr("my-dedicated-host"), PlacementGroupID: core.StringPtr("testString"), PlacementGroupCRN: core.StringPtr("testString"), - PlacementGroupName: core.StringPtr("testString"), + PlacementGroupName: core.StringPtr("my-placement-group"), } pager, err := vpcService.NewInstancesPager(listInstancesOptionsModel) @@ -31683,7 +31683,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()["zone.name"]).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"})) res.Header().Set("Content-type", "application/json") res.WriteHeader(200) @@ -31704,7 +31704,7 @@ var _ = Describe(`VpcV1`, func() { listDedicatedHostGroupsOptionsModel.Start = core.StringPtr("testString") listDedicatedHostGroupsOptionsModel.Limit = core.Int64Ptr(int64(10)) listDedicatedHostGroupsOptionsModel.ResourceGroupID = core.StringPtr("testString") - listDedicatedHostGroupsOptionsModel.ZoneName = core.StringPtr("testString") + listDedicatedHostGroupsOptionsModel.ZoneName = core.StringPtr("us-south-1") listDedicatedHostGroupsOptionsModel.Name = core.StringPtr("testString") listDedicatedHostGroupsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Expect response parsing to fail since we are receiving a text/plain response @@ -31742,7 +31742,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()["zone.name"]).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"})) // Sleep a short time to support a timeout test time.Sleep(100 * time.Millisecond) @@ -31768,7 +31768,7 @@ var _ = Describe(`VpcV1`, func() { listDedicatedHostGroupsOptionsModel.Start = core.StringPtr("testString") listDedicatedHostGroupsOptionsModel.Limit = core.Int64Ptr(int64(10)) listDedicatedHostGroupsOptionsModel.ResourceGroupID = core.StringPtr("testString") - listDedicatedHostGroupsOptionsModel.ZoneName = core.StringPtr("testString") + listDedicatedHostGroupsOptionsModel.ZoneName = core.StringPtr("us-south-1") listDedicatedHostGroupsOptionsModel.Name = core.StringPtr("testString") listDedicatedHostGroupsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} @@ -31811,7 +31811,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()["zone.name"]).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"})) // Set mock response res.Header().Set("Content-type", "application/json") @@ -31839,7 +31839,7 @@ var _ = Describe(`VpcV1`, func() { listDedicatedHostGroupsOptionsModel.Start = core.StringPtr("testString") listDedicatedHostGroupsOptionsModel.Limit = core.Int64Ptr(int64(10)) listDedicatedHostGroupsOptionsModel.ResourceGroupID = core.StringPtr("testString") - listDedicatedHostGroupsOptionsModel.ZoneName = core.StringPtr("testString") + listDedicatedHostGroupsOptionsModel.ZoneName = core.StringPtr("us-south-1") listDedicatedHostGroupsOptionsModel.Name = core.StringPtr("testString") listDedicatedHostGroupsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} @@ -31864,7 +31864,7 @@ var _ = Describe(`VpcV1`, func() { listDedicatedHostGroupsOptionsModel.Start = core.StringPtr("testString") listDedicatedHostGroupsOptionsModel.Limit = core.Int64Ptr(int64(10)) listDedicatedHostGroupsOptionsModel.ResourceGroupID = core.StringPtr("testString") - listDedicatedHostGroupsOptionsModel.ZoneName = core.StringPtr("testString") + listDedicatedHostGroupsOptionsModel.ZoneName = core.StringPtr("us-south-1") listDedicatedHostGroupsOptionsModel.Name = core.StringPtr("testString") listDedicatedHostGroupsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with empty URL (negative test) @@ -31903,7 +31903,7 @@ var _ = Describe(`VpcV1`, func() { listDedicatedHostGroupsOptionsModel.Start = core.StringPtr("testString") listDedicatedHostGroupsOptionsModel.Limit = core.Int64Ptr(int64(10)) listDedicatedHostGroupsOptionsModel.ResourceGroupID = core.StringPtr("testString") - listDedicatedHostGroupsOptionsModel.ZoneName = core.StringPtr("testString") + listDedicatedHostGroupsOptionsModel.ZoneName = core.StringPtr("us-south-1") listDedicatedHostGroupsOptionsModel.Name = core.StringPtr("testString") listDedicatedHostGroupsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} @@ -31983,7 +31983,7 @@ var _ = Describe(`VpcV1`, func() { listDedicatedHostGroupsOptionsModel := &vpcv1.ListDedicatedHostGroupsOptions{ Limit: core.Int64Ptr(int64(10)), ResourceGroupID: core.StringPtr("testString"), - ZoneName: core.StringPtr("testString"), + ZoneName: core.StringPtr("us-south-1"), Name: core.StringPtr("testString"), } @@ -32012,7 +32012,7 @@ var _ = Describe(`VpcV1`, func() { listDedicatedHostGroupsOptionsModel := &vpcv1.ListDedicatedHostGroupsOptions{ Limit: core.Int64Ptr(int64(10)), ResourceGroupID: core.StringPtr("testString"), - ZoneName: core.StringPtr("testString"), + ZoneName: core.StringPtr("us-south-1"), Name: core.StringPtr("testString"), } @@ -33506,7 +33506,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()["zone.name"]).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"})) res.Header().Set("Content-type", "application/json") res.WriteHeader(200) @@ -33528,7 +33528,7 @@ var _ = Describe(`VpcV1`, func() { listDedicatedHostsOptionsModel.Start = core.StringPtr("testString") listDedicatedHostsOptionsModel.Limit = core.Int64Ptr(int64(10)) listDedicatedHostsOptionsModel.ResourceGroupID = core.StringPtr("testString") - listDedicatedHostsOptionsModel.ZoneName = core.StringPtr("testString") + listDedicatedHostsOptionsModel.ZoneName = core.StringPtr("us-south-1") listDedicatedHostsOptionsModel.Name = core.StringPtr("testString") listDedicatedHostsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Expect response parsing to fail since we are receiving a text/plain response @@ -33567,7 +33567,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()["zone.name"]).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"})) // Sleep a short time to support a timeout test time.Sleep(100 * time.Millisecond) @@ -33594,7 +33594,7 @@ var _ = Describe(`VpcV1`, func() { listDedicatedHostsOptionsModel.Start = core.StringPtr("testString") listDedicatedHostsOptionsModel.Limit = core.Int64Ptr(int64(10)) listDedicatedHostsOptionsModel.ResourceGroupID = core.StringPtr("testString") - listDedicatedHostsOptionsModel.ZoneName = core.StringPtr("testString") + listDedicatedHostsOptionsModel.ZoneName = core.StringPtr("us-south-1") listDedicatedHostsOptionsModel.Name = core.StringPtr("testString") listDedicatedHostsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} @@ -33638,7 +33638,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()["zone.name"]).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"})) // Set mock response res.Header().Set("Content-type", "application/json") @@ -33667,7 +33667,7 @@ var _ = Describe(`VpcV1`, func() { listDedicatedHostsOptionsModel.Start = core.StringPtr("testString") listDedicatedHostsOptionsModel.Limit = core.Int64Ptr(int64(10)) listDedicatedHostsOptionsModel.ResourceGroupID = core.StringPtr("testString") - listDedicatedHostsOptionsModel.ZoneName = core.StringPtr("testString") + listDedicatedHostsOptionsModel.ZoneName = core.StringPtr("us-south-1") listDedicatedHostsOptionsModel.Name = core.StringPtr("testString") listDedicatedHostsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} @@ -33693,7 +33693,7 @@ var _ = Describe(`VpcV1`, func() { listDedicatedHostsOptionsModel.Start = core.StringPtr("testString") listDedicatedHostsOptionsModel.Limit = core.Int64Ptr(int64(10)) listDedicatedHostsOptionsModel.ResourceGroupID = core.StringPtr("testString") - listDedicatedHostsOptionsModel.ZoneName = core.StringPtr("testString") + listDedicatedHostsOptionsModel.ZoneName = core.StringPtr("us-south-1") listDedicatedHostsOptionsModel.Name = core.StringPtr("testString") listDedicatedHostsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with empty URL (negative test) @@ -33733,7 +33733,7 @@ var _ = Describe(`VpcV1`, func() { listDedicatedHostsOptionsModel.Start = core.StringPtr("testString") listDedicatedHostsOptionsModel.Limit = core.Int64Ptr(int64(10)) listDedicatedHostsOptionsModel.ResourceGroupID = core.StringPtr("testString") - listDedicatedHostsOptionsModel.ZoneName = core.StringPtr("testString") + listDedicatedHostsOptionsModel.ZoneName = core.StringPtr("us-south-1") listDedicatedHostsOptionsModel.Name = core.StringPtr("testString") listDedicatedHostsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} @@ -33814,7 +33814,7 @@ var _ = Describe(`VpcV1`, func() { DedicatedHostGroupID: core.StringPtr("testString"), Limit: core.Int64Ptr(int64(10)), ResourceGroupID: core.StringPtr("testString"), - ZoneName: core.StringPtr("testString"), + ZoneName: core.StringPtr("us-south-1"), Name: core.StringPtr("testString"), } @@ -33844,7 +33844,7 @@ var _ = Describe(`VpcV1`, func() { DedicatedHostGroupID: core.StringPtr("testString"), Limit: core.Int64Ptr(int64(10)), ResourceGroupID: core.StringPtr("testString"), - ZoneName: core.StringPtr("testString"), + ZoneName: core.StringPtr("us-south-1"), Name: core.StringPtr("testString"), } @@ -36353,7 +36353,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()["status"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["status"]).To(Equal([]string{"failed"})) Expect(req.URL.Query()["backup_policy_plan.id"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["start"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["limit"]).To(Equal([]string{fmt.Sprint(int64(10))})) @@ -36378,7 +36378,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the ListBackupPolicyJobsOptions model listBackupPolicyJobsOptionsModel := new(vpcv1.ListBackupPolicyJobsOptions) listBackupPolicyJobsOptionsModel.BackupPolicyID = core.StringPtr("testString") - listBackupPolicyJobsOptionsModel.Status = core.StringPtr("testString") + listBackupPolicyJobsOptionsModel.Status = core.StringPtr("failed") listBackupPolicyJobsOptionsModel.BackupPolicyPlanID = core.StringPtr("testString") listBackupPolicyJobsOptionsModel.Start = core.StringPtr("testString") listBackupPolicyJobsOptionsModel.Limit = core.Int64Ptr(int64(10)) @@ -36419,7 +36419,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()["status"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["status"]).To(Equal([]string{"failed"})) Expect(req.URL.Query()["backup_policy_plan.id"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["start"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["limit"]).To(Equal([]string{fmt.Sprint(int64(10))})) @@ -36449,7 +36449,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the ListBackupPolicyJobsOptions model listBackupPolicyJobsOptionsModel := new(vpcv1.ListBackupPolicyJobsOptions) listBackupPolicyJobsOptionsModel.BackupPolicyID = core.StringPtr("testString") - listBackupPolicyJobsOptionsModel.Status = core.StringPtr("testString") + listBackupPolicyJobsOptionsModel.Status = core.StringPtr("failed") listBackupPolicyJobsOptionsModel.BackupPolicyPlanID = core.StringPtr("testString") listBackupPolicyJobsOptionsModel.Start = core.StringPtr("testString") listBackupPolicyJobsOptionsModel.Limit = core.Int64Ptr(int64(10)) @@ -36495,7 +36495,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()["status"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["status"]).To(Equal([]string{"failed"})) Expect(req.URL.Query()["backup_policy_plan.id"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["start"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["limit"]).To(Equal([]string{fmt.Sprint(int64(10))})) @@ -36527,7 +36527,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the ListBackupPolicyJobsOptions model listBackupPolicyJobsOptionsModel := new(vpcv1.ListBackupPolicyJobsOptions) listBackupPolicyJobsOptionsModel.BackupPolicyID = core.StringPtr("testString") - listBackupPolicyJobsOptionsModel.Status = core.StringPtr("testString") + listBackupPolicyJobsOptionsModel.Status = core.StringPtr("failed") listBackupPolicyJobsOptionsModel.BackupPolicyPlanID = core.StringPtr("testString") listBackupPolicyJobsOptionsModel.Start = core.StringPtr("testString") listBackupPolicyJobsOptionsModel.Limit = core.Int64Ptr(int64(10)) @@ -36556,7 +36556,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the ListBackupPolicyJobsOptions model listBackupPolicyJobsOptionsModel := new(vpcv1.ListBackupPolicyJobsOptions) listBackupPolicyJobsOptionsModel.BackupPolicyID = core.StringPtr("testString") - listBackupPolicyJobsOptionsModel.Status = core.StringPtr("testString") + listBackupPolicyJobsOptionsModel.Status = core.StringPtr("failed") listBackupPolicyJobsOptionsModel.BackupPolicyPlanID = core.StringPtr("testString") listBackupPolicyJobsOptionsModel.Start = core.StringPtr("testString") listBackupPolicyJobsOptionsModel.Limit = core.Int64Ptr(int64(10)) @@ -36606,7 +36606,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the ListBackupPolicyJobsOptions model listBackupPolicyJobsOptionsModel := new(vpcv1.ListBackupPolicyJobsOptions) listBackupPolicyJobsOptionsModel.BackupPolicyID = core.StringPtr("testString") - listBackupPolicyJobsOptionsModel.Status = core.StringPtr("testString") + listBackupPolicyJobsOptionsModel.Status = core.StringPtr("failed") listBackupPolicyJobsOptionsModel.BackupPolicyPlanID = core.StringPtr("testString") listBackupPolicyJobsOptionsModel.Start = core.StringPtr("testString") listBackupPolicyJobsOptionsModel.Limit = core.Int64Ptr(int64(10)) @@ -36691,7 +36691,7 @@ var _ = Describe(`VpcV1`, func() { listBackupPolicyJobsOptionsModel := &vpcv1.ListBackupPolicyJobsOptions{ BackupPolicyID: core.StringPtr("testString"), - Status: core.StringPtr("testString"), + Status: core.StringPtr("failed"), BackupPolicyPlanID: core.StringPtr("testString"), Limit: core.Int64Ptr(int64(10)), Sort: core.StringPtr("name"), @@ -36724,7 +36724,7 @@ var _ = Describe(`VpcV1`, func() { listBackupPolicyJobsOptionsModel := &vpcv1.ListBackupPolicyJobsOptions{ BackupPolicyID: core.StringPtr("testString"), - Status: core.StringPtr("testString"), + Status: core.StringPtr("failed"), BackupPolicyPlanID: core.StringPtr("testString"), Limit: core.Int64Ptr(int64(10)), Sort: core.StringPtr("name"), @@ -40998,10 +40998,10 @@ var _ = Describe(`VpcV1`, func() { Expect(req.URL.Query()["name"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["vpc.id"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["vpc.crn"]).To(Equal([]string{"testString"})) - Expect(req.URL.Query()["vpc.name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["vpc.name"]).To(Equal([]string{"my-vpc"})) Expect(req.URL.Query()["network_interfaces.subnet.id"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["network_interfaces.subnet.crn"]).To(Equal([]string{"testString"})) - Expect(req.URL.Query()["network_interfaces.subnet.name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["network_interfaces.subnet.name"]).To(Equal([]string{"my-subnet"})) res.Header().Set("Content-type", "application/json") res.WriteHeader(200) fmt.Fprint(res, `} this is not valid json {`) @@ -41024,10 +41024,10 @@ var _ = Describe(`VpcV1`, func() { listBareMetalServersOptionsModel.Name = core.StringPtr("testString") listBareMetalServersOptionsModel.VPCID = core.StringPtr("testString") listBareMetalServersOptionsModel.VPCCRN = core.StringPtr("testString") - listBareMetalServersOptionsModel.VPCName = core.StringPtr("testString") + listBareMetalServersOptionsModel.VPCName = core.StringPtr("my-vpc") listBareMetalServersOptionsModel.NetworkInterfacesSubnetID = core.StringPtr("testString") listBareMetalServersOptionsModel.NetworkInterfacesSubnetCRN = core.StringPtr("testString") - listBareMetalServersOptionsModel.NetworkInterfacesSubnetName = core.StringPtr("testString") + listBareMetalServersOptionsModel.NetworkInterfacesSubnetName = core.StringPtr("my-subnet") listBareMetalServersOptionsModel.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.ListBareMetalServers(listBareMetalServersOptionsModel) @@ -41067,10 +41067,10 @@ var _ = Describe(`VpcV1`, func() { Expect(req.URL.Query()["name"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["vpc.id"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["vpc.crn"]).To(Equal([]string{"testString"})) - Expect(req.URL.Query()["vpc.name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["vpc.name"]).To(Equal([]string{"my-vpc"})) Expect(req.URL.Query()["network_interfaces.subnet.id"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["network_interfaces.subnet.crn"]).To(Equal([]string{"testString"})) - Expect(req.URL.Query()["network_interfaces.subnet.name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["network_interfaces.subnet.name"]).To(Equal([]string{"my-subnet"})) // Sleep a short time to support a timeout test time.Sleep(100 * time.Millisecond) @@ -41098,10 +41098,10 @@ var _ = Describe(`VpcV1`, func() { listBareMetalServersOptionsModel.Name = core.StringPtr("testString") listBareMetalServersOptionsModel.VPCID = core.StringPtr("testString") listBareMetalServersOptionsModel.VPCCRN = core.StringPtr("testString") - listBareMetalServersOptionsModel.VPCName = core.StringPtr("testString") + listBareMetalServersOptionsModel.VPCName = core.StringPtr("my-vpc") listBareMetalServersOptionsModel.NetworkInterfacesSubnetID = core.StringPtr("testString") listBareMetalServersOptionsModel.NetworkInterfacesSubnetCRN = core.StringPtr("testString") - listBareMetalServersOptionsModel.NetworkInterfacesSubnetName = core.StringPtr("testString") + listBareMetalServersOptionsModel.NetworkInterfacesSubnetName = core.StringPtr("my-subnet") listBareMetalServersOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with a Context to test a timeout error @@ -41146,10 +41146,10 @@ var _ = Describe(`VpcV1`, func() { Expect(req.URL.Query()["name"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["vpc.id"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["vpc.crn"]).To(Equal([]string{"testString"})) - Expect(req.URL.Query()["vpc.name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["vpc.name"]).To(Equal([]string{"my-vpc"})) Expect(req.URL.Query()["network_interfaces.subnet.id"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["network_interfaces.subnet.crn"]).To(Equal([]string{"testString"})) - Expect(req.URL.Query()["network_interfaces.subnet.name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["network_interfaces.subnet.name"]).To(Equal([]string{"my-subnet"})) // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) @@ -41179,10 +41179,10 @@ var _ = Describe(`VpcV1`, func() { listBareMetalServersOptionsModel.Name = core.StringPtr("testString") listBareMetalServersOptionsModel.VPCID = core.StringPtr("testString") listBareMetalServersOptionsModel.VPCCRN = core.StringPtr("testString") - listBareMetalServersOptionsModel.VPCName = core.StringPtr("testString") + listBareMetalServersOptionsModel.VPCName = core.StringPtr("my-vpc") listBareMetalServersOptionsModel.NetworkInterfacesSubnetID = core.StringPtr("testString") listBareMetalServersOptionsModel.NetworkInterfacesSubnetCRN = core.StringPtr("testString") - listBareMetalServersOptionsModel.NetworkInterfacesSubnetName = core.StringPtr("testString") + listBareMetalServersOptionsModel.NetworkInterfacesSubnetName = core.StringPtr("my-subnet") listBareMetalServersOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with valid options model (positive test) @@ -41209,10 +41209,10 @@ var _ = Describe(`VpcV1`, func() { listBareMetalServersOptionsModel.Name = core.StringPtr("testString") listBareMetalServersOptionsModel.VPCID = core.StringPtr("testString") listBareMetalServersOptionsModel.VPCCRN = core.StringPtr("testString") - listBareMetalServersOptionsModel.VPCName = core.StringPtr("testString") + listBareMetalServersOptionsModel.VPCName = core.StringPtr("my-vpc") listBareMetalServersOptionsModel.NetworkInterfacesSubnetID = core.StringPtr("testString") listBareMetalServersOptionsModel.NetworkInterfacesSubnetCRN = core.StringPtr("testString") - listBareMetalServersOptionsModel.NetworkInterfacesSubnetName = core.StringPtr("testString") + listBareMetalServersOptionsModel.NetworkInterfacesSubnetName = core.StringPtr("my-subnet") listBareMetalServersOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with empty URL (negative test) err := vpcService.SetServiceURL("") @@ -41253,10 +41253,10 @@ var _ = Describe(`VpcV1`, func() { listBareMetalServersOptionsModel.Name = core.StringPtr("testString") listBareMetalServersOptionsModel.VPCID = core.StringPtr("testString") listBareMetalServersOptionsModel.VPCCRN = core.StringPtr("testString") - listBareMetalServersOptionsModel.VPCName = core.StringPtr("testString") + listBareMetalServersOptionsModel.VPCName = core.StringPtr("my-vpc") listBareMetalServersOptionsModel.NetworkInterfacesSubnetID = core.StringPtr("testString") listBareMetalServersOptionsModel.NetworkInterfacesSubnetCRN = core.StringPtr("testString") - listBareMetalServersOptionsModel.NetworkInterfacesSubnetName = core.StringPtr("testString") + listBareMetalServersOptionsModel.NetworkInterfacesSubnetName = core.StringPtr("my-subnet") listBareMetalServersOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation @@ -41338,10 +41338,10 @@ var _ = Describe(`VpcV1`, func() { Name: core.StringPtr("testString"), VPCID: core.StringPtr("testString"), VPCCRN: core.StringPtr("testString"), - VPCName: core.StringPtr("testString"), + VPCName: core.StringPtr("my-vpc"), NetworkInterfacesSubnetID: core.StringPtr("testString"), NetworkInterfacesSubnetCRN: core.StringPtr("testString"), - NetworkInterfacesSubnetName: core.StringPtr("testString"), + NetworkInterfacesSubnetName: core.StringPtr("my-subnet"), } pager, err := vpcService.NewBareMetalServersPager(listBareMetalServersOptionsModel) @@ -41372,10 +41372,10 @@ var _ = Describe(`VpcV1`, func() { Name: core.StringPtr("testString"), VPCID: core.StringPtr("testString"), VPCCRN: core.StringPtr("testString"), - VPCName: core.StringPtr("testString"), + VPCName: core.StringPtr("my-vpc"), NetworkInterfacesSubnetID: core.StringPtr("testString"), NetworkInterfacesSubnetCRN: core.StringPtr("testString"), - NetworkInterfacesSubnetName: core.StringPtr("testString"), + NetworkInterfacesSubnetName: core.StringPtr("my-subnet"), } pager, err := vpcService.NewBareMetalServersPager(listBareMetalServersOptionsModel) @@ -47297,7 +47297,7 @@ var _ = Describe(`VpcV1`, func() { Expect(req.URL.Query()["encryption"]).To(Equal([]string{"provider_managed"})) Expect(req.URL.Query()["operating_system.family"]).To(Equal([]string{"Ubuntu Server"})) Expect(req.URL.Query()["operating_system.architecture"]).To(Equal([]string{"amd64"})) - Expect(req.URL.Query()["zone.name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["zone.name"]).To(Equal([]string{"us-south-1"})) res.Header().Set("Content-type", "application/json") res.WriteHeader(200) fmt.Fprint(res, `} this is not valid json {`) @@ -47321,7 +47321,7 @@ var _ = Describe(`VpcV1`, func() { listVolumesOptionsModel.Encryption = core.StringPtr("provider_managed") listVolumesOptionsModel.OperatingSystemFamily = core.StringPtr("Ubuntu Server") listVolumesOptionsModel.OperatingSystemArchitecture = core.StringPtr("amd64") - listVolumesOptionsModel.ZoneName = core.StringPtr("testString") + listVolumesOptionsModel.ZoneName = core.StringPtr("us-south-1") listVolumesOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Expect response parsing to fail since we are receiving a text/plain response result, response, operationErr := vpcService.ListVolumes(listVolumesOptionsModel) @@ -47362,7 +47362,7 @@ var _ = Describe(`VpcV1`, func() { Expect(req.URL.Query()["encryption"]).To(Equal([]string{"provider_managed"})) Expect(req.URL.Query()["operating_system.family"]).To(Equal([]string{"Ubuntu Server"})) Expect(req.URL.Query()["operating_system.architecture"]).To(Equal([]string{"amd64"})) - Expect(req.URL.Query()["zone.name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["zone.name"]).To(Equal([]string{"us-south-1"})) // Sleep a short time to support a timeout test time.Sleep(100 * time.Millisecond) @@ -47391,7 +47391,7 @@ var _ = Describe(`VpcV1`, func() { listVolumesOptionsModel.Encryption = core.StringPtr("provider_managed") listVolumesOptionsModel.OperatingSystemFamily = core.StringPtr("Ubuntu Server") listVolumesOptionsModel.OperatingSystemArchitecture = core.StringPtr("amd64") - listVolumesOptionsModel.ZoneName = core.StringPtr("testString") + listVolumesOptionsModel.ZoneName = core.StringPtr("us-south-1") listVolumesOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with a Context to test a timeout error @@ -47437,7 +47437,7 @@ var _ = Describe(`VpcV1`, func() { Expect(req.URL.Query()["encryption"]).To(Equal([]string{"provider_managed"})) Expect(req.URL.Query()["operating_system.family"]).To(Equal([]string{"Ubuntu Server"})) Expect(req.URL.Query()["operating_system.architecture"]).To(Equal([]string{"amd64"})) - Expect(req.URL.Query()["zone.name"]).To(Equal([]string{"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) @@ -47468,7 +47468,7 @@ var _ = Describe(`VpcV1`, func() { listVolumesOptionsModel.Encryption = core.StringPtr("provider_managed") listVolumesOptionsModel.OperatingSystemFamily = core.StringPtr("Ubuntu Server") listVolumesOptionsModel.OperatingSystemArchitecture = core.StringPtr("amd64") - listVolumesOptionsModel.ZoneName = core.StringPtr("testString") + listVolumesOptionsModel.ZoneName = core.StringPtr("us-south-1") listVolumesOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with valid options model (positive test) @@ -47496,7 +47496,7 @@ var _ = Describe(`VpcV1`, func() { listVolumesOptionsModel.Encryption = core.StringPtr("provider_managed") listVolumesOptionsModel.OperatingSystemFamily = core.StringPtr("Ubuntu Server") listVolumesOptionsModel.OperatingSystemArchitecture = core.StringPtr("amd64") - listVolumesOptionsModel.ZoneName = core.StringPtr("testString") + listVolumesOptionsModel.ZoneName = core.StringPtr("us-south-1") listVolumesOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with empty URL (negative test) err := vpcService.SetServiceURL("") @@ -47538,7 +47538,7 @@ var _ = Describe(`VpcV1`, func() { listVolumesOptionsModel.Encryption = core.StringPtr("provider_managed") listVolumesOptionsModel.OperatingSystemFamily = core.StringPtr("Ubuntu Server") listVolumesOptionsModel.OperatingSystemArchitecture = core.StringPtr("amd64") - listVolumesOptionsModel.ZoneName = core.StringPtr("testString") + listVolumesOptionsModel.ZoneName = core.StringPtr("us-south-1") listVolumesOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation @@ -47621,7 +47621,7 @@ var _ = Describe(`VpcV1`, func() { Encryption: core.StringPtr("provider_managed"), OperatingSystemFamily: core.StringPtr("Ubuntu Server"), OperatingSystemArchitecture: core.StringPtr("amd64"), - ZoneName: core.StringPtr("testString"), + ZoneName: core.StringPtr("us-south-1"), } pager, err := vpcService.NewVolumesPager(listVolumesOptionsModel) @@ -47653,7 +47653,7 @@ var _ = Describe(`VpcV1`, func() { Encryption: core.StringPtr("provider_managed"), OperatingSystemFamily: core.StringPtr("Ubuntu Server"), OperatingSystemArchitecture: core.StringPtr("amd64"), - ZoneName: core.StringPtr("testString"), + ZoneName: core.StringPtr("us-south-1"), } pager, err := vpcService.NewVolumesPager(listVolumesOptionsModel) @@ -48802,7 +48802,7 @@ var _ = Describe(`VpcV1`, func() { Expect(req.URL.Query()["source_image.crn"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["sort"]).To(Equal([]string{"name"})) Expect(req.URL.Query()["backup_policy_plan.id"]).To(Equal([]string{"testString"})) - Expect(req.URL.Query()["clones[].zone.name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["clones[].zone.name"]).To(Equal([]string{"us-south-1"})) res.Header().Set("Content-type", "application/json") res.WriteHeader(200) fmt.Fprint(res, `} this is not valid json {`) @@ -48830,7 +48830,7 @@ var _ = Describe(`VpcV1`, func() { listSnapshotsOptionsModel.SourceImageCRN = core.StringPtr("testString") listSnapshotsOptionsModel.Sort = core.StringPtr("name") listSnapshotsOptionsModel.BackupPolicyPlanID = core.StringPtr("testString") - listSnapshotsOptionsModel.ClonesZoneName = core.StringPtr("testString") + listSnapshotsOptionsModel.ClonesZoneName = core.StringPtr("us-south-1") listSnapshotsOptionsModel.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.ListSnapshots(listSnapshotsOptionsModel) @@ -48875,7 +48875,7 @@ var _ = Describe(`VpcV1`, func() { Expect(req.URL.Query()["source_image.crn"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["sort"]).To(Equal([]string{"name"})) Expect(req.URL.Query()["backup_policy_plan.id"]).To(Equal([]string{"testString"})) - Expect(req.URL.Query()["clones[].zone.name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["clones[].zone.name"]).To(Equal([]string{"us-south-1"})) // Sleep a short time to support a timeout test time.Sleep(100 * time.Millisecond) @@ -48908,7 +48908,7 @@ var _ = Describe(`VpcV1`, func() { listSnapshotsOptionsModel.SourceImageCRN = core.StringPtr("testString") listSnapshotsOptionsModel.Sort = core.StringPtr("name") listSnapshotsOptionsModel.BackupPolicyPlanID = core.StringPtr("testString") - listSnapshotsOptionsModel.ClonesZoneName = core.StringPtr("testString") + listSnapshotsOptionsModel.ClonesZoneName = core.StringPtr("us-south-1") listSnapshotsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with a Context to test a timeout error @@ -48958,7 +48958,7 @@ var _ = Describe(`VpcV1`, func() { Expect(req.URL.Query()["source_image.crn"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["sort"]).To(Equal([]string{"name"})) Expect(req.URL.Query()["backup_policy_plan.id"]).To(Equal([]string{"testString"})) - Expect(req.URL.Query()["clones[].zone.name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["clones[].zone.name"]).To(Equal([]string{"us-south-1"})) // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) @@ -48993,7 +48993,7 @@ var _ = Describe(`VpcV1`, func() { listSnapshotsOptionsModel.SourceImageCRN = core.StringPtr("testString") listSnapshotsOptionsModel.Sort = core.StringPtr("name") listSnapshotsOptionsModel.BackupPolicyPlanID = core.StringPtr("testString") - listSnapshotsOptionsModel.ClonesZoneName = core.StringPtr("testString") + listSnapshotsOptionsModel.ClonesZoneName = core.StringPtr("us-south-1") listSnapshotsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with valid options model (positive test) @@ -49025,7 +49025,7 @@ var _ = Describe(`VpcV1`, func() { listSnapshotsOptionsModel.SourceImageCRN = core.StringPtr("testString") listSnapshotsOptionsModel.Sort = core.StringPtr("name") listSnapshotsOptionsModel.BackupPolicyPlanID = core.StringPtr("testString") - listSnapshotsOptionsModel.ClonesZoneName = core.StringPtr("testString") + listSnapshotsOptionsModel.ClonesZoneName = core.StringPtr("us-south-1") listSnapshotsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with empty URL (negative test) err := vpcService.SetServiceURL("") @@ -49071,7 +49071,7 @@ var _ = Describe(`VpcV1`, func() { listSnapshotsOptionsModel.SourceImageCRN = core.StringPtr("testString") listSnapshotsOptionsModel.Sort = core.StringPtr("name") listSnapshotsOptionsModel.BackupPolicyPlanID = core.StringPtr("testString") - listSnapshotsOptionsModel.ClonesZoneName = core.StringPtr("testString") + listSnapshotsOptionsModel.ClonesZoneName = core.StringPtr("us-south-1") listSnapshotsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation @@ -49158,7 +49158,7 @@ var _ = Describe(`VpcV1`, func() { SourceImageCRN: core.StringPtr("testString"), Sort: core.StringPtr("name"), BackupPolicyPlanID: core.StringPtr("testString"), - ClonesZoneName: core.StringPtr("testString"), + ClonesZoneName: core.StringPtr("us-south-1"), } pager, err := vpcService.NewSnapshotsPager(listSnapshotsOptionsModel) @@ -49194,7 +49194,7 @@ var _ = Describe(`VpcV1`, func() { SourceImageCRN: core.StringPtr("testString"), Sort: core.StringPtr("name"), BackupPolicyPlanID: core.StringPtr("testString"), - ClonesZoneName: core.StringPtr("testString"), + ClonesZoneName: core.StringPtr("us-south-1"), } pager, err := vpcService.NewSnapshotsPager(listSnapshotsOptionsModel) @@ -57170,7 +57170,7 @@ var _ = Describe(`VpcV1`, func() { Expect(req.URL.Query()["resource_group.id"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["vpc.id"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["vpc.crn"]).To(Equal([]string{"testString"})) - Expect(req.URL.Query()["vpc.name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["vpc.name"]).To(Equal([]string{"my-vpc"})) res.Header().Set("Content-type", "application/json") res.WriteHeader(200) fmt.Fprint(res, `} this is not valid json {`) @@ -57192,7 +57192,7 @@ var _ = Describe(`VpcV1`, func() { listSecurityGroupsOptionsModel.ResourceGroupID = core.StringPtr("testString") listSecurityGroupsOptionsModel.VPCID = core.StringPtr("testString") listSecurityGroupsOptionsModel.VPCCRN = core.StringPtr("testString") - listSecurityGroupsOptionsModel.VPCName = core.StringPtr("testString") + listSecurityGroupsOptionsModel.VPCName = core.StringPtr("my-vpc") listSecurityGroupsOptionsModel.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.ListSecurityGroups(listSecurityGroupsOptionsModel) @@ -57231,7 +57231,7 @@ var _ = Describe(`VpcV1`, func() { Expect(req.URL.Query()["resource_group.id"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["vpc.id"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["vpc.crn"]).To(Equal([]string{"testString"})) - Expect(req.URL.Query()["vpc.name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["vpc.name"]).To(Equal([]string{"my-vpc"})) // Sleep a short time to support a timeout test time.Sleep(100 * time.Millisecond) @@ -57258,7 +57258,7 @@ var _ = Describe(`VpcV1`, func() { listSecurityGroupsOptionsModel.ResourceGroupID = core.StringPtr("testString") listSecurityGroupsOptionsModel.VPCID = core.StringPtr("testString") listSecurityGroupsOptionsModel.VPCCRN = core.StringPtr("testString") - listSecurityGroupsOptionsModel.VPCName = core.StringPtr("testString") + listSecurityGroupsOptionsModel.VPCName = core.StringPtr("my-vpc") listSecurityGroupsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with a Context to test a timeout error @@ -57302,7 +57302,7 @@ var _ = Describe(`VpcV1`, func() { Expect(req.URL.Query()["resource_group.id"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["vpc.id"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["vpc.crn"]).To(Equal([]string{"testString"})) - Expect(req.URL.Query()["vpc.name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["vpc.name"]).To(Equal([]string{"my-vpc"})) // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) @@ -57331,7 +57331,7 @@ var _ = Describe(`VpcV1`, func() { listSecurityGroupsOptionsModel.ResourceGroupID = core.StringPtr("testString") listSecurityGroupsOptionsModel.VPCID = core.StringPtr("testString") listSecurityGroupsOptionsModel.VPCCRN = core.StringPtr("testString") - listSecurityGroupsOptionsModel.VPCName = core.StringPtr("testString") + listSecurityGroupsOptionsModel.VPCName = core.StringPtr("my-vpc") listSecurityGroupsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with valid options model (positive test) @@ -57357,7 +57357,7 @@ var _ = Describe(`VpcV1`, func() { listSecurityGroupsOptionsModel.ResourceGroupID = core.StringPtr("testString") listSecurityGroupsOptionsModel.VPCID = core.StringPtr("testString") listSecurityGroupsOptionsModel.VPCCRN = core.StringPtr("testString") - listSecurityGroupsOptionsModel.VPCName = core.StringPtr("testString") + listSecurityGroupsOptionsModel.VPCName = core.StringPtr("my-vpc") listSecurityGroupsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with empty URL (negative test) err := vpcService.SetServiceURL("") @@ -57397,7 +57397,7 @@ var _ = Describe(`VpcV1`, func() { listSecurityGroupsOptionsModel.ResourceGroupID = core.StringPtr("testString") listSecurityGroupsOptionsModel.VPCID = core.StringPtr("testString") listSecurityGroupsOptionsModel.VPCCRN = core.StringPtr("testString") - listSecurityGroupsOptionsModel.VPCName = core.StringPtr("testString") + listSecurityGroupsOptionsModel.VPCName = core.StringPtr("my-vpc") listSecurityGroupsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation @@ -57478,7 +57478,7 @@ var _ = Describe(`VpcV1`, func() { ResourceGroupID: core.StringPtr("testString"), VPCID: core.StringPtr("testString"), VPCCRN: core.StringPtr("testString"), - VPCName: core.StringPtr("testString"), + VPCName: core.StringPtr("my-vpc"), } pager, err := vpcService.NewSecurityGroupsPager(listSecurityGroupsOptionsModel) @@ -57508,7 +57508,7 @@ var _ = Describe(`VpcV1`, func() { ResourceGroupID: core.StringPtr("testString"), VPCID: core.StringPtr("testString"), VPCCRN: core.StringPtr("testString"), - VPCName: core.StringPtr("testString"), + VPCName: core.StringPtr("my-vpc"), } pager, err := vpcService.NewSecurityGroupsPager(listSecurityGroupsOptionsModel) @@ -60915,7 +60915,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the CreateIkePolicyOptions model createIkePolicyOptionsModel := new(vpcv1.CreateIkePolicyOptions) - createIkePolicyOptionsModel.AuthenticationAlgorithm = core.StringPtr("md5") + createIkePolicyOptionsModel.AuthenticationAlgorithm = core.StringPtr("sha256") createIkePolicyOptionsModel.DhGroup = core.Int64Ptr(int64(14)) createIkePolicyOptionsModel.EncryptionAlgorithm = core.StringPtr("aes128") createIkePolicyOptionsModel.IkeVersion = core.Int64Ptr(int64(1)) @@ -60996,7 +60996,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the CreateIkePolicyOptions model createIkePolicyOptionsModel := new(vpcv1.CreateIkePolicyOptions) - createIkePolicyOptionsModel.AuthenticationAlgorithm = core.StringPtr("md5") + createIkePolicyOptionsModel.AuthenticationAlgorithm = core.StringPtr("sha256") createIkePolicyOptionsModel.DhGroup = core.Int64Ptr(int64(14)) createIkePolicyOptionsModel.EncryptionAlgorithm = core.StringPtr("aes128") createIkePolicyOptionsModel.IkeVersion = core.Int64Ptr(int64(1)) @@ -61084,7 +61084,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the CreateIkePolicyOptions model createIkePolicyOptionsModel := new(vpcv1.CreateIkePolicyOptions) - createIkePolicyOptionsModel.AuthenticationAlgorithm = core.StringPtr("md5") + createIkePolicyOptionsModel.AuthenticationAlgorithm = core.StringPtr("sha256") createIkePolicyOptionsModel.DhGroup = core.Int64Ptr(int64(14)) createIkePolicyOptionsModel.EncryptionAlgorithm = core.StringPtr("aes128") createIkePolicyOptionsModel.IkeVersion = core.Int64Ptr(int64(1)) @@ -61115,7 +61115,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the CreateIkePolicyOptions model createIkePolicyOptionsModel := new(vpcv1.CreateIkePolicyOptions) - createIkePolicyOptionsModel.AuthenticationAlgorithm = core.StringPtr("md5") + createIkePolicyOptionsModel.AuthenticationAlgorithm = core.StringPtr("sha256") createIkePolicyOptionsModel.DhGroup = core.Int64Ptr(int64(14)) createIkePolicyOptionsModel.EncryptionAlgorithm = core.StringPtr("aes128") createIkePolicyOptionsModel.IkeVersion = core.Int64Ptr(int64(1)) @@ -61167,7 +61167,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the CreateIkePolicyOptions model createIkePolicyOptionsModel := new(vpcv1.CreateIkePolicyOptions) - createIkePolicyOptionsModel.AuthenticationAlgorithm = core.StringPtr("md5") + createIkePolicyOptionsModel.AuthenticationAlgorithm = core.StringPtr("sha256") createIkePolicyOptionsModel.DhGroup = core.Int64Ptr(int64(14)) createIkePolicyOptionsModel.EncryptionAlgorithm = core.StringPtr("aes128") createIkePolicyOptionsModel.IkeVersion = core.Int64Ptr(int64(1)) @@ -63524,7 +63524,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/vpn_gateways?limit=20"}, "limit": 20, "next": {"href": "https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways?start=9d5a91a3e2cbd233b5a5b33436855ed&limit=20"}, "total_count": 132, "vpn_gateways": [{"connections": [{"deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b/connections/93487806-7743-4c46-81d6-72869883ea0b", "id": "a10a5771-dc23-442c-8460-c3601d8542f7", "name": "my-vpn-connection", "resource_type": "vpn_gateway_connection"}], "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/123456::vpn:ddf51bec-3424-11e8-b467-0ed5f89f718b", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b", "id": "ddf51bec-3424-11e8-b467-0ed5f89f718b", "members": [{"private_ip": {"address": "192.168.3.4"}, "public_ip": {"address": "192.168.3.4"}, "role": "active", "status": "available"}], "name": "my-vpn-gateway", "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "vpn_gateway", "status": "available", "subnet": {"crn": "crn:v1:bluemix:public:is:us-south-1:a/123456::subnet:7ec86020-1c6e-4889-b3f0-a15f2e50f87e", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/subnets/7ec86020-1c6e-4889-b3f0-a15f2e50f87e", "id": "7ec86020-1c6e-4889-b3f0-a15f2e50f87e", "name": "my-subnet", "resource_type": "subnet"}, "vpc": {"crn": "crn:v1:bluemix:public:is:us-south:a/123456::vpc: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/4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "resource_type": "vpc"}, "mode": "route"}]}`) + fmt.Fprintf(res, "%s", `{"first": {"href": "https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways?limit=20"}, "limit": 20, "next": {"href": "https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways?start=9d5a91a3e2cbd233b5a5b33436855ed&limit=20"}, "total_count": 132, "vpn_gateways": [{"connections": [{"deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b/connections/93487806-7743-4c46-81d6-72869883ea0b", "id": "a10a5771-dc23-442c-8460-c3601d8542f7", "name": "my-vpn-connection", "resource_type": "vpn_gateway_connection"}], "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/123456::vpn:ddf51bec-3424-11e8-b467-0ed5f89f718b", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b", "id": "ddf51bec-3424-11e8-b467-0ed5f89f718b", "members": [{"private_ip": {"address": "192.168.3.4", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/subnets/7ec86020-1c6e-4889-b3f0-a15f2e50f87e/reserved_ips/6d353a0f-aeb1-4ae1-832e-1110d10981bb", "id": "6d353a0f-aeb1-4ae1-832e-1110d10981bb", "name": "my-reserved-ip", "resource_type": "subnet_reserved_ip"}, "public_ip": {"address": "192.168.3.4"}, "role": "active", "status": "available"}], "name": "my-vpn-gateway", "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "vpn_gateway", "status": "available", "subnet": {"crn": "crn:v1:bluemix:public:is:us-south-1:a/123456::subnet:7ec86020-1c6e-4889-b3f0-a15f2e50f87e", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/subnets/7ec86020-1c6e-4889-b3f0-a15f2e50f87e", "id": "7ec86020-1c6e-4889-b3f0-a15f2e50f87e", "name": "my-subnet", "resource_type": "subnet"}, "vpc": {"crn": "crn:v1:bluemix:public:is:us-south:a/123456::vpc: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/4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "resource_type": "vpc"}, "mode": "route"}]}`) })) }) It(`Invoke ListVPNGateways successfully with retries`, func() { @@ -63590,7 +63590,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/vpn_gateways?limit=20"}, "limit": 20, "next": {"href": "https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways?start=9d5a91a3e2cbd233b5a5b33436855ed&limit=20"}, "total_count": 132, "vpn_gateways": [{"connections": [{"deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b/connections/93487806-7743-4c46-81d6-72869883ea0b", "id": "a10a5771-dc23-442c-8460-c3601d8542f7", "name": "my-vpn-connection", "resource_type": "vpn_gateway_connection"}], "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/123456::vpn:ddf51bec-3424-11e8-b467-0ed5f89f718b", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b", "id": "ddf51bec-3424-11e8-b467-0ed5f89f718b", "members": [{"private_ip": {"address": "192.168.3.4"}, "public_ip": {"address": "192.168.3.4"}, "role": "active", "status": "available"}], "name": "my-vpn-gateway", "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "vpn_gateway", "status": "available", "subnet": {"crn": "crn:v1:bluemix:public:is:us-south-1:a/123456::subnet:7ec86020-1c6e-4889-b3f0-a15f2e50f87e", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/subnets/7ec86020-1c6e-4889-b3f0-a15f2e50f87e", "id": "7ec86020-1c6e-4889-b3f0-a15f2e50f87e", "name": "my-subnet", "resource_type": "subnet"}, "vpc": {"crn": "crn:v1:bluemix:public:is:us-south:a/123456::vpc: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/4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "resource_type": "vpc"}, "mode": "route"}]}`) + fmt.Fprintf(res, "%s", `{"first": {"href": "https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways?limit=20"}, "limit": 20, "next": {"href": "https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways?start=9d5a91a3e2cbd233b5a5b33436855ed&limit=20"}, "total_count": 132, "vpn_gateways": [{"connections": [{"deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b/connections/93487806-7743-4c46-81d6-72869883ea0b", "id": "a10a5771-dc23-442c-8460-c3601d8542f7", "name": "my-vpn-connection", "resource_type": "vpn_gateway_connection"}], "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/123456::vpn:ddf51bec-3424-11e8-b467-0ed5f89f718b", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b", "id": "ddf51bec-3424-11e8-b467-0ed5f89f718b", "members": [{"private_ip": {"address": "192.168.3.4", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/subnets/7ec86020-1c6e-4889-b3f0-a15f2e50f87e/reserved_ips/6d353a0f-aeb1-4ae1-832e-1110d10981bb", "id": "6d353a0f-aeb1-4ae1-832e-1110d10981bb", "name": "my-reserved-ip", "resource_type": "subnet_reserved_ip"}, "public_ip": {"address": "192.168.3.4"}, "role": "active", "status": "available"}], "name": "my-vpn-gateway", "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "vpn_gateway", "status": "available", "subnet": {"crn": "crn:v1:bluemix:public:is:us-south-1:a/123456::subnet:7ec86020-1c6e-4889-b3f0-a15f2e50f87e", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/subnets/7ec86020-1c6e-4889-b3f0-a15f2e50f87e", "id": "7ec86020-1c6e-4889-b3f0-a15f2e50f87e", "name": "my-subnet", "resource_type": "subnet"}, "vpc": {"crn": "crn:v1:bluemix:public:is:us-south:a/123456::vpc: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/4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "resource_type": "vpc"}, "mode": "route"}]}`) })) }) It(`Invoke ListVPNGateways successfully`, func() { @@ -63737,9 +63737,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,"vpn_gateways":[{"connections":[{"deleted":{"more_info":"https://cloud.ibm.com/apidocs/vpc#deleted-resources"},"href":"https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b/connections/93487806-7743-4c46-81d6-72869883ea0b","id":"a10a5771-dc23-442c-8460-c3601d8542f7","name":"my-vpn-connection","resource_type":"vpn_gateway_connection"}],"created_at":"2019-01-01T12:00:00.000Z","crn":"crn:v1:bluemix:public:is:us-south:a/123456::vpn:ddf51bec-3424-11e8-b467-0ed5f89f718b","href":"https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b","id":"ddf51bec-3424-11e8-b467-0ed5f89f718b","members":[{"private_ip":{"address":"192.168.3.4"},"public_ip":{"address":"192.168.3.4"},"role":"active","status":"available"}],"name":"my-vpn-gateway","resource_group":{"href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345","id":"fee82deba12e4c0fb69c3b09d1f12345","name":"my-resource-group"},"resource_type":"vpn_gateway","status":"available","subnet":{"crn":"crn:v1:bluemix:public:is:us-south-1:a/123456::subnet:7ec86020-1c6e-4889-b3f0-a15f2e50f87e","deleted":{"more_info":"https://cloud.ibm.com/apidocs/vpc#deleted-resources"},"href":"https://us-south.iaas.cloud.ibm.com/v1/subnets/7ec86020-1c6e-4889-b3f0-a15f2e50f87e","id":"7ec86020-1c6e-4889-b3f0-a15f2e50f87e","name":"my-subnet","resource_type":"subnet"},"vpc":{"crn":"crn:v1:bluemix:public:is:us-south:a/123456::vpc: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/4727d842-f94f-4a2d-824a-9bc9b02c523b","id":"4727d842-f94f-4a2d-824a-9bc9b02c523b","name":"my-vpc","resource_type":"vpc"},"mode":"route"}]}`) + fmt.Fprintf(res, "%s", `{"next":{"href":"https://myhost.com/somePath?start=1"},"total_count":2,"limit":1,"vpn_gateways":[{"connections":[{"deleted":{"more_info":"https://cloud.ibm.com/apidocs/vpc#deleted-resources"},"href":"https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b/connections/93487806-7743-4c46-81d6-72869883ea0b","id":"a10a5771-dc23-442c-8460-c3601d8542f7","name":"my-vpn-connection","resource_type":"vpn_gateway_connection"}],"created_at":"2019-01-01T12:00:00.000Z","crn":"crn:v1:bluemix:public:is:us-south:a/123456::vpn:ddf51bec-3424-11e8-b467-0ed5f89f718b","href":"https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b","id":"ddf51bec-3424-11e8-b467-0ed5f89f718b","members":[{"private_ip":{"address":"192.168.3.4","deleted":{"more_info":"https://cloud.ibm.com/apidocs/vpc#deleted-resources"},"href":"https://us-south.iaas.cloud.ibm.com/v1/subnets/7ec86020-1c6e-4889-b3f0-a15f2e50f87e/reserved_ips/6d353a0f-aeb1-4ae1-832e-1110d10981bb","id":"6d353a0f-aeb1-4ae1-832e-1110d10981bb","name":"my-reserved-ip","resource_type":"subnet_reserved_ip"},"public_ip":{"address":"192.168.3.4"},"role":"active","status":"available"}],"name":"my-vpn-gateway","resource_group":{"href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345","id":"fee82deba12e4c0fb69c3b09d1f12345","name":"my-resource-group"},"resource_type":"vpn_gateway","status":"available","subnet":{"crn":"crn:v1:bluemix:public:is:us-south-1:a/123456::subnet:7ec86020-1c6e-4889-b3f0-a15f2e50f87e","deleted":{"more_info":"https://cloud.ibm.com/apidocs/vpc#deleted-resources"},"href":"https://us-south.iaas.cloud.ibm.com/v1/subnets/7ec86020-1c6e-4889-b3f0-a15f2e50f87e","id":"7ec86020-1c6e-4889-b3f0-a15f2e50f87e","name":"my-subnet","resource_type":"subnet"},"vpc":{"crn":"crn:v1:bluemix:public:is:us-south:a/123456::vpc: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/4727d842-f94f-4a2d-824a-9bc9b02c523b","id":"4727d842-f94f-4a2d-824a-9bc9b02c523b","name":"my-vpc","resource_type":"vpc"},"mode":"route"}]}`) } else if requestNumber == 2 { - fmt.Fprintf(res, "%s", `{"total_count":2,"limit":1,"vpn_gateways":[{"connections":[{"deleted":{"more_info":"https://cloud.ibm.com/apidocs/vpc#deleted-resources"},"href":"https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b/connections/93487806-7743-4c46-81d6-72869883ea0b","id":"a10a5771-dc23-442c-8460-c3601d8542f7","name":"my-vpn-connection","resource_type":"vpn_gateway_connection"}],"created_at":"2019-01-01T12:00:00.000Z","crn":"crn:v1:bluemix:public:is:us-south:a/123456::vpn:ddf51bec-3424-11e8-b467-0ed5f89f718b","href":"https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b","id":"ddf51bec-3424-11e8-b467-0ed5f89f718b","members":[{"private_ip":{"address":"192.168.3.4"},"public_ip":{"address":"192.168.3.4"},"role":"active","status":"available"}],"name":"my-vpn-gateway","resource_group":{"href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345","id":"fee82deba12e4c0fb69c3b09d1f12345","name":"my-resource-group"},"resource_type":"vpn_gateway","status":"available","subnet":{"crn":"crn:v1:bluemix:public:is:us-south-1:a/123456::subnet:7ec86020-1c6e-4889-b3f0-a15f2e50f87e","deleted":{"more_info":"https://cloud.ibm.com/apidocs/vpc#deleted-resources"},"href":"https://us-south.iaas.cloud.ibm.com/v1/subnets/7ec86020-1c6e-4889-b3f0-a15f2e50f87e","id":"7ec86020-1c6e-4889-b3f0-a15f2e50f87e","name":"my-subnet","resource_type":"subnet"},"vpc":{"crn":"crn:v1:bluemix:public:is:us-south:a/123456::vpc: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/4727d842-f94f-4a2d-824a-9bc9b02c523b","id":"4727d842-f94f-4a2d-824a-9bc9b02c523b","name":"my-vpc","resource_type":"vpc"},"mode":"route"}]}`) + fmt.Fprintf(res, "%s", `{"total_count":2,"limit":1,"vpn_gateways":[{"connections":[{"deleted":{"more_info":"https://cloud.ibm.com/apidocs/vpc#deleted-resources"},"href":"https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b/connections/93487806-7743-4c46-81d6-72869883ea0b","id":"a10a5771-dc23-442c-8460-c3601d8542f7","name":"my-vpn-connection","resource_type":"vpn_gateway_connection"}],"created_at":"2019-01-01T12:00:00.000Z","crn":"crn:v1:bluemix:public:is:us-south:a/123456::vpn:ddf51bec-3424-11e8-b467-0ed5f89f718b","href":"https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b","id":"ddf51bec-3424-11e8-b467-0ed5f89f718b","members":[{"private_ip":{"address":"192.168.3.4","deleted":{"more_info":"https://cloud.ibm.com/apidocs/vpc#deleted-resources"},"href":"https://us-south.iaas.cloud.ibm.com/v1/subnets/7ec86020-1c6e-4889-b3f0-a15f2e50f87e/reserved_ips/6d353a0f-aeb1-4ae1-832e-1110d10981bb","id":"6d353a0f-aeb1-4ae1-832e-1110d10981bb","name":"my-reserved-ip","resource_type":"subnet_reserved_ip"},"public_ip":{"address":"192.168.3.4"},"role":"active","status":"available"}],"name":"my-vpn-gateway","resource_group":{"href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345","id":"fee82deba12e4c0fb69c3b09d1f12345","name":"my-resource-group"},"resource_type":"vpn_gateway","status":"available","subnet":{"crn":"crn:v1:bluemix:public:is:us-south-1:a/123456::subnet:7ec86020-1c6e-4889-b3f0-a15f2e50f87e","deleted":{"more_info":"https://cloud.ibm.com/apidocs/vpc#deleted-resources"},"href":"https://us-south.iaas.cloud.ibm.com/v1/subnets/7ec86020-1c6e-4889-b3f0-a15f2e50f87e","id":"7ec86020-1c6e-4889-b3f0-a15f2e50f87e","name":"my-subnet","resource_type":"subnet"},"vpc":{"crn":"crn:v1:bluemix:public:is:us-south:a/123456::vpc: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/4727d842-f94f-4a2d-824a-9bc9b02c523b","id":"4727d842-f94f-4a2d-824a-9bc9b02c523b","name":"my-vpc","resource_type":"vpc"},"mode":"route"}]}`) } else { res.WriteHeader(400) } @@ -63901,7 +63901,7 @@ var _ = Describe(`VpcV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(201) - fmt.Fprintf(res, "%s", `{"connections": [{"deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b/connections/93487806-7743-4c46-81d6-72869883ea0b", "id": "a10a5771-dc23-442c-8460-c3601d8542f7", "name": "my-vpn-connection", "resource_type": "vpn_gateway_connection"}], "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/123456::vpn:ddf51bec-3424-11e8-b467-0ed5f89f718b", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b", "id": "ddf51bec-3424-11e8-b467-0ed5f89f718b", "members": [{"private_ip": {"address": "192.168.3.4"}, "public_ip": {"address": "192.168.3.4"}, "role": "active", "status": "available"}], "name": "my-vpn-gateway", "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "vpn_gateway", "status": "available", "subnet": {"crn": "crn:v1:bluemix:public:is:us-south-1:a/123456::subnet:7ec86020-1c6e-4889-b3f0-a15f2e50f87e", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/subnets/7ec86020-1c6e-4889-b3f0-a15f2e50f87e", "id": "7ec86020-1c6e-4889-b3f0-a15f2e50f87e", "name": "my-subnet", "resource_type": "subnet"}, "vpc": {"crn": "crn:v1:bluemix:public:is:us-south:a/123456::vpc: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/4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "resource_type": "vpc"}, "mode": "route"}`) + fmt.Fprintf(res, "%s", `{"connections": [{"deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b/connections/93487806-7743-4c46-81d6-72869883ea0b", "id": "a10a5771-dc23-442c-8460-c3601d8542f7", "name": "my-vpn-connection", "resource_type": "vpn_gateway_connection"}], "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/123456::vpn:ddf51bec-3424-11e8-b467-0ed5f89f718b", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b", "id": "ddf51bec-3424-11e8-b467-0ed5f89f718b", "members": [{"private_ip": {"address": "192.168.3.4", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/subnets/7ec86020-1c6e-4889-b3f0-a15f2e50f87e/reserved_ips/6d353a0f-aeb1-4ae1-832e-1110d10981bb", "id": "6d353a0f-aeb1-4ae1-832e-1110d10981bb", "name": "my-reserved-ip", "resource_type": "subnet_reserved_ip"}, "public_ip": {"address": "192.168.3.4"}, "role": "active", "status": "available"}], "name": "my-vpn-gateway", "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "vpn_gateway", "status": "available", "subnet": {"crn": "crn:v1:bluemix:public:is:us-south-1:a/123456::subnet:7ec86020-1c6e-4889-b3f0-a15f2e50f87e", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/subnets/7ec86020-1c6e-4889-b3f0-a15f2e50f87e", "id": "7ec86020-1c6e-4889-b3f0-a15f2e50f87e", "name": "my-subnet", "resource_type": "subnet"}, "vpc": {"crn": "crn:v1:bluemix:public:is:us-south:a/123456::vpc: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/4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "resource_type": "vpc"}, "mode": "route"}`) })) }) It(`Invoke CreateVPNGateway successfully with retries`, func() { @@ -63989,7 +63989,7 @@ var _ = Describe(`VpcV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(201) - fmt.Fprintf(res, "%s", `{"connections": [{"deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b/connections/93487806-7743-4c46-81d6-72869883ea0b", "id": "a10a5771-dc23-442c-8460-c3601d8542f7", "name": "my-vpn-connection", "resource_type": "vpn_gateway_connection"}], "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/123456::vpn:ddf51bec-3424-11e8-b467-0ed5f89f718b", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b", "id": "ddf51bec-3424-11e8-b467-0ed5f89f718b", "members": [{"private_ip": {"address": "192.168.3.4"}, "public_ip": {"address": "192.168.3.4"}, "role": "active", "status": "available"}], "name": "my-vpn-gateway", "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "vpn_gateway", "status": "available", "subnet": {"crn": "crn:v1:bluemix:public:is:us-south-1:a/123456::subnet:7ec86020-1c6e-4889-b3f0-a15f2e50f87e", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/subnets/7ec86020-1c6e-4889-b3f0-a15f2e50f87e", "id": "7ec86020-1c6e-4889-b3f0-a15f2e50f87e", "name": "my-subnet", "resource_type": "subnet"}, "vpc": {"crn": "crn:v1:bluemix:public:is:us-south:a/123456::vpc: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/4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "resource_type": "vpc"}, "mode": "route"}`) + fmt.Fprintf(res, "%s", `{"connections": [{"deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b/connections/93487806-7743-4c46-81d6-72869883ea0b", "id": "a10a5771-dc23-442c-8460-c3601d8542f7", "name": "my-vpn-connection", "resource_type": "vpn_gateway_connection"}], "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/123456::vpn:ddf51bec-3424-11e8-b467-0ed5f89f718b", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b", "id": "ddf51bec-3424-11e8-b467-0ed5f89f718b", "members": [{"private_ip": {"address": "192.168.3.4", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/subnets/7ec86020-1c6e-4889-b3f0-a15f2e50f87e/reserved_ips/6d353a0f-aeb1-4ae1-832e-1110d10981bb", "id": "6d353a0f-aeb1-4ae1-832e-1110d10981bb", "name": "my-reserved-ip", "resource_type": "subnet_reserved_ip"}, "public_ip": {"address": "192.168.3.4"}, "role": "active", "status": "available"}], "name": "my-vpn-gateway", "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "vpn_gateway", "status": "available", "subnet": {"crn": "crn:v1:bluemix:public:is:us-south-1:a/123456::subnet:7ec86020-1c6e-4889-b3f0-a15f2e50f87e", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/subnets/7ec86020-1c6e-4889-b3f0-a15f2e50f87e", "id": "7ec86020-1c6e-4889-b3f0-a15f2e50f87e", "name": "my-subnet", "resource_type": "subnet"}, "vpc": {"crn": "crn:v1:bluemix:public:is:us-south:a/123456::vpc: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/4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "resource_type": "vpc"}, "mode": "route"}`) })) }) It(`Invoke CreateVPNGateway successfully`, func() { @@ -64275,7 +64275,7 @@ var _ = Describe(`VpcV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"connections": [{"deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b/connections/93487806-7743-4c46-81d6-72869883ea0b", "id": "a10a5771-dc23-442c-8460-c3601d8542f7", "name": "my-vpn-connection", "resource_type": "vpn_gateway_connection"}], "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/123456::vpn:ddf51bec-3424-11e8-b467-0ed5f89f718b", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b", "id": "ddf51bec-3424-11e8-b467-0ed5f89f718b", "members": [{"private_ip": {"address": "192.168.3.4"}, "public_ip": {"address": "192.168.3.4"}, "role": "active", "status": "available"}], "name": "my-vpn-gateway", "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "vpn_gateway", "status": "available", "subnet": {"crn": "crn:v1:bluemix:public:is:us-south-1:a/123456::subnet:7ec86020-1c6e-4889-b3f0-a15f2e50f87e", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/subnets/7ec86020-1c6e-4889-b3f0-a15f2e50f87e", "id": "7ec86020-1c6e-4889-b3f0-a15f2e50f87e", "name": "my-subnet", "resource_type": "subnet"}, "vpc": {"crn": "crn:v1:bluemix:public:is:us-south:a/123456::vpc: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/4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "resource_type": "vpc"}, "mode": "route"}`) + fmt.Fprintf(res, "%s", `{"connections": [{"deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b/connections/93487806-7743-4c46-81d6-72869883ea0b", "id": "a10a5771-dc23-442c-8460-c3601d8542f7", "name": "my-vpn-connection", "resource_type": "vpn_gateway_connection"}], "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/123456::vpn:ddf51bec-3424-11e8-b467-0ed5f89f718b", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b", "id": "ddf51bec-3424-11e8-b467-0ed5f89f718b", "members": [{"private_ip": {"address": "192.168.3.4", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/subnets/7ec86020-1c6e-4889-b3f0-a15f2e50f87e/reserved_ips/6d353a0f-aeb1-4ae1-832e-1110d10981bb", "id": "6d353a0f-aeb1-4ae1-832e-1110d10981bb", "name": "my-reserved-ip", "resource_type": "subnet_reserved_ip"}, "public_ip": {"address": "192.168.3.4"}, "role": "active", "status": "available"}], "name": "my-vpn-gateway", "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "vpn_gateway", "status": "available", "subnet": {"crn": "crn:v1:bluemix:public:is:us-south-1:a/123456::subnet:7ec86020-1c6e-4889-b3f0-a15f2e50f87e", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/subnets/7ec86020-1c6e-4889-b3f0-a15f2e50f87e", "id": "7ec86020-1c6e-4889-b3f0-a15f2e50f87e", "name": "my-subnet", "resource_type": "subnet"}, "vpc": {"crn": "crn:v1:bluemix:public:is:us-south:a/123456::vpc: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/4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "resource_type": "vpc"}, "mode": "route"}`) })) }) It(`Invoke GetVPNGateway successfully with retries`, func() { @@ -64332,7 +64332,7 @@ var _ = Describe(`VpcV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"connections": [{"deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b/connections/93487806-7743-4c46-81d6-72869883ea0b", "id": "a10a5771-dc23-442c-8460-c3601d8542f7", "name": "my-vpn-connection", "resource_type": "vpn_gateway_connection"}], "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/123456::vpn:ddf51bec-3424-11e8-b467-0ed5f89f718b", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b", "id": "ddf51bec-3424-11e8-b467-0ed5f89f718b", "members": [{"private_ip": {"address": "192.168.3.4"}, "public_ip": {"address": "192.168.3.4"}, "role": "active", "status": "available"}], "name": "my-vpn-gateway", "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "vpn_gateway", "status": "available", "subnet": {"crn": "crn:v1:bluemix:public:is:us-south-1:a/123456::subnet:7ec86020-1c6e-4889-b3f0-a15f2e50f87e", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/subnets/7ec86020-1c6e-4889-b3f0-a15f2e50f87e", "id": "7ec86020-1c6e-4889-b3f0-a15f2e50f87e", "name": "my-subnet", "resource_type": "subnet"}, "vpc": {"crn": "crn:v1:bluemix:public:is:us-south:a/123456::vpc: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/4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "resource_type": "vpc"}, "mode": "route"}`) + fmt.Fprintf(res, "%s", `{"connections": [{"deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b/connections/93487806-7743-4c46-81d6-72869883ea0b", "id": "a10a5771-dc23-442c-8460-c3601d8542f7", "name": "my-vpn-connection", "resource_type": "vpn_gateway_connection"}], "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/123456::vpn:ddf51bec-3424-11e8-b467-0ed5f89f718b", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b", "id": "ddf51bec-3424-11e8-b467-0ed5f89f718b", "members": [{"private_ip": {"address": "192.168.3.4", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/subnets/7ec86020-1c6e-4889-b3f0-a15f2e50f87e/reserved_ips/6d353a0f-aeb1-4ae1-832e-1110d10981bb", "id": "6d353a0f-aeb1-4ae1-832e-1110d10981bb", "name": "my-reserved-ip", "resource_type": "subnet_reserved_ip"}, "public_ip": {"address": "192.168.3.4"}, "role": "active", "status": "available"}], "name": "my-vpn-gateway", "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "vpn_gateway", "status": "available", "subnet": {"crn": "crn:v1:bluemix:public:is:us-south-1:a/123456::subnet:7ec86020-1c6e-4889-b3f0-a15f2e50f87e", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/subnets/7ec86020-1c6e-4889-b3f0-a15f2e50f87e", "id": "7ec86020-1c6e-4889-b3f0-a15f2e50f87e", "name": "my-subnet", "resource_type": "subnet"}, "vpc": {"crn": "crn:v1:bluemix:public:is:us-south:a/123456::vpc: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/4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "resource_type": "vpc"}, "mode": "route"}`) })) }) It(`Invoke GetVPNGateway successfully`, func() { @@ -64523,7 +64523,7 @@ var _ = Describe(`VpcV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"connections": [{"deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b/connections/93487806-7743-4c46-81d6-72869883ea0b", "id": "a10a5771-dc23-442c-8460-c3601d8542f7", "name": "my-vpn-connection", "resource_type": "vpn_gateway_connection"}], "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/123456::vpn:ddf51bec-3424-11e8-b467-0ed5f89f718b", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b", "id": "ddf51bec-3424-11e8-b467-0ed5f89f718b", "members": [{"private_ip": {"address": "192.168.3.4"}, "public_ip": {"address": "192.168.3.4"}, "role": "active", "status": "available"}], "name": "my-vpn-gateway", "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "vpn_gateway", "status": "available", "subnet": {"crn": "crn:v1:bluemix:public:is:us-south-1:a/123456::subnet:7ec86020-1c6e-4889-b3f0-a15f2e50f87e", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/subnets/7ec86020-1c6e-4889-b3f0-a15f2e50f87e", "id": "7ec86020-1c6e-4889-b3f0-a15f2e50f87e", "name": "my-subnet", "resource_type": "subnet"}, "vpc": {"crn": "crn:v1:bluemix:public:is:us-south:a/123456::vpc: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/4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "resource_type": "vpc"}, "mode": "route"}`) + fmt.Fprintf(res, "%s", `{"connections": [{"deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b/connections/93487806-7743-4c46-81d6-72869883ea0b", "id": "a10a5771-dc23-442c-8460-c3601d8542f7", "name": "my-vpn-connection", "resource_type": "vpn_gateway_connection"}], "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/123456::vpn:ddf51bec-3424-11e8-b467-0ed5f89f718b", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b", "id": "ddf51bec-3424-11e8-b467-0ed5f89f718b", "members": [{"private_ip": {"address": "192.168.3.4", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/subnets/7ec86020-1c6e-4889-b3f0-a15f2e50f87e/reserved_ips/6d353a0f-aeb1-4ae1-832e-1110d10981bb", "id": "6d353a0f-aeb1-4ae1-832e-1110d10981bb", "name": "my-reserved-ip", "resource_type": "subnet_reserved_ip"}, "public_ip": {"address": "192.168.3.4"}, "role": "active", "status": "available"}], "name": "my-vpn-gateway", "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "vpn_gateway", "status": "available", "subnet": {"crn": "crn:v1:bluemix:public:is:us-south-1:a/123456::subnet:7ec86020-1c6e-4889-b3f0-a15f2e50f87e", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/subnets/7ec86020-1c6e-4889-b3f0-a15f2e50f87e", "id": "7ec86020-1c6e-4889-b3f0-a15f2e50f87e", "name": "my-subnet", "resource_type": "subnet"}, "vpc": {"crn": "crn:v1:bluemix:public:is:us-south:a/123456::vpc: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/4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "resource_type": "vpc"}, "mode": "route"}`) })) }) It(`Invoke UpdateVPNGateway successfully with retries`, func() { @@ -64603,7 +64603,7 @@ var _ = Describe(`VpcV1`, func() { // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) - fmt.Fprintf(res, "%s", `{"connections": [{"deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b/connections/93487806-7743-4c46-81d6-72869883ea0b", "id": "a10a5771-dc23-442c-8460-c3601d8542f7", "name": "my-vpn-connection", "resource_type": "vpn_gateway_connection"}], "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/123456::vpn:ddf51bec-3424-11e8-b467-0ed5f89f718b", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b", "id": "ddf51bec-3424-11e8-b467-0ed5f89f718b", "members": [{"private_ip": {"address": "192.168.3.4"}, "public_ip": {"address": "192.168.3.4"}, "role": "active", "status": "available"}], "name": "my-vpn-gateway", "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "vpn_gateway", "status": "available", "subnet": {"crn": "crn:v1:bluemix:public:is:us-south-1:a/123456::subnet:7ec86020-1c6e-4889-b3f0-a15f2e50f87e", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/subnets/7ec86020-1c6e-4889-b3f0-a15f2e50f87e", "id": "7ec86020-1c6e-4889-b3f0-a15f2e50f87e", "name": "my-subnet", "resource_type": "subnet"}, "vpc": {"crn": "crn:v1:bluemix:public:is:us-south:a/123456::vpc: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/4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "resource_type": "vpc"}, "mode": "route"}`) + fmt.Fprintf(res, "%s", `{"connections": [{"deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b/connections/93487806-7743-4c46-81d6-72869883ea0b", "id": "a10a5771-dc23-442c-8460-c3601d8542f7", "name": "my-vpn-connection", "resource_type": "vpn_gateway_connection"}], "created_at": "2019-01-01T12:00:00.000Z", "crn": "crn:v1:bluemix:public:is:us-south:a/123456::vpn:ddf51bec-3424-11e8-b467-0ed5f89f718b", "href": "https://us-south.iaas.cloud.ibm.com/v1/vpn_gateways/ddf51bec-3424-11e8-b467-0ed5f89f718b", "id": "ddf51bec-3424-11e8-b467-0ed5f89f718b", "members": [{"private_ip": {"address": "192.168.3.4", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/subnets/7ec86020-1c6e-4889-b3f0-a15f2e50f87e/reserved_ips/6d353a0f-aeb1-4ae1-832e-1110d10981bb", "id": "6d353a0f-aeb1-4ae1-832e-1110d10981bb", "name": "my-reserved-ip", "resource_type": "subnet_reserved_ip"}, "public_ip": {"address": "192.168.3.4"}, "role": "active", "status": "available"}], "name": "my-vpn-gateway", "resource_group": {"href": "https://resource-controller.cloud.ibm.com/v2/resource_groups/fee82deba12e4c0fb69c3b09d1f12345", "id": "fee82deba12e4c0fb69c3b09d1f12345", "name": "my-resource-group"}, "resource_type": "vpn_gateway", "status": "available", "subnet": {"crn": "crn:v1:bluemix:public:is:us-south-1:a/123456::subnet:7ec86020-1c6e-4889-b3f0-a15f2e50f87e", "deleted": {"more_info": "https://cloud.ibm.com/apidocs/vpc#deleted-resources"}, "href": "https://us-south.iaas.cloud.ibm.com/v1/subnets/7ec86020-1c6e-4889-b3f0-a15f2e50f87e", "id": "7ec86020-1c6e-4889-b3f0-a15f2e50f87e", "name": "my-subnet", "resource_type": "subnet"}, "vpc": {"crn": "crn:v1:bluemix:public:is:us-south:a/123456::vpc: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/4727d842-f94f-4a2d-824a-9bc9b02c523b", "id": "4727d842-f94f-4a2d-824a-9bc9b02c523b", "name": "my-vpc", "resource_type": "vpc"}, "mode": "route"}`) })) }) It(`Invoke UpdateVPNGateway successfully`, func() { @@ -64736,7 +64736,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()["status"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["status"]).To(Equal([]string{"down"})) res.Header().Set("Content-type", "application/json") res.WriteHeader(200) fmt.Fprint(res, `} this is not valid json {`) @@ -64754,7 +64754,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the ListVPNGatewayConnectionsOptions model listVPNGatewayConnectionsOptionsModel := new(vpcv1.ListVPNGatewayConnectionsOptions) listVPNGatewayConnectionsOptionsModel.VPNGatewayID = core.StringPtr("testString") - listVPNGatewayConnectionsOptionsModel.Status = core.StringPtr("testString") + listVPNGatewayConnectionsOptionsModel.Status = core.StringPtr("down") listVPNGatewayConnectionsOptionsModel.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.ListVPNGatewayConnections(listVPNGatewayConnectionsOptionsModel) @@ -64788,7 +64788,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()["status"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["status"]).To(Equal([]string{"down"})) // Sleep a short time to support a timeout test time.Sleep(100 * time.Millisecond) @@ -64811,7 +64811,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the ListVPNGatewayConnectionsOptions model listVPNGatewayConnectionsOptionsModel := new(vpcv1.ListVPNGatewayConnectionsOptions) listVPNGatewayConnectionsOptionsModel.VPNGatewayID = core.StringPtr("testString") - listVPNGatewayConnectionsOptionsModel.Status = core.StringPtr("testString") + listVPNGatewayConnectionsOptionsModel.Status = core.StringPtr("down") listVPNGatewayConnectionsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with a Context to test a timeout error @@ -64850,7 +64850,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()["status"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["status"]).To(Equal([]string{"down"})) // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) @@ -64875,7 +64875,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the ListVPNGatewayConnectionsOptions model listVPNGatewayConnectionsOptionsModel := new(vpcv1.ListVPNGatewayConnectionsOptions) listVPNGatewayConnectionsOptionsModel.VPNGatewayID = core.StringPtr("testString") - listVPNGatewayConnectionsOptionsModel.Status = core.StringPtr("testString") + listVPNGatewayConnectionsOptionsModel.Status = core.StringPtr("down") listVPNGatewayConnectionsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with valid options model (positive test) @@ -64897,7 +64897,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the ListVPNGatewayConnectionsOptions model listVPNGatewayConnectionsOptionsModel := new(vpcv1.ListVPNGatewayConnectionsOptions) listVPNGatewayConnectionsOptionsModel.VPNGatewayID = core.StringPtr("testString") - listVPNGatewayConnectionsOptionsModel.Status = core.StringPtr("testString") + listVPNGatewayConnectionsOptionsModel.Status = core.StringPtr("down") listVPNGatewayConnectionsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with empty URL (negative test) err := vpcService.SetServiceURL("") @@ -64940,7 +64940,7 @@ var _ = Describe(`VpcV1`, func() { // Construct an instance of the ListVPNGatewayConnectionsOptions model listVPNGatewayConnectionsOptionsModel := new(vpcv1.ListVPNGatewayConnectionsOptions) listVPNGatewayConnectionsOptionsModel.VPNGatewayID = core.StringPtr("testString") - listVPNGatewayConnectionsOptionsModel.Status = core.StringPtr("testString") + listVPNGatewayConnectionsOptionsModel.Status = core.StringPtr("down") listVPNGatewayConnectionsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation @@ -82266,9 +82266,9 @@ var _ = Describe(`VpcV1`, func() { Expect(req.URL.Query()["name"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["vpc.id"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["vpc.crn"]).To(Equal([]string{"testString"})) - Expect(req.URL.Query()["vpc.name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["vpc.name"]).To(Equal([]string{"my-vpc"})) Expect(req.URL.Query()["target.id"]).To(Equal([]string{"testString"})) - Expect(req.URL.Query()["target.resource_type"]).To(Equal([]string{"instance"})) + Expect(req.URL.Query()["target.resource_type"]).To(Equal([]string{"testString"})) res.Header().Set("Content-type", "application/json") res.WriteHeader(200) fmt.Fprint(res, `} this is not valid json {`) @@ -82291,9 +82291,9 @@ var _ = Describe(`VpcV1`, func() { listFlowLogCollectorsOptionsModel.Name = core.StringPtr("testString") listFlowLogCollectorsOptionsModel.VPCID = core.StringPtr("testString") listFlowLogCollectorsOptionsModel.VPCCRN = core.StringPtr("testString") - listFlowLogCollectorsOptionsModel.VPCName = core.StringPtr("testString") + listFlowLogCollectorsOptionsModel.VPCName = core.StringPtr("my-vpc") listFlowLogCollectorsOptionsModel.TargetID = core.StringPtr("testString") - listFlowLogCollectorsOptionsModel.TargetResourceType = core.StringPtr("instance") + listFlowLogCollectorsOptionsModel.TargetResourceType = core.StringPtr("testString") listFlowLogCollectorsOptionsModel.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.ListFlowLogCollectors(listFlowLogCollectorsOptionsModel) @@ -82333,9 +82333,9 @@ var _ = Describe(`VpcV1`, func() { Expect(req.URL.Query()["name"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["vpc.id"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["vpc.crn"]).To(Equal([]string{"testString"})) - Expect(req.URL.Query()["vpc.name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["vpc.name"]).To(Equal([]string{"my-vpc"})) Expect(req.URL.Query()["target.id"]).To(Equal([]string{"testString"})) - Expect(req.URL.Query()["target.resource_type"]).To(Equal([]string{"instance"})) + Expect(req.URL.Query()["target.resource_type"]).To(Equal([]string{"testString"})) // Sleep a short time to support a timeout test time.Sleep(100 * time.Millisecond) @@ -82363,9 +82363,9 @@ var _ = Describe(`VpcV1`, func() { listFlowLogCollectorsOptionsModel.Name = core.StringPtr("testString") listFlowLogCollectorsOptionsModel.VPCID = core.StringPtr("testString") listFlowLogCollectorsOptionsModel.VPCCRN = core.StringPtr("testString") - listFlowLogCollectorsOptionsModel.VPCName = core.StringPtr("testString") + listFlowLogCollectorsOptionsModel.VPCName = core.StringPtr("my-vpc") listFlowLogCollectorsOptionsModel.TargetID = core.StringPtr("testString") - listFlowLogCollectorsOptionsModel.TargetResourceType = core.StringPtr("instance") + listFlowLogCollectorsOptionsModel.TargetResourceType = core.StringPtr("testString") listFlowLogCollectorsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with a Context to test a timeout error @@ -82410,9 +82410,9 @@ var _ = Describe(`VpcV1`, func() { Expect(req.URL.Query()["name"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["vpc.id"]).To(Equal([]string{"testString"})) Expect(req.URL.Query()["vpc.crn"]).To(Equal([]string{"testString"})) - Expect(req.URL.Query()["vpc.name"]).To(Equal([]string{"testString"})) + Expect(req.URL.Query()["vpc.name"]).To(Equal([]string{"my-vpc"})) Expect(req.URL.Query()["target.id"]).To(Equal([]string{"testString"})) - Expect(req.URL.Query()["target.resource_type"]).To(Equal([]string{"instance"})) + Expect(req.URL.Query()["target.resource_type"]).To(Equal([]string{"testString"})) // Set mock response res.Header().Set("Content-type", "application/json") res.WriteHeader(200) @@ -82442,9 +82442,9 @@ var _ = Describe(`VpcV1`, func() { listFlowLogCollectorsOptionsModel.Name = core.StringPtr("testString") listFlowLogCollectorsOptionsModel.VPCID = core.StringPtr("testString") listFlowLogCollectorsOptionsModel.VPCCRN = core.StringPtr("testString") - listFlowLogCollectorsOptionsModel.VPCName = core.StringPtr("testString") + listFlowLogCollectorsOptionsModel.VPCName = core.StringPtr("my-vpc") listFlowLogCollectorsOptionsModel.TargetID = core.StringPtr("testString") - listFlowLogCollectorsOptionsModel.TargetResourceType = core.StringPtr("instance") + listFlowLogCollectorsOptionsModel.TargetResourceType = core.StringPtr("testString") listFlowLogCollectorsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with valid options model (positive test) @@ -82471,9 +82471,9 @@ var _ = Describe(`VpcV1`, func() { listFlowLogCollectorsOptionsModel.Name = core.StringPtr("testString") listFlowLogCollectorsOptionsModel.VPCID = core.StringPtr("testString") listFlowLogCollectorsOptionsModel.VPCCRN = core.StringPtr("testString") - listFlowLogCollectorsOptionsModel.VPCName = core.StringPtr("testString") + listFlowLogCollectorsOptionsModel.VPCName = core.StringPtr("my-vpc") listFlowLogCollectorsOptionsModel.TargetID = core.StringPtr("testString") - listFlowLogCollectorsOptionsModel.TargetResourceType = core.StringPtr("instance") + listFlowLogCollectorsOptionsModel.TargetResourceType = core.StringPtr("testString") listFlowLogCollectorsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation with empty URL (negative test) err := vpcService.SetServiceURL("") @@ -82514,9 +82514,9 @@ var _ = Describe(`VpcV1`, func() { listFlowLogCollectorsOptionsModel.Name = core.StringPtr("testString") listFlowLogCollectorsOptionsModel.VPCID = core.StringPtr("testString") listFlowLogCollectorsOptionsModel.VPCCRN = core.StringPtr("testString") - listFlowLogCollectorsOptionsModel.VPCName = core.StringPtr("testString") + listFlowLogCollectorsOptionsModel.VPCName = core.StringPtr("my-vpc") listFlowLogCollectorsOptionsModel.TargetID = core.StringPtr("testString") - listFlowLogCollectorsOptionsModel.TargetResourceType = core.StringPtr("instance") + listFlowLogCollectorsOptionsModel.TargetResourceType = core.StringPtr("testString") listFlowLogCollectorsOptionsModel.Headers = map[string]string{"x-custom-header": "x-custom-value"} // Invoke operation @@ -82598,9 +82598,9 @@ var _ = Describe(`VpcV1`, func() { Name: core.StringPtr("testString"), VPCID: core.StringPtr("testString"), VPCCRN: core.StringPtr("testString"), - VPCName: core.StringPtr("testString"), + VPCName: core.StringPtr("my-vpc"), TargetID: core.StringPtr("testString"), - TargetResourceType: core.StringPtr("instance"), + TargetResourceType: core.StringPtr("testString"), } pager, err := vpcService.NewFlowLogCollectorsPager(listFlowLogCollectorsOptionsModel) @@ -82631,9 +82631,9 @@ var _ = Describe(`VpcV1`, func() { Name: core.StringPtr("testString"), VPCID: core.StringPtr("testString"), VPCCRN: core.StringPtr("testString"), - VPCName: core.StringPtr("testString"), + VPCName: core.StringPtr("my-vpc"), TargetID: core.StringPtr("testString"), - TargetResourceType: core.StringPtr("instance"), + TargetResourceType: core.StringPtr("testString"), } pager, err := vpcService.NewFlowLogCollectorsPager(listFlowLogCollectorsOptionsModel) @@ -84257,12 +84257,12 @@ var _ = Describe(`VpcV1`, func() { Expect(resourceGroupIdentityModel.ID).To(Equal(core.StringPtr("fee82deba12e4c0fb69c3b09d1f12345"))) // Construct an instance of the CreateIkePolicyOptions model - createIkePolicyOptionsAuthenticationAlgorithm := "md5" + createIkePolicyOptionsAuthenticationAlgorithm := "sha256" createIkePolicyOptionsDhGroup := int64(14) createIkePolicyOptionsEncryptionAlgorithm := "aes128" createIkePolicyOptionsIkeVersion := int64(1) createIkePolicyOptionsModel := vpcService.NewCreateIkePolicyOptions(createIkePolicyOptionsAuthenticationAlgorithm, createIkePolicyOptionsDhGroup, createIkePolicyOptionsEncryptionAlgorithm, createIkePolicyOptionsIkeVersion) - createIkePolicyOptionsModel.SetAuthenticationAlgorithm("md5") + createIkePolicyOptionsModel.SetAuthenticationAlgorithm("sha256") createIkePolicyOptionsModel.SetDhGroup(int64(14)) createIkePolicyOptionsModel.SetEncryptionAlgorithm("aes128") createIkePolicyOptionsModel.SetIkeVersion(int64(1)) @@ -84271,7 +84271,7 @@ var _ = Describe(`VpcV1`, func() { createIkePolicyOptionsModel.SetResourceGroup(resourceGroupIdentityModel) createIkePolicyOptionsModel.SetHeaders(map[string]string{"foo": "bar"}) Expect(createIkePolicyOptionsModel).ToNot(BeNil()) - Expect(createIkePolicyOptionsModel.AuthenticationAlgorithm).To(Equal(core.StringPtr("md5"))) + Expect(createIkePolicyOptionsModel.AuthenticationAlgorithm).To(Equal(core.StringPtr("sha256"))) Expect(createIkePolicyOptionsModel.DhGroup).To(Equal(core.Int64Ptr(int64(14)))) Expect(createIkePolicyOptionsModel.EncryptionAlgorithm).To(Equal(core.StringPtr("aes128"))) Expect(createIkePolicyOptionsModel.IkeVersion).To(Equal(core.Int64Ptr(int64(1)))) @@ -87985,7 +87985,7 @@ var _ = Describe(`VpcV1`, func() { backupPolicyID := "testString" listBackupPolicyJobsOptionsModel := vpcService.NewListBackupPolicyJobsOptions(backupPolicyID) listBackupPolicyJobsOptionsModel.SetBackupPolicyID("testString") - listBackupPolicyJobsOptionsModel.SetStatus("testString") + listBackupPolicyJobsOptionsModel.SetStatus("failed") listBackupPolicyJobsOptionsModel.SetBackupPolicyPlanID("testString") listBackupPolicyJobsOptionsModel.SetStart("testString") listBackupPolicyJobsOptionsModel.SetLimit(int64(10)) @@ -87996,7 +87996,7 @@ var _ = Describe(`VpcV1`, func() { listBackupPolicyJobsOptionsModel.SetHeaders(map[string]string{"foo": "bar"}) Expect(listBackupPolicyJobsOptionsModel).ToNot(BeNil()) Expect(listBackupPolicyJobsOptionsModel.BackupPolicyID).To(Equal(core.StringPtr("testString"))) - Expect(listBackupPolicyJobsOptionsModel.Status).To(Equal(core.StringPtr("testString"))) + Expect(listBackupPolicyJobsOptionsModel.Status).To(Equal(core.StringPtr("failed"))) Expect(listBackupPolicyJobsOptionsModel.BackupPolicyPlanID).To(Equal(core.StringPtr("testString"))) Expect(listBackupPolicyJobsOptionsModel.Start).To(Equal(core.StringPtr("testString"))) Expect(listBackupPolicyJobsOptionsModel.Limit).To(Equal(core.Int64Ptr(int64(10)))) @@ -88088,10 +88088,10 @@ var _ = Describe(`VpcV1`, func() { listBareMetalServersOptionsModel.SetName("testString") listBareMetalServersOptionsModel.SetVPCID("testString") listBareMetalServersOptionsModel.SetVPCCRN("testString") - listBareMetalServersOptionsModel.SetVPCName("testString") + listBareMetalServersOptionsModel.SetVPCName("my-vpc") listBareMetalServersOptionsModel.SetNetworkInterfacesSubnetID("testString") listBareMetalServersOptionsModel.SetNetworkInterfacesSubnetCRN("testString") - listBareMetalServersOptionsModel.SetNetworkInterfacesSubnetName("testString") + listBareMetalServersOptionsModel.SetNetworkInterfacesSubnetName("my-subnet") listBareMetalServersOptionsModel.SetHeaders(map[string]string{"foo": "bar"}) Expect(listBareMetalServersOptionsModel).ToNot(BeNil()) Expect(listBareMetalServersOptionsModel.Start).To(Equal(core.StringPtr("testString"))) @@ -88100,10 +88100,10 @@ var _ = Describe(`VpcV1`, func() { Expect(listBareMetalServersOptionsModel.Name).To(Equal(core.StringPtr("testString"))) Expect(listBareMetalServersOptionsModel.VPCID).To(Equal(core.StringPtr("testString"))) Expect(listBareMetalServersOptionsModel.VPCCRN).To(Equal(core.StringPtr("testString"))) - Expect(listBareMetalServersOptionsModel.VPCName).To(Equal(core.StringPtr("testString"))) + Expect(listBareMetalServersOptionsModel.VPCName).To(Equal(core.StringPtr("my-vpc"))) Expect(listBareMetalServersOptionsModel.NetworkInterfacesSubnetID).To(Equal(core.StringPtr("testString"))) Expect(listBareMetalServersOptionsModel.NetworkInterfacesSubnetCRN).To(Equal(core.StringPtr("testString"))) - Expect(listBareMetalServersOptionsModel.NetworkInterfacesSubnetName).To(Equal(core.StringPtr("testString"))) + Expect(listBareMetalServersOptionsModel.NetworkInterfacesSubnetName).To(Equal(core.StringPtr("my-subnet"))) Expect(listBareMetalServersOptionsModel.Headers).To(Equal(map[string]string{"foo": "bar"})) }) It(`Invoke NewListDedicatedHostDisksOptions successfully`, func() { @@ -88122,14 +88122,14 @@ var _ = Describe(`VpcV1`, func() { listDedicatedHostGroupsOptionsModel.SetStart("testString") listDedicatedHostGroupsOptionsModel.SetLimit(int64(10)) listDedicatedHostGroupsOptionsModel.SetResourceGroupID("testString") - listDedicatedHostGroupsOptionsModel.SetZoneName("testString") + listDedicatedHostGroupsOptionsModel.SetZoneName("us-south-1") listDedicatedHostGroupsOptionsModel.SetName("testString") 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("testString"))) + Expect(listDedicatedHostGroupsOptionsModel.ZoneName).To(Equal(core.StringPtr("us-south-1"))) Expect(listDedicatedHostGroupsOptionsModel.Name).To(Equal(core.StringPtr("testString"))) Expect(listDedicatedHostGroupsOptionsModel.Headers).To(Equal(map[string]string{"foo": "bar"})) }) @@ -88151,7 +88151,7 @@ var _ = Describe(`VpcV1`, func() { listDedicatedHostsOptionsModel.SetStart("testString") listDedicatedHostsOptionsModel.SetLimit(int64(10)) listDedicatedHostsOptionsModel.SetResourceGroupID("testString") - listDedicatedHostsOptionsModel.SetZoneName("testString") + listDedicatedHostsOptionsModel.SetZoneName("us-south-1") listDedicatedHostsOptionsModel.SetName("testString") listDedicatedHostsOptionsModel.SetHeaders(map[string]string{"foo": "bar"}) Expect(listDedicatedHostsOptionsModel).ToNot(BeNil()) @@ -88159,7 +88159,7 @@ var _ = Describe(`VpcV1`, func() { Expect(listDedicatedHostsOptionsModel.Start).To(Equal(core.StringPtr("testString"))) Expect(listDedicatedHostsOptionsModel.Limit).To(Equal(core.Int64Ptr(int64(10)))) Expect(listDedicatedHostsOptionsModel.ResourceGroupID).To(Equal(core.StringPtr("testString"))) - Expect(listDedicatedHostsOptionsModel.ZoneName).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.Headers).To(Equal(map[string]string{"foo": "bar"})) }) @@ -88218,9 +88218,9 @@ var _ = Describe(`VpcV1`, func() { listFlowLogCollectorsOptionsModel.SetName("testString") listFlowLogCollectorsOptionsModel.SetVPCID("testString") listFlowLogCollectorsOptionsModel.SetVPCCRN("testString") - listFlowLogCollectorsOptionsModel.SetVPCName("testString") + listFlowLogCollectorsOptionsModel.SetVPCName("my-vpc") listFlowLogCollectorsOptionsModel.SetTargetID("testString") - listFlowLogCollectorsOptionsModel.SetTargetResourceType("instance") + listFlowLogCollectorsOptionsModel.SetTargetResourceType("testString") listFlowLogCollectorsOptionsModel.SetHeaders(map[string]string{"foo": "bar"}) Expect(listFlowLogCollectorsOptionsModel).ToNot(BeNil()) Expect(listFlowLogCollectorsOptionsModel.Start).To(Equal(core.StringPtr("testString"))) @@ -88229,9 +88229,9 @@ var _ = Describe(`VpcV1`, func() { Expect(listFlowLogCollectorsOptionsModel.Name).To(Equal(core.StringPtr("testString"))) Expect(listFlowLogCollectorsOptionsModel.VPCID).To(Equal(core.StringPtr("testString"))) Expect(listFlowLogCollectorsOptionsModel.VPCCRN).To(Equal(core.StringPtr("testString"))) - Expect(listFlowLogCollectorsOptionsModel.VPCName).To(Equal(core.StringPtr("testString"))) + Expect(listFlowLogCollectorsOptionsModel.VPCName).To(Equal(core.StringPtr("my-vpc"))) Expect(listFlowLogCollectorsOptionsModel.TargetID).To(Equal(core.StringPtr("testString"))) - Expect(listFlowLogCollectorsOptionsModel.TargetResourceType).To(Equal(core.StringPtr("instance"))) + Expect(listFlowLogCollectorsOptionsModel.TargetResourceType).To(Equal(core.StringPtr("testString"))) Expect(listFlowLogCollectorsOptionsModel.Headers).To(Equal(map[string]string{"foo": "bar"})) }) It(`Invoke NewListIkePoliciesOptions successfully`, func() { @@ -88440,13 +88440,13 @@ var _ = Describe(`VpcV1`, func() { listInstancesOptionsModel.SetName("testString") listInstancesOptionsModel.SetVPCID("testString") listInstancesOptionsModel.SetVPCCRN("testString") - listInstancesOptionsModel.SetVPCName("testString") + listInstancesOptionsModel.SetVPCName("my-vpc") listInstancesOptionsModel.SetDedicatedHostID("testString") listInstancesOptionsModel.SetDedicatedHostCRN("testString") - listInstancesOptionsModel.SetDedicatedHostName("testString") + listInstancesOptionsModel.SetDedicatedHostName("my-dedicated-host") listInstancesOptionsModel.SetPlacementGroupID("testString") listInstancesOptionsModel.SetPlacementGroupCRN("testString") - listInstancesOptionsModel.SetPlacementGroupName("testString") + listInstancesOptionsModel.SetPlacementGroupName("my-placement-group") listInstancesOptionsModel.SetHeaders(map[string]string{"foo": "bar"}) Expect(listInstancesOptionsModel).ToNot(BeNil()) Expect(listInstancesOptionsModel.Start).To(Equal(core.StringPtr("testString"))) @@ -88455,13 +88455,13 @@ var _ = Describe(`VpcV1`, func() { Expect(listInstancesOptionsModel.Name).To(Equal(core.StringPtr("testString"))) Expect(listInstancesOptionsModel.VPCID).To(Equal(core.StringPtr("testString"))) Expect(listInstancesOptionsModel.VPCCRN).To(Equal(core.StringPtr("testString"))) - Expect(listInstancesOptionsModel.VPCName).To(Equal(core.StringPtr("testString"))) + Expect(listInstancesOptionsModel.VPCName).To(Equal(core.StringPtr("my-vpc"))) Expect(listInstancesOptionsModel.DedicatedHostID).To(Equal(core.StringPtr("testString"))) Expect(listInstancesOptionsModel.DedicatedHostCRN).To(Equal(core.StringPtr("testString"))) - Expect(listInstancesOptionsModel.DedicatedHostName).To(Equal(core.StringPtr("testString"))) + Expect(listInstancesOptionsModel.DedicatedHostName).To(Equal(core.StringPtr("my-dedicated-host"))) Expect(listInstancesOptionsModel.PlacementGroupID).To(Equal(core.StringPtr("testString"))) Expect(listInstancesOptionsModel.PlacementGroupCRN).To(Equal(core.StringPtr("testString"))) - Expect(listInstancesOptionsModel.PlacementGroupName).To(Equal(core.StringPtr("testString"))) + Expect(listInstancesOptionsModel.PlacementGroupName).To(Equal(core.StringPtr("my-placement-group"))) Expect(listInstancesOptionsModel.Headers).To(Equal(map[string]string{"foo": "bar"})) }) It(`Invoke NewListIpsecPoliciesOptions successfully`, func() { @@ -88693,7 +88693,7 @@ var _ = Describe(`VpcV1`, func() { listSecurityGroupsOptionsModel.SetResourceGroupID("testString") listSecurityGroupsOptionsModel.SetVPCID("testString") listSecurityGroupsOptionsModel.SetVPCCRN("testString") - listSecurityGroupsOptionsModel.SetVPCName("testString") + listSecurityGroupsOptionsModel.SetVPCName("my-vpc") listSecurityGroupsOptionsModel.SetHeaders(map[string]string{"foo": "bar"}) Expect(listSecurityGroupsOptionsModel).ToNot(BeNil()) Expect(listSecurityGroupsOptionsModel.Start).To(Equal(core.StringPtr("testString"))) @@ -88701,7 +88701,7 @@ var _ = Describe(`VpcV1`, func() { Expect(listSecurityGroupsOptionsModel.ResourceGroupID).To(Equal(core.StringPtr("testString"))) Expect(listSecurityGroupsOptionsModel.VPCID).To(Equal(core.StringPtr("testString"))) Expect(listSecurityGroupsOptionsModel.VPCCRN).To(Equal(core.StringPtr("testString"))) - Expect(listSecurityGroupsOptionsModel.VPCName).To(Equal(core.StringPtr("testString"))) + Expect(listSecurityGroupsOptionsModel.VPCName).To(Equal(core.StringPtr("my-vpc"))) Expect(listSecurityGroupsOptionsModel.Headers).To(Equal(map[string]string{"foo": "bar"})) }) It(`Invoke NewListSnapshotClonesOptions successfully`, func() { @@ -88728,7 +88728,7 @@ var _ = Describe(`VpcV1`, func() { listSnapshotsOptionsModel.SetSourceImageCRN("testString") listSnapshotsOptionsModel.SetSort("name") listSnapshotsOptionsModel.SetBackupPolicyPlanID("testString") - listSnapshotsOptionsModel.SetClonesZoneName("testString") + listSnapshotsOptionsModel.SetClonesZoneName("us-south-1") listSnapshotsOptionsModel.SetHeaders(map[string]string{"foo": "bar"}) Expect(listSnapshotsOptionsModel).ToNot(BeNil()) Expect(listSnapshotsOptionsModel.Start).To(Equal(core.StringPtr("testString"))) @@ -88742,7 +88742,7 @@ var _ = Describe(`VpcV1`, func() { Expect(listSnapshotsOptionsModel.SourceImageCRN).To(Equal(core.StringPtr("testString"))) Expect(listSnapshotsOptionsModel.Sort).To(Equal(core.StringPtr("name"))) Expect(listSnapshotsOptionsModel.BackupPolicyPlanID).To(Equal(core.StringPtr("testString"))) - Expect(listSnapshotsOptionsModel.ClonesZoneName).To(Equal(core.StringPtr("testString"))) + Expect(listSnapshotsOptionsModel.ClonesZoneName).To(Equal(core.StringPtr("us-south-1"))) Expect(listSnapshotsOptionsModel.Headers).To(Equal(map[string]string{"foo": "bar"})) }) It(`Invoke NewListSubnetReservedIpsOptions successfully`, func() { @@ -88768,14 +88768,14 @@ var _ = Describe(`VpcV1`, func() { listSubnetsOptionsModel.SetLimit(int64(10)) listSubnetsOptionsModel.SetResourceGroupID("testString") listSubnetsOptionsModel.SetRoutingTableID("testString") - listSubnetsOptionsModel.SetRoutingTableName("testString") + listSubnetsOptionsModel.SetRoutingTableName("my-routing-table") listSubnetsOptionsModel.SetHeaders(map[string]string{"foo": "bar"}) Expect(listSubnetsOptionsModel).ToNot(BeNil()) Expect(listSubnetsOptionsModel.Start).To(Equal(core.StringPtr("testString"))) Expect(listSubnetsOptionsModel.Limit).To(Equal(core.Int64Ptr(int64(10)))) Expect(listSubnetsOptionsModel.ResourceGroupID).To(Equal(core.StringPtr("testString"))) Expect(listSubnetsOptionsModel.RoutingTableID).To(Equal(core.StringPtr("testString"))) - Expect(listSubnetsOptionsModel.RoutingTableName).To(Equal(core.StringPtr("testString"))) + Expect(listSubnetsOptionsModel.RoutingTableName).To(Equal(core.StringPtr("my-routing-table"))) Expect(listSubnetsOptionsModel.Headers).To(Equal(map[string]string{"foo": "bar"})) }) It(`Invoke NewListVolumeProfilesOptions successfully`, func() { @@ -88799,7 +88799,7 @@ var _ = Describe(`VpcV1`, func() { listVolumesOptionsModel.SetEncryption("provider_managed") listVolumesOptionsModel.SetOperatingSystemFamily("Ubuntu Server") listVolumesOptionsModel.SetOperatingSystemArchitecture("amd64") - listVolumesOptionsModel.SetZoneName("testString") + listVolumesOptionsModel.SetZoneName("us-south-1") listVolumesOptionsModel.SetHeaders(map[string]string{"foo": "bar"}) Expect(listVolumesOptionsModel).ToNot(BeNil()) Expect(listVolumesOptionsModel.Start).To(Equal(core.StringPtr("testString"))) @@ -88809,7 +88809,7 @@ var _ = Describe(`VpcV1`, func() { Expect(listVolumesOptionsModel.Encryption).To(Equal(core.StringPtr("provider_managed"))) Expect(listVolumesOptionsModel.OperatingSystemFamily).To(Equal(core.StringPtr("Ubuntu Server"))) Expect(listVolumesOptionsModel.OperatingSystemArchitecture).To(Equal(core.StringPtr("amd64"))) - Expect(listVolumesOptionsModel.ZoneName).To(Equal(core.StringPtr("testString"))) + Expect(listVolumesOptionsModel.ZoneName).To(Equal(core.StringPtr("us-south-1"))) Expect(listVolumesOptionsModel.Headers).To(Equal(map[string]string{"foo": "bar"})) }) It(`Invoke NewListVPCAddressPrefixesOptions successfully`, func() { @@ -88831,13 +88831,13 @@ var _ = Describe(`VpcV1`, func() { vpcID := "testString" listVPCRoutesOptionsModel := vpcService.NewListVPCRoutesOptions(vpcID) listVPCRoutesOptionsModel.SetVPCID("testString") - listVPCRoutesOptionsModel.SetZoneName("testString") + listVPCRoutesOptionsModel.SetZoneName("us-south-1") listVPCRoutesOptionsModel.SetStart("testString") listVPCRoutesOptionsModel.SetLimit(int64(10)) listVPCRoutesOptionsModel.SetHeaders(map[string]string{"foo": "bar"}) Expect(listVPCRoutesOptionsModel).ToNot(BeNil()) Expect(listVPCRoutesOptionsModel.VPCID).To(Equal(core.StringPtr("testString"))) - Expect(listVPCRoutesOptionsModel.ZoneName).To(Equal(core.StringPtr("testString"))) + Expect(listVPCRoutesOptionsModel.ZoneName).To(Equal(core.StringPtr("us-south-1"))) Expect(listVPCRoutesOptionsModel.Start).To(Equal(core.StringPtr("testString"))) Expect(listVPCRoutesOptionsModel.Limit).To(Equal(core.Int64Ptr(int64(10)))) Expect(listVPCRoutesOptionsModel.Headers).To(Equal(map[string]string{"foo": "bar"})) @@ -88921,11 +88921,11 @@ var _ = Describe(`VpcV1`, func() { vpnGatewayID := "testString" listVPNGatewayConnectionsOptionsModel := vpcService.NewListVPNGatewayConnectionsOptions(vpnGatewayID) listVPNGatewayConnectionsOptionsModel.SetVPNGatewayID("testString") - listVPNGatewayConnectionsOptionsModel.SetStatus("testString") + listVPNGatewayConnectionsOptionsModel.SetStatus("down") listVPNGatewayConnectionsOptionsModel.SetHeaders(map[string]string{"foo": "bar"}) Expect(listVPNGatewayConnectionsOptionsModel).ToNot(BeNil()) Expect(listVPNGatewayConnectionsOptionsModel.VPNGatewayID).To(Equal(core.StringPtr("testString"))) - Expect(listVPNGatewayConnectionsOptionsModel.Status).To(Equal(core.StringPtr("testString"))) + Expect(listVPNGatewayConnectionsOptionsModel.Status).To(Equal(core.StringPtr("down"))) Expect(listVPNGatewayConnectionsOptionsModel.Headers).To(Equal(map[string]string{"foo": "bar"})) }) It(`Invoke NewListVPNGatewaysOptions successfully`, func() {