diff --git a/common/github.com/IBM/vpc-go-sdk/vpcv1/vpc_v1.go b/common/github.com/IBM/vpc-go-sdk/vpcv1/vpc_v1.go index 3519da7245..e5cc4386e4 100644 --- a/common/github.com/IBM/vpc-go-sdk/vpcv1/vpc_v1.go +++ b/common/github.com/IBM/vpc-go-sdk/vpcv1/vpc_v1.go @@ -38,7 +38,7 @@ import ( // VpcV1 : The IBM Cloud Virtual Private Cloud (VPC) API can be used to programmatically provision and manage virtual // server instances, along with subnets, volumes, load balancers, and more. // -// API Version: 2024-05-30 +// API Version: 2024-04-30 type VpcV1 struct { Service *core.BaseService @@ -46,8 +46,8 @@ type VpcV1 struct { // `2`. Generation *int64 - // The API version, in format `YYYY-MM-DD`. For the API behavior documented here, specify any date between `2024-08-20` - // and `2024-08-20`. + // The API version, in format `YYYY-MM-DD`. For the API behavior documented here, specify any date between `2024-04-30` + // and `2024-09-24`. Version *string } @@ -67,8 +67,8 @@ type VpcV1Options struct { // `2`. Generation *int64 - // The API version, in format `YYYY-MM-DD`. For the API behavior documented here, specify any date between `2024-08-20` - // and `2024-08-20`. + // The API version, in format `YYYY-MM-DD`. For the API behavior documented here, specify any date between `2024-04-30` + // and `2024-09-24`. Version *string } @@ -133,7 +133,7 @@ func NewVpcV1(options *VpcV1Options) (service *VpcV1, err error) { } if options.Version == nil { - options.Version = core.StringPtr("2024-08-13") + options.Version = core.StringPtr("2024-09-17") } service = &VpcV1{ Service: baseService, @@ -1320,7 +1320,7 @@ func (vpc *VpcV1) ListVPCDnsResolutionBindingsWithContext(ctx context.Context, l // For this request to succeed, `dns.enable_hub` must be `false` for the VPC specified by the identifier in the URL, and // the VPC must not already have a DNS resolution binding. // -// See [About DNS sharing for VPE gateways](/docs/vpc?topic=vpc-hub-spoke-model) for more information. +// See [About DNS sharing for VPE gateways](/docs/vpc?topic=vpc-vpe-dns-sharing) for more information. func (vpc *VpcV1) CreateVPCDnsResolutionBinding(createVPCDnsResolutionBindingOptions *CreateVPCDnsResolutionBindingOptions) (result *VpcdnsResolutionBinding, response *core.DetailedResponse, err error) { result, response, err = vpc.CreateVPCDnsResolutionBindingWithContext(context.Background(), createVPCDnsResolutionBindingOptions) err = core.RepurposeSDKProblem(err, "") @@ -30078,7 +30078,7 @@ func (vpc *VpcV1) UpdateFlowLogCollectorWithContext(ctx context.Context, updateF return } func getServiceComponentInfo() *core.ProblemComponent { - return core.NewProblemComponent(DefaultServiceName, "2024-05-30") + return core.NewProblemComponent(DefaultServiceName, "2024-04-30") } // AccountReference : AccountReference struct @@ -31293,7 +31293,7 @@ type BackupPolicyJobSource struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *VolumeReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this volume. Href *string `json:"href,omitempty"` @@ -31334,7 +31334,7 @@ func UnmarshalBackupPolicyJobSource(m map[string]json.RawMessage, result interfa err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalVolumeReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -31372,9 +31372,13 @@ func UnmarshalBackupPolicyJobSource(m map[string]json.RawMessage, result interfa type BackupPolicyJobStatusReason struct { // A reason code for the status: // - `internal_error`: Internal error (contact IBM support) + // - `snapshot_encryption_key_invalid`: The provided encryption key is unavailable // - `snapshot_pending`: Cannot delete backup (snapshot) in the `pending` lifecycle state // - `snapshot_volume_limit`: The snapshot limit for the source volume has been reached // - `source_volume_busy`: The source volume has `busy` set (after multiple retries) + // - `source_volume_too_large`: The source volume exceeds the [maximum supported + // size](https://cloud.ibm.com/docs/vpc?topic=vpc-snapshots-vpc-about&interface=api#snapshots-vpc-limitations) + // - `source_volume_unavailable`: The source volume is not attached to a running instance // // The enumerated values for this property may // [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) in the future. @@ -31389,18 +31393,25 @@ type BackupPolicyJobStatusReason struct { // Constants associated with the BackupPolicyJobStatusReason.Code property. // A reason code for the status: -// - `internal_error`: Internal error (contact IBM support) -// - `snapshot_pending`: Cannot delete backup (snapshot) in the `pending` lifecycle state -// - `snapshot_volume_limit`: The snapshot limit for the source volume has been reached -// - `source_volume_busy`: The source volume has `busy` set (after multiple retries) +// - `internal_error`: Internal error (contact IBM support) +// - `snapshot_encryption_key_invalid`: The provided encryption key is unavailable +// - `snapshot_pending`: Cannot delete backup (snapshot) in the `pending` lifecycle state +// - `snapshot_volume_limit`: The snapshot limit for the source volume has been reached +// - `source_volume_busy`: The source volume has `busy` set (after multiple retries) +// - `source_volume_too_large`: The source volume exceeds the [maximum supported +// size](https://cloud.ibm.com/docs/vpc?topic=vpc-snapshots-vpc-about&interface=api#snapshots-vpc-limitations) +// - `source_volume_unavailable`: The source volume is not attached to a running instance // // The enumerated values for this property may // [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) in the future. const ( - BackupPolicyJobStatusReasonCodeInternalErrorConst = "internal_error" - BackupPolicyJobStatusReasonCodeSnapshotPendingConst = "snapshot_pending" - BackupPolicyJobStatusReasonCodeSnapshotVolumeLimitConst = "snapshot_volume_limit" - BackupPolicyJobStatusReasonCodeSourceVolumeBusyConst = "source_volume_busy" + BackupPolicyJobStatusReasonCodeInternalErrorConst = "internal_error" + BackupPolicyJobStatusReasonCodeSnapshotEncryptionKeyInvalidConst = "snapshot_encryption_key_invalid" + BackupPolicyJobStatusReasonCodeSnapshotPendingConst = "snapshot_pending" + BackupPolicyJobStatusReasonCodeSnapshotVolumeLimitConst = "snapshot_volume_limit" + BackupPolicyJobStatusReasonCodeSourceVolumeBusyConst = "source_volume_busy" + BackupPolicyJobStatusReasonCodeSourceVolumeTooLargeConst = "source_volume_too_large" + BackupPolicyJobStatusReasonCodeSourceVolumeUnavailableConst = "source_volume_unavailable" ) // UnmarshalBackupPolicyJobStatusReason unmarshals an instance of BackupPolicyJobStatusReason from the specified map of raw messages. @@ -32055,7 +32066,7 @@ func UnmarshalBackupPolicyPlanPrototype(m map[string]json.RawMessage, result int type BackupPolicyPlanReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *BackupPolicyPlanReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this backup policy plan. Href *string `json:"href" validate:"required"` @@ -32083,7 +32094,7 @@ const ( // UnmarshalBackupPolicyPlanReference unmarshals an instance of BackupPolicyPlanReference from the specified map of raw messages. func UnmarshalBackupPolicyPlanReference(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(BackupPolicyPlanReference) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalBackupPolicyPlanReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -32117,25 +32128,6 @@ func UnmarshalBackupPolicyPlanReference(m map[string]json.RawMessage, result int return } -// BackupPolicyPlanReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type BackupPolicyPlanReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalBackupPolicyPlanReferenceDeleted unmarshals an instance of BackupPolicyPlanReferenceDeleted from the specified map of raw messages. -func UnmarshalBackupPolicyPlanReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(BackupPolicyPlanReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // BackupPolicyPlanRemote : If present, this property indicates that the resource associated with this reference is remote and therefore may not // be directly retrievable. type BackupPolicyPlanRemote struct { @@ -32718,7 +32710,7 @@ func UnmarshalBareMetalServer(m map[string]json.RawMessage, result interface{}) type BareMetalServerBootTarget struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *BareMetalServerDiskReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this bare metal server disk. Href *string `json:"href,omitempty"` @@ -32750,7 +32742,7 @@ type BareMetalServerBootTargetIntf interface { // UnmarshalBareMetalServerBootTarget unmarshals an instance of BareMetalServerBootTarget from the specified map of raw messages. func UnmarshalBareMetalServerBootTarget(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(BareMetalServerBootTarget) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalBareMetalServerDiskReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -33130,25 +33122,6 @@ func (bareMetalServerDiskPatch *BareMetalServerDiskPatch) AsPatch() (_patch map[ return } -// BareMetalServerDiskReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type BareMetalServerDiskReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalBareMetalServerDiskReferenceDeleted unmarshals an instance of BareMetalServerDiskReferenceDeleted from the specified map of raw messages. -func UnmarshalBareMetalServerDiskReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(BareMetalServerDiskReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // BareMetalServerFirmware : Firmware information for the bare metal server. type BareMetalServerFirmware struct { // The type of update available. @@ -34031,7 +34004,7 @@ func UnmarshalBareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterface(m type BareMetalServerNetworkAttachmentReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *BareMetalServerNetworkAttachmentReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this bare metal server network attachment. Href *string `json:"href" validate:"required"` @@ -34067,7 +34040,7 @@ const ( // UnmarshalBareMetalServerNetworkAttachmentReference unmarshals an instance of BareMetalServerNetworkAttachmentReference from the specified map of raw messages. func UnmarshalBareMetalServerNetworkAttachmentReference(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(BareMetalServerNetworkAttachmentReference) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalBareMetalServerNetworkAttachmentReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -34111,25 +34084,6 @@ func UnmarshalBareMetalServerNetworkAttachmentReference(m map[string]json.RawMes return } -// BareMetalServerNetworkAttachmentReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type BareMetalServerNetworkAttachmentReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalBareMetalServerNetworkAttachmentReferenceDeleted unmarshals an instance of BareMetalServerNetworkAttachmentReferenceDeleted from the specified map of raw messages. -func UnmarshalBareMetalServerNetworkAttachmentReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(BareMetalServerNetworkAttachmentReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // BareMetalServerNetworkInterface : BareMetalServerNetworkInterface struct // Models which "extend" this model: // - BareMetalServerNetworkInterfaceByHiperSocket @@ -34746,44 +34700,6 @@ func UnmarshalBareMetalServerNetworkInterfacePrototype(m map[string]json.RawMess return } -// BareMetalServerNetworkInterfaceReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type BareMetalServerNetworkInterfaceReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalBareMetalServerNetworkInterfaceReferenceDeleted unmarshals an instance of BareMetalServerNetworkInterfaceReferenceDeleted from the specified map of raw messages. -func UnmarshalBareMetalServerNetworkInterfaceReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(BareMetalServerNetworkInterfaceReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - -// BareMetalServerNetworkInterfaceReferenceTargetContextDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type BareMetalServerNetworkInterfaceReferenceTargetContextDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalBareMetalServerNetworkInterfaceReferenceTargetContextDeleted unmarshals an instance of BareMetalServerNetworkInterfaceReferenceTargetContextDeleted from the specified map of raw messages. -func UnmarshalBareMetalServerNetworkInterfaceReferenceTargetContextDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(BareMetalServerNetworkInterfaceReferenceTargetContextDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // BareMetalServerPatch : BareMetalServerPatch struct type BareMetalServerPatch struct { // The total bandwidth (in megabits per second) shared across the bare metal server's network interfaces. The specified @@ -36723,7 +36639,7 @@ type CatalogOfferingVersionPlanReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *CatalogOfferingVersionPlanReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` } // UnmarshalCatalogOfferingVersionPlanReference unmarshals an instance of CatalogOfferingVersionPlanReference from the specified map of raw messages. @@ -36734,7 +36650,7 @@ func UnmarshalCatalogOfferingVersionPlanReference(m map[string]json.RawMessage, err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalCatalogOfferingVersionPlanReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -36743,25 +36659,6 @@ func UnmarshalCatalogOfferingVersionPlanReference(m map[string]json.RawMessage, return } -// CatalogOfferingVersionPlanReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type CatalogOfferingVersionPlanReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalCatalogOfferingVersionPlanReferenceDeleted unmarshals an instance of CatalogOfferingVersionPlanReferenceDeleted from the specified map of raw messages. -func UnmarshalCatalogOfferingVersionPlanReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(CatalogOfferingVersionPlanReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // CatalogOfferingVersionReference : CatalogOfferingVersionReference struct type CatalogOfferingVersionReference struct { // The CRN for this version of a @@ -40536,7 +40433,7 @@ type CreateVPCRouteOptions struct { // // At most two routes per `zone` in a table can have the same `destination` and `priority`, // and only when each route has an `action` of `deliver` and `next_hop` is an IP address. - NextHop RoutePrototypeNextHopIntf `json:"next_hop,omitempty"` + NextHop RouteNextHopPrototypeIntf `json:"next_hop,omitempty"` // The priority of this route. Smaller values have higher priority. // @@ -40608,7 +40505,7 @@ func (_options *CreateVPCRouteOptions) SetName(name string) *CreateVPCRouteOptio } // SetNextHop : Allow user to set NextHop -func (_options *CreateVPCRouteOptions) SetNextHop(nextHop RoutePrototypeNextHopIntf) *CreateVPCRouteOptions { +func (_options *CreateVPCRouteOptions) SetNextHop(nextHop RouteNextHopPrototypeIntf) *CreateVPCRouteOptions { _options.NextHop = nextHop return _options } @@ -40818,7 +40715,7 @@ type CreateVPCRoutingTableRouteOptions struct { // // At most two routes per `zone` in a table can have the same `destination` and `priority`, // and only when each route has an `action` of `deliver` and `next_hop` is an IP address. - NextHop RoutePrototypeNextHopIntf `json:"next_hop,omitempty"` + NextHop RouteNextHopPrototypeIntf `json:"next_hop,omitempty"` // The priority of this route. Smaller values have higher priority. // @@ -40897,7 +40794,7 @@ func (_options *CreateVPCRoutingTableRouteOptions) SetName(name string) *CreateV } // SetNextHop : Allow user to set NextHop -func (_options *CreateVPCRoutingTableRouteOptions) SetNextHop(nextHop RoutePrototypeNextHopIntf) *CreateVPCRoutingTableRouteOptions { +func (_options *CreateVPCRoutingTableRouteOptions) SetNextHop(nextHop RouteNextHopPrototypeIntf) *CreateVPCRoutingTableRouteOptions { _options.NextHop = nextHop return _options } @@ -42223,7 +42120,7 @@ type DedicatedHostGroupReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *DedicatedHostGroupReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this dedicated host group. Href *string `json:"href" validate:"required"` @@ -42252,7 +42149,7 @@ func UnmarshalDedicatedHostGroupReference(m map[string]json.RawMessage, result i err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDedicatedHostGroupReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -42281,25 +42178,6 @@ func UnmarshalDedicatedHostGroupReference(m map[string]json.RawMessage, result i return } -// DedicatedHostGroupReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type DedicatedHostGroupReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalDedicatedHostGroupReferenceDeleted unmarshals an instance of DedicatedHostGroupReferenceDeleted from the specified map of raw messages. -func UnmarshalDedicatedHostGroupReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(DedicatedHostGroupReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // DedicatedHostNuma : The dedicated host NUMA configuration. type DedicatedHostNuma struct { // The total number of NUMA nodes for this dedicated host. @@ -43286,7 +43164,7 @@ type DedicatedHostReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *DedicatedHostReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this dedicated host. Href *string `json:"href" validate:"required"` @@ -43315,7 +43193,7 @@ func UnmarshalDedicatedHostReference(m map[string]json.RawMessage, result interf err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDedicatedHostReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -43344,25 +43222,6 @@ func UnmarshalDedicatedHostReference(m map[string]json.RawMessage, result interf return } -// DedicatedHostReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type DedicatedHostReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalDedicatedHostReferenceDeleted unmarshals an instance of DedicatedHostReferenceDeleted from the specified map of raw messages. -func UnmarshalDedicatedHostReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(DedicatedHostReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // DefaultNetworkACL : DefaultNetworkACL struct type DefaultNetworkACL struct { // The date and time that the network ACL was created. @@ -43646,10 +43505,10 @@ type DefaultSecurityGroup struct { // The date and time that this security group was created. CreatedAt *strfmt.DateTime `json:"created_at" validate:"required"` - // The security group's CRN. + // The CRN for this security group. CRN *string `json:"crn" validate:"required"` - // The security group's canonical URL. + // The URL for this security group. Href *string `json:"href" validate:"required"` // The unique identifier for this security group. @@ -45988,6 +45847,25 @@ func (options *DeleteVPNServerRouteOptions) SetHeaders(param map[string]string) return options } +// Deleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary +// information. +type Deleted struct { + // Link to documentation about deleted resources. + MoreInfo *string `json:"more_info" validate:"required"` +} + +// UnmarshalDeleted unmarshals an instance of Deleted from the specified map of raw messages. +func UnmarshalDeleted(m map[string]json.RawMessage, result interface{}) (err error) { + obj := new(Deleted) + err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) + if err != nil { + err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) + return + } + reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) + return +} + // DeprecateImageOptions : The DeprecateImage options. type DeprecateImageOptions struct { // The image identifier. @@ -46492,25 +46370,6 @@ func (endpointGatewayPatch *EndpointGatewayPatch) AsPatch() (_patch map[string]i return } -// EndpointGatewayReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type EndpointGatewayReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalEndpointGatewayReferenceDeleted unmarshals an instance of EndpointGatewayReferenceDeleted from the specified map of raw messages. -func UnmarshalEndpointGatewayReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(EndpointGatewayReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // EndpointGatewayReferenceRemote : EndpointGatewayReferenceRemote struct type EndpointGatewayReferenceRemote struct { // The CRN for this endpoint gateway. @@ -47284,7 +47143,7 @@ type FloatingIPReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *FloatingIPReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this floating IP. Href *string `json:"href" validate:"required"` @@ -47309,7 +47168,7 @@ func UnmarshalFloatingIPReference(m map[string]json.RawMessage, result interface err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalFloatingIPReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -47333,25 +47192,6 @@ func UnmarshalFloatingIPReference(m map[string]json.RawMessage, result interface return } -// FloatingIPReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type FloatingIPReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalFloatingIPReferenceDeleted unmarshals an instance of FloatingIPReferenceDeleted from the specified map of raw messages. -func UnmarshalFloatingIPReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(FloatingIPReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // FloatingIPTarget : The target of this floating IP. // Models which "extend" this model: // - FloatingIPTargetNetworkInterfaceReference @@ -47361,7 +47201,7 @@ func UnmarshalFloatingIPReferenceDeleted(m map[string]json.RawMessage, result in type FloatingIPTarget struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *NetworkInterfaceReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this instance network interface. // @@ -47410,7 +47250,7 @@ type FloatingIPTargetIntf interface { // UnmarshalFloatingIPTarget unmarshals an instance of FloatingIPTarget from the specified map of raw messages. func UnmarshalFloatingIPTarget(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(FloatingIPTarget) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalNetworkInterfaceReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -47908,7 +47748,7 @@ func (flowLogCollectorPatch *FlowLogCollectorPatch) AsPatch() (_patch map[string type FlowLogCollectorTarget struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *NetworkInterfaceReferenceTargetContextDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this instance network interface. // @@ -47962,7 +47802,7 @@ type FlowLogCollectorTargetIntf interface { // UnmarshalFlowLogCollectorTarget unmarshals an instance of FlowLogCollectorTarget from the specified map of raw messages. func UnmarshalFlowLogCollectorTarget(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(FlowLogCollectorTarget) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalNetworkInterfaceReferenceTargetContextDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -48076,25 +47916,6 @@ func UnmarshalFlowLogCollectorTargetPrototype(m map[string]json.RawMessage, resu return } -// GenericResourceReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type GenericResourceReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalGenericResourceReferenceDeleted unmarshals an instance of GenericResourceReferenceDeleted from the specified map of raw messages. -func UnmarshalGenericResourceReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(GenericResourceReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // GetBackupPolicyJobOptions : The GetBackupPolicyJob options. type GetBackupPolicyJobOptions struct { // The backup policy identifier. @@ -51206,7 +51027,7 @@ type IkePolicy struct { // The `triple_des` algorithm has been deprecated. EncryptionAlgorithm *string `json:"encryption_algorithm" validate:"required"` - // The IKE policy's canonical URL. + // The URL for this IKE policy. Href *string `json:"href" validate:"required"` // The unique identifier for this IKE policy. @@ -51561,9 +51382,9 @@ func (ikePolicyPatch *IkePolicyPatch) AsPatch() (_patch map[string]interface{}, type IkePolicyReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *IkePolicyReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` - // The IKE policy's canonical URL. + // The URL for this IKE policy. Href *string `json:"href" validate:"required"` // The unique identifier for this IKE policy. @@ -51585,7 +51406,7 @@ const ( // UnmarshalIkePolicyReference unmarshals an instance of IkePolicyReference from the specified map of raw messages. func UnmarshalIkePolicyReference(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(IkePolicyReference) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalIkePolicyReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -51675,7 +51496,7 @@ type IPsecPolicy struct { // `aes256gcm16`. EncryptionAlgorithm *string `json:"encryption_algorithm" validate:"required"` - // The IPsec policy's canonical URL. + // The URL for this IPsec policy. Href *string `json:"href" validate:"required"` // The unique identifier for this IPsec policy. @@ -52171,9 +51992,9 @@ func (iPsecPolicyPatch *IPsecPolicyPatch) AsPatch() (_patch map[string]interface type IPsecPolicyReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *IPsecPolicyReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` - // The IPsec policy's canonical URL. + // The URL for this IPsec policy. Href *string `json:"href" validate:"required"` // The unique identifier for this IPsec policy. @@ -52195,7 +52016,7 @@ const ( // UnmarshalIPsecPolicyReference unmarshals an instance of IPsecPolicyReference from the specified map of raw messages. func UnmarshalIPsecPolicyReference(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(IPsecPolicyReference) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalIPsecPolicyReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -52224,25 +52045,6 @@ func UnmarshalIPsecPolicyReference(m map[string]json.RawMessage, result interfac return } -// IPsecPolicyReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type IPsecPolicyReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalIPsecPolicyReferenceDeleted unmarshals an instance of IPsecPolicyReferenceDeleted from the specified map of raw messages. -func UnmarshalIPsecPolicyReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(IPsecPolicyReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // IkePolicyCollectionFirst : A link to the first page of resources. type IkePolicyCollectionFirst struct { // The URL for a page of resources. @@ -52315,25 +52117,6 @@ func UnmarshalIkePolicyConnectionCollectionNext(m map[string]json.RawMessage, re return } -// IkePolicyReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type IkePolicyReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalIkePolicyReferenceDeleted unmarshals an instance of IkePolicyReferenceDeleted from the specified map of raw messages. -func UnmarshalIkePolicyReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(IkePolicyReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // Image : Image struct type Image struct { CatalogOffering *ImageCatalogOffering `json:"catalog_offering" validate:"required"` @@ -53031,7 +52814,7 @@ func UnmarshalImageFile(m map[string]json.RawMessage, result interface{}) (err e // ImageFileChecksums : ImageFileChecksums struct type ImageFileChecksums struct { - // The SHA256 fingerprint of the image file. + // The SHA256 fingerprint of the image file, in hexadecimal. Sha256 *string `json:"sha256,omitempty"` } @@ -53339,7 +53122,7 @@ type ImageReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *ImageReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this image. Href *string `json:"href" validate:"required"` @@ -53372,7 +53155,7 @@ func UnmarshalImageReference(m map[string]json.RawMessage, result interface{}) ( err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalImageReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -53406,25 +53189,6 @@ func UnmarshalImageReference(m map[string]json.RawMessage, result interface{}) ( return } -// ImageReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type ImageReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalImageReferenceDeleted unmarshals an instance of ImageReferenceDeleted from the specified map of raw messages. -func UnmarshalImageReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(ImageReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // ImageRemote : If present, this property indicates that the resource associated with this reference is remote and therefore may not // be directly retrievable. type ImageRemote struct { @@ -53593,9 +53357,6 @@ type Instance struct { LifecycleState *string `json:"lifecycle_state" validate:"required"` // The amount of memory, truncated to whole gibibytes. - // - // The maximum limit for this property may - // [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) in the future. Memory *int64 `json:"memory" validate:"required"` // The metadata service configuration. @@ -54575,7 +54336,7 @@ func (instanceDiskPatch *InstanceDiskPatch) AsPatch() (_patch map[string]interfa type InstanceDiskReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *InstanceDiskReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this instance disk. Href *string `json:"href" validate:"required"` @@ -54599,7 +54360,7 @@ const ( // UnmarshalInstanceDiskReference unmarshals an instance of InstanceDiskReference from the specified map of raw messages. func UnmarshalInstanceDiskReference(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(InstanceDiskReference) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalInstanceDiskReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -54628,25 +54389,6 @@ func UnmarshalInstanceDiskReference(m map[string]json.RawMessage, result interfa return } -// InstanceDiskReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type InstanceDiskReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalInstanceDiskReferenceDeleted unmarshals an instance of InstanceDiskReferenceDeleted from the specified map of raw messages. -func UnmarshalInstanceDiskReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(InstanceDiskReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // InstanceGpu : The virtual server instance GPU configuration. type InstanceGpu struct { // The number of GPUs assigned to the instance. @@ -55502,7 +55244,7 @@ func UnmarshalInstanceGroupManagerActionPrototype(m map[string]json.RawMessage, type InstanceGroupManagerActionReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *InstanceGroupManagerActionReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this instance group manager action. Href *string `json:"href" validate:"required"` @@ -55527,7 +55269,7 @@ const ( // UnmarshalInstanceGroupManagerActionReference unmarshals an instance of InstanceGroupManagerActionReference from the specified map of raw messages. func UnmarshalInstanceGroupManagerActionReference(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(InstanceGroupManagerActionReference) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalInstanceGroupManagerActionReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -55556,25 +55298,6 @@ func UnmarshalInstanceGroupManagerActionReference(m map[string]json.RawMessage, return } -// InstanceGroupManagerActionReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type InstanceGroupManagerActionReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalInstanceGroupManagerActionReferenceDeleted unmarshals an instance of InstanceGroupManagerActionReferenceDeleted from the specified map of raw messages. -func UnmarshalInstanceGroupManagerActionReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(InstanceGroupManagerActionReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // InstanceGroupManagerActionsCollection : InstanceGroupManagerActionsCollection struct type InstanceGroupManagerActionsCollection struct { // Collection of instance group manager actions. @@ -56181,7 +55904,7 @@ func UnmarshalInstanceGroupManagerPolicyPrototype(m map[string]json.RawMessage, type InstanceGroupManagerPolicyReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *InstanceGroupManagerPolicyReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this instance group manager policy. Href *string `json:"href" validate:"required"` @@ -56197,7 +55920,7 @@ type InstanceGroupManagerPolicyReference struct { // UnmarshalInstanceGroupManagerPolicyReference unmarshals an instance of InstanceGroupManagerPolicyReference from the specified map of raw messages. func UnmarshalInstanceGroupManagerPolicyReference(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(InstanceGroupManagerPolicyReference) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalInstanceGroupManagerPolicyReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -56221,25 +55944,6 @@ func UnmarshalInstanceGroupManagerPolicyReference(m map[string]json.RawMessage, return } -// InstanceGroupManagerPolicyReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type InstanceGroupManagerPolicyReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalInstanceGroupManagerPolicyReferenceDeleted unmarshals an instance of InstanceGroupManagerPolicyReferenceDeleted from the specified map of raw messages. -func UnmarshalInstanceGroupManagerPolicyReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(InstanceGroupManagerPolicyReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // InstanceGroupManagerPrototype : InstanceGroupManagerPrototype struct // Models which "extend" this model: // - InstanceGroupManagerPrototypeInstanceGroupManagerAutoScalePrototype @@ -56328,7 +56032,7 @@ func UnmarshalInstanceGroupManagerPrototype(m map[string]json.RawMessage, result type InstanceGroupManagerReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *InstanceGroupManagerReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this instance group manager. Href *string `json:"href" validate:"required"` @@ -56343,7 +56047,7 @@ type InstanceGroupManagerReference struct { // UnmarshalInstanceGroupManagerReference unmarshals an instance of InstanceGroupManagerReference from the specified map of raw messages. func UnmarshalInstanceGroupManagerReference(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(InstanceGroupManagerReference) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalInstanceGroupManagerReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -56367,25 +56071,6 @@ func UnmarshalInstanceGroupManagerReference(m map[string]json.RawMessage, result return } -// InstanceGroupManagerReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type InstanceGroupManagerReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalInstanceGroupManagerReferenceDeleted unmarshals an instance of InstanceGroupManagerReferenceDeleted from the specified map of raw messages. -func UnmarshalInstanceGroupManagerReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(InstanceGroupManagerReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // InstanceGroupManagerScheduledActionGroup : InstanceGroupManagerScheduledActionGroup struct type InstanceGroupManagerScheduledActionGroup struct { // The desired number of instance group members at the scheduled time. @@ -56440,7 +56125,7 @@ func UnmarshalInstanceGroupManagerScheduledActionGroupPrototype(m map[string]jso type InstanceGroupManagerScheduledActionManager struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *InstanceGroupManagerReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this instance group manager. Href *string `json:"href,omitempty"` @@ -56469,7 +56154,7 @@ type InstanceGroupManagerScheduledActionManagerIntf interface { // UnmarshalInstanceGroupManagerScheduledActionManager unmarshals an instance of InstanceGroupManagerScheduledActionManager from the specified map of raw messages. func UnmarshalInstanceGroupManagerScheduledActionManager(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(InstanceGroupManagerScheduledActionManager) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalInstanceGroupManagerReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -56894,7 +56579,7 @@ type InstanceGroupReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *InstanceGroupReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this instance group. Href *string `json:"href" validate:"required"` @@ -56914,7 +56599,7 @@ func UnmarshalInstanceGroupReference(m map[string]json.RawMessage, result interf err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalInstanceGroupReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -56938,25 +56623,6 @@ func UnmarshalInstanceGroupReference(m map[string]json.RawMessage, result interf return } -// InstanceGroupReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type InstanceGroupReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalInstanceGroupReferenceDeleted unmarshals an instance of InstanceGroupReferenceDeleted from the specified map of raw messages. -func UnmarshalInstanceGroupReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(InstanceGroupReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // InstanceHealthReason : InstanceHealthReason struct type InstanceHealthReason struct { // A reason code for this health state: @@ -57723,7 +57389,7 @@ func UnmarshalInstanceNetworkAttachmentPrototypeVirtualNetworkInterface(m map[st type InstanceNetworkAttachmentReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *InstanceNetworkAttachmentReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this instance network attachment. Href *string `json:"href" validate:"required"` @@ -57757,7 +57423,7 @@ const ( // UnmarshalInstanceNetworkAttachmentReference unmarshals an instance of InstanceNetworkAttachmentReference from the specified map of raw messages. func UnmarshalInstanceNetworkAttachmentReference(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(InstanceNetworkAttachmentReference) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalInstanceNetworkAttachmentReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -57801,25 +57467,6 @@ func UnmarshalInstanceNetworkAttachmentReference(m map[string]json.RawMessage, r return } -// InstanceNetworkAttachmentReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type InstanceNetworkAttachmentReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalInstanceNetworkAttachmentReferenceDeleted unmarshals an instance of InstanceNetworkAttachmentReferenceDeleted from the specified map of raw messages. -func UnmarshalInstanceNetworkAttachmentReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(InstanceNetworkAttachmentReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // InstancePatch : InstancePatch struct type InstancePatch struct { // The availability policy for this virtual server instance. @@ -58006,7 +57653,7 @@ type InstancePlacementTarget struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *DedicatedHostGroupReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this dedicated host group. Href *string `json:"href,omitempty"` @@ -58043,7 +57690,7 @@ func UnmarshalInstancePlacementTarget(m map[string]json.RawMessage, result inter err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDedicatedHostGroupReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -60031,7 +59678,7 @@ type InstanceReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *InstanceReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this virtual server instance. Href *string `json:"href" validate:"required"` @@ -60051,7 +59698,7 @@ func UnmarshalInstanceReference(m map[string]json.RawMessage, result interface{} err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalInstanceReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -60075,25 +59722,6 @@ func UnmarshalInstanceReference(m map[string]json.RawMessage, result interface{} return } -// InstanceReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type InstanceReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalInstanceReferenceDeleted unmarshals an instance of InstanceReferenceDeleted from the specified map of raw messages. -func UnmarshalInstanceReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(InstanceReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // InstanceReservationAffinity : InstanceReservationAffinity struct type InstanceReservationAffinity struct { // The reservation affinity policy to use for this virtual server instance: @@ -61002,7 +60630,7 @@ type InstanceTemplateReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *InstanceTemplateReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this instance template. Href *string `json:"href" validate:"required"` @@ -61022,7 +60650,7 @@ func UnmarshalInstanceTemplateReference(m map[string]json.RawMessage, result int err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalInstanceTemplateReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -61046,25 +60674,6 @@ func UnmarshalInstanceTemplateReference(m map[string]json.RawMessage, result int return } -// InstanceTemplateReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type InstanceTemplateReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalInstanceTemplateReferenceDeleted unmarshals an instance of InstanceTemplateReferenceDeleted from the specified map of raw messages. -func UnmarshalInstanceTemplateReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(InstanceTemplateReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // InstanceVcpu : The virtual server instance VCPU configuration. type InstanceVcpu struct { // The VCPU architecture. @@ -61394,7 +61003,7 @@ type KeyReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *KeyReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The fingerprint for this key. The value is returned base64-encoded and prefixed with the hash algorithm (always // `SHA256`). @@ -61418,7 +61027,7 @@ func UnmarshalKeyReference(m map[string]json.RawMessage, result interface{}) (er err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalKeyReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -61447,25 +61056,6 @@ func UnmarshalKeyReference(m map[string]json.RawMessage, result interface{}) (er return } -// KeyReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type KeyReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalKeyReferenceDeleted unmarshals an instance of KeyReferenceDeleted from the specified map of raw messages. -func UnmarshalKeyReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(KeyReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // LegacyCloudObjectStorageBucketIdentity : Identifies a Cloud Object Storage bucket by a unique property. // Models which "extend" this model: // - LegacyCloudObjectStorageBucketIdentityCloudObjectStorageBucketIdentityByName @@ -66235,7 +65825,7 @@ type LoadBalancer struct { // The date and time that this load balancer was created. CreatedAt *strfmt.DateTime `json:"created_at" validate:"required"` - // The load balancer's CRN. + // The CRN for this load balancer. CRN *string `json:"crn" validate:"required"` // The DNS configuration for this load balancer. @@ -66247,7 +65837,7 @@ type LoadBalancer struct { // Fully qualified domain name assigned to this load balancer. Hostname *string `json:"hostname" validate:"required"` - // The load balancer's canonical URL. + // The URL for this load balancer. Href *string `json:"href" validate:"required"` // The unique identifier for this load balancer. @@ -66275,7 +65865,7 @@ type LoadBalancer struct { Pools []LoadBalancerPoolReference `json:"pools" validate:"required"` // The private IP addresses assigned to this load balancer. - PrivateIps []LoadBalancerPrivateIpsItem `json:"private_ips" validate:"required"` + PrivateIps []ReservedIPReference `json:"private_ips" validate:"required"` // The profile for this load balancer. Profile *LoadBalancerProfileReference `json:"profile" validate:"required"` @@ -66436,7 +66026,7 @@ func UnmarshalLoadBalancer(m map[string]json.RawMessage, result interface{}) (er err = core.SDKErrorf(err, "", "pools-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "private_ips", &obj.PrivateIps, UnmarshalLoadBalancerPrivateIpsItem) + err = core.UnmarshalModel(m, "private_ips", &obj.PrivateIps, UnmarshalReservedIPReference) if err != nil { err = core.SDKErrorf(err, "", "private_ips-error", common.GetComponentInfo()) return @@ -66716,10 +66306,10 @@ type LoadBalancerIdentity struct { // The unique identifier for this load balancer. ID *string `json:"id,omitempty"` - // The load balancer's CRN. + // The CRN for this load balancer. CRN *string `json:"crn,omitempty"` - // The load balancer's canonical URL. + // The URL for this load balancer. Href *string `json:"href,omitempty"` } @@ -66779,7 +66369,7 @@ type LoadBalancerListener struct { // If `https_redirect` is set, the default pool will not be used. DefaultPool *LoadBalancerPoolReference `json:"default_pool,omitempty"` - // The listener's canonical URL. + // The URL for this load balancer listener. Href *string `json:"href" validate:"required"` // If present, the target listener that requests are redirected to if none of the @@ -66963,7 +66553,7 @@ type LoadBalancerListenerDefaultPoolPatch struct { // The unique identifier for this load balancer pool. ID *string `json:"id,omitempty"` - // The pool's canonical URL. + // The URL for this load balancer pool. Href *string `json:"href,omitempty"` } @@ -67114,7 +66704,7 @@ type LoadBalancerListenerIdentity struct { // The unique identifier for this load balancer listener. ID *string `json:"id,omitempty"` - // The listener's canonical URL. + // The URL for this load balancer listener. Href *string `json:"href,omitempty"` } @@ -67330,10 +66920,10 @@ type LoadBalancerListenerPolicy struct { // The date and time that this policy was created. CreatedAt *strfmt.DateTime `json:"created_at" validate:"required"` - // The listener policy's canonical URL. + // The URL for this load balancer policy. Href *string `json:"href" validate:"required"` - // The policy's unique identifier. + // The unique identifier for this load balancer policy. ID *string `json:"id" validate:"required"` // The name for this load balancer listener policy. The name is unique across all policies for the load balancer @@ -67614,12 +67204,12 @@ func UnmarshalLoadBalancerListenerPolicyPrototype(m map[string]json.RawMessage, type LoadBalancerListenerPolicyReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *LoadBalancerListenerPolicyReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` - // The listener policy's canonical URL. + // The URL for this load balancer policy. Href *string `json:"href" validate:"required"` - // The policy's unique identifier. + // The unique identifier for this load balancer policy. ID *string `json:"id" validate:"required"` // The name for this load balancer listener policy. The name is unique across all policies for the load balancer @@ -67630,7 +67220,7 @@ type LoadBalancerListenerPolicyReference struct { // UnmarshalLoadBalancerListenerPolicyReference unmarshals an instance of LoadBalancerListenerPolicyReference from the specified map of raw messages. func UnmarshalLoadBalancerListenerPolicyReference(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(LoadBalancerListenerPolicyReference) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalLoadBalancerListenerPolicyReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -67654,25 +67244,6 @@ func UnmarshalLoadBalancerListenerPolicyReference(m map[string]json.RawMessage, return } -// LoadBalancerListenerPolicyReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type LoadBalancerListenerPolicyReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalLoadBalancerListenerPolicyReferenceDeleted unmarshals an instance of LoadBalancerListenerPolicyReferenceDeleted from the specified map of raw messages. -func UnmarshalLoadBalancerListenerPolicyReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(LoadBalancerListenerPolicyReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // LoadBalancerListenerPolicyRule : LoadBalancerListenerPolicyRule struct type LoadBalancerListenerPolicyRule struct { // The condition of the rule. @@ -67691,10 +67262,10 @@ type LoadBalancerListenerPolicyRule struct { // If the rule type is `body`, this is optional. Field *string `json:"field,omitempty"` - // The rule's canonical URL. + // The URL for this load balancer listener policy rule. Href *string `json:"href" validate:"required"` - // The rule's unique identifier. + // The unique identifier for this load balancer listener policy rule. ID *string `json:"id" validate:"required"` // The provisioning status of this rule @@ -67989,19 +67560,19 @@ func UnmarshalLoadBalancerListenerPolicyRulePrototype(m map[string]json.RawMessa type LoadBalancerListenerPolicyRuleReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *LoadBalancerListenerPolicyRuleReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` - // The rule's canonical URL. + // The URL for this load balancer listener policy rule. Href *string `json:"href" validate:"required"` - // The rule's unique identifier. + // The unique identifier for this load balancer listener policy rule. ID *string `json:"id" validate:"required"` } // UnmarshalLoadBalancerListenerPolicyRuleReference unmarshals an instance of LoadBalancerListenerPolicyRuleReference from the specified map of raw messages. func UnmarshalLoadBalancerListenerPolicyRuleReference(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(LoadBalancerListenerPolicyRuleReference) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalLoadBalancerListenerPolicyRuleReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -68020,25 +67591,6 @@ func UnmarshalLoadBalancerListenerPolicyRuleReference(m map[string]json.RawMessa return } -// LoadBalancerListenerPolicyRuleReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type LoadBalancerListenerPolicyRuleReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalLoadBalancerListenerPolicyRuleReferenceDeleted unmarshals an instance of LoadBalancerListenerPolicyRuleReferenceDeleted from the specified map of raw messages. -func UnmarshalLoadBalancerListenerPolicyRuleReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(LoadBalancerListenerPolicyRuleReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // LoadBalancerListenerPolicyTarget : - If `action` is `forward`, the response is a `LoadBalancerPoolReference` // - If `action` is `https_redirect`, the response is a // `LoadBalancerListenerPolicyHTTPSRedirect` @@ -68050,9 +67602,9 @@ func UnmarshalLoadBalancerListenerPolicyRuleReferenceDeleted(m map[string]json.R type LoadBalancerListenerPolicyTarget struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *LoadBalancerPoolReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` - // The pool's canonical URL. + // The URL for this load balancer pool. Href *string `json:"href,omitempty"` // The unique identifier for this load balancer pool. @@ -68100,7 +67652,7 @@ type LoadBalancerListenerPolicyTargetIntf interface { // UnmarshalLoadBalancerListenerPolicyTarget unmarshals an instance of LoadBalancerListenerPolicyTarget from the specified map of raw messages. func UnmarshalLoadBalancerListenerPolicyTarget(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(LoadBalancerListenerPolicyTarget) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalLoadBalancerPoolReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -68156,7 +67708,7 @@ type LoadBalancerListenerPolicyTargetPatch struct { // The unique identifier for this load balancer pool. ID *string `json:"id,omitempty"` - // The pool's canonical URL. + // The URL for this load balancer pool. Href *string `json:"href,omitempty"` // The HTTP status code for this redirect. @@ -68245,7 +67797,7 @@ type LoadBalancerListenerPolicyTargetPrototype struct { // The unique identifier for this load balancer pool. ID *string `json:"id,omitempty"` - // The pool's canonical URL. + // The URL for this load balancer pool. Href *string `json:"href,omitempty"` // The HTTP status code for this redirect. @@ -68493,9 +68045,9 @@ func UnmarshalLoadBalancerListenerPrototypeLoadBalancerContext(m map[string]json type LoadBalancerListenerReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *LoadBalancerListenerReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` - // The listener's canonical URL. + // The URL for this load balancer listener. Href *string `json:"href" validate:"required"` // The unique identifier for this load balancer listener. @@ -68505,7 +68057,7 @@ type LoadBalancerListenerReference struct { // UnmarshalLoadBalancerListenerReference unmarshals an instance of LoadBalancerListenerReference from the specified map of raw messages. func UnmarshalLoadBalancerListenerReference(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(LoadBalancerListenerReference) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalLoadBalancerListenerReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -68524,25 +68076,6 @@ func UnmarshalLoadBalancerListenerReference(m map[string]json.RawMessage, result return } -// LoadBalancerListenerReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type LoadBalancerListenerReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalLoadBalancerListenerReferenceDeleted unmarshals an instance of LoadBalancerListenerReferenceDeleted from the specified map of raw messages. -func UnmarshalLoadBalancerListenerReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(LoadBalancerListenerReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // LoadBalancerLogging : LoadBalancerLogging struct type LoadBalancerLogging struct { // The datapath logging configuration for this load balancer. @@ -68729,7 +68262,7 @@ type LoadBalancerPool struct { // The health monitor of this pool. HealthMonitor *LoadBalancerPoolHealthMonitor `json:"health_monitor" validate:"required"` - // The pool's canonical URL. + // The URL for this load balancer pool. Href *string `json:"href" validate:"required"` // The unique identifier for this load balancer pool. @@ -69158,7 +68691,7 @@ type LoadBalancerPoolIdentity struct { // The unique identifier for this load balancer pool. ID *string `json:"id,omitempty"` - // The pool's canonical URL. + // The URL for this load balancer pool. Href *string `json:"href,omitempty"` } @@ -69225,7 +68758,7 @@ type LoadBalancerPoolMember struct { // Health of the server member in the pool. Health *string `json:"health" validate:"required"` - // The member's canonical URL. + // The URL for this load balancer pool member. Href *string `json:"href" validate:"required"` // The unique identifier for this load balancer pool member. @@ -69462,9 +68995,9 @@ func UnmarshalLoadBalancerPoolMemberPrototype(m map[string]json.RawMessage, resu type LoadBalancerPoolMemberReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *LoadBalancerPoolMemberReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` - // The member's canonical URL. + // The URL for this load balancer pool member. Href *string `json:"href" validate:"required"` // The unique identifier for this load balancer pool member. @@ -69474,7 +69007,7 @@ type LoadBalancerPoolMemberReference struct { // UnmarshalLoadBalancerPoolMemberReference unmarshals an instance of LoadBalancerPoolMemberReference from the specified map of raw messages. func UnmarshalLoadBalancerPoolMemberReference(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(LoadBalancerPoolMemberReference) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalLoadBalancerPoolMemberReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -69493,25 +69026,6 @@ func UnmarshalLoadBalancerPoolMemberReference(m map[string]json.RawMessage, resu return } -// LoadBalancerPoolMemberReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type LoadBalancerPoolMemberReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalLoadBalancerPoolMemberReferenceDeleted unmarshals an instance of LoadBalancerPoolMemberReferenceDeleted from the specified map of raw messages. -func UnmarshalLoadBalancerPoolMemberReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(LoadBalancerPoolMemberReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // LoadBalancerPoolMemberTarget : The pool member target. Load balancers in the `network` family support virtual server instances. Load balancers in // the `application` family support IP addresses. If the load balancer has route mode enabled, the member must be in a // zone the load balancer has a subnet in. @@ -69524,7 +69038,7 @@ type LoadBalancerPoolMemberTarget struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *InstanceReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this virtual server instance. Href *string `json:"href,omitempty"` @@ -69558,7 +69072,7 @@ func UnmarshalLoadBalancerPoolMemberTarget(m map[string]json.RawMessage, result err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalInstanceReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -69892,9 +69406,9 @@ func UnmarshalLoadBalancerPoolPrototype(m map[string]json.RawMessage, result int type LoadBalancerPoolReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *LoadBalancerPoolReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` - // The pool's canonical URL. + // The URL for this load balancer pool. Href *string `json:"href" validate:"required"` // The unique identifier for this load balancer pool. @@ -69907,7 +69421,7 @@ type LoadBalancerPoolReference struct { // UnmarshalLoadBalancerPoolReference unmarshals an instance of LoadBalancerPoolReference from the specified map of raw messages. func UnmarshalLoadBalancerPoolReference(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(LoadBalancerPoolReference) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalLoadBalancerPoolReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -69931,25 +69445,6 @@ func UnmarshalLoadBalancerPoolReference(m map[string]json.RawMessage, result int return } -// LoadBalancerPoolReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type LoadBalancerPoolReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalLoadBalancerPoolReferenceDeleted unmarshals an instance of LoadBalancerPoolReferenceDeleted from the specified map of raw messages. -func UnmarshalLoadBalancerPoolReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(LoadBalancerPoolReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // LoadBalancerPoolSessionPersistence : LoadBalancerPoolSessionPersistence struct type LoadBalancerPoolSessionPersistence struct { // The session persistence cookie name. Applicable only for type `app_cookie`. Names starting with `IBM` are not @@ -70079,76 +69574,6 @@ func UnmarshalLoadBalancerPoolSessionPersistencePrototype(m map[string]json.RawM return } -// LoadBalancerPrivateIpsItem : LoadBalancerPrivateIpsItem struct -type LoadBalancerPrivateIpsItem struct { - // The IP address. - // - // If the address has not yet been selected, the value will be `0.0.0.0`. - // - // This property may [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) to support IPv6 addresses in - // the future. - Address *string `json:"address" validate:"required"` - - // If present, this property indicates the referenced resource has been deleted, and provides - // some supplementary information. - Deleted *ReservedIPReferenceDeleted `json:"deleted,omitempty"` - - // The URL for this reserved IP. - Href *string `json:"href" validate:"required"` - - // The unique identifier for this reserved IP. - ID *string `json:"id" validate:"required"` - - // The name for this reserved IP. The name is unique across all reserved IPs in a subnet. - Name *string `json:"name" validate:"required"` - - // The resource type. - ResourceType *string `json:"resource_type" validate:"required"` -} - -// Constants associated with the LoadBalancerPrivateIpsItem.ResourceType property. -// The resource type. -const ( - LoadBalancerPrivateIpsItemResourceTypeSubnetReservedIPConst = "subnet_reserved_ip" -) - -// UnmarshalLoadBalancerPrivateIpsItem unmarshals an instance of LoadBalancerPrivateIpsItem from the specified map of raw messages. -func UnmarshalLoadBalancerPrivateIpsItem(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(LoadBalancerPrivateIpsItem) - err = core.UnmarshalPrimitive(m, "address", &obj.Address) - if err != nil { - err = core.SDKErrorf(err, "", "address-error", common.GetComponentInfo()) - return - } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalReservedIPReferenceDeleted) - if err != nil { - err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) - return - } - err = core.UnmarshalPrimitive(m, "href", &obj.Href) - if err != nil { - err = core.SDKErrorf(err, "", "href-error", common.GetComponentInfo()) - return - } - err = core.UnmarshalPrimitive(m, "id", &obj.ID) - if err != nil { - err = core.SDKErrorf(err, "", "id-error", common.GetComponentInfo()) - return - } - err = core.UnmarshalPrimitive(m, "name", &obj.Name) - if err != nil { - err = core.SDKErrorf(err, "", "name-error", common.GetComponentInfo()) - return - } - err = core.UnmarshalPrimitive(m, "resource_type", &obj.ResourceType) - if err != nil { - err = core.SDKErrorf(err, "", "resource_type-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // LoadBalancerProfile : LoadBalancerProfile struct type LoadBalancerProfile struct { // The product family this load balancer profile belongs to. @@ -70622,25 +70047,6 @@ func UnmarshalLoadBalancerProfileUDPSupported(m map[string]json.RawMessage, resu return } -// LoadBalancerReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type LoadBalancerReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalLoadBalancerReferenceDeleted unmarshals an instance of LoadBalancerReferenceDeleted from the specified map of raw messages. -func UnmarshalLoadBalancerReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(LoadBalancerReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // LoadBalancerStatistics : LoadBalancerStatistics struct type LoadBalancerStatistics struct { // Number of active connections of this load balancer. @@ -71015,7 +70421,7 @@ type NetworkACLReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *NetworkACLReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this network ACL. Href *string `json:"href" validate:"required"` @@ -71035,7 +70441,7 @@ func UnmarshalNetworkACLReference(m map[string]json.RawMessage, result interface err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalNetworkACLReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -71059,25 +70465,6 @@ func UnmarshalNetworkACLReference(m map[string]json.RawMessage, result interface return } -// NetworkACLReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type NetworkACLReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalNetworkACLReferenceDeleted unmarshals an instance of NetworkACLReferenceDeleted from the specified map of raw messages. -func UnmarshalNetworkACLReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(NetworkACLReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // NetworkACLRule : NetworkACLRule struct // Models which "extend" this model: // - NetworkACLRuleNetworkACLRuleProtocolTcpudp @@ -71962,7 +71349,7 @@ func UnmarshalNetworkACLRulePrototypeNetworkACLContext(m map[string]json.RawMess type NetworkACLRuleReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *NetworkACLRuleReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this network ACL rule. Href *string `json:"href" validate:"required"` @@ -71977,7 +71364,7 @@ type NetworkACLRuleReference struct { // UnmarshalNetworkACLRuleReference unmarshals an instance of NetworkACLRuleReference from the specified map of raw messages. func UnmarshalNetworkACLRuleReference(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(NetworkACLRuleReference) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalNetworkACLRuleReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -72001,25 +71388,6 @@ func UnmarshalNetworkACLRuleReference(m map[string]json.RawMessage, result inter return } -// NetworkACLRuleReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type NetworkACLRuleReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalNetworkACLRuleReferenceDeleted unmarshals an instance of NetworkACLRuleReferenceDeleted from the specified map of raw messages. -func UnmarshalNetworkACLRuleReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(NetworkACLRuleReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // NetworkInterface : NetworkInterface struct type NetworkInterface struct { // Indicates whether source IP spoofing is allowed on this instance network interface. @@ -72215,7 +71583,7 @@ func UnmarshalNetworkInterface(m map[string]json.RawMessage, result interface{}) type NetworkInterfaceBareMetalServerContextReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *NetworkInterfaceBareMetalServerContextReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this bare metal server network interface. // @@ -72253,7 +71621,7 @@ const ( // UnmarshalNetworkInterfaceBareMetalServerContextReference unmarshals an instance of NetworkInterfaceBareMetalServerContextReference from the specified map of raw messages. func UnmarshalNetworkInterfaceBareMetalServerContextReference(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(NetworkInterfaceBareMetalServerContextReference) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalNetworkInterfaceBareMetalServerContextReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -72292,25 +71660,6 @@ func UnmarshalNetworkInterfaceBareMetalServerContextReference(m map[string]json. return } -// NetworkInterfaceBareMetalServerContextReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type NetworkInterfaceBareMetalServerContextReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalNetworkInterfaceBareMetalServerContextReferenceDeleted unmarshals an instance of NetworkInterfaceBareMetalServerContextReferenceDeleted from the specified map of raw messages. -func UnmarshalNetworkInterfaceBareMetalServerContextReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(NetworkInterfaceBareMetalServerContextReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // NetworkInterfaceIPPrototype : NetworkInterfaceIPPrototype struct // Models which "extend" this model: // - NetworkInterfaceIPPrototypeReservedIPIdentity @@ -72381,7 +71730,7 @@ func UnmarshalNetworkInterfaceIPPrototype(m map[string]json.RawMessage, result i type NetworkInterfaceInstanceContextReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *NetworkInterfaceInstanceContextReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this instance network interface. // @@ -72419,7 +71768,7 @@ const ( // UnmarshalNetworkInterfaceInstanceContextReference unmarshals an instance of NetworkInterfaceInstanceContextReference from the specified map of raw messages. func UnmarshalNetworkInterfaceInstanceContextReference(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(NetworkInterfaceInstanceContextReference) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalNetworkInterfaceInstanceContextReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -72458,25 +71807,6 @@ func UnmarshalNetworkInterfaceInstanceContextReference(m map[string]json.RawMess return } -// NetworkInterfaceInstanceContextReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type NetworkInterfaceInstanceContextReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalNetworkInterfaceInstanceContextReferenceDeleted unmarshals an instance of NetworkInterfaceInstanceContextReferenceDeleted from the specified map of raw messages. -func UnmarshalNetworkInterfaceInstanceContextReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(NetworkInterfaceInstanceContextReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // NetworkInterfacePatch : NetworkInterfacePatch struct type NetworkInterfacePatch struct { // Indicates whether source IP spoofing is allowed on this instance network interface. @@ -72596,44 +71926,6 @@ func UnmarshalNetworkInterfacePrototype(m map[string]json.RawMessage, result int return } -// NetworkInterfaceReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type NetworkInterfaceReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalNetworkInterfaceReferenceDeleted unmarshals an instance of NetworkInterfaceReferenceDeleted from the specified map of raw messages. -func UnmarshalNetworkInterfaceReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(NetworkInterfaceReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - -// NetworkInterfaceReferenceTargetContextDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type NetworkInterfaceReferenceTargetContextDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalNetworkInterfaceReferenceTargetContextDeleted unmarshals an instance of NetworkInterfaceReferenceTargetContextDeleted from the specified map of raw messages. -func UnmarshalNetworkInterfaceReferenceTargetContextDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(NetworkInterfaceReferenceTargetContextDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // NetworkInterfaceUnpaginatedCollection : NetworkInterfaceUnpaginatedCollection struct type NetworkInterfaceUnpaginatedCollection struct { // Collection of instance network interfaces. @@ -73175,25 +72467,6 @@ func (placementGroupPatch *PlacementGroupPatch) AsPatch() (_patch map[string]int return } -// PlacementGroupReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type PlacementGroupReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalPlacementGroupReferenceDeleted unmarshals an instance of PlacementGroupReferenceDeleted from the specified map of raw messages. -func UnmarshalPlacementGroupReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(PlacementGroupReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // PublicGateway : PublicGateway struct type PublicGateway struct { // The date and time that the public gateway was created. @@ -73419,7 +72692,7 @@ type PublicGatewayFloatingIP struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *FloatingIPReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this floating IP. Href *string `json:"href" validate:"required"` @@ -73444,7 +72717,7 @@ func UnmarshalPublicGatewayFloatingIP(m map[string]json.RawMessage, result inter err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalFloatingIPReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -73623,7 +72896,7 @@ type PublicGatewayReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *PublicGatewayReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this public gateway. Href *string `json:"href" validate:"required"` @@ -73652,7 +72925,7 @@ func UnmarshalPublicGatewayReference(m map[string]json.RawMessage, result interf err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalPublicGatewayReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -73681,25 +72954,6 @@ func UnmarshalPublicGatewayReference(m map[string]json.RawMessage, result interf return } -// PublicGatewayReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type PublicGatewayReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalPublicGatewayReferenceDeleted unmarshals an instance of PublicGatewayReferenceDeleted from the specified map of raw messages. -func UnmarshalPublicGatewayReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(PublicGatewayReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // Region : Region struct type Region struct { // The API endpoint for this region. @@ -74742,7 +73996,9 @@ func UnmarshalReservationCollectionNext(m map[string]json.RawMessage, result int // ReservationCommittedUse : The committed use reservation configuration. type ReservationCommittedUse struct { // The expiration date and time for this committed use reservation. - ExpirationAt *strfmt.DateTime `json:"expiration_at" validate:"required"` + // + // This property will be absent if the reservation has a `status` of `inactive`. + ExpirationAt *strfmt.DateTime `json:"expiration_at,omitempty"` // The policy to apply when the committed use term expires: // - `release`: Release any available capacity and let the reservation expire. @@ -75137,7 +74393,7 @@ type ReservationReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *ReservationReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this reservation. Href *string `json:"href" validate:"required"` @@ -75166,7 +74422,7 @@ func UnmarshalReservationReference(m map[string]json.RawMessage, result interfac err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalReservationReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -75195,25 +74451,6 @@ func UnmarshalReservationReference(m map[string]json.RawMessage, result interfac return } -// ReservationReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type ReservationReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalReservationReferenceDeleted unmarshals an instance of ReservationReferenceDeleted from the specified map of raw messages. -func UnmarshalReservationReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(ReservationReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // ReservationStatusReason : ReservationStatusReason struct type ReservationStatusReason struct { // A snake case string succinctly identifying the status reason. @@ -75932,7 +75169,7 @@ type ReservedIPReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *ReservedIPReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this reserved IP. Href *string `json:"href" validate:"required"` @@ -75961,7 +75198,7 @@ func UnmarshalReservedIPReference(m map[string]json.RawMessage, result interface err = core.SDKErrorf(err, "", "address-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalReservedIPReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -75990,25 +75227,6 @@ func UnmarshalReservedIPReference(m map[string]json.RawMessage, result interface return } -// ReservedIPReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type ReservedIPReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalReservedIPReferenceDeleted unmarshals an instance of ReservedIPReferenceDeleted from the specified map of raw messages. -func UnmarshalReservedIPReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(ReservedIPReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // ReservedIPTarget : The target this reserved IP is bound to. // // If absent, this reserved IP is provider-owned or unbound. @@ -76027,7 +75245,7 @@ type ReservedIPTarget struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *EndpointGatewayReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this endpoint gateway. Href *string `json:"href,omitempty"` @@ -76064,7 +75282,7 @@ func UnmarshalReservedIPTarget(m map[string]json.RawMessage, result interface{}) err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalEndpointGatewayReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -76812,14 +76030,14 @@ func UnmarshalRouteCollectionVPCContextRoutesItem(m map[string]json.RawMessage, // - RouteCreatorVPNGatewayReference // - RouteCreatorVPNServerReference type RouteCreator struct { - // The VPN gateway's CRN. + // The CRN for this VPN gateway. CRN *string `json:"crn,omitempty"` // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *VPNGatewayReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` - // The VPN gateway's canonical URL. + // The URL for this VPN gateway. Href *string `json:"href,omitempty"` // The unique identifier for this VPN gateway. @@ -76854,7 +76072,7 @@ func UnmarshalRouteCreator(m map[string]json.RawMessage, result interface{}) (er err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalVPNGatewayReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -76896,9 +76114,9 @@ type RouteNextHop struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *VPNGatewayConnectionReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` - // The VPN connection's canonical URL. + // The URL for this VPN gateway connection. Href *string `json:"href,omitempty"` // The unique identifier for this VPN gateway connection. @@ -76933,7 +76151,7 @@ func UnmarshalRouteNextHop(m map[string]json.RawMessage, result interface{}) (er err = core.SDKErrorf(err, "", "address-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalVPNGatewayConnectionReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -76981,7 +76199,7 @@ type RouteNextHopPatch struct { // The unique identifier for this VPN gateway connection. ID *string `json:"id,omitempty"` - // The VPN connection's canonical URL. + // The URL for this VPN gateway connection. Href *string `json:"href,omitempty"` } @@ -77015,6 +76233,58 @@ func UnmarshalRouteNextHopPatch(m map[string]json.RawMessage, result interface{} return } +// RouteNextHopPrototype : If `action` is `deliver`, the next hop that packets will be delivered to (must not be +// `0.0.0.0`). For other `action` values, it must be omitted or specified as `0.0.0.0`. +// +// At most two routes per `zone` in a table can have the same `destination` and `priority`, and only when each route has +// an `action` of `deliver` and `next_hop` is an IP address. +// Models which "extend" this model: +// - RouteNextHopPrototypeRouteNextHopIP +// - RouteNextHopPrototypeVPNGatewayConnectionIdentity +type RouteNextHopPrototype struct { + // The sentinel IP address (`0.0.0.0`). + // + // This property may [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) to support IPv6 addresses in + // the future. + Address *string `json:"address,omitempty"` + + // The unique identifier for this VPN gateway connection. + ID *string `json:"id,omitempty"` + + // The URL for this VPN gateway connection. + Href *string `json:"href,omitempty"` +} + +func (*RouteNextHopPrototype) isaRouteNextHopPrototype() bool { + return true +} + +type RouteNextHopPrototypeIntf interface { + isaRouteNextHopPrototype() bool +} + +// UnmarshalRouteNextHopPrototype unmarshals an instance of RouteNextHopPrototype from the specified map of raw messages. +func UnmarshalRouteNextHopPrototype(m map[string]json.RawMessage, result interface{}) (err error) { + obj := new(RouteNextHopPrototype) + err = core.UnmarshalPrimitive(m, "address", &obj.Address) + if err != nil { + err = core.SDKErrorf(err, "", "address-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalPrimitive(m, "id", &obj.ID) + if err != nil { + err = core.SDKErrorf(err, "", "id-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalPrimitive(m, "href", &obj.Href) + if err != nil { + err = core.SDKErrorf(err, "", "href-error", common.GetComponentInfo()) + return + } + reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) + return +} + // RoutePatch : RoutePatch struct type RoutePatch struct { // Indicates whether this route will be advertised to the ingress sources specified by the `advertise_routes_to` @@ -77118,7 +76388,7 @@ type RoutePrototype struct { // // At most two routes per `zone` in a table can have the same `destination` and `priority`, // and only when each route has an `action` of `deliver` and `next_hop` is an IP address. - NextHop RoutePrototypeNextHopIntf `json:"next_hop,omitempty"` + NextHop RouteNextHopPrototypeIntf `json:"next_hop,omitempty"` // The priority of this route. Smaller values have higher priority. // @@ -77186,7 +76456,7 @@ func UnmarshalRoutePrototype(m map[string]json.RawMessage, result interface{}) ( err = core.SDKErrorf(err, "", "name-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "next_hop", &obj.NextHop, UnmarshalRoutePrototypeNextHop) + err = core.UnmarshalModel(m, "next_hop", &obj.NextHop, UnmarshalRouteNextHopPrototype) if err != nil { err = core.SDKErrorf(err, "", "next_hop-error", common.GetComponentInfo()) return @@ -77205,63 +76475,11 @@ func UnmarshalRoutePrototype(m map[string]json.RawMessage, result interface{}) ( return } -// RoutePrototypeNextHop : If `action` is `deliver`, the next hop that packets will be delivered to (must not be -// `0.0.0.0`). For other `action` values, it must be omitted or specified as `0.0.0.0`. -// -// At most two routes per `zone` in a table can have the same `destination` and `priority`, and only when each route has -// an `action` of `deliver` and `next_hop` is an IP address. -// Models which "extend" this model: -// - RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIP -// - RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentity -type RoutePrototypeNextHop struct { - // The sentinel IP address (`0.0.0.0`). - // - // This property may [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) to support IPv6 addresses in - // the future. - Address *string `json:"address,omitempty"` - - // The unique identifier for this VPN gateway connection. - ID *string `json:"id,omitempty"` - - // The VPN connection's canonical URL. - Href *string `json:"href,omitempty"` -} - -func (*RoutePrototypeNextHop) isaRoutePrototypeNextHop() bool { - return true -} - -type RoutePrototypeNextHopIntf interface { - isaRoutePrototypeNextHop() bool -} - -// UnmarshalRoutePrototypeNextHop unmarshals an instance of RoutePrototypeNextHop from the specified map of raw messages. -func UnmarshalRoutePrototypeNextHop(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(RoutePrototypeNextHop) - err = core.UnmarshalPrimitive(m, "address", &obj.Address) - if err != nil { - err = core.SDKErrorf(err, "", "address-error", common.GetComponentInfo()) - return - } - err = core.UnmarshalPrimitive(m, "id", &obj.ID) - if err != nil { - err = core.SDKErrorf(err, "", "id-error", common.GetComponentInfo()) - return - } - err = core.UnmarshalPrimitive(m, "href", &obj.Href) - if err != nil { - err = core.SDKErrorf(err, "", "href-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // RouteReference : RouteReference struct type RouteReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *RouteReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this route. Href *string `json:"href" validate:"required"` @@ -77276,7 +76494,7 @@ type RouteReference struct { // UnmarshalRouteReference unmarshals an instance of RouteReference from the specified map of raw messages. func UnmarshalRouteReference(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(RouteReference) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalRouteReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -77300,25 +76518,6 @@ func UnmarshalRouteReference(m map[string]json.RawMessage, result interface{}) ( return } -// RouteReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type RouteReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalRouteReferenceDeleted unmarshals an instance of RouteReferenceDeleted from the specified map of raw messages. -func UnmarshalRouteReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(RouteReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // RoutingTable : RoutingTable struct type RoutingTable struct { // The filters specifying the resources that may create routes in this routing table. @@ -77787,7 +76986,7 @@ func (routingTablePatch *RoutingTablePatch) AsPatch() (_patch map[string]interfa type RoutingTableReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *RoutingTableReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this routing table. Href *string `json:"href" validate:"required"` @@ -77811,7 +77010,7 @@ const ( // UnmarshalRoutingTableReference unmarshals an instance of RoutingTableReference from the specified map of raw messages. func UnmarshalRoutingTableReference(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(RoutingTableReference) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalRoutingTableReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -77840,34 +77039,15 @@ func UnmarshalRoutingTableReference(m map[string]json.RawMessage, result interfa return } -// RoutingTableReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type RoutingTableReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalRoutingTableReferenceDeleted unmarshals an instance of RoutingTableReferenceDeleted from the specified map of raw messages. -func UnmarshalRoutingTableReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(RoutingTableReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // SecurityGroup : SecurityGroup struct type SecurityGroup struct { // The date and time that this security group was created. CreatedAt *strfmt.DateTime `json:"created_at" validate:"required"` - // The security group's CRN. + // The CRN for this security group. CRN *string `json:"crn" validate:"required"` - // The security group's canonical URL. + // The URL for this security group. Href *string `json:"href" validate:"required"` // The unique identifier for this security group. @@ -78052,10 +77232,10 @@ type SecurityGroupIdentity struct { // The unique identifier for this security group. ID *string `json:"id,omitempty"` - // The security group's CRN. + // The CRN for this security group. CRN *string `json:"crn,omitempty"` - // The security group's canonical URL. + // The URL for this security group. Href *string `json:"href,omitempty"` } @@ -78122,14 +77302,14 @@ func (securityGroupPatch *SecurityGroupPatch) AsPatch() (_patch map[string]inter // SecurityGroupReference : SecurityGroupReference struct type SecurityGroupReference struct { - // The security group's CRN. + // The CRN for this security group. CRN *string `json:"crn" validate:"required"` // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *SecurityGroupReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` - // The security group's canonical URL. + // The URL for this security group. Href *string `json:"href" validate:"required"` // The unique identifier for this security group. @@ -78147,7 +77327,7 @@ func UnmarshalSecurityGroupReference(m map[string]json.RawMessage, result interf err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalSecurityGroupReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -78171,25 +77351,6 @@ func UnmarshalSecurityGroupReference(m map[string]json.RawMessage, result interf return } -// SecurityGroupReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type SecurityGroupReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalSecurityGroupReferenceDeleted unmarshals an instance of SecurityGroupReferenceDeleted from the specified map of raw messages. -func UnmarshalSecurityGroupReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(SecurityGroupReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // SecurityGroupRule : SecurityGroupRule struct // Models which "extend" this model: // - SecurityGroupRuleSecurityGroupRuleProtocolAll @@ -78748,14 +77909,14 @@ type SecurityGroupRuleRemote struct { // blocks in the future. CIDRBlock *string `json:"cidr_block,omitempty"` - // The security group's CRN. + // The CRN for this security group. CRN *string `json:"crn,omitempty"` // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *SecurityGroupReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` - // The security group's canonical URL. + // The URL for this security group. Href *string `json:"href,omitempty"` // The unique identifier for this security group. @@ -78791,7 +77952,7 @@ func UnmarshalSecurityGroupRuleRemote(m map[string]json.RawMessage, result inter err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalSecurityGroupReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -78838,10 +77999,10 @@ type SecurityGroupRuleRemotePatch struct { // The unique identifier for this security group. ID *string `json:"id,omitempty"` - // The security group's CRN. + // The CRN for this security group. CRN *string `json:"crn,omitempty"` - // The security group's canonical URL. + // The URL for this security group. Href *string `json:"href,omitempty"` } @@ -78910,10 +78071,10 @@ type SecurityGroupRuleRemotePrototype struct { // The unique identifier for this security group. ID *string `json:"id,omitempty"` - // The security group's CRN. + // The CRN for this security group. CRN *string `json:"crn,omitempty"` - // The security group's canonical URL. + // The URL for this security group. Href *string `json:"href,omitempty"` } @@ -79073,7 +78234,7 @@ func UnmarshalSecurityGroupTargetCollectionNext(m map[string]json.RawMessage, re type SecurityGroupTargetReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *NetworkInterfaceReferenceTargetContextDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this instance network interface. // @@ -79096,7 +78257,7 @@ type SecurityGroupTargetReference struct { // The resource type. ResourceType *string `json:"resource_type,omitempty"` - // The load balancer's CRN. + // The CRN for this load balancer. CRN *string `json:"crn,omitempty"` // The primary IP for this virtual network interface. @@ -79123,7 +78284,7 @@ type SecurityGroupTargetReferenceIntf interface { // UnmarshalSecurityGroupTargetReference unmarshals an instance of SecurityGroupTargetReference from the specified map of raw messages. func UnmarshalSecurityGroupTargetReference(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(SecurityGroupTargetReference) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalNetworkInterfaceReferenceTargetContextDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -79698,7 +78859,7 @@ type ShareAccessorBindingAccessor struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *ShareReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this file share. Href *string `json:"href,omitempty"` @@ -79739,7 +78900,7 @@ func UnmarshalShareAccessorBindingAccessor(m map[string]json.RawMessage, result err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalShareReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -80710,7 +79871,7 @@ func UnmarshalShareMountTargetPrototype(m map[string]json.RawMessage, result int type ShareMountTargetReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *ShareMountTargetReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this share mount target. Href *string `json:"href" validate:"required"` @@ -80734,7 +79895,7 @@ const ( // UnmarshalShareMountTargetReference unmarshals an instance of ShareMountTargetReference from the specified map of raw messages. func UnmarshalShareMountTargetReference(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(ShareMountTargetReference) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalShareMountTargetReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -80763,25 +79924,6 @@ func UnmarshalShareMountTargetReference(m map[string]json.RawMessage, result int return } -// ShareMountTargetReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type ShareMountTargetReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalShareMountTargetReferenceDeleted unmarshals an instance of ShareMountTargetReferenceDeleted from the specified map of raw messages. -func UnmarshalShareMountTargetReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(ShareMountTargetReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // ShareMountTargetVirtualNetworkInterfacePrototype : ShareMountTargetVirtualNetworkInterfacePrototype struct // Models which "extend" this model: // - ShareMountTargetVirtualNetworkInterfacePrototypeVirtualNetworkInterfacePrototypeShareMountTargetContext @@ -81590,8 +80732,8 @@ type SharePrototype struct { // The maximum size for a share may increase in the future. Size *int64 `json:"size,omitempty"` - // The zone this file share will reside in. For a replica share, this must be a different - // zone in the same region as the source share. + // The zone this file share will reside in. For a replica share in the same region as + // the source share, this must be a different zone from the source share. Zone ZoneIdentityIntf `json:"zone,omitempty"` // The cron specification for the file share replication schedule. @@ -81765,6 +80907,8 @@ type SharePrototypeShareContext struct { // The cron specification for the file share replication schedule. // // Replication of a share can be scheduled to occur at most once per hour. + // + // For this property to be changed, the share `replication_role` must be `replica`. ReplicationCronSpec *string `json:"replication_cron_spec" validate:"required"` // The resource group to use. If unspecified, the resource group from @@ -81774,9 +80918,8 @@ type SharePrototypeShareContext struct { // Tags for this resource. UserTags []string `json:"user_tags,omitempty"` - // The zone this replica file share will reside in. - // - // Must be a different zone in the same region as the source share. + // The zone this replica file share will reside in. For a replica share in the same + // region as the source share, this must be a different zone from the source share. Zone ZoneIdentityIntf `json:"zone" validate:"required"` } @@ -81865,7 +81008,7 @@ type ShareReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *ShareReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this file share. Href *string `json:"href" validate:"required"` @@ -81898,7 +81041,7 @@ func UnmarshalShareReference(m map[string]json.RawMessage, result interface{}) ( err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalShareReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -81932,25 +81075,6 @@ func UnmarshalShareReference(m map[string]json.RawMessage, result interface{}) ( return } -// ShareReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type ShareReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalShareReferenceDeleted unmarshals an instance of ShareReferenceDeleted from the specified map of raw messages. -func UnmarshalShareReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(ShareReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // ShareRemote : If present, this property indicates that the resource associated with this reference is remote and therefore may not // be directly retrievable. type ShareRemote struct { @@ -82836,7 +81960,7 @@ type SnapshotConsistencyGroupReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *SnapshotConsistencyGroupReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this snapshot consistency group. Href *string `json:"href" validate:"required"` @@ -82866,7 +81990,7 @@ func UnmarshalSnapshotConsistencyGroupReference(m map[string]json.RawMessage, re err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalSnapshotConsistencyGroupReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -82895,25 +82019,6 @@ func UnmarshalSnapshotConsistencyGroupReference(m map[string]json.RawMessage, re return } -// SnapshotConsistencyGroupReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type SnapshotConsistencyGroupReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalSnapshotConsistencyGroupReferenceDeleted unmarshals an instance of SnapshotConsistencyGroupReferenceDeleted from the specified map of raw messages. -func UnmarshalSnapshotConsistencyGroupReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(SnapshotConsistencyGroupReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // SnapshotCopiesItem : SnapshotCopiesItem struct type SnapshotCopiesItem struct { // The CRN for the copied snapshot. @@ -82921,7 +82026,7 @@ type SnapshotCopiesItem struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *SnapshotReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for the copied snapshot. Href *string `json:"href" validate:"required"` @@ -82954,7 +82059,7 @@ func UnmarshalSnapshotCopiesItem(m map[string]json.RawMessage, result interface{ err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalSnapshotReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -83215,7 +82320,7 @@ type SnapshotReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *SnapshotReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this snapshot. Href *string `json:"href" validate:"required"` @@ -83248,7 +82353,7 @@ func UnmarshalSnapshotReference(m map[string]json.RawMessage, result interface{} err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalSnapshotReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -83282,28 +82387,13 @@ func UnmarshalSnapshotReference(m map[string]json.RawMessage, result interface{} return } -// SnapshotReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type SnapshotReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalSnapshotReferenceDeleted unmarshals an instance of SnapshotReferenceDeleted from the specified map of raw messages. -func UnmarshalSnapshotReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(SnapshotReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // SnapshotRemote : If present, this property indicates that the resource associated with this reference is remote and therefore may not // be directly retrievable. type SnapshotRemote struct { + // If present, this property indicates that the referenced resource is remote to this + // account, and identifies the owning account. + Account *AccountReference `json:"account,omitempty"` + // If present, this property indicates that the referenced resource is remote to this // region, and identifies the native region. Region *RegionReference `json:"region,omitempty"` @@ -83312,6 +82402,11 @@ type SnapshotRemote struct { // UnmarshalSnapshotRemote unmarshals an instance of SnapshotRemote from the specified map of raw messages. func UnmarshalSnapshotRemote(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(SnapshotRemote) + err = core.UnmarshalModel(m, "account", &obj.Account, UnmarshalAccountReference) + if err != nil { + err = core.SDKErrorf(err, "", "account-error", common.GetComponentInfo()) + return + } err = core.UnmarshalModel(m, "region", &obj.Region, UnmarshalRegionReference) if err != nil { err = core.SDKErrorf(err, "", "region-error", common.GetComponentInfo()) @@ -83328,7 +82423,7 @@ type SnapshotSourceSnapshot struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *SnapshotReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for the source snapshot. Href *string `json:"href" validate:"required"` @@ -83361,7 +82456,7 @@ func UnmarshalSnapshotSourceSnapshot(m map[string]json.RawMessage, result interf err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalSnapshotReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -84019,7 +83114,7 @@ type SubnetReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *SubnetReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this subnet. Href *string `json:"href" validate:"required"` @@ -84048,7 +83143,7 @@ func UnmarshalSubnetReference(m map[string]json.RawMessage, result interface{}) err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalSubnetReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -84077,25 +83172,6 @@ func UnmarshalSubnetReference(m map[string]json.RawMessage, result interface{}) return } -// SubnetReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type SubnetReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalSubnetReferenceDeleted unmarshals an instance of SubnetReferenceDeleted from the specified map of raw messages. -func UnmarshalSubnetReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(SubnetReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // TrustedProfileIdentity : Identifies a trusted profile by a unique property. // Models which "extend" this model: // - TrustedProfileIdentityTrustedProfileByID @@ -88149,7 +87225,7 @@ type VPCReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *VPCReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this VPC. Href *string `json:"href" validate:"required"` @@ -88178,7 +87254,7 @@ func UnmarshalVPCReference(m map[string]json.RawMessage, result interface{}) (er err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalVPCReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -88216,7 +87292,7 @@ type VPCReferenceDnsResolverContext struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *VPCReferenceDnsResolverContextDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this VPC. Href *string `json:"href" validate:"required"` @@ -88249,7 +87325,7 @@ func UnmarshalVPCReferenceDnsResolverContext(m map[string]json.RawMessage, resul err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalVPCReferenceDnsResolverContextDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -88283,44 +87359,6 @@ func UnmarshalVPCReferenceDnsResolverContext(m map[string]json.RawMessage, resul return } -// VPCReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type VPCReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalVPCReferenceDeleted unmarshals an instance of VPCReferenceDeleted from the specified map of raw messages. -func UnmarshalVPCReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(VPCReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - -// VPCReferenceDnsResolverContextDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type VPCReferenceDnsResolverContextDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalVPCReferenceDnsResolverContextDeleted unmarshals an instance of VPCReferenceDnsResolverContextDeleted from the specified map of raw messages. -func UnmarshalVPCReferenceDnsResolverContextDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(VPCReferenceDnsResolverContextDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // VPCReferenceRemote : VPCReferenceRemote struct type VPCReferenceRemote struct { // The CRN for this VPC. @@ -88426,7 +87464,7 @@ type VPNGateway struct { // The date and time that this VPN gateway was created. CreatedAt *strfmt.DateTime `json:"created_at" validate:"required"` - // The VPN gateway's CRN. + // The CRN for this VPN gateway. CRN *string `json:"crn" validate:"required"` // The reasons for the current `health_state` (if any). @@ -88441,7 +87479,7 @@ type VPNGateway struct { // health state of `inapplicable`. A `pending` resource may also have this state. HealthState *string `json:"health_state" validate:"required"` - // The VPN gateway's canonical URL. + // The URL for this VPN gateway. Href *string `json:"href" validate:"required"` // The unique identifier for this VPN gateway. @@ -88736,7 +87774,7 @@ type VPNGatewayConnection struct { // connection will be brought down after its lifetime expires. EstablishMode *string `json:"establish_mode" validate:"required"` - // The VPN connection's canonical URL. + // The URL for this VPN gateway connection. Href *string `json:"href" validate:"required"` // The unique identifier for this VPN gateway connection. @@ -89223,7 +88261,7 @@ type VPNGatewayConnectionIkePolicyPatch struct { // The unique identifier for this IKE policy. ID *string `json:"id,omitempty"` - // The IKE policy's canonical URL. + // The URL for this IKE policy. Href *string `json:"href,omitempty"` } @@ -89261,7 +88299,7 @@ type VPNGatewayConnectionIkePolicyPrototype struct { // The unique identifier for this IKE policy. ID *string `json:"id,omitempty"` - // The IKE policy's canonical URL. + // The URL for this IKE policy. Href *string `json:"href,omitempty"` } @@ -89299,7 +88337,7 @@ type VPNGatewayConnectionIPsecPolicyPatch struct { // The unique identifier for this IPsec policy. ID *string `json:"id,omitempty"` - // The IPsec policy's canonical URL. + // The URL for this IPsec policy. Href *string `json:"href,omitempty"` } @@ -89337,7 +88375,7 @@ type VPNGatewayConnectionIPsecPolicyPrototype struct { // The unique identifier for this IPsec policy. ID *string `json:"id,omitempty"` - // The IPsec policy's canonical URL. + // The URL for this IPsec policy. Href *string `json:"href,omitempty"` } @@ -89840,9 +88878,9 @@ func UnmarshalVPNGatewayConnectionPrototype(m map[string]json.RawMessage, result type VPNGatewayConnectionReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *VPNGatewayConnectionReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` - // The VPN connection's canonical URL. + // The URL for this VPN gateway connection. Href *string `json:"href" validate:"required"` // The unique identifier for this VPN gateway connection. @@ -89864,7 +88902,7 @@ const ( // UnmarshalVPNGatewayConnectionReference unmarshals an instance of VPNGatewayConnectionReference from the specified map of raw messages. func UnmarshalVPNGatewayConnectionReference(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(VPNGatewayConnectionReference) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalVPNGatewayConnectionReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -89893,25 +88931,6 @@ func UnmarshalVPNGatewayConnectionReference(m map[string]json.RawMessage, result return } -// VPNGatewayConnectionReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type VPNGatewayConnectionReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalVPNGatewayConnectionReferenceDeleted unmarshals an instance of VPNGatewayConnectionReferenceDeleted from the specified map of raw messages. -func UnmarshalVPNGatewayConnectionReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(VPNGatewayConnectionReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // VPNGatewayConnectionStaticRouteModeLocal : VPNGatewayConnectionStaticRouteModeLocal struct type VPNGatewayConnectionStaticRouteModeLocal struct { // The local IKE identities. @@ -90656,25 +89675,6 @@ func UnmarshalVPNGatewayPrototype(m map[string]json.RawMessage, result interface return } -// VPNGatewayReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type VPNGatewayReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalVPNGatewayReferenceDeleted unmarshals an instance of VPNGatewayReferenceDeleted from the specified map of raw messages. -func UnmarshalVPNGatewayReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(VPNGatewayReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // VPNServer : VPNServer struct type VPNServer struct { // The certificate instance for this VPN server. @@ -91687,25 +90687,6 @@ func (vpnServerPatch *VPNServerPatch) AsPatch() (_patch map[string]interface{}, return } -// VPNServerReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type VPNServerReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalVPNServerReferenceDeleted unmarshals an instance of VPNServerReferenceDeleted from the specified map of raw messages. -func UnmarshalVPNServerReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(VPNServerReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // VPNServerRoute : VPNServerRoute struct type VPNServerRoute struct { // The action to perform with a packet matching the VPN route: @@ -92721,25 +91702,6 @@ func UnmarshalVirtualNetworkInterfaceReferenceAttachmentContext(m map[string]jso return } -// VirtualNetworkInterfaceReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type VirtualNetworkInterfaceReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalVirtualNetworkInterfaceReferenceDeleted unmarshals an instance of VirtualNetworkInterfaceReferenceDeleted from the specified map of raw messages. -func UnmarshalVirtualNetworkInterfaceReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(VirtualNetworkInterfaceReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // VirtualNetworkInterfaceTarget : A virtual network interface target. // // The resources supported by this property may @@ -92751,7 +91713,7 @@ func UnmarshalVirtualNetworkInterfaceReferenceDeleted(m map[string]json.RawMessa type VirtualNetworkInterfaceTarget struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *ShareMountTargetReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this share mount target. Href *string `json:"href,omitempty"` @@ -92783,7 +91745,7 @@ type VirtualNetworkInterfaceTargetIntf interface { // UnmarshalVirtualNetworkInterfaceTarget unmarshals an instance of VirtualNetworkInterfaceTarget from the specified map of raw messages. func UnmarshalVirtualNetworkInterfaceTarget(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(VirtualNetworkInterfaceTarget) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalShareMountTargetReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -93573,7 +92535,9 @@ type VolumeAttachmentPrototypeVolume struct { // If unspecified, the `encryption` type for the volume will be `provider_managed`. EncryptionKey EncryptionKeyIdentityIntf `json:"encryption_key,omitempty"` - // The snapshot from which to clone the volume. + // The snapshot to use as a source for the volume's data. + // + // The specified snapshot may be in a different account, subject to IAM policies. SourceSnapshot SnapshotIdentityIntf `json:"source_snapshot,omitempty"` } @@ -93651,7 +92615,7 @@ func UnmarshalVolumeAttachmentPrototypeVolume(m map[string]json.RawMessage, resu type VolumeAttachmentReferenceInstanceContext struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *VolumeAttachmentReferenceInstanceContextDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // Information about how the volume is exposed to the instance operating system. // @@ -93676,7 +92640,7 @@ type VolumeAttachmentReferenceInstanceContext struct { // UnmarshalVolumeAttachmentReferenceInstanceContext unmarshals an instance of VolumeAttachmentReferenceInstanceContext from the specified map of raw messages. func UnmarshalVolumeAttachmentReferenceInstanceContext(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(VolumeAttachmentReferenceInstanceContext) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalVolumeAttachmentReferenceInstanceContextDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -93710,25 +92674,6 @@ func UnmarshalVolumeAttachmentReferenceInstanceContext(m map[string]json.RawMess return } -// VolumeAttachmentReferenceInstanceContextDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type VolumeAttachmentReferenceInstanceContextDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalVolumeAttachmentReferenceInstanceContextDeleted unmarshals an instance of VolumeAttachmentReferenceInstanceContextDeleted from the specified map of raw messages. -func UnmarshalVolumeAttachmentReferenceInstanceContextDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(VolumeAttachmentReferenceInstanceContextDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // VolumeAttachmentReferenceVolumeContext : VolumeAttachmentReferenceVolumeContext struct type VolumeAttachmentReferenceVolumeContext struct { // Indicates whether deleting the instance will also delete the attached volume. @@ -93736,7 +92681,7 @@ type VolumeAttachmentReferenceVolumeContext struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *VolumeAttachmentReferenceVolumeContextDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // Information about how the volume is exposed to the instance operating system. // @@ -93774,7 +92719,7 @@ func UnmarshalVolumeAttachmentReferenceVolumeContext(m map[string]json.RawMessag err = core.SDKErrorf(err, "", "delete_volume_on_instance_delete-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalVolumeAttachmentReferenceVolumeContextDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -93813,25 +92758,6 @@ func UnmarshalVolumeAttachmentReferenceVolumeContext(m map[string]json.RawMessag return } -// VolumeAttachmentReferenceVolumeContextDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type VolumeAttachmentReferenceVolumeContextDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalVolumeAttachmentReferenceVolumeContextDeleted unmarshals an instance of VolumeAttachmentReferenceVolumeContextDeleted from the specified map of raw messages. -func UnmarshalVolumeAttachmentReferenceVolumeContextDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(VolumeAttachmentReferenceVolumeContextDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // VolumeCatalogOffering : VolumeCatalogOffering struct type VolumeCatalogOffering struct { // The billing plan associated with the catalog offering version. @@ -94053,10 +92979,10 @@ func UnmarshalVolumeIdentity(m map[string]json.RawMessage, result interface{}) ( // VolumePatch : VolumePatch struct type VolumePatch struct { - // The capacity to use for the volume (in gigabytes). For the value to be changed, the `adjustable_capacity_states` - // property must contain at the least one of - // `attached` or `unattached`. If `adjustable_capacity_states` contains only - // `attached` then the volume must be attached to a running virtual server instance. Additionally: + // The capacity to use for the volume (in gigabytes). For the capacity to be changed the volume's current + // `attachment_state` must be one of the values included in + // `adjustable_capacity_states`. If `adjustable_capacity_states` is empty, then the volume capacity cannot be changed. + // Additionally: // - The specified value must not be less than the current capacity. // - If the volume is attached as a boot volume, the specified value must not exceed // the `boot_capacity.max` of the volume profile. @@ -94064,10 +92990,9 @@ type VolumePatch struct { // the `capacity.max` of the volume profile. Capacity *int64 `json:"capacity,omitempty"` - // The maximum I/O operations per second (IOPS) to use for this volume. For the value to be changed the - // `adjustable_iops_states` property must contain at the least one of `attached` or `unattached`. If - // `adjustable_iops_states` contains only `attached` then the volume must be attached to a running virtual server - // instance. + // The maximum I/O operations per second (IOPS) to use for this volume. For the IOPS to be changed the volume's + // current `attachment_state` must be one of the values included in `adjustable_iops_states`. If + // `adjustable_iops_states` is empty, then the IOPS cannot be changed. Iops *int64 `json:"iops,omitempty"` // The name for this volume. The name must not be used by another volume in the region. @@ -94075,9 +93000,6 @@ type VolumePatch struct { // The profile to use for this volume. The requested profile must be in the same // `family` as the current profile. Additionally: - // - For the value to be changed on an existing volume, the volume must be attached - // to a running virtual server instance, or the volume's - // `adjustable_capacity_states` property must contain `unattached`. // - If the volume is a boot volume then the value specified for `capacity` property // must not be less than the `boot_capacity.min` and must not exceed the // `boot_capacity.max` of the specified volume profile. @@ -94158,10 +93080,6 @@ type VolumeProfile struct { // The globally unique name for this volume profile. Name *string `json:"name" validate:"required"` - - UnattachedCapacityUpdateSupported VolumeProfileUnattachedCapacityUpdateSupportedIntf `json:"unattached_capacity_update_supported,omitempty"` - - UnattachedIopsUpdateSupported VolumeProfileUnattachedIopsUpdateSupportedIntf `json:"unattached_iops_update_supported,omitempty"` } // Constants associated with the VolumeProfile.Family property. @@ -94218,16 +93136,6 @@ func UnmarshalVolumeProfile(m map[string]json.RawMessage, result interface{}) (e err = core.SDKErrorf(err, "", "name-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "unattached_capacity_update_supported", &obj.UnattachedCapacityUpdateSupported, UnmarshalVolumeProfileUnattachedCapacityUpdateSupported) - if err != nil { - err = core.SDKErrorf(err, "", "unattached_capacity_update_supported-error", common.GetComponentInfo()) - return - } - err = core.UnmarshalModel(m, "unattached_iops_update_supported", &obj.UnattachedIopsUpdateSupported, UnmarshalVolumeProfileUnattachedIopsUpdateSupported) - if err != nil { - err = core.SDKErrorf(err, "", "unattached_iops_update_supported-error", common.GetComponentInfo()) - return - } reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) return } @@ -94738,92 +93646,6 @@ func UnmarshalVolumeProfileReference(m map[string]json.RawMessage, result interf return } -// VolumeProfileUnattachedCapacityUpdateSupported : VolumeProfileUnattachedCapacityUpdateSupported struct -// Models which "extend" this model: -// - VolumeProfileUnattachedCapacityUpdateSupportedVolumeProfileUnattachedCapacityUpdateFixed -// - VolumeProfileUnattachedCapacityUpdateSupportedVolumeProfileUnattachedCapacityUpdateDependent -type VolumeProfileUnattachedCapacityUpdateSupported struct { - // The type for this profile field. - Type *string `json:"type,omitempty"` - - // The value for this profile field. - Value *bool `json:"value,omitempty"` -} - -// Constants associated with the VolumeProfileUnattachedCapacityUpdateSupported.Type property. -// The type for this profile field. -const ( - VolumeProfileUnattachedCapacityUpdateSupportedTypeFixedConst = "fixed" -) - -func (*VolumeProfileUnattachedCapacityUpdateSupported) isaVolumeProfileUnattachedCapacityUpdateSupported() bool { - return true -} - -type VolumeProfileUnattachedCapacityUpdateSupportedIntf interface { - isaVolumeProfileUnattachedCapacityUpdateSupported() bool -} - -// UnmarshalVolumeProfileUnattachedCapacityUpdateSupported unmarshals an instance of VolumeProfileUnattachedCapacityUpdateSupported from the specified map of raw messages. -func UnmarshalVolumeProfileUnattachedCapacityUpdateSupported(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(VolumeProfileUnattachedCapacityUpdateSupported) - err = core.UnmarshalPrimitive(m, "type", &obj.Type) - if err != nil { - err = core.SDKErrorf(err, "", "type-error", common.GetComponentInfo()) - return - } - err = core.UnmarshalPrimitive(m, "value", &obj.Value) - if err != nil { - err = core.SDKErrorf(err, "", "value-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - -// VolumeProfileUnattachedIopsUpdateSupported : VolumeProfileUnattachedIopsUpdateSupported struct -// Models which "extend" this model: -// - VolumeProfileUnattachedIopsUpdateSupportedVolumeProfileUnattachedIopsUpdateFixed -// - VolumeProfileUnattachedIopsUpdateSupportedVolumeProfileUnattachedIopsUpdateDependent -type VolumeProfileUnattachedIopsUpdateSupported struct { - // The type for this profile field. - Type *string `json:"type,omitempty"` - - // The value for this profile field. - Value *bool `json:"value,omitempty"` -} - -// Constants associated with the VolumeProfileUnattachedIopsUpdateSupported.Type property. -// The type for this profile field. -const ( - VolumeProfileUnattachedIopsUpdateSupportedTypeFixedConst = "fixed" -) - -func (*VolumeProfileUnattachedIopsUpdateSupported) isaVolumeProfileUnattachedIopsUpdateSupported() bool { - return true -} - -type VolumeProfileUnattachedIopsUpdateSupportedIntf interface { - isaVolumeProfileUnattachedIopsUpdateSupported() bool -} - -// UnmarshalVolumeProfileUnattachedIopsUpdateSupported unmarshals an instance of VolumeProfileUnattachedIopsUpdateSupported from the specified map of raw messages. -func UnmarshalVolumeProfileUnattachedIopsUpdateSupported(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(VolumeProfileUnattachedIopsUpdateSupported) - err = core.UnmarshalPrimitive(m, "type", &obj.Type) - if err != nil { - err = core.SDKErrorf(err, "", "type-error", common.GetComponentInfo()) - return - } - err = core.UnmarshalPrimitive(m, "value", &obj.Value) - if err != nil { - err = core.SDKErrorf(err, "", "value-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // VolumePrototype : VolumePrototype struct // Models which "extend" this model: // - VolumePrototypeVolumeByCapacity @@ -94860,7 +93682,9 @@ type VolumePrototype struct { // If unspecified, the `encryption` type for the volume will be `provider_managed`. EncryptionKey EncryptionKeyIdentityIntf `json:"encryption_key,omitempty"` - // The snapshot from which to clone the volume. + // The snapshot to use as a source for the volume's data. + // + // The specified snapshot may be in a different account, subject to IAM policies. SourceSnapshot SnapshotIdentityIntf `json:"source_snapshot,omitempty"` } @@ -94927,7 +93751,7 @@ func UnmarshalVolumePrototype(m map[string]json.RawMessage, result interface{}) // VolumePrototypeInstanceByImageContext : VolumePrototypeInstanceByImageContext struct type VolumePrototypeInstanceByImageContext struct { // The capacity to use for the volume (in gigabytes). The specified value must be at least the image's - // `minimum_provisioned_size`, and must be within the + // `minimum_provisioned_size`, at most 250 gigabytes, and within the // `boot_capacity` range of the volume's profile. // // If unspecified, the capacity will be the image's `minimum_provisioned_size`. @@ -95015,7 +93839,7 @@ func UnmarshalVolumePrototypeInstanceByImageContext(m map[string]json.RawMessage // VolumePrototypeInstanceBySourceSnapshotContext : VolumePrototypeInstanceBySourceSnapshotContext struct type VolumePrototypeInstanceBySourceSnapshotContext struct { // The capacity to use for the volume (in gigabytes). The specified value must be at least the snapshot's - // `minimum_capacity`, and must be within the `boot_capacity` range of the volume's profile. + // `minimum_capacity`, at most 250 gigabytes, and within the `boot_capacity` range of the volume's profile. Capacity *int64 `json:"capacity,omitempty"` // The root key to use to wrap the data encryption key for the volume. @@ -95039,7 +93863,9 @@ type VolumePrototypeInstanceBySourceSnapshotContext struct { // group will be used. ResourceGroup ResourceGroupIdentityIntf `json:"resource_group,omitempty"` - // The snapshot from which to clone the volume. + // The snapshot to use as a source for the volume's data. + // + // The specified snapshot may be in a different account, subject to IAM policies. SourceSnapshot SnapshotIdentityIntf `json:"source_snapshot" validate:"required"` // The [user tags](https://cloud.ibm.com/apidocs/tagging#types-of-tags) associated with this volume. @@ -95113,7 +93939,7 @@ type VolumeReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *VolumeReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this volume. Href *string `json:"href" validate:"required"` @@ -95146,7 +93972,7 @@ func UnmarshalVolumeReference(m map[string]json.RawMessage, result interface{}) err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalVolumeReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -95180,25 +94006,6 @@ func UnmarshalVolumeReference(m map[string]json.RawMessage, result interface{}) return } -// VolumeReferenceDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type VolumeReferenceDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalVolumeReferenceDeleted unmarshals an instance of VolumeReferenceDeleted from the specified map of raw messages. -func UnmarshalVolumeReferenceDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(VolumeReferenceDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // VolumeReferenceVolumeAttachmentContext : VolumeReferenceVolumeAttachmentContext struct type VolumeReferenceVolumeAttachmentContext struct { // The CRN for this volume. @@ -95206,7 +94013,7 @@ type VolumeReferenceVolumeAttachmentContext struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *VolumeReferenceVolumeAttachmentContextDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this volume. Href *string `json:"href" validate:"required"` @@ -95235,7 +94042,7 @@ func UnmarshalVolumeReferenceVolumeAttachmentContext(m map[string]json.RawMessag err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalVolumeReferenceVolumeAttachmentContextDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -95264,25 +94071,6 @@ func UnmarshalVolumeReferenceVolumeAttachmentContext(m map[string]json.RawMessag return } -// VolumeReferenceVolumeAttachmentContextDeleted : If present, this property indicates the referenced resource has been deleted, and provides some supplementary -// information. -type VolumeReferenceVolumeAttachmentContextDeleted struct { - // Link to documentation about deleted resources. - MoreInfo *string `json:"more_info" validate:"required"` -} - -// UnmarshalVolumeReferenceVolumeAttachmentContextDeleted unmarshals an instance of VolumeReferenceVolumeAttachmentContextDeleted from the specified map of raw messages. -func UnmarshalVolumeReferenceVolumeAttachmentContextDeleted(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(VolumeReferenceVolumeAttachmentContextDeleted) - err = core.UnmarshalPrimitive(m, "more_info", &obj.MoreInfo) - if err != nil { - err = core.SDKErrorf(err, "", "more_info-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // VolumeRemote : If present, this property indicates that the resource associated with this reference is remote and therefore may not // be directly retrievable. type VolumeRemote struct { @@ -95387,6 +94175,11 @@ func UnmarshalVpcdnsResolutionBindingCollectionNext(m map[string]json.RawMessage // Zone : Zone struct type Zone struct { + // The physical data center assigned to this logical zone. + // + // If absent, no physical data center has been assigned. + DataCenter *string `json:"data_center,omitempty"` + // The URL for this zone. Href *string `json:"href" validate:"required"` @@ -95396,21 +94189,49 @@ type Zone struct { // The region this zone resides in. Region *RegionReference `json:"region" validate:"required"` - // The availability status of this zone. + // The status of the zone. + // + // - `available`: The zone is available to create and manage resources. + // - `impaired`: The zone's availability and performance to create and manage resources + // may be impaired. + // - `unavailable`: The zone is unavailable to create and manage resources. + // - `unassigned`: The zone has not been assigned to a physical zone. + // + // The enumerated values for this property may + // [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) in the future. Status *string `json:"status" validate:"required"` + + // The [universal name](https://cloud.ibm.com/docs/overview?topic=overview-locations#zone-mapping) for this zone. Will + // be absent if this zone has a `status` of `unassigned`. + UniversalName *string `json:"universal_name,omitempty"` } // Constants associated with the Zone.Status property. -// The availability status of this zone. +// The status of the zone. +// +// - `available`: The zone is available to create and manage resources. +// - `impaired`: The zone's availability and performance to create and manage resources +// may be impaired. +// - `unavailable`: The zone is unavailable to create and manage resources. +// - `unassigned`: The zone has not been assigned to a physical zone. +// +// The enumerated values for this property may +// [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) in the future. const ( ZoneStatusAvailableConst = "available" ZoneStatusImpairedConst = "impaired" + ZoneStatusUnassignedConst = "unassigned" ZoneStatusUnavailableConst = "unavailable" ) // UnmarshalZone unmarshals an instance of Zone from the specified map of raw messages. func UnmarshalZone(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(Zone) + err = core.UnmarshalPrimitive(m, "data_center", &obj.DataCenter) + if err != nil { + err = core.SDKErrorf(err, "", "data_center-error", common.GetComponentInfo()) + return + } err = core.UnmarshalPrimitive(m, "href", &obj.Href) if err != nil { err = core.SDKErrorf(err, "", "href-error", common.GetComponentInfo()) @@ -95431,6 +94252,11 @@ func UnmarshalZone(m map[string]json.RawMessage, result interface{}) (err error) err = core.SDKErrorf(err, "", "status-error", common.GetComponentInfo()) return } + err = core.UnmarshalPrimitive(m, "universal_name", &obj.UniversalName) + if err != nil { + err = core.SDKErrorf(err, "", "universal_name-error", common.GetComponentInfo()) + return + } reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) return } @@ -95524,7 +94350,7 @@ type BackupPolicyJobSourceInstanceReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *InstanceReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this virtual server instance. Href *string `json:"href" validate:"required"` @@ -95548,7 +94374,7 @@ func UnmarshalBackupPolicyJobSourceInstanceReference(m map[string]json.RawMessag err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalInstanceReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -95580,7 +94406,7 @@ type BackupPolicyJobSourceVolumeReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *VolumeReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this volume. Href *string `json:"href" validate:"required"` @@ -95617,7 +94443,7 @@ func UnmarshalBackupPolicyJobSourceVolumeReference(m map[string]json.RawMessage, err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalVolumeReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -96357,7 +95183,7 @@ func UnmarshalBackupPolicyScopeEnterpriseReference(m map[string]json.RawMessage, type BareMetalServerBootTargetBareMetalServerDiskReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *BareMetalServerDiskReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this bare metal server disk. Href *string `json:"href" validate:"required"` @@ -96385,7 +95211,7 @@ func (*BareMetalServerBootTargetBareMetalServerDiskReference) isaBareMetalServer // UnmarshalBareMetalServerBootTargetBareMetalServerDiskReference unmarshals an instance of BareMetalServerBootTargetBareMetalServerDiskReference from the specified map of raw messages. func UnmarshalBareMetalServerBootTargetBareMetalServerDiskReference(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(BareMetalServerBootTargetBareMetalServerDiskReference) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalBareMetalServerDiskReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -101829,7 +100655,7 @@ func UnmarshalFloatingIPTargetPrototypeVirtualNetworkInterfaceIdentity(m map[str type FloatingIPTargetBareMetalServerNetworkInterfaceReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *BareMetalServerNetworkInterfaceReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this bare metal server network interface. // @@ -101868,7 +100694,7 @@ func (*FloatingIPTargetBareMetalServerNetworkInterfaceReference) isaFloatingIPTa // UnmarshalFloatingIPTargetBareMetalServerNetworkInterfaceReference unmarshals an instance of FloatingIPTargetBareMetalServerNetworkInterfaceReference from the specified map of raw messages. func UnmarshalFloatingIPTargetBareMetalServerNetworkInterfaceReference(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(FloatingIPTargetBareMetalServerNetworkInterfaceReference) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalBareMetalServerNetworkInterfaceReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -101907,7 +100733,7 @@ func UnmarshalFloatingIPTargetBareMetalServerNetworkInterfaceReference(m map[str type FloatingIPTargetNetworkInterfaceReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *NetworkInterfaceReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this instance network interface. // @@ -101946,7 +100772,7 @@ func (*FloatingIPTargetNetworkInterfaceReference) isaFloatingIPTarget() bool { // UnmarshalFloatingIPTargetNetworkInterfaceReference unmarshals an instance of FloatingIPTargetNetworkInterfaceReference from the specified map of raw messages. func UnmarshalFloatingIPTargetNetworkInterfaceReference(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(FloatingIPTargetNetworkInterfaceReference) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalNetworkInterfaceReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -101988,7 +100814,7 @@ type FloatingIPTargetPublicGatewayReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *PublicGatewayReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this public gateway. Href *string `json:"href" validate:"required"` @@ -102021,7 +100847,7 @@ func UnmarshalFloatingIPTargetPublicGatewayReference(m map[string]json.RawMessag err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalPublicGatewayReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -102058,7 +100884,7 @@ type FloatingIPTargetVirtualNetworkInterfaceReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *VirtualNetworkInterfaceReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this virtual network interface. Href *string `json:"href" validate:"required"` @@ -102097,7 +100923,7 @@ func UnmarshalFloatingIPTargetVirtualNetworkInterfaceReference(m map[string]json err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalVirtualNetworkInterfaceReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -102444,7 +101270,7 @@ func UnmarshalFlowLogCollectorTargetPrototypeVirtualNetworkInterfaceIdentity(m m type FlowLogCollectorTargetInstanceNetworkAttachmentReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *InstanceNetworkAttachmentReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this instance network attachment. Href *string `json:"href" validate:"required"` @@ -102482,7 +101308,7 @@ func (*FlowLogCollectorTargetInstanceNetworkAttachmentReference) isaFlowLogColle // UnmarshalFlowLogCollectorTargetInstanceNetworkAttachmentReference unmarshals an instance of FlowLogCollectorTargetInstanceNetworkAttachmentReference from the specified map of raw messages. func UnmarshalFlowLogCollectorTargetInstanceNetworkAttachmentReference(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(FlowLogCollectorTargetInstanceNetworkAttachmentReference) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalInstanceNetworkAttachmentReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -102534,7 +101360,7 @@ type FlowLogCollectorTargetInstanceReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *InstanceReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this virtual server instance. Href *string `json:"href" validate:"required"` @@ -102558,7 +101384,7 @@ func UnmarshalFlowLogCollectorTargetInstanceReference(m map[string]json.RawMessa err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalInstanceReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -102587,7 +101413,7 @@ func UnmarshalFlowLogCollectorTargetInstanceReference(m map[string]json.RawMessa type FlowLogCollectorTargetNetworkInterfaceReferenceTargetContext struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *NetworkInterfaceReferenceTargetContextDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this instance network interface. // @@ -102624,7 +101450,7 @@ func (*FlowLogCollectorTargetNetworkInterfaceReferenceTargetContext) isaFlowLogC // UnmarshalFlowLogCollectorTargetNetworkInterfaceReferenceTargetContext unmarshals an instance of FlowLogCollectorTargetNetworkInterfaceReferenceTargetContext from the specified map of raw messages. func UnmarshalFlowLogCollectorTargetNetworkInterfaceReferenceTargetContext(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(FlowLogCollectorTargetNetworkInterfaceReferenceTargetContext) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalNetworkInterfaceReferenceTargetContextDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -102661,7 +101487,7 @@ type FlowLogCollectorTargetSubnetReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *SubnetReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this subnet. Href *string `json:"href" validate:"required"` @@ -102694,7 +101520,7 @@ func UnmarshalFlowLogCollectorTargetSubnetReference(m map[string]json.RawMessage err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalSubnetReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -102731,7 +101557,7 @@ type FlowLogCollectorTargetVPCReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *VPCReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this VPC. Href *string `json:"href" validate:"required"` @@ -102764,7 +101590,7 @@ func UnmarshalFlowLogCollectorTargetVPCReference(m map[string]json.RawMessage, r err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalVPCReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -104052,7 +102878,7 @@ func UnmarshalInstanceGroupManagerScheduled(m map[string]json.RawMessage, result type InstanceGroupManagerScheduledActionManagerAutoScale struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *InstanceGroupManagerReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this instance group manager. Href *string `json:"href" validate:"required"` @@ -104077,7 +102903,7 @@ func (*InstanceGroupManagerScheduledActionManagerAutoScale) isaInstanceGroupMana // UnmarshalInstanceGroupManagerScheduledActionManagerAutoScale unmarshals an instance of InstanceGroupManagerScheduledActionManagerAutoScale from the specified map of raw messages. func UnmarshalInstanceGroupManagerScheduledActionManagerAutoScale(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(InstanceGroupManagerScheduledActionManagerAutoScale) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalInstanceGroupManagerReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -104717,7 +103543,7 @@ type InstancePlacementTargetDedicatedHostGroupReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *DedicatedHostGroupReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this dedicated host group. Href *string `json:"href" validate:"required"` @@ -104750,7 +103576,7 @@ func UnmarshalInstancePlacementTargetDedicatedHostGroupReference(m map[string]js err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDedicatedHostGroupReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -104787,7 +103613,7 @@ type InstancePlacementTargetDedicatedHostReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *DedicatedHostReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this dedicated host. Href *string `json:"href" validate:"required"` @@ -104820,7 +103646,7 @@ func UnmarshalInstancePlacementTargetDedicatedHostReference(m map[string]json.Ra err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDedicatedHostReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -104857,7 +103683,7 @@ type InstancePlacementTargetPlacementGroupReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *PlacementGroupReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this placement group. Href *string `json:"href" validate:"required"` @@ -104890,7 +103716,7 @@ func UnmarshalInstancePlacementTargetPlacementGroupReference(m map[string]json.R err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalPlacementGroupReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -109962,7 +108788,7 @@ func UnmarshalLegacyCloudObjectStorageBucketIdentityCloudObjectStorageBucketIden // LoadBalancerIdentityByCRN : LoadBalancerIdentityByCRN struct // This model "extends" LoadBalancerIdentity type LoadBalancerIdentityByCRN struct { - // The load balancer's CRN. + // The CRN for this load balancer. CRN *string `json:"crn" validate:"required"` } @@ -109997,7 +108823,7 @@ func UnmarshalLoadBalancerIdentityByCRN(m map[string]json.RawMessage, result int // LoadBalancerIdentityByHref : LoadBalancerIdentityByHref struct // This model "extends" LoadBalancerIdentity type LoadBalancerIdentityByHref struct { - // The load balancer's canonical URL. + // The URL for this load balancer. Href *string `json:"href" validate:"required"` } @@ -110067,7 +108893,7 @@ func UnmarshalLoadBalancerIdentityByID(m map[string]json.RawMessage, result inte // LoadBalancerListenerDefaultPoolPatchLoadBalancerPoolIdentityByHref : LoadBalancerListenerDefaultPoolPatchLoadBalancerPoolIdentityByHref struct // This model "extends" LoadBalancerListenerDefaultPoolPatch type LoadBalancerListenerDefaultPoolPatchLoadBalancerPoolIdentityByHref struct { - // The pool's canonical URL. + // The URL for this load balancer pool. Href *string `json:"href" validate:"required"` } @@ -110137,7 +108963,7 @@ func UnmarshalLoadBalancerListenerDefaultPoolPatchLoadBalancerPoolIdentityByID(m // LoadBalancerListenerIdentityByHref : LoadBalancerListenerIdentityByHref struct // This model "extends" LoadBalancerListenerIdentity type LoadBalancerListenerIdentityByHref struct { - // The listener's canonical URL. + // The URL for this load balancer listener. Href *string `json:"href" validate:"required"` } @@ -110299,7 +109125,7 @@ type LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentity struct { // The unique identifier for this load balancer pool. ID *string `json:"id,omitempty"` - // The pool's canonical URL. + // The URL for this load balancer pool. Href *string `json:"href,omitempty"` } @@ -110454,7 +109280,7 @@ type LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentity struct { // The unique identifier for this load balancer pool. ID *string `json:"id,omitempty"` - // The pool's canonical URL. + // The URL for this load balancer pool. Href *string `json:"href,omitempty"` } @@ -110578,9 +109404,9 @@ func UnmarshalLoadBalancerListenerPolicyTargetLoadBalancerListenerPolicyRedirect type LoadBalancerListenerPolicyTargetLoadBalancerPoolReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *LoadBalancerPoolReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` - // The pool's canonical URL. + // The URL for this load balancer pool. Href *string `json:"href" validate:"required"` // The unique identifier for this load balancer pool. @@ -110597,7 +109423,7 @@ func (*LoadBalancerListenerPolicyTargetLoadBalancerPoolReference) isaLoadBalance // UnmarshalLoadBalancerListenerPolicyTargetLoadBalancerPoolReference unmarshals an instance of LoadBalancerListenerPolicyTargetLoadBalancerPoolReference from the specified map of raw messages. func UnmarshalLoadBalancerListenerPolicyTargetLoadBalancerPoolReference(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(LoadBalancerListenerPolicyTargetLoadBalancerPoolReference) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalLoadBalancerPoolReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -110624,7 +109450,7 @@ func UnmarshalLoadBalancerListenerPolicyTargetLoadBalancerPoolReference(m map[st // LoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref : LoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref struct // This model "extends" LoadBalancerPoolIdentity type LoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref struct { - // The pool's canonical URL. + // The URL for this load balancer pool. Href *string `json:"href" validate:"required"` } @@ -110815,7 +109641,7 @@ type LoadBalancerPoolMemberTargetInstanceReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *InstanceReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this virtual server instance. Href *string `json:"href" validate:"required"` @@ -110839,7 +109665,7 @@ func UnmarshalLoadBalancerPoolMemberTargetInstanceReference(m map[string]json.Ra err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalInstanceReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -113896,7 +112722,7 @@ func UnmarshalReservedIPTargetPrototypeVirtualNetworkInterfaceIdentity(m map[str type ReservedIPTargetBareMetalServerNetworkInterfaceReferenceTargetContext struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *BareMetalServerNetworkInterfaceReferenceTargetContextDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this bare metal server network interface. // @@ -113933,7 +112759,7 @@ func (*ReservedIPTargetBareMetalServerNetworkInterfaceReferenceTargetContext) is // UnmarshalReservedIPTargetBareMetalServerNetworkInterfaceReferenceTargetContext unmarshals an instance of ReservedIPTargetBareMetalServerNetworkInterfaceReferenceTargetContext from the specified map of raw messages. func UnmarshalReservedIPTargetBareMetalServerNetworkInterfaceReferenceTargetContext(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(ReservedIPTargetBareMetalServerNetworkInterfaceReferenceTargetContext) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalBareMetalServerNetworkInterfaceReferenceTargetContextDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -113970,7 +112796,7 @@ type ReservedIPTargetEndpointGatewayReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *EndpointGatewayReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this endpoint gateway. Href *string `json:"href" validate:"required"` @@ -114003,7 +112829,7 @@ func UnmarshalReservedIPTargetEndpointGatewayReference(m map[string]json.RawMess err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalEndpointGatewayReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -114040,7 +112866,7 @@ type ReservedIPTargetGenericResourceReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *GenericResourceReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The resource type. ResourceType *string `json:"resource_type" validate:"required"` @@ -114064,7 +112890,7 @@ func UnmarshalReservedIPTargetGenericResourceReference(m map[string]json.RawMess err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalGenericResourceReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -114081,14 +112907,14 @@ func UnmarshalReservedIPTargetGenericResourceReference(m map[string]json.RawMess // ReservedIPTargetLoadBalancerReference : ReservedIPTargetLoadBalancerReference struct // This model "extends" ReservedIPTarget type ReservedIPTargetLoadBalancerReference struct { - // The load balancer's CRN. + // The CRN for this load balancer. CRN *string `json:"crn" validate:"required"` // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *LoadBalancerReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` - // The load balancer's canonical URL. + // The URL for this load balancer. Href *string `json:"href" validate:"required"` // The unique identifier for this load balancer. @@ -114119,7 +112945,7 @@ func UnmarshalReservedIPTargetLoadBalancerReference(m map[string]json.RawMessage err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalLoadBalancerReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -114153,7 +112979,7 @@ func UnmarshalReservedIPTargetLoadBalancerReference(m map[string]json.RawMessage type ReservedIPTargetNetworkInterfaceReferenceTargetContext struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *NetworkInterfaceReferenceTargetContextDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this instance network interface. // @@ -114190,7 +113016,7 @@ func (*ReservedIPTargetNetworkInterfaceReferenceTargetContext) isaReservedIPTarg // UnmarshalReservedIPTargetNetworkInterfaceReferenceTargetContext unmarshals an instance of ReservedIPTargetNetworkInterfaceReferenceTargetContext from the specified map of raw messages. func UnmarshalReservedIPTargetNetworkInterfaceReferenceTargetContext(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(ReservedIPTargetNetworkInterfaceReferenceTargetContext) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalNetworkInterfaceReferenceTargetContextDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -114222,14 +113048,14 @@ func UnmarshalReservedIPTargetNetworkInterfaceReferenceTargetContext(m map[strin // ReservedIPTargetVPNGatewayReference : ReservedIPTargetVPNGatewayReference struct // This model "extends" ReservedIPTarget type ReservedIPTargetVPNGatewayReference struct { - // The VPN gateway's CRN. + // The CRN for this VPN gateway. CRN *string `json:"crn" validate:"required"` // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *VPNGatewayReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` - // The VPN gateway's canonical URL. + // The URL for this VPN gateway. Href *string `json:"href" validate:"required"` // The unique identifier for this VPN gateway. @@ -114260,7 +113086,7 @@ func UnmarshalReservedIPTargetVPNGatewayReference(m map[string]json.RawMessage, err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalVPNGatewayReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -114297,7 +113123,7 @@ type ReservedIPTargetVPNServerReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *VPNServerReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this VPN server. Href *string `json:"href" validate:"required"` @@ -114330,7 +113156,7 @@ func UnmarshalReservedIPTargetVPNServerReference(m map[string]json.RawMessage, r err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalVPNServerReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -114458,14 +113284,14 @@ func UnmarshalResourceGroupIdentityByID(m map[string]json.RawMessage, result int // RouteCreatorVPNGatewayReference : RouteCreatorVPNGatewayReference struct // This model "extends" RouteCreator type RouteCreatorVPNGatewayReference struct { - // The VPN gateway's CRN. + // The CRN for this VPN gateway. CRN *string `json:"crn" validate:"required"` // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *VPNGatewayReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` - // The VPN gateway's canonical URL. + // The URL for this VPN gateway. Href *string `json:"href" validate:"required"` // The unique identifier for this VPN gateway. @@ -114496,7 +113322,7 @@ func UnmarshalRouteCreatorVPNGatewayReference(m map[string]json.RawMessage, resu err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalVPNGatewayReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -114533,7 +113359,7 @@ type RouteCreatorVPNServerReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *VPNServerReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this VPN server. Href *string `json:"href" validate:"required"` @@ -114566,176 +113392,7 @@ func UnmarshalRouteCreatorVPNServerReference(m map[string]json.RawMessage, resul err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalVPNServerReferenceDeleted) - if err != nil { - err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) - return - } - err = core.UnmarshalPrimitive(m, "href", &obj.Href) - if err != nil { - err = core.SDKErrorf(err, "", "href-error", common.GetComponentInfo()) - return - } - err = core.UnmarshalPrimitive(m, "id", &obj.ID) - if err != nil { - err = core.SDKErrorf(err, "", "id-error", common.GetComponentInfo()) - return - } - err = core.UnmarshalPrimitive(m, "name", &obj.Name) - if err != nil { - err = core.SDKErrorf(err, "", "name-error", common.GetComponentInfo()) - return - } - err = core.UnmarshalPrimitive(m, "resource_type", &obj.ResourceType) - if err != nil { - err = core.SDKErrorf(err, "", "resource_type-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - -// RouteNextHopIP : RouteNextHopIP struct -// This model "extends" RouteNextHop -type RouteNextHopIP struct { - // The IP address. - // - // This property may [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) to support IPv6 addresses in - // the future. - Address *string `json:"address" validate:"required"` -} - -func (*RouteNextHopIP) isaRouteNextHop() bool { - return true -} - -// UnmarshalRouteNextHopIP unmarshals an instance of RouteNextHopIP from the specified map of raw messages. -func UnmarshalRouteNextHopIP(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(RouteNextHopIP) - err = core.UnmarshalPrimitive(m, "address", &obj.Address) - if err != nil { - err = core.SDKErrorf(err, "", "address-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - -// RouteNextHopPatchRouteNextHopIP : RouteNextHopPatchRouteNextHopIP struct -// Models which "extend" this model: -// - RouteNextHopPatchRouteNextHopIPRouteNextHopIPSentinelIP -// - RouteNextHopPatchRouteNextHopIPRouteNextHopIPUnicastIP -// This model "extends" RouteNextHopPatch -type RouteNextHopPatchRouteNextHopIP struct { - // The sentinel IP address (`0.0.0.0`). - // - // This property may [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) to support IPv6 addresses in - // the future. - Address *string `json:"address,omitempty"` -} - -func (*RouteNextHopPatchRouteNextHopIP) isaRouteNextHopPatchRouteNextHopIP() bool { - return true -} - -type RouteNextHopPatchRouteNextHopIPIntf interface { - RouteNextHopPatchIntf - isaRouteNextHopPatchRouteNextHopIP() bool -} - -func (*RouteNextHopPatchRouteNextHopIP) isaRouteNextHopPatch() bool { - return true -} - -// UnmarshalRouteNextHopPatchRouteNextHopIP unmarshals an instance of RouteNextHopPatchRouteNextHopIP from the specified map of raw messages. -func UnmarshalRouteNextHopPatchRouteNextHopIP(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(RouteNextHopPatchRouteNextHopIP) - err = core.UnmarshalPrimitive(m, "address", &obj.Address) - if err != nil { - err = core.SDKErrorf(err, "", "address-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - -// RouteNextHopPatchVPNGatewayConnectionIdentity : Identifies a VPN gateway connection by a unique property. -// Models which "extend" this model: -// - RouteNextHopPatchVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID -// - RouteNextHopPatchVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref -// This model "extends" RouteNextHopPatch -type RouteNextHopPatchVPNGatewayConnectionIdentity struct { - // The unique identifier for this VPN gateway connection. - ID *string `json:"id,omitempty"` - - // The VPN connection's canonical URL. - Href *string `json:"href,omitempty"` -} - -func (*RouteNextHopPatchVPNGatewayConnectionIdentity) isaRouteNextHopPatchVPNGatewayConnectionIdentity() bool { - return true -} - -type RouteNextHopPatchVPNGatewayConnectionIdentityIntf interface { - RouteNextHopPatchIntf - isaRouteNextHopPatchVPNGatewayConnectionIdentity() bool -} - -func (*RouteNextHopPatchVPNGatewayConnectionIdentity) isaRouteNextHopPatch() bool { - return true -} - -// UnmarshalRouteNextHopPatchVPNGatewayConnectionIdentity unmarshals an instance of RouteNextHopPatchVPNGatewayConnectionIdentity from the specified map of raw messages. -func UnmarshalRouteNextHopPatchVPNGatewayConnectionIdentity(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(RouteNextHopPatchVPNGatewayConnectionIdentity) - err = core.UnmarshalPrimitive(m, "id", &obj.ID) - if err != nil { - err = core.SDKErrorf(err, "", "id-error", common.GetComponentInfo()) - return - } - err = core.UnmarshalPrimitive(m, "href", &obj.Href) - if err != nil { - err = core.SDKErrorf(err, "", "href-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - -// RouteNextHopVPNGatewayConnectionReference : RouteNextHopVPNGatewayConnectionReference struct -// This model "extends" RouteNextHop -type RouteNextHopVPNGatewayConnectionReference struct { - // If present, this property indicates the referenced resource has been deleted, and provides - // some supplementary information. - Deleted *VPNGatewayConnectionReferenceDeleted `json:"deleted,omitempty"` - - // The VPN connection's canonical URL. - Href *string `json:"href" validate:"required"` - - // The unique identifier for this VPN gateway connection. - ID *string `json:"id" validate:"required"` - - // The name for this VPN gateway connection. The name is unique across all connections for the VPN gateway. - Name *string `json:"name" validate:"required"` - - // The resource type. - ResourceType *string `json:"resource_type" validate:"required"` -} - -// Constants associated with the RouteNextHopVPNGatewayConnectionReference.ResourceType property. -// The resource type. -const ( - RouteNextHopVPNGatewayConnectionReferenceResourceTypeVPNGatewayConnectionConst = "vpn_gateway_connection" -) - -func (*RouteNextHopVPNGatewayConnectionReference) isaRouteNextHop() bool { - return true -} - -// UnmarshalRouteNextHopVPNGatewayConnectionReference unmarshals an instance of RouteNextHopVPNGatewayConnectionReference from the specified map of raw messages. -func UnmarshalRouteNextHopVPNGatewayConnectionReference(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(RouteNextHopVPNGatewayConnectionReference) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalVPNGatewayConnectionReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -114764,12 +113421,119 @@ func UnmarshalRouteNextHopVPNGatewayConnectionReference(m map[string]json.RawMes return } -// RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIP : RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIP struct +// RouteNextHopIP : RouteNextHopIP struct +// This model "extends" RouteNextHop +type RouteNextHopIP struct { + // The IP address. + // + // This property may [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) to support IPv6 addresses in + // the future. + Address *string `json:"address" validate:"required"` +} + +func (*RouteNextHopIP) isaRouteNextHop() bool { + return true +} + +// UnmarshalRouteNextHopIP unmarshals an instance of RouteNextHopIP from the specified map of raw messages. +func UnmarshalRouteNextHopIP(m map[string]json.RawMessage, result interface{}) (err error) { + obj := new(RouteNextHopIP) + err = core.UnmarshalPrimitive(m, "address", &obj.Address) + if err != nil { + err = core.SDKErrorf(err, "", "address-error", common.GetComponentInfo()) + return + } + reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) + return +} + +// RouteNextHopPatchRouteNextHopIP : RouteNextHopPatchRouteNextHopIP struct +// Models which "extend" this model: +// - RouteNextHopPatchRouteNextHopIPRouteNextHopIPSentinelIP +// - RouteNextHopPatchRouteNextHopIPRouteNextHopIPUnicastIP +// This model "extends" RouteNextHopPatch +type RouteNextHopPatchRouteNextHopIP struct { + // The sentinel IP address (`0.0.0.0`). + // + // This property may [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) to support IPv6 addresses in + // the future. + Address *string `json:"address,omitempty"` +} + +func (*RouteNextHopPatchRouteNextHopIP) isaRouteNextHopPatchRouteNextHopIP() bool { + return true +} + +type RouteNextHopPatchRouteNextHopIPIntf interface { + RouteNextHopPatchIntf + isaRouteNextHopPatchRouteNextHopIP() bool +} + +func (*RouteNextHopPatchRouteNextHopIP) isaRouteNextHopPatch() bool { + return true +} + +// UnmarshalRouteNextHopPatchRouteNextHopIP unmarshals an instance of RouteNextHopPatchRouteNextHopIP from the specified map of raw messages. +func UnmarshalRouteNextHopPatchRouteNextHopIP(m map[string]json.RawMessage, result interface{}) (err error) { + obj := new(RouteNextHopPatchRouteNextHopIP) + err = core.UnmarshalPrimitive(m, "address", &obj.Address) + if err != nil { + err = core.SDKErrorf(err, "", "address-error", common.GetComponentInfo()) + return + } + reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) + return +} + +// RouteNextHopPatchVPNGatewayConnectionIdentity : Identifies a VPN gateway connection by a unique property. +// Models which "extend" this model: +// - RouteNextHopPatchVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID +// - RouteNextHopPatchVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref +// This model "extends" RouteNextHopPatch +type RouteNextHopPatchVPNGatewayConnectionIdentity struct { + // The unique identifier for this VPN gateway connection. + ID *string `json:"id,omitempty"` + + // The URL for this VPN gateway connection. + Href *string `json:"href,omitempty"` +} + +func (*RouteNextHopPatchVPNGatewayConnectionIdentity) isaRouteNextHopPatchVPNGatewayConnectionIdentity() bool { + return true +} + +type RouteNextHopPatchVPNGatewayConnectionIdentityIntf interface { + RouteNextHopPatchIntf + isaRouteNextHopPatchVPNGatewayConnectionIdentity() bool +} + +func (*RouteNextHopPatchVPNGatewayConnectionIdentity) isaRouteNextHopPatch() bool { + return true +} + +// UnmarshalRouteNextHopPatchVPNGatewayConnectionIdentity unmarshals an instance of RouteNextHopPatchVPNGatewayConnectionIdentity from the specified map of raw messages. +func UnmarshalRouteNextHopPatchVPNGatewayConnectionIdentity(m map[string]json.RawMessage, result interface{}) (err error) { + obj := new(RouteNextHopPatchVPNGatewayConnectionIdentity) + err = core.UnmarshalPrimitive(m, "id", &obj.ID) + if err != nil { + err = core.SDKErrorf(err, "", "id-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalPrimitive(m, "href", &obj.Href) + if err != nil { + err = core.SDKErrorf(err, "", "href-error", common.GetComponentInfo()) + return + } + reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) + return +} + +// RouteNextHopPrototypeRouteNextHopIP : RouteNextHopPrototypeRouteNextHopIP struct // Models which "extend" this model: -// - RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP -// - RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP -// This model "extends" RoutePrototypeNextHop -type RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIP struct { +// - RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP +// - RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP +// This model "extends" RouteNextHopPrototype +type RouteNextHopPrototypeRouteNextHopIP struct { // The sentinel IP address (`0.0.0.0`). // // This property may [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) to support IPv6 addresses in @@ -114777,22 +113541,22 @@ type RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIP struct { Address *string `json:"address,omitempty"` } -func (*RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIP) isaRoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIP() bool { +func (*RouteNextHopPrototypeRouteNextHopIP) isaRouteNextHopPrototypeRouteNextHopIP() bool { return true } -type RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPIntf interface { - RoutePrototypeNextHopIntf - isaRoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIP() bool +type RouteNextHopPrototypeRouteNextHopIPIntf interface { + RouteNextHopPrototypeIntf + isaRouteNextHopPrototypeRouteNextHopIP() bool } -func (*RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIP) isaRoutePrototypeNextHop() bool { +func (*RouteNextHopPrototypeRouteNextHopIP) isaRouteNextHopPrototype() bool { return true } -// UnmarshalRoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIP unmarshals an instance of RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIP from the specified map of raw messages. -func UnmarshalRoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIP(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIP) +// UnmarshalRouteNextHopPrototypeRouteNextHopIP unmarshals an instance of RouteNextHopPrototypeRouteNextHopIP from the specified map of raw messages. +func UnmarshalRouteNextHopPrototypeRouteNextHopIP(m map[string]json.RawMessage, result interface{}) (err error) { + obj := new(RouteNextHopPrototypeRouteNextHopIP) err = core.UnmarshalPrimitive(m, "address", &obj.Address) if err != nil { err = core.SDKErrorf(err, "", "address-error", common.GetComponentInfo()) @@ -114802,35 +113566,35 @@ func UnmarshalRoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIP(m map[str return } -// RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentity : Identifies a VPN gateway connection by a unique property. +// RouteNextHopPrototypeVPNGatewayConnectionIdentity : Identifies a VPN gateway connection by a unique property. // Models which "extend" this model: -// - RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID -// - RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref -// This model "extends" RoutePrototypeNextHop -type RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentity struct { +// - RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID +// - RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref +// This model "extends" RouteNextHopPrototype +type RouteNextHopPrototypeVPNGatewayConnectionIdentity struct { // The unique identifier for this VPN gateway connection. ID *string `json:"id,omitempty"` - // The VPN connection's canonical URL. + // The URL for this VPN gateway connection. Href *string `json:"href,omitempty"` } -func (*RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentity) isaRoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentity() bool { +func (*RouteNextHopPrototypeVPNGatewayConnectionIdentity) isaRouteNextHopPrototypeVPNGatewayConnectionIdentity() bool { return true } -type RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityIntf interface { - RoutePrototypeNextHopIntf - isaRoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentity() bool +type RouteNextHopPrototypeVPNGatewayConnectionIdentityIntf interface { + RouteNextHopPrototypeIntf + isaRouteNextHopPrototypeVPNGatewayConnectionIdentity() bool } -func (*RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentity) isaRoutePrototypeNextHop() bool { +func (*RouteNextHopPrototypeVPNGatewayConnectionIdentity) isaRouteNextHopPrototype() bool { return true } -// UnmarshalRoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentity unmarshals an instance of RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentity from the specified map of raw messages. -func UnmarshalRoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentity(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentity) +// UnmarshalRouteNextHopPrototypeVPNGatewayConnectionIdentity unmarshals an instance of RouteNextHopPrototypeVPNGatewayConnectionIdentity from the specified map of raw messages. +func UnmarshalRouteNextHopPrototypeVPNGatewayConnectionIdentity(m map[string]json.RawMessage, result interface{}) (err error) { + obj := new(RouteNextHopPrototypeVPNGatewayConnectionIdentity) err = core.UnmarshalPrimitive(m, "id", &obj.ID) if err != nil { err = core.SDKErrorf(err, "", "id-error", common.GetComponentInfo()) @@ -114845,6 +113609,68 @@ func UnmarshalRoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIden return } +// RouteNextHopVPNGatewayConnectionReference : RouteNextHopVPNGatewayConnectionReference struct +// This model "extends" RouteNextHop +type RouteNextHopVPNGatewayConnectionReference struct { + // If present, this property indicates the referenced resource has been deleted, and provides + // some supplementary information. + Deleted *Deleted `json:"deleted,omitempty"` + + // The URL for this VPN gateway connection. + Href *string `json:"href" validate:"required"` + + // The unique identifier for this VPN gateway connection. + ID *string `json:"id" validate:"required"` + + // The name for this VPN gateway connection. The name is unique across all connections for the VPN gateway. + Name *string `json:"name" validate:"required"` + + // The resource type. + ResourceType *string `json:"resource_type" validate:"required"` +} + +// Constants associated with the RouteNextHopVPNGatewayConnectionReference.ResourceType property. +// The resource type. +const ( + RouteNextHopVPNGatewayConnectionReferenceResourceTypeVPNGatewayConnectionConst = "vpn_gateway_connection" +) + +func (*RouteNextHopVPNGatewayConnectionReference) isaRouteNextHop() bool { + return true +} + +// UnmarshalRouteNextHopVPNGatewayConnectionReference unmarshals an instance of RouteNextHopVPNGatewayConnectionReference from the specified map of raw messages. +func UnmarshalRouteNextHopVPNGatewayConnectionReference(m map[string]json.RawMessage, result interface{}) (err error) { + obj := new(RouteNextHopVPNGatewayConnectionReference) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) + if err != nil { + err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalPrimitive(m, "href", &obj.Href) + if err != nil { + err = core.SDKErrorf(err, "", "href-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalPrimitive(m, "id", &obj.ID) + if err != nil { + err = core.SDKErrorf(err, "", "id-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalPrimitive(m, "name", &obj.Name) + if err != nil { + err = core.SDKErrorf(err, "", "name-error", common.GetComponentInfo()) + return + } + err = core.UnmarshalPrimitive(m, "resource_type", &obj.ResourceType) + if err != nil { + err = core.SDKErrorf(err, "", "resource_type-error", common.GetComponentInfo()) + return + } + reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) + return +} + // RoutingTableIdentityByHref : RoutingTableIdentityByHref struct // This model "extends" RoutingTableIdentity type RoutingTableIdentityByHref struct { @@ -114918,7 +113744,7 @@ func UnmarshalRoutingTableIdentityByID(m map[string]json.RawMessage, result inte // SecurityGroupIdentityByCRN : SecurityGroupIdentityByCRN struct // This model "extends" SecurityGroupIdentity type SecurityGroupIdentityByCRN struct { - // The security group's CRN. + // The CRN for this security group. CRN *string `json:"crn" validate:"required"` } @@ -114953,7 +113779,7 @@ func UnmarshalSecurityGroupIdentityByCRN(m map[string]json.RawMessage, result in // SecurityGroupIdentityByHref : SecurityGroupIdentityByHref struct // This model "extends" SecurityGroupIdentity type SecurityGroupIdentityByHref struct { - // The security group's canonical URL. + // The URL for this security group. Href *string `json:"href" validate:"required"` } @@ -115668,10 +114494,10 @@ type SecurityGroupRuleRemotePatchSecurityGroupIdentity struct { // The unique identifier for this security group. ID *string `json:"id,omitempty"` - // The security group's CRN. + // The CRN for this security group. CRN *string `json:"crn,omitempty"` - // The security group's canonical URL. + // The URL for this security group. Href *string `json:"href,omitempty"` } @@ -115796,10 +114622,10 @@ type SecurityGroupRuleRemotePrototypeSecurityGroupIdentity struct { // The unique identifier for this security group. ID *string `json:"id,omitempty"` - // The security group's CRN. + // The CRN for this security group. CRN *string `json:"crn,omitempty"` - // The security group's canonical URL. + // The URL for this security group. Href *string `json:"href,omitempty"` } @@ -115893,14 +114719,14 @@ func UnmarshalSecurityGroupRuleRemoteIP(m map[string]json.RawMessage, result int // SecurityGroupRuleRemoteSecurityGroupReference : SecurityGroupRuleRemoteSecurityGroupReference struct // This model "extends" SecurityGroupRuleRemote type SecurityGroupRuleRemoteSecurityGroupReference struct { - // The security group's CRN. + // The CRN for this security group. CRN *string `json:"crn" validate:"required"` // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *SecurityGroupReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` - // The security group's canonical URL. + // The URL for this security group. Href *string `json:"href" validate:"required"` // The unique identifier for this security group. @@ -115922,7 +114748,7 @@ func UnmarshalSecurityGroupRuleRemoteSecurityGroupReference(m map[string]json.Ra err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalSecurityGroupReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -116275,7 +115101,7 @@ func UnmarshalSecurityGroupRuleSecurityGroupRuleProtocolTcpudp(m map[string]json type SecurityGroupTargetReferenceBareMetalServerNetworkInterfaceReferenceTargetContext struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *BareMetalServerNetworkInterfaceReferenceTargetContextDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this bare metal server network interface. // @@ -116312,7 +115138,7 @@ func (*SecurityGroupTargetReferenceBareMetalServerNetworkInterfaceReferenceTarge // UnmarshalSecurityGroupTargetReferenceBareMetalServerNetworkInterfaceReferenceTargetContext unmarshals an instance of SecurityGroupTargetReferenceBareMetalServerNetworkInterfaceReferenceTargetContext from the specified map of raw messages. func UnmarshalSecurityGroupTargetReferenceBareMetalServerNetworkInterfaceReferenceTargetContext(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(SecurityGroupTargetReferenceBareMetalServerNetworkInterfaceReferenceTargetContext) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalBareMetalServerNetworkInterfaceReferenceTargetContextDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -116349,7 +115175,7 @@ type SecurityGroupTargetReferenceEndpointGatewayReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *EndpointGatewayReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this endpoint gateway. Href *string `json:"href" validate:"required"` @@ -116382,7 +115208,7 @@ func UnmarshalSecurityGroupTargetReferenceEndpointGatewayReference(m map[string] err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalEndpointGatewayReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -116414,14 +115240,14 @@ func UnmarshalSecurityGroupTargetReferenceEndpointGatewayReference(m map[string] // SecurityGroupTargetReferenceLoadBalancerReference : SecurityGroupTargetReferenceLoadBalancerReference struct // This model "extends" SecurityGroupTargetReference type SecurityGroupTargetReferenceLoadBalancerReference struct { - // The load balancer's CRN. + // The CRN for this load balancer. CRN *string `json:"crn" validate:"required"` // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *LoadBalancerReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` - // The load balancer's canonical URL. + // The URL for this load balancer. Href *string `json:"href" validate:"required"` // The unique identifier for this load balancer. @@ -116452,7 +115278,7 @@ func UnmarshalSecurityGroupTargetReferenceLoadBalancerReference(m map[string]jso err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalLoadBalancerReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -116486,7 +115312,7 @@ func UnmarshalSecurityGroupTargetReferenceLoadBalancerReference(m map[string]jso type SecurityGroupTargetReferenceNetworkInterfaceReferenceTargetContext struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *NetworkInterfaceReferenceTargetContextDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this instance network interface. // @@ -116523,7 +115349,7 @@ func (*SecurityGroupTargetReferenceNetworkInterfaceReferenceTargetContext) isaSe // UnmarshalSecurityGroupTargetReferenceNetworkInterfaceReferenceTargetContext unmarshals an instance of SecurityGroupTargetReferenceNetworkInterfaceReferenceTargetContext from the specified map of raw messages. func UnmarshalSecurityGroupTargetReferenceNetworkInterfaceReferenceTargetContext(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(SecurityGroupTargetReferenceNetworkInterfaceReferenceTargetContext) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalNetworkInterfaceReferenceTargetContextDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -116560,7 +115386,7 @@ type SecurityGroupTargetReferenceVPNServerReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *VPNServerReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this VPN server. Href *string `json:"href" validate:"required"` @@ -116593,7 +115419,7 @@ func UnmarshalSecurityGroupTargetReferenceVPNServerReference(m map[string]json.R err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalVPNServerReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -116630,7 +115456,7 @@ type SecurityGroupTargetReferenceVirtualNetworkInterfaceReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *VirtualNetworkInterfaceReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this virtual network interface. Href *string `json:"href" validate:"required"` @@ -116669,7 +115495,7 @@ func UnmarshalSecurityGroupTargetReferenceVirtualNetworkInterfaceReference(m map err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalVirtualNetworkInterfaceReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -116716,7 +115542,7 @@ type ShareAccessorBindingAccessorShareReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *ShareReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this file share. Href *string `json:"href" validate:"required"` @@ -116753,7 +115579,7 @@ func UnmarshalShareAccessorBindingAccessorShareReference(m map[string]json.RawMe err = core.SDKErrorf(err, "", "crn-error", common.GetComponentInfo()) return } - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalShareReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -117909,8 +116735,8 @@ type SharePrototypeShareBySize struct { // The maximum size for a share may increase in the future. Size *int64 `json:"size" validate:"required"` - // The zone this file share will reside in. For a replica share, this must be a different - // zone in the same region as the source share. + // The zone this file share will reside in. For a replica share in the same region as + // the source share, this must be a different zone from the source share. Zone ZoneIdentityIntf `json:"zone" validate:"required"` } @@ -118083,8 +116909,8 @@ type SharePrototypeShareBySourceShare struct { // region](https://cloud.ibm.com/docs/vpc?topic=vpc-file-storage-replication). SourceShare ShareIdentityIntf `json:"source_share" validate:"required"` - // The zone this file share will reside in. For a replica share, this must be a different - // zone in the same region as the source share. + // The zone this file share will reside in. For a replica share in the same region as + // the source share, this must be a different zone from the source share. Zone ZoneIdentityIntf `json:"zone" validate:"required"` } @@ -119921,7 +118747,7 @@ func UnmarshalVPNGatewayConnectionIkeIdentityVPNGatewayConnectionIkeIdentityKeyI // VPNGatewayConnectionIkePolicyPatchIkePolicyIdentityByHref : VPNGatewayConnectionIkePolicyPatchIkePolicyIdentityByHref struct // This model "extends" VPNGatewayConnectionIkePolicyPatch type VPNGatewayConnectionIkePolicyPatchIkePolicyIdentityByHref struct { - // The IKE policy's canonical URL. + // The URL for this IKE policy. Href *string `json:"href" validate:"required"` } @@ -119991,7 +118817,7 @@ func UnmarshalVPNGatewayConnectionIkePolicyPatchIkePolicyIdentityByID(m map[stri // VPNGatewayConnectionIkePolicyPrototypeIkePolicyIdentityByHref : VPNGatewayConnectionIkePolicyPrototypeIkePolicyIdentityByHref struct // This model "extends" VPNGatewayConnectionIkePolicyPrototype type VPNGatewayConnectionIkePolicyPrototypeIkePolicyIdentityByHref struct { - // The IKE policy's canonical URL. + // The URL for this IKE policy. Href *string `json:"href" validate:"required"` } @@ -120061,7 +118887,7 @@ func UnmarshalVPNGatewayConnectionIkePolicyPrototypeIkePolicyIdentityByID(m map[ // VPNGatewayConnectionIPsecPolicyPatchIPsecPolicyIdentityByHref : VPNGatewayConnectionIPsecPolicyPatchIPsecPolicyIdentityByHref struct // This model "extends" VPNGatewayConnectionIPsecPolicyPatch type VPNGatewayConnectionIPsecPolicyPatchIPsecPolicyIdentityByHref struct { - // The IPsec policy's canonical URL. + // The URL for this IPsec policy. Href *string `json:"href" validate:"required"` } @@ -120131,7 +118957,7 @@ func UnmarshalVPNGatewayConnectionIPsecPolicyPatchIPsecPolicyIdentityByID(m map[ // VPNGatewayConnectionIPsecPolicyPrototypeIPsecPolicyIdentityByHref : VPNGatewayConnectionIPsecPolicyPrototypeIPsecPolicyIdentityByHref struct // This model "extends" VPNGatewayConnectionIPsecPolicyPrototype type VPNGatewayConnectionIPsecPolicyPrototypeIPsecPolicyIdentityByHref struct { - // The IPsec policy's canonical URL. + // The URL for this IPsec policy. Href *string `json:"href" validate:"required"` } @@ -120309,7 +119135,7 @@ type VPNGatewayConnectionPolicyMode struct { // connection will be brought down after its lifetime expires. EstablishMode *string `json:"establish_mode" validate:"required"` - // The VPN connection's canonical URL. + // The URL for this VPN gateway connection. Href *string `json:"href" validate:"required"` // The unique identifier for this VPN gateway connection. @@ -120971,7 +119797,7 @@ type VPNGatewayConnectionRouteMode struct { // connection will be brought down after its lifetime expires. EstablishMode *string `json:"establish_mode" validate:"required"` - // The VPN connection's canonical URL. + // The URL for this VPN gateway connection. Href *string `json:"href" validate:"required"` // The unique identifier for this VPN gateway connection. @@ -121293,7 +120119,7 @@ type VPNGatewayPolicyMode struct { // The date and time that this VPN gateway was created. CreatedAt *strfmt.DateTime `json:"created_at" validate:"required"` - // The VPN gateway's CRN. + // The CRN for this VPN gateway. CRN *string `json:"crn" validate:"required"` // The reasons for the current `health_state` (if any). @@ -121308,7 +120134,7 @@ type VPNGatewayPolicyMode struct { // health state of `inapplicable`. A `pending` resource may also have this state. HealthState *string `json:"health_state" validate:"required"` - // The VPN gateway's canonical URL. + // The URL for this VPN gateway. Href *string `json:"href" validate:"required"` // The unique identifier for this VPN gateway. @@ -121608,7 +120434,7 @@ type VPNGatewayRouteMode struct { // The date and time that this VPN gateway was created. CreatedAt *strfmt.DateTime `json:"created_at" validate:"required"` - // The VPN gateway's CRN. + // The CRN for this VPN gateway. CRN *string `json:"crn" validate:"required"` // The reasons for the current `health_state` (if any). @@ -121623,7 +120449,7 @@ type VPNGatewayRouteMode struct { // health state of `inapplicable`. A `pending` resource may also have this state. HealthState *string `json:"health_state" validate:"required"` - // The VPN gateway's canonical URL. + // The URL for this VPN gateway. Href *string `json:"href" validate:"required"` // The unique identifier for this VPN gateway. @@ -122317,7 +121143,7 @@ func UnmarshalVirtualNetworkInterfaceTargetInstanceNetworkAttachmentReferenceVir type VirtualNetworkInterfaceTargetShareMountTargetReference struct { // If present, this property indicates the referenced resource has been deleted, and provides // some supplementary information. - Deleted *ShareMountTargetReferenceDeleted `json:"deleted,omitempty"` + Deleted *Deleted `json:"deleted,omitempty"` // The URL for this share mount target. Href *string `json:"href" validate:"required"` @@ -122345,7 +121171,7 @@ func (*VirtualNetworkInterfaceTargetShareMountTargetReference) isaVirtualNetwork // UnmarshalVirtualNetworkInterfaceTargetShareMountTargetReference unmarshals an instance of VirtualNetworkInterfaceTargetShareMountTargetReference from the specified map of raw messages. func UnmarshalVirtualNetworkInterfaceTargetShareMountTargetReference(m map[string]json.RawMessage, result interface{}) (err error) { obj := new(VirtualNetworkInterfaceTargetShareMountTargetReference) - err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalShareMountTargetReferenceDeleted) + err = core.UnmarshalModel(m, "deleted", &obj.Deleted, UnmarshalDeleted) if err != nil { err = core.SDKErrorf(err, "", "deleted-error", common.GetComponentInfo()) return @@ -122460,7 +121286,9 @@ type VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContext struct { // If unspecified, the `encryption` type for the volume will be `provider_managed`. EncryptionKey EncryptionKeyIdentityIntf `json:"encryption_key,omitempty"` - // The snapshot from which to clone the volume. + // The snapshot to use as a source for the volume's data. + // + // The specified snapshot may be in a different account, subject to IAM policies. SourceSnapshot SnapshotIdentityIntf `json:"source_snapshot,omitempty"` } @@ -123290,138 +122118,6 @@ func UnmarshalVolumeProfileIdentityByName(m map[string]json.RawMessage, result i return } -// VolumeProfileUnattachedCapacityUpdateSupportedVolumeProfileUnattachedCapacityUpdateDependent : The support for capacity updates on unattached volumes of this profile depends on its configuration. -// This model "extends" VolumeProfileUnattachedCapacityUpdateSupported -type VolumeProfileUnattachedCapacityUpdateSupportedVolumeProfileUnattachedCapacityUpdateDependent struct { - // The type for this profile field. - Type *string `json:"type" validate:"required"` -} - -// Constants associated with the VolumeProfileUnattachedCapacityUpdateSupportedVolumeProfileUnattachedCapacityUpdateDependent.Type property. -// The type for this profile field. -const ( - VolumeProfileUnattachedCapacityUpdateSupportedVolumeProfileUnattachedCapacityUpdateDependentTypeDependentConst = "dependent" -) - -func (*VolumeProfileUnattachedCapacityUpdateSupportedVolumeProfileUnattachedCapacityUpdateDependent) isaVolumeProfileUnattachedCapacityUpdateSupported() bool { - return true -} - -// UnmarshalVolumeProfileUnattachedCapacityUpdateSupportedVolumeProfileUnattachedCapacityUpdateDependent unmarshals an instance of VolumeProfileUnattachedCapacityUpdateSupportedVolumeProfileUnattachedCapacityUpdateDependent from the specified map of raw messages. -func UnmarshalVolumeProfileUnattachedCapacityUpdateSupportedVolumeProfileUnattachedCapacityUpdateDependent(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(VolumeProfileUnattachedCapacityUpdateSupportedVolumeProfileUnattachedCapacityUpdateDependent) - err = core.UnmarshalPrimitive(m, "type", &obj.Type) - if err != nil { - err = core.SDKErrorf(err, "", "type-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - -// VolumeProfileUnattachedCapacityUpdateSupportedVolumeProfileUnattachedCapacityUpdateFixed : The support for capacity updates on unattached volumes of this profile. -// This model "extends" VolumeProfileUnattachedCapacityUpdateSupported -type VolumeProfileUnattachedCapacityUpdateSupportedVolumeProfileUnattachedCapacityUpdateFixed struct { - // The type for this profile field. - Type *string `json:"type" validate:"required"` - - // The value for this profile field. - Value *bool `json:"value" validate:"required"` -} - -// Constants associated with the VolumeProfileUnattachedCapacityUpdateSupportedVolumeProfileUnattachedCapacityUpdateFixed.Type property. -// The type for this profile field. -const ( - VolumeProfileUnattachedCapacityUpdateSupportedVolumeProfileUnattachedCapacityUpdateFixedTypeFixedConst = "fixed" -) - -func (*VolumeProfileUnattachedCapacityUpdateSupportedVolumeProfileUnattachedCapacityUpdateFixed) isaVolumeProfileUnattachedCapacityUpdateSupported() bool { - return true -} - -// UnmarshalVolumeProfileUnattachedCapacityUpdateSupportedVolumeProfileUnattachedCapacityUpdateFixed unmarshals an instance of VolumeProfileUnattachedCapacityUpdateSupportedVolumeProfileUnattachedCapacityUpdateFixed from the specified map of raw messages. -func UnmarshalVolumeProfileUnattachedCapacityUpdateSupportedVolumeProfileUnattachedCapacityUpdateFixed(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(VolumeProfileUnattachedCapacityUpdateSupportedVolumeProfileUnattachedCapacityUpdateFixed) - err = core.UnmarshalPrimitive(m, "type", &obj.Type) - if err != nil { - err = core.SDKErrorf(err, "", "type-error", common.GetComponentInfo()) - return - } - err = core.UnmarshalPrimitive(m, "value", &obj.Value) - if err != nil { - err = core.SDKErrorf(err, "", "value-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - -// VolumeProfileUnattachedIopsUpdateSupportedVolumeProfileUnattachedIopsUpdateDependent : The support for IOPS updates on unattached volumes of this profile depends on its configuration. -// This model "extends" VolumeProfileUnattachedIopsUpdateSupported -type VolumeProfileUnattachedIopsUpdateSupportedVolumeProfileUnattachedIopsUpdateDependent struct { - // The type for this profile field. - Type *string `json:"type" validate:"required"` -} - -// Constants associated with the VolumeProfileUnattachedIopsUpdateSupportedVolumeProfileUnattachedIopsUpdateDependent.Type property. -// The type for this profile field. -const ( - VolumeProfileUnattachedIopsUpdateSupportedVolumeProfileUnattachedIopsUpdateDependentTypeDependentConst = "dependent" -) - -func (*VolumeProfileUnattachedIopsUpdateSupportedVolumeProfileUnattachedIopsUpdateDependent) isaVolumeProfileUnattachedIopsUpdateSupported() bool { - return true -} - -// UnmarshalVolumeProfileUnattachedIopsUpdateSupportedVolumeProfileUnattachedIopsUpdateDependent unmarshals an instance of VolumeProfileUnattachedIopsUpdateSupportedVolumeProfileUnattachedIopsUpdateDependent from the specified map of raw messages. -func UnmarshalVolumeProfileUnattachedIopsUpdateSupportedVolumeProfileUnattachedIopsUpdateDependent(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(VolumeProfileUnattachedIopsUpdateSupportedVolumeProfileUnattachedIopsUpdateDependent) - err = core.UnmarshalPrimitive(m, "type", &obj.Type) - if err != nil { - err = core.SDKErrorf(err, "", "type-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - -// VolumeProfileUnattachedIopsUpdateSupportedVolumeProfileUnattachedIopsUpdateFixed : The support for IOPS updates on unattached volumes of this profile. -// This model "extends" VolumeProfileUnattachedIopsUpdateSupported -type VolumeProfileUnattachedIopsUpdateSupportedVolumeProfileUnattachedIopsUpdateFixed struct { - // The type for this profile field. - Type *string `json:"type" validate:"required"` - - // The value for this profile field. - Value *bool `json:"value" validate:"required"` -} - -// Constants associated with the VolumeProfileUnattachedIopsUpdateSupportedVolumeProfileUnattachedIopsUpdateFixed.Type property. -// The type for this profile field. -const ( - VolumeProfileUnattachedIopsUpdateSupportedVolumeProfileUnattachedIopsUpdateFixedTypeFixedConst = "fixed" -) - -func (*VolumeProfileUnattachedIopsUpdateSupportedVolumeProfileUnattachedIopsUpdateFixed) isaVolumeProfileUnattachedIopsUpdateSupported() bool { - return true -} - -// UnmarshalVolumeProfileUnattachedIopsUpdateSupportedVolumeProfileUnattachedIopsUpdateFixed unmarshals an instance of VolumeProfileUnattachedIopsUpdateSupportedVolumeProfileUnattachedIopsUpdateFixed from the specified map of raw messages. -func UnmarshalVolumeProfileUnattachedIopsUpdateSupportedVolumeProfileUnattachedIopsUpdateFixed(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(VolumeProfileUnattachedIopsUpdateSupportedVolumeProfileUnattachedIopsUpdateFixed) - err = core.UnmarshalPrimitive(m, "type", &obj.Type) - if err != nil { - err = core.SDKErrorf(err, "", "type-error", common.GetComponentInfo()) - return - } - err = core.UnmarshalPrimitive(m, "value", &obj.Value) - if err != nil { - err = core.SDKErrorf(err, "", "value-error", common.GetComponentInfo()) - return - } - reflect.ValueOf(result).Elem().Set(reflect.ValueOf(obj)) - return -} - // VolumePrototypeVolumeByCapacity : VolumePrototypeVolumeByCapacity struct // This model "extends" VolumePrototype type VolumePrototypeVolumeByCapacity struct { @@ -123552,7 +122248,9 @@ type VolumePrototypeVolumeBySourceSnapshot struct { // If unspecified, the `encryption` type for the volume will be `provider_managed`. EncryptionKey EncryptionKeyIdentityIntf `json:"encryption_key,omitempty"` - // The snapshot from which to clone the volume. + // The snapshot to use as a source for the volume's data. + // + // The specified snapshot may be in a different account, subject to IAM policies. SourceSnapshot SnapshotIdentityIntf `json:"source_snapshot" validate:"required"` } @@ -131192,7 +129890,7 @@ func UnmarshalInstanceTemplateInstanceBySourceSnapshotInstanceTemplateContextIns // LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref : LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref struct // This model "extends" LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentity type LoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref struct { - // The pool's canonical URL. + // The URL for this load balancer pool. Href *string `json:"href" validate:"required"` } @@ -131270,7 +129968,7 @@ func UnmarshalLoadBalancerListenerPolicyTargetPatchLoadBalancerPoolIdentityLoadB // LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref : LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref struct // This model "extends" LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentity type LoadBalancerListenerPolicyTargetPrototypeLoadBalancerPoolIdentityLoadBalancerPoolIdentityLoadBalancerPoolIdentityByHref struct { - // The pool's canonical URL. + // The URL for this load balancer pool. Href *string `json:"href" validate:"required"` } @@ -132021,7 +130719,7 @@ func UnmarshalRouteNextHopPatchRouteNextHopIPRouteNextHopIPUnicastIP(m map[strin // RouteNextHopPatchVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref : RouteNextHopPatchVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref struct // This model "extends" RouteNextHopPatchVPNGatewayConnectionIdentity type RouteNextHopPatchVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref struct { - // The VPN connection's canonical URL. + // The URL for this VPN gateway connection. Href *string `json:"href" validate:"required"` } @@ -132096,9 +130794,9 @@ func UnmarshalRouteNextHopPatchVPNGatewayConnectionIdentityVPNGatewayConnectionI return } -// RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP : RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP struct -// This model "extends" RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIP -type RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP struct { +// RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP : RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP struct +// This model "extends" RouteNextHopPrototypeRouteNextHopIP +type RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP struct { // The sentinel IP address (`0.0.0.0`). // // This property may [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) to support IPv6 addresses in @@ -132106,9 +130804,9 @@ type RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototy Address *string `json:"address" validate:"required"` } -// NewRoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP : Instantiate RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP (Generic Model Constructor) -func (*VpcV1) NewRoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP(address string) (_model *RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP, err error) { - _model = &RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP{ +// NewRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP : Instantiate RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP (Generic Model Constructor) +func (*VpcV1) NewRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP(address string) (_model *RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP, err error) { + _model = &RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP{ Address: core.StringPtr(address), } err = core.ValidateStruct(_model, "required parameters") @@ -132118,17 +130816,17 @@ func (*VpcV1) NewRoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNe return } -func (*RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP) isaRoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIP() bool { +func (*RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP) isaRouteNextHopPrototypeRouteNextHopIP() bool { return true } -func (*RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP) isaRoutePrototypeNextHop() bool { +func (*RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP) isaRouteNextHopPrototype() bool { return true } -// UnmarshalRoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP unmarshals an instance of RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP from the specified map of raw messages. -func UnmarshalRoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP) +// UnmarshalRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP unmarshals an instance of RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP from the specified map of raw messages. +func UnmarshalRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP(m map[string]json.RawMessage, result interface{}) (err error) { + obj := new(RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPSentinelIP) err = core.UnmarshalPrimitive(m, "address", &obj.Address) if err != nil { err = core.SDKErrorf(err, "", "address-error", common.GetComponentInfo()) @@ -132138,9 +130836,9 @@ func UnmarshalRoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextH return } -// RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP : RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP struct -// This model "extends" RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIP -type RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP struct { +// RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP : RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP struct +// This model "extends" RouteNextHopPrototypeRouteNextHopIP +type RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP struct { // A unicast IP address, which must not be any of the following values: // // - `0.0.0.0` (the sentinel IP address) @@ -132152,9 +130850,9 @@ type RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototy Address *string `json:"address" validate:"required"` } -// NewRoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP : Instantiate RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP (Generic Model Constructor) -func (*VpcV1) NewRoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP(address string) (_model *RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP, err error) { - _model = &RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP{ +// NewRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP : Instantiate RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP (Generic Model Constructor) +func (*VpcV1) NewRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP(address string) (_model *RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP, err error) { + _model = &RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP{ Address: core.StringPtr(address), } err = core.ValidateStruct(_model, "required parameters") @@ -132164,17 +130862,17 @@ func (*VpcV1) NewRoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNe return } -func (*RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP) isaRoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIP() bool { +func (*RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP) isaRouteNextHopPrototypeRouteNextHopIP() bool { return true } -func (*RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP) isaRoutePrototypeNextHop() bool { +func (*RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP) isaRouteNextHopPrototype() bool { return true } -// UnmarshalRoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP unmarshals an instance of RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP from the specified map of raw messages. -func UnmarshalRoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(RoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP) +// UnmarshalRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP unmarshals an instance of RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP from the specified map of raw messages. +func UnmarshalRouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP(m map[string]json.RawMessage, result interface{}) (err error) { + obj := new(RouteNextHopPrototypeRouteNextHopIPRouteNextHopIPUnicastIP) err = core.UnmarshalPrimitive(m, "address", &obj.Address) if err != nil { err = core.SDKErrorf(err, "", "address-error", common.GetComponentInfo()) @@ -132184,16 +130882,16 @@ func UnmarshalRoutePrototypeNextHopRouteNextHopPrototypeRouteNextHopIPRouteNextH return } -// RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref : RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref struct -// This model "extends" RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentity -type RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref struct { - // The VPN connection's canonical URL. +// RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref : RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref struct +// This model "extends" RouteNextHopPrototypeVPNGatewayConnectionIdentity +type RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref struct { + // The URL for this VPN gateway connection. Href *string `json:"href" validate:"required"` } -// NewRoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref : Instantiate RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref (Generic Model Constructor) -func (*VpcV1) NewRoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref(href string) (_model *RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref, err error) { - _model = &RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref{ +// NewRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref : Instantiate RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref (Generic Model Constructor) +func (*VpcV1) NewRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref(href string) (_model *RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref, err error) { + _model = &RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref{ Href: core.StringPtr(href), } err = core.ValidateStruct(_model, "required parameters") @@ -132203,17 +130901,17 @@ func (*VpcV1) NewRoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionI return } -func (*RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref) isaRoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentity() bool { +func (*RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref) isaRouteNextHopPrototypeVPNGatewayConnectionIdentity() bool { return true } -func (*RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref) isaRoutePrototypeNextHop() bool { +func (*RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref) isaRouteNextHopPrototype() bool { return true } -// UnmarshalRoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref unmarshals an instance of RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref from the specified map of raw messages. -func UnmarshalRoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref) +// UnmarshalRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref unmarshals an instance of RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref from the specified map of raw messages. +func UnmarshalRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref(m map[string]json.RawMessage, result interface{}) (err error) { + obj := new(RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByHref) err = core.UnmarshalPrimitive(m, "href", &obj.Href) if err != nil { err = core.SDKErrorf(err, "", "href-error", common.GetComponentInfo()) @@ -132223,16 +130921,16 @@ func UnmarshalRoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIden return } -// RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID : RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID struct -// This model "extends" RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentity -type RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID struct { +// RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID : RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID struct +// This model "extends" RouteNextHopPrototypeVPNGatewayConnectionIdentity +type RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID struct { // The unique identifier for this VPN gateway connection. ID *string `json:"id" validate:"required"` } -// NewRoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID : Instantiate RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID (Generic Model Constructor) -func (*VpcV1) NewRoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID(id string) (_model *RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID, err error) { - _model = &RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID{ +// NewRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID : Instantiate RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID (Generic Model Constructor) +func (*VpcV1) NewRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID(id string) (_model *RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID, err error) { + _model = &RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID{ ID: core.StringPtr(id), } err = core.ValidateStruct(_model, "required parameters") @@ -132242,17 +130940,17 @@ func (*VpcV1) NewRoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionI return } -func (*RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID) isaRoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentity() bool { +func (*RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID) isaRouteNextHopPrototypeVPNGatewayConnectionIdentity() bool { return true } -func (*RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID) isaRoutePrototypeNextHop() bool { +func (*RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID) isaRouteNextHopPrototype() bool { return true } -// UnmarshalRoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID unmarshals an instance of RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID from the specified map of raw messages. -func UnmarshalRoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID(m map[string]json.RawMessage, result interface{}) (err error) { - obj := new(RoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIdentityRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID) +// UnmarshalRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID unmarshals an instance of RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID from the specified map of raw messages. +func UnmarshalRouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID(m map[string]json.RawMessage, result interface{}) (err error) { + obj := new(RouteNextHopPrototypeVPNGatewayConnectionIdentityVPNGatewayConnectionIdentityByID) err = core.UnmarshalPrimitive(m, "id", &obj.ID) if err != nil { err = core.SDKErrorf(err, "", "id-error", common.GetComponentInfo()) @@ -132265,7 +130963,7 @@ func UnmarshalRoutePrototypeNextHopRouteNextHopPrototypeVPNGatewayConnectionIden // SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityByCRN : SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityByCRN struct // This model "extends" SecurityGroupRuleRemotePatchSecurityGroupIdentity type SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityByCRN struct { - // The security group's CRN. + // The CRN for this security group. CRN *string `json:"crn" validate:"required"` } @@ -132304,7 +131002,7 @@ func UnmarshalSecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIden // SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityByHref : SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityByHref struct // This model "extends" SecurityGroupRuleRemotePatchSecurityGroupIdentity type SecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIdentityByHref struct { - // The security group's canonical URL. + // The URL for this security group. Href *string `json:"href" validate:"required"` } @@ -132382,7 +131080,7 @@ func UnmarshalSecurityGroupRuleRemotePatchSecurityGroupIdentitySecurityGroupIden // SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityByCRN : SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityByCRN struct // This model "extends" SecurityGroupRuleRemotePrototypeSecurityGroupIdentity type SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityByCRN struct { - // The security group's CRN. + // The CRN for this security group. CRN *string `json:"crn" validate:"required"` } @@ -132421,7 +131119,7 @@ func UnmarshalSecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroup // SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityByHref : SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityByHref struct // This model "extends" SecurityGroupRuleRemotePrototypeSecurityGroupIdentity type SecurityGroupRuleRemotePrototypeSecurityGroupIdentitySecurityGroupIdentityByHref struct { - // The security group's canonical URL. + // The URL for this security group. Href *string `json:"href" validate:"required"` } @@ -132744,7 +131442,7 @@ type VPNGatewayConnectionRouteModeVPNGatewayConnectionStaticRouteMode struct { // connection will be brought down after its lifetime expires. EstablishMode *string `json:"establish_mode" validate:"required"` - // The VPN connection's canonical URL. + // The URL for this VPN gateway connection. Href *string `json:"href" validate:"required"` // The unique identifier for this VPN gateway connection. @@ -133339,7 +132037,9 @@ type VolumeAttachmentPrototypeVolumeVolumePrototypeInstanceContextVolumePrototyp // If unspecified, the `encryption` type for the volume will be `provider_managed`. EncryptionKey EncryptionKeyIdentityIntf `json:"encryption_key,omitempty"` - // The snapshot from which to clone the volume. + // The snapshot to use as a source for the volume's data. + // + // The specified snapshot may be in a different account, subject to IAM policies. SourceSnapshot SnapshotIdentityIntf `json:"source_snapshot" validate:"required"` } diff --git a/go.mod b/go.mod index 74ac7da09c..d8df9d4cb9 100644 --- a/go.mod +++ b/go.mod @@ -239,7 +239,7 @@ replace github.com/dgrijalva/jwt-go v3.2.0+incompatible => github.com/golang-jwt // add sdk changes. replace github.com/portworx/sched-ops v0.0.0-20200831185134-3e8010dc7056 => github.com/portworx/sched-ops v0.20.4-openstorage-rc3 // required by rook v1.7 -replace github.com/IBM/vpc-go-sdk v0.57.0 => ./common/github.com/IBM/vpc-go-sdk +replace github.com/IBM/vpc-go-sdk v0.58.0 => ./common/github.com/IBM/vpc-go-sdk exclude ( github.com/kubernetes-incubator/external-storage v0.20.4-openstorage-rc2 diff --git a/go.sum b/go.sum index 5db19a9fe9..0c15fbf760 100644 --- a/go.sum +++ b/go.sum @@ -191,8 +191,6 @@ github.com/IBM/vmware-go-sdk v0.1.2 h1:5lKWFyInWz9e2hwGsoFTEoLa1jYkD30SReN0fQ10w github.com/IBM/vmware-go-sdk v0.1.2/go.mod h1:2UGPBJju3jiv5VKKBBm9a5L6bzF/aJdKOKAzJ7HaOjA= github.com/IBM/vpc-beta-go-sdk v0.6.0 h1:wfM3AcW3zOM3xsRtZ+EA6+sESlGUjQ6Yf4n5QQyz4uc= github.com/IBM/vpc-beta-go-sdk v0.6.0/go.mod h1:fzHDAQIqH/5yJmYsKodKHLcqxMDT+yfH6vZjdiw8CQA= -github.com/IBM/vpc-go-sdk v0.58.0 h1:Slk1jkcV7tPnf0iECQV2Oja7W8Bom0z7k9M4fMBY4bI= -github.com/IBM/vpc-go-sdk v0.58.0/go.mod h1:swmxiYLT+OfBsBYqJWGeRd6NPmBk4u/het2PZdtzIaw= github.com/Jeffail/gabs v1.1.1 h1:V0uzR08Hj22EX8+8QMhyI9sX2hwRu+/RJhJUmnwda/E= github.com/Jeffail/gabs v1.1.1/go.mod h1:6xMvQMK4k33lb7GUUpaAPh6nKMmemQeg5d4gn7/bOXc= github.com/Logicalis/asn1 v0.0.0-20190312173541-d60463189a56 h1:vuquMR410psHNax14XKNWa0Ae/kYgWJcXi0IFuX60N0=