From 67b12835f2dd997bde31c5aac6df7cea9cd919a4 Mon Sep 17 00:00:00 2001 From: Christopher Gallo Date: Wed, 25 Sep 2024 17:48:38 -0500 Subject: [PATCH] 20240925 updates --- .secrets.baseline | 10 +++---- datatypes/account.go | 51 +++++++++-------------------------- datatypes/billing.go | 18 ++++++++++++- datatypes/container.go | 21 +++++++++++---- datatypes/hardware.go | 9 ++++--- datatypes/network.go | 52 ------------------------------------ services/account.go | 52 +++++++++++------------------------- services/account_test.go | 56 ++++++++++----------------------------- services/billing.go | 6 +++++ services/billing_test.go | 7 +++++ services/hardware.go | 30 +++++++++++++++++++++ services/hardware_test.go | 35 ++++++++++++++++++++++++ services/metric.go | 6 +++-- services/product.go | 2 +- 14 files changed, 169 insertions(+), 186 deletions(-) diff --git a/.secrets.baseline b/.secrets.baseline index 8e106fb..70ffe20 100644 --- a/.secrets.baseline +++ b/.secrets.baseline @@ -3,7 +3,7 @@ "files": "go.sum|^.secrets.baseline$", "lines": null }, - "generated_at": "2024-09-24T20:48:27Z", + "generated_at": "2024-09-25T22:48:22Z", "plugins_used": [ { "name": "AWSKeyDetector" @@ -92,7 +92,7 @@ "hashed_secret": "c218236f2825f6fc9d2ffb100becad199c5961ed", "is_secret": false, "is_verified": false, - "line_number": 3934, + "line_number": 3906, "type": "Secret Keyword", "verified_result": null }, @@ -100,7 +100,7 @@ "hashed_secret": "28b386cf9ad560231594007df15c06ac60d34e9a", "is_secret": false, "is_verified": false, - "line_number": 3941, + "line_number": 3913, "type": "Secret Keyword", "verified_result": null }, @@ -108,7 +108,7 @@ "hashed_secret": "bf9130647c179bd2b6992bcf2db4560b91bc513d", "is_secret": false, "is_verified": false, - "line_number": 3948, + "line_number": 3920, "type": "Secret Keyword", "verified_result": null }, @@ -116,7 +116,7 @@ "hashed_secret": "514e1c9ca3e832486f7d88c45a4ea453bfe7f9bf", "is_secret": false, "is_verified": false, - "line_number": 3955, + "line_number": 3927, "type": "Secret Keyword", "verified_result": null } diff --git a/datatypes/account.go b/datatypes/account.go index f878d4f..cd63da8 100644 --- a/datatypes/account.go +++ b/datatypes/account.go @@ -85,10 +85,11 @@ type Account struct { // no documentation yet ActiveCatalystEnrollment *Catalyst_Enrollment `json:"activeCatalystEnrollment,omitempty" xmlrpc:"activeCatalystEnrollment,omitempty"` - // A count of the account's active top level colocation containers. + // A count of deprecated. ActiveColocationContainerCount *uint `json:"activeColocationContainerCount,omitempty" xmlrpc:"activeColocationContainerCount,omitempty"` - // The account's active top level colocation containers. + // Deprecated. + // Deprecated: This function has been marked as deprecated. ActiveColocationContainers []Billing_Item `json:"activeColocationContainers,omitempty" xmlrpc:"activeColocationContainers,omitempty"` // [Deprecated] Please use SoftLayer_Account::activeFlexibleCreditEnrollments. @@ -651,13 +652,6 @@ type Account struct { // An account's latest recurring pending invoice. LatestRecurringPendingInvoice *Billing_Invoice `json:"latestRecurringPendingInvoice,omitempty" xmlrpc:"latestRecurringPendingInvoice,omitempty"` - // A count of [DEPRECATED] The legacy bandwidth allotments for an account. - LegacyBandwidthAllotmentCount *uint `json:"legacyBandwidthAllotmentCount,omitempty" xmlrpc:"legacyBandwidthAllotmentCount,omitempty"` - - // [DEPRECATED] The legacy bandwidth allotments for an account. - // Deprecated: This function has been marked as deprecated. - LegacyBandwidthAllotments []Network_Bandwidth_Version1_Allotment `json:"legacyBandwidthAllotments,omitempty" xmlrpc:"legacyBandwidthAllotments,omitempty"` - // The total capacity of Legacy iSCSI Volumes on an account, in GB. LegacyIscsiCapacityGB *uint `json:"legacyIscsiCapacityGB,omitempty" xmlrpc:"legacyIscsiCapacityGB,omitempty"` @@ -691,10 +685,6 @@ type Account struct { // An account's media transfer service requests. MediaDataTransferRequests []Account_Media_Data_Transfer_Request `json:"mediaDataTransferRequests,omitempty" xmlrpc:"mediaDataTransferRequests,omitempty"` - // [DEPRECATED] - An accounts metric tracking object. This object records all periodic polled data available to this account. - // Deprecated: This function has been marked as deprecated. - MetricTrackingObject *Metric_Tracking_Object `json:"metricTrackingObject,omitempty" xmlrpc:"metricTrackingObject,omitempty"` - // Flag indicating whether this account is restricted to the IBM Cloud portal. MigratedToIbmCloudPortalFlag *bool `json:"migratedToIbmCloudPortalFlag,omitempty" xmlrpc:"migratedToIbmCloudPortalFlag,omitempty"` @@ -803,16 +793,12 @@ type Account struct { // All network VLANs assigned to an account. NetworkVlans []Network_Vlan `json:"networkVlans,omitempty" xmlrpc:"networkVlans,omitempty"` - // A count of dEPRECATED - This information can be pulled directly through tapping keys now - DEPRECATED. The allotments for this account and their servers for the next billing cycle. The public inbound and outbound bandwidth is calculated for each server in addition to the daily average network traffic since the last billing date. - NextBillingPublicAllotmentHardwareBandwidthDetailCount *uint `json:"nextBillingPublicAllotmentHardwareBandwidthDetailCount,omitempty" xmlrpc:"nextBillingPublicAllotmentHardwareBandwidthDetailCount,omitempty"` - - // DEPRECATED - This information can be pulled directly through tapping keys now - DEPRECATED. The allotments for this account and their servers for the next billing cycle. The public inbound and outbound bandwidth is calculated for each server in addition to the daily average network traffic since the last billing date. - // Deprecated: This function has been marked as deprecated. - NextBillingPublicAllotmentHardwareBandwidthDetails []Network_Bandwidth_Version1_Allotment `json:"nextBillingPublicAllotmentHardwareBandwidthDetails,omitempty" xmlrpc:"nextBillingPublicAllotmentHardwareBandwidthDetails,omitempty"` - // The pre-tax total amount exempt from incubator credit for the account's next invoice. This field is now deprecated and will soon be removed. Please update all references to instead use nextInvoiceTotalAmount NextInvoiceIncubatorExemptTotal *Float64 `json:"nextInvoiceIncubatorExemptTotal,omitempty" xmlrpc:"nextInvoiceIncubatorExemptTotal,omitempty"` + // The pre-tax platform services total amount of an account's next invoice. + NextInvoicePlatformServicesTotalAmount *Float64 `json:"nextInvoicePlatformServicesTotalAmount,omitempty" xmlrpc:"nextInvoicePlatformServicesTotalAmount,omitempty"` + // The total recurring charge amount of an account's next invoice eligible for account discount measured in US Dollars ($USD), assuming no changes or charges occur between now and time of billing. NextInvoiceRecurringAmountEligibleForAccountDiscount *Float64 `json:"nextInvoiceRecurringAmountEligibleForAccountDiscount,omitempty" xmlrpc:"nextInvoiceRecurringAmountEligibleForAccountDiscount,omitempty"` @@ -1026,6 +1012,12 @@ type Account struct { // An account's associated portal users with PPTP VPN access. (Deprecated) PptpVpnUsers []User_Customer `json:"pptpVpnUsers,omitempty" xmlrpc:"pptpVpnUsers,omitempty"` + // A count of an account's invoices in the PRE_OPEN status. + PreOpenRecurringInvoiceCount *uint `json:"preOpenRecurringInvoiceCount,omitempty" xmlrpc:"preOpenRecurringInvoiceCount,omitempty"` + + // An account's invoices in the PRE_OPEN status. + PreOpenRecurringInvoices []Billing_Invoice `json:"preOpenRecurringInvoices,omitempty" xmlrpc:"preOpenRecurringInvoices,omitempty"` + // The total recurring amount for an accounts previous revenue. PreviousRecurringRevenue *Float64 `json:"previousRecurringRevenue,omitempty" xmlrpc:"previousRecurringRevenue,omitempty"` @@ -1041,13 +1033,6 @@ type Account struct { // All priority one tickets associated with an account. PriorityOneTickets []Ticket `json:"priorityOneTickets,omitempty" xmlrpc:"priorityOneTickets,omitempty"` - // A count of dEPRECATED - This information can be pulled directly through tapping keys now - DEPRECATED. The allotments for this account and their servers. The private inbound and outbound bandwidth is calculated for each server in addition to the daily average network traffic since the last billing date. - PrivateAllotmentHardwareBandwidthDetailCount *uint `json:"privateAllotmentHardwareBandwidthDetailCount,omitempty" xmlrpc:"privateAllotmentHardwareBandwidthDetailCount,omitempty"` - - // DEPRECATED - This information can be pulled directly through tapping keys now - DEPRECATED. The allotments for this account and their servers. The private inbound and outbound bandwidth is calculated for each server in addition to the daily average network traffic since the last billing date. - // Deprecated: This function has been marked as deprecated. - PrivateAllotmentHardwareBandwidthDetails []Network_Bandwidth_Version1_Allotment `json:"privateAllotmentHardwareBandwidthDetails,omitempty" xmlrpc:"privateAllotmentHardwareBandwidthDetails,omitempty"` - // A count of private and shared template group objects (parent only) for an account. PrivateBlockDeviceTemplateGroupCount *uint `json:"privateBlockDeviceTemplateGroupCount,omitempty" xmlrpc:"privateBlockDeviceTemplateGroupCount,omitempty"` @@ -1075,13 +1060,6 @@ type Account struct { // Boolean flag indicating whether or not this account is a Proof of Concept account. ProofOfConceptAccountFlag *bool `json:"proofOfConceptAccountFlag,omitempty" xmlrpc:"proofOfConceptAccountFlag,omitempty"` - // A count of dEPRECATED - This information can be pulled directly through tapping keys now - DEPRECATED. The allotments for this account and their servers. The public inbound and outbound bandwidth is calculated for each server in addition to the daily average network traffic since the last billing date. - PublicAllotmentHardwareBandwidthDetailCount *uint `json:"publicAllotmentHardwareBandwidthDetailCount,omitempty" xmlrpc:"publicAllotmentHardwareBandwidthDetailCount,omitempty"` - - // DEPRECATED - This information can be pulled directly through tapping keys now - DEPRECATED. The allotments for this account and their servers. The public inbound and outbound bandwidth is calculated for each server in addition to the daily average network traffic since the last billing date. - // Deprecated: This function has been marked as deprecated. - PublicAllotmentHardwareBandwidthDetails []Network_Bandwidth_Version1_Allotment `json:"publicAllotmentHardwareBandwidthDetails,omitempty" xmlrpc:"publicAllotmentHardwareBandwidthDetails,omitempty"` - // A count of PublicIpAddressCount *uint `json:"publicIpAddressCount,omitempty" xmlrpc:"publicIpAddressCount,omitempty"` @@ -1322,9 +1300,6 @@ type Account struct { // Stored security certificates that are not expired (ie. SSL) ValidSecurityCertificates []Security_Certificate `json:"validSecurityCertificates,omitempty" xmlrpc:"validSecurityCertificates,omitempty"` - // DEPRECATED - Return 0 if VDR updates are currently in progress on this account otherwise 1. - VdrUpdatesInProgressFlag *bool `json:"vdrUpdatesInProgressFlag,omitempty" xmlrpc:"vdrUpdatesInProgressFlag,omitempty"` - // A count of the bandwidth pooling for this account. VirtualDedicatedRackCount *uint `json:"virtualDedicatedRackCount,omitempty" xmlrpc:"virtualDedicatedRackCount,omitempty"` @@ -2097,7 +2072,7 @@ type Account_Link_OpenStack_DomainCreationDetails struct { UserName *string `json:"userName,omitempty" xmlrpc:"userName,omitempty"` } -// Details required for OpenStack link request +// Details Deprecated. type Account_Link_OpenStack_LinkRequest struct { Entity diff --git a/datatypes/billing.go b/datatypes/billing.go index e4b72c3..eeba2a6 100644 --- a/datatypes/billing.go +++ b/datatypes/billing.go @@ -445,6 +445,9 @@ type Billing_Invoice_Item struct { // The item description for this invoice item. Description *string `json:"description,omitempty" xmlrpc:"description,omitempty"` + // The invoice item ID from which the discount is derived. + DiscountingInvoiceItemId *int `json:"discountingInvoiceItemId,omitempty" xmlrpc:"discountingInvoiceItemId,omitempty"` + // The domain name of the invoiced item. This is only used on invoice items whose category is "server". DomainName *string `json:"domainName,omitempty" xmlrpc:"domainName,omitempty"` @@ -1968,7 +1971,8 @@ type Billing_Order struct { // no documentation yet PresaleEventId *int `json:"presaleEventId,omitempty" xmlrpc:"presaleEventId,omitempty"` - // Flag indicating a private cloud solution order (Deprecated) + // Deprecated. + // Deprecated: This function has been marked as deprecated. PrivateCloudOrderFlag *bool `json:"privateCloudOrderFlag,omitempty" xmlrpc:"privateCloudOrderFlag,omitempty"` // The quote of an order. This quote holds information about its expiration date, creation date, name and status. This information is tied to an order having the status 'QUOTE' @@ -2306,6 +2310,12 @@ type Billing_Payment_Card_ChangeRequest struct { // The State for the account. BillingState *string `json:"billingState,omitempty" xmlrpc:"billingState,omitempty"` + // Total height of browser screen in pixels. + BrowserScreenHeight *string `json:"browserScreenHeight,omitempty" xmlrpc:"browserScreenHeight,omitempty"` + + // Total width of browser screen in pixels. + BrowserScreenWidth *string `json:"browserScreenWidth,omitempty" xmlrpc:"browserScreenWidth,omitempty"` + // The SoftLayer_Billing_Payment_Card_Transaction tied to the capture of funds performed as part of this change request. CaptureCreditCardTransaction *Billing_Payment_Card_Transaction `json:"captureCreditCardTransaction,omitempty" xmlrpc:"captureCreditCardTransaction,omitempty"` @@ -2432,6 +2442,12 @@ type Billing_Payment_Card_ManualPayment struct { // The State for the account. BillingState *string `json:"billingState,omitempty" xmlrpc:"billingState,omitempty"` + // Total height of browser screen in pixels. + BrowserScreenHeight *string `json:"browserScreenHeight,omitempty" xmlrpc:"browserScreenHeight,omitempty"` + + // Total width of browser screen in pixels. + BrowserScreenWidth *string `json:"browserScreenWidth,omitempty" xmlrpc:"browserScreenWidth,omitempty"` + // The cancel URL is the page to which PayPal redirects if payment is not approved. CancelUrl *string `json:"cancelUrl,omitempty" xmlrpc:"cancelUrl,omitempty"` diff --git a/datatypes/container.go b/datatypes/container.go index 575a6c0..3992104 100644 --- a/datatypes/container.go +++ b/datatypes/container.go @@ -3340,7 +3340,8 @@ type Container_Product_Item_Discount_Program struct { type Container_Product_Order struct { Entity - // Flag for identifying an order for Big Data Deployment. + // Deprecated. + // Deprecated: This function has been marked as deprecated. BigDataOrderFlag *bool `json:"bigDataOrderFlag,omitempty" xmlrpc:"bigDataOrderFlag,omitempty"` // Billing Information associated with an order. For existing customers this information is completely ignored. Do not send this information for existing customers. @@ -3460,10 +3461,12 @@ type Container_Product_Order struct { // Priorities to set on replication set servers. Priorities []string `json:"priorities,omitempty" xmlrpc:"priorities,omitempty"` - // Flag for identifying a container as Virtual Server (Private Node). + // Deprecated. + // Deprecated: This function has been marked as deprecated. PrivateCloudOrderFlag *bool `json:"privateCloudOrderFlag,omitempty" xmlrpc:"privateCloudOrderFlag,omitempty"` - // Type of Virtual Server (Private Node) order. Potential values: INITIAL, ADDHOST, ADDIPS, ADDZONE + // Deprecated. + // Deprecated: This function has been marked as deprecated. PrivateCloudOrderType *string `json:"privateCloudOrderType,omitempty" xmlrpc:"privateCloudOrderType,omitempty"` // Optional promotion code for an order. @@ -3494,10 +3497,12 @@ type Container_Product_Order struct { // If a regional group is provided and VLANs are specified (within the hardware or virtualGuests properties), we will use the datacenter where the VLANs are located. If no VLANs are specified, we will use the preferred datacenter on the regional group object. RegionalGroup *string `json:"regionalGroup,omitempty" xmlrpc:"regionalGroup,omitempty"` - // An optional resource group identifier specifying the resource group to attach the order to + // Deprecated. + // Deprecated: This function has been marked as deprecated. ResourceGroupId *int `json:"resourceGroupId,omitempty" xmlrpc:"resourceGroupId,omitempty"` - // This variable specifies the name of the resource group the server configuration belongs to. For MongoDB Replica sets, it would be the replica set name. + // Deprecated. + // Deprecated: This function has been marked as deprecated. ResourceGroupName *string `json:"resourceGroupName,omitempty" xmlrpc:"resourceGroupName,omitempty"` // An optional resource group template identifier to be used as a deployment base for a Virtual Server (Private Node) order. @@ -3678,6 +3683,12 @@ type Container_Product_Order_Billing_Information struct { // The State for the account. BillingState *string `json:"billingState,omitempty" xmlrpc:"billingState,omitempty"` + // Total height of browser screen in pixels. + BrowserScreenHeight *string `json:"browserScreenHeight,omitempty" xmlrpc:"browserScreenHeight,omitempty"` + + // Total width of browser screen in pixels. + BrowserScreenWidth *string `json:"browserScreenWidth,omitempty" xmlrpc:"browserScreenWidth,omitempty"` + // The credit card number to use. CardAccountNumber *string `json:"cardAccountNumber,omitempty" xmlrpc:"cardAccountNumber,omitempty"` diff --git a/datatypes/hardware.go b/datatypes/hardware.go index 2d8e896..666631e 100644 --- a/datatypes/hardware.go +++ b/datatypes/hardware.go @@ -279,6 +279,9 @@ type Hardware struct { // Whether or not this hardware object is eligible to change to term billing. IsBillingTermChangeAvailableFlag *bool `json:"isBillingTermChangeAvailableFlag,omitempty" xmlrpc:"isBillingTermChangeAvailableFlag,omitempty"` + // Determine if hardware object has the IBM_CLOUD_READY_NODE_CERTIFIED attribute. + IsCloudReadyNodeCertified *bool `json:"isCloudReadyNodeCertified,omitempty" xmlrpc:"isCloudReadyNodeCertified,omitempty"` + // Information regarding the last transaction a server performed. LastTransaction *Provisioning_Version1_Transaction `json:"lastTransaction,omitempty" xmlrpc:"lastTransaction,omitempty"` @@ -1965,12 +1968,12 @@ type Hardware_Server struct { // The total private inbound bandwidth for this hardware for the current billing cycle. InboundPrivateBandwidthUsage *Float64 `json:"inboundPrivateBandwidthUsage,omitempty" xmlrpc:"inboundPrivateBandwidthUsage,omitempty"` - // Determine if hardware object has the IBM_CLOUD_READY_NODE_CERTIFIED attribute. - IsCloudReadyNodeCertified *bool `json:"isCloudReadyNodeCertified,omitempty" xmlrpc:"isCloudReadyNodeCertified,omitempty"` - // Determine if remote management has been disabled due to port speed. IsIpmiDisabled *bool `json:"isIpmiDisabled,omitempty" xmlrpc:"isIpmiDisabled,omitempty"` + // A server that has nfs only drive. + IsNfsOnly *string `json:"isNfsOnly,omitempty" xmlrpc:"isNfsOnly,omitempty"` + // Determine if hardware object has the QE_INTERNAL_SERVER attribute. IsQeInternalServer *bool `json:"isQeInternalServer,omitempty" xmlrpc:"isQeInternalServer,omitempty"` diff --git a/datatypes/network.go b/datatypes/network.go index 476de18..b0b5763 100644 --- a/datatypes/network.go +++ b/datatypes/network.go @@ -759,13 +759,6 @@ type Network_Bandwidth_Version1_Allotment_Detail struct { // Bandwidth Pool associated with this detail. BandwidthAllotmentId *int `json:"bandwidthAllotmentId,omitempty" xmlrpc:"bandwidthAllotmentId,omitempty"` - // DEPRECATED - Bandwidth used. - // Deprecated: This function has been marked as deprecated. - BandwidthUsage []Network_Bandwidth_Version1_Usage `json:"bandwidthUsage,omitempty" xmlrpc:"bandwidthUsage,omitempty"` - - // A count of dEPRECATED - Bandwidth used. - BandwidthUsageCount *uint `json:"bandwidthUsageCount,omitempty" xmlrpc:"bandwidthUsageCount,omitempty"` - // Beginning this date the bandwidth allotment is active. EffectiveDate *Time `json:"effectiveDate,omitempty" xmlrpc:"effectiveDate,omitempty"` @@ -796,14 +789,6 @@ type Network_Bandwidth_Version1_Allotment_Type struct { ShortDescription *string `json:"shortDescription,omitempty" xmlrpc:"shortDescription,omitempty"` } -// The SoftLayer_Network_Bandwidth_Version1_Usage data type contains general information relating to a single bandwidth usage record. -type Network_Bandwidth_Version1_Usage struct { - Entity - - // Bandwidth allotment detail for this hardware. - BandwidthAllotmentDetail *Network_Bandwidth_Version1_Allotment_Detail `json:"bandwidthAllotmentDetail,omitempty" xmlrpc:"bandwidthAllotmentDetail,omitempty"` -} - // The SoftLayer_Network_Bandwidth_Version1_Usage_Detail data type contains specific information relating to bandwidth utilization at a specific point in time on a given network interface. type Network_Bandwidth_Version1_Usage_Detail struct { Entity @@ -814,10 +799,6 @@ type Network_Bandwidth_Version1_Usage_Detail struct { // Outgoing bandwidth utilization . AmountOut *Float64 `json:"amountOut,omitempty" xmlrpc:"amountOut,omitempty"` - // DEPRECATED - In and out bandwidth utilization for a specified time stamp. - // Deprecated: This function has been marked as deprecated. - BandwidthUsage *Network_Bandwidth_Version1_Usage `json:"bandwidthUsage,omitempty" xmlrpc:"bandwidthUsage,omitempty"` - // Describes this bandwidth utilization record as on the public or private network interface. BandwidthUsageDetailType *Network_Bandwidth_Version1_Usage_Detail_Type `json:"bandwidthUsageDetailType,omitempty" xmlrpc:"bandwidthUsageDetailType,omitempty"` @@ -3391,39 +3372,6 @@ type Network_Security_Scanner_Request_Status struct { Name *string `json:"name,omitempty" xmlrpc:"name,omitempty"` } -// Many general services that SoftLayer provides are tracked on the customer portal with a quick status message. These status message provide users with a quick reference to the health of a service, whether it's up or down. These services include SoftLayer's Internet backbone connections, VPN entry points, and router networks. The SoftLayer_Network_Service_Health data type provides the relationship between these services and their health status. -type Network_Service_Health struct { - Entity - - // The date that a service's status was created. - CreateDate *Time `json:"createDate,omitempty" xmlrpc:"createDate,omitempty"` - - // A service's location. - // Deprecated: This function has been marked as deprecated. - Location *Location `json:"location,omitempty" xmlrpc:"location,omitempty"` - - // A service's location identifier. - LocationId *int `json:"locationId,omitempty" xmlrpc:"locationId,omitempty"` - - // The date that a service's status was last changed. - ModifyDate *Time `json:"modifyDate,omitempty" xmlrpc:"modifyDate,omitempty"` - - // The status portion of a service/status relationship. - // Deprecated: This function has been marked as deprecated. - Status *Network_Service_Health_Status `json:"status,omitempty" xmlrpc:"status,omitempty"` - - // A service's status identifier. - StatusId *int `json:"statusId,omitempty" xmlrpc:"statusId,omitempty"` -} - -// Many general services that SoftLayer provides are marked by a status message. These health messages give portal users a quick way of determining the state of a SoftLayer service. Services range from backbones to VPN endpoints and routers. Generally a health status is either "Up" or "Down". -type Network_Service_Health_Status struct { - Entity - - // The status of a SoftLayer service. This is typically "Up" or "Down". - Name *string `json:"name,omitempty" xmlrpc:"name,omitempty"` -} - // The SoftLayer_Network_Service_Resource is used to store information related to a service. It is used for determining the correct resource to connect to for a given service, like NAS, Evault, etc. type Network_Service_Resource struct { Entity diff --git a/services/account.go b/services/account.go index 1ace3e0..41a2f59 100644 --- a/services/account.go +++ b/services/account.go @@ -269,7 +269,7 @@ func (r Account) GetActiveCatalystEnrollment() (resp datatypes.Catalyst_Enrollme return } -// Retrieve The account's active top level colocation containers. +// Retrieve Deprecated. func (r Account) GetActiveColocationContainers() (resp []datatypes.Billing_Item, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getActiveColocationContainers", nil, &r.Options, &resp) return @@ -1033,12 +1033,6 @@ func (r Account) GetLatestRecurringPendingInvoice() (resp datatypes.Billing_Invo return } -// Retrieve [DEPRECATED] The legacy bandwidth allotments for an account. -func (r Account) GetLegacyBandwidthAllotments() (resp []datatypes.Network_Bandwidth_Version1_Allotment, err error) { - err = r.Session.DoRequest("SoftLayer_Account", "getLegacyBandwidthAllotments", nil, &r.Options, &resp) - return -} - // Retrieve The total capacity of Legacy iSCSI Volumes on an account, in GB. func (r Account) GetLegacyIscsiCapacityGB() (resp uint, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getLegacyIscsiCapacityGB", nil, &r.Options, &resp) @@ -1081,12 +1075,6 @@ func (r Account) GetMediaDataTransferRequests() (resp []datatypes.Account_Media_ return } -// Retrieve [DEPRECATED] - An accounts metric tracking object. This object records all periodic polled data available to this account. -func (r Account) GetMetricTrackingObject() (resp datatypes.Metric_Tracking_Object, err error) { - err = r.Session.DoRequest("SoftLayer_Account", "getMetricTrackingObject", nil, &r.Options, &resp) - return -} - // Retrieve Flag indicating whether this account is restricted to the IBM Cloud portal. func (r Account) GetMigratedToIbmCloudPortalFlag() (resp bool, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getMigratedToIbmCloudPortalFlag", nil, &r.Options, &resp) @@ -1207,12 +1195,6 @@ func (r Account) GetNetworkVlans() (resp []datatypes.Network_Vlan, err error) { return } -// Retrieve DEPRECATED - This information can be pulled directly through tapping keys now - DEPRECATED. The allotments for this account and their servers for the next billing cycle. The public inbound and outbound bandwidth is calculated for each server in addition to the daily average network traffic since the last billing date. -func (r Account) GetNextBillingPublicAllotmentHardwareBandwidthDetails() (resp []datatypes.Network_Bandwidth_Version1_Allotment, err error) { - err = r.Session.DoRequest("SoftLayer_Account", "getNextBillingPublicAllotmentHardwareBandwidthDetails", nil, &r.Options, &resp) - return -} - // Return an account's next invoice in a Microsoft excel format. The "next invoice" is what a customer will be billed on their next invoice, assuming no changes are made. Currently this does not include Bandwidth Pooling charges. func (r Account) GetNextInvoiceExcel(documentCreateDate *datatypes.Time) (resp []byte, err error) { params := []interface{}{ @@ -1246,6 +1228,12 @@ func (r Account) GetNextInvoicePdfDetailed(documentCreateDate *datatypes.Time) ( return } +// Retrieve The pre-tax platform services total amount of an account's next invoice. +func (r Account) GetNextInvoicePlatformServicesTotalAmount() (resp datatypes.Float64, err error) { + err = r.Session.DoRequest("SoftLayer_Account", "getNextInvoicePlatformServicesTotalAmount", nil, &r.Options, &resp) + return +} + // Retrieve The total recurring charge amount of an account's next invoice eligible for account discount measured in US Dollars ($USD), assuming no changes or charges occur between now and time of billing. func (r Account) GetNextInvoiceRecurringAmountEligibleForAccountDiscount() (resp datatypes.Float64, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getNextInvoiceRecurringAmountEligibleForAccountDiscount", nil, &r.Options, &resp) @@ -1516,6 +1504,12 @@ func (r Account) GetPptpVpnUsers() (resp []datatypes.User_Customer, err error) { return } +// Retrieve An account's invoices in the PRE_OPEN status. +func (r Account) GetPreOpenRecurringInvoices() (resp []datatypes.Billing_Invoice, err error) { + err = r.Session.DoRequest("SoftLayer_Account", "getPreOpenRecurringInvoices", nil, &r.Options, &resp) + return +} + // Retrieve The total recurring amount for an accounts previous revenue. func (r Account) GetPreviousRecurringRevenue() (resp datatypes.Float64, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getPreviousRecurringRevenue", nil, &r.Options, &resp) @@ -1534,12 +1528,6 @@ func (r Account) GetPriorityOneTickets() (resp []datatypes.Ticket, err error) { return } -// Retrieve DEPRECATED - This information can be pulled directly through tapping keys now - DEPRECATED. The allotments for this account and their servers. The private inbound and outbound bandwidth is calculated for each server in addition to the daily average network traffic since the last billing date. -func (r Account) GetPrivateAllotmentHardwareBandwidthDetails() (resp []datatypes.Network_Bandwidth_Version1_Allotment, err error) { - err = r.Session.DoRequest("SoftLayer_Account", "getPrivateAllotmentHardwareBandwidthDetails", nil, &r.Options, &resp) - return -} - // Retrieve Private and shared template group objects (parent only) for an account. func (r Account) GetPrivateBlockDeviceTemplateGroups() (resp []datatypes.Virtual_Guest_Block_Device_Template_Group, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getPrivateBlockDeviceTemplateGroups", nil, &r.Options, &resp) @@ -1570,12 +1558,6 @@ func (r Account) GetProofOfConceptAccountFlag() (resp bool, err error) { return } -// Retrieve DEPRECATED - This information can be pulled directly through tapping keys now - DEPRECATED. The allotments for this account and their servers. The public inbound and outbound bandwidth is calculated for each server in addition to the daily average network traffic since the last billing date. -func (r Account) GetPublicAllotmentHardwareBandwidthDetails() (resp []datatypes.Network_Bandwidth_Version1_Allotment, err error) { - err = r.Session.DoRequest("SoftLayer_Account", "getPublicAllotmentHardwareBandwidthDetails", nil, &r.Options, &resp) - return -} - // Retrieve func (r Account) GetPublicIpAddresses() (resp []datatypes.Network_Subnet_IpAddress, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getPublicIpAddresses", nil, &r.Options, &resp) @@ -1873,12 +1855,6 @@ func (r Account) GetValidSecurityCertificates() (resp []datatypes.Security_Certi return } -// Retrieve DEPRECATED - Return 0 if VDR updates are currently in progress on this account otherwise 1. -func (r Account) GetVdrUpdatesInProgressFlag() (resp bool, err error) { - err = r.Session.DoRequest("SoftLayer_Account", "getVdrUpdatesInProgressFlag", nil, &r.Options, &resp) - return -} - // Retrieve The bandwidth pooling for this account. func (r Account) GetVirtualDedicatedRacks() (resp []datatypes.Network_Bandwidth_Version1_Allotment, err error) { err = r.Session.DoRequest("SoftLayer_Account", "getVirtualDedicatedRacks", nil, &r.Options, &resp) @@ -3395,6 +3371,7 @@ func (r Account_Link_OpenStack) Offset(offset int) Account_Link_OpenStack { } // no documentation yet +// Deprecated: This function has been marked as deprecated. func (r Account_Link_OpenStack) CreateOSDomain(request *datatypes.Account_Link_OpenStack_LinkRequest) (resp datatypes.Account_Link_OpenStack_DomainCreationDetails, err error) { params := []interface{}{ request, @@ -3404,6 +3381,7 @@ func (r Account_Link_OpenStack) CreateOSDomain(request *datatypes.Account_Link_O } // no documentation yet +// Deprecated: This function has been marked as deprecated. func (r Account_Link_OpenStack) CreateOSProject(request *datatypes.Account_Link_OpenStack_LinkRequest) (resp datatypes.Account_Link_OpenStack_ProjectCreationDetails, err error) { params := []interface{}{ request, diff --git a/services/account_test.go b/services/account_test.go index 772c365..2396831 100644 --- a/services/account_test.go +++ b/services/account_test.go @@ -1071,13 +1071,6 @@ var _ = Describe("Account Tests", func() { Expect(slsession.DoRequestCallCount()).To(Equal(1)) }) }) - Context("SoftLayer_Account::getLegacyBandwidthAllotments", func() { - It("API Call Test", func() { - _, err := sl_service.GetLegacyBandwidthAllotments() - Expect(err).To(Succeed()) - Expect(slsession.DoRequestCallCount()).To(Equal(1)) - }) - }) Context("SoftLayer_Account::getLegacyIscsiCapacityGB", func() { It("API Call Test", func() { _, err := sl_service.GetLegacyIscsiCapacityGB() @@ -1127,13 +1120,6 @@ var _ = Describe("Account Tests", func() { Expect(slsession.DoRequestCallCount()).To(Equal(1)) }) }) - Context("SoftLayer_Account::getMetricTrackingObject", func() { - It("API Call Test", func() { - _, err := sl_service.GetMetricTrackingObject() - Expect(err).To(Succeed()) - Expect(slsession.DoRequestCallCount()).To(Equal(1)) - }) - }) Context("SoftLayer_Account::getMigratedToIbmCloudPortalFlag", func() { It("API Call Test", func() { _, err := sl_service.GetMigratedToIbmCloudPortalFlag() @@ -1274,13 +1260,6 @@ var _ = Describe("Account Tests", func() { Expect(slsession.DoRequestCallCount()).To(Equal(1)) }) }) - Context("SoftLayer_Account::getNextBillingPublicAllotmentHardwareBandwidthDetails", func() { - It("API Call Test", func() { - _, err := sl_service.GetNextBillingPublicAllotmentHardwareBandwidthDetails() - Expect(err).To(Succeed()) - Expect(slsession.DoRequestCallCount()).To(Equal(1)) - }) - }) Context("SoftLayer_Account::getNextInvoiceExcel", func() { It("API Call Test", func() { _, err := sl_service.GetNextInvoiceExcel(nil) @@ -1309,6 +1288,13 @@ var _ = Describe("Account Tests", func() { Expect(slsession.DoRequestCallCount()).To(Equal(1)) }) }) + Context("SoftLayer_Account::getNextInvoicePlatformServicesTotalAmount", func() { + It("API Call Test", func() { + _, err := sl_service.GetNextInvoicePlatformServicesTotalAmount() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) Context("SoftLayer_Account::getNextInvoiceRecurringAmountEligibleForAccountDiscount", func() { It("API Call Test", func() { _, err := sl_service.GetNextInvoiceRecurringAmountEligibleForAccountDiscount() @@ -1624,6 +1610,13 @@ var _ = Describe("Account Tests", func() { Expect(slsession.DoRequestCallCount()).To(Equal(1)) }) }) + Context("SoftLayer_Account::getPreOpenRecurringInvoices", func() { + It("API Call Test", func() { + _, err := sl_service.GetPreOpenRecurringInvoices() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) Context("SoftLayer_Account::getPreviousRecurringRevenue", func() { It("API Call Test", func() { _, err := sl_service.GetPreviousRecurringRevenue() @@ -1645,13 +1638,6 @@ var _ = Describe("Account Tests", func() { Expect(slsession.DoRequestCallCount()).To(Equal(1)) }) }) - Context("SoftLayer_Account::getPrivateAllotmentHardwareBandwidthDetails", func() { - It("API Call Test", func() { - _, err := sl_service.GetPrivateAllotmentHardwareBandwidthDetails() - Expect(err).To(Succeed()) - Expect(slsession.DoRequestCallCount()).To(Equal(1)) - }) - }) Context("SoftLayer_Account::getPrivateBlockDeviceTemplateGroups", func() { It("API Call Test", func() { _, err := sl_service.GetPrivateBlockDeviceTemplateGroups() @@ -1687,13 +1673,6 @@ var _ = Describe("Account Tests", func() { Expect(slsession.DoRequestCallCount()).To(Equal(1)) }) }) - Context("SoftLayer_Account::getPublicAllotmentHardwareBandwidthDetails", func() { - It("API Call Test", func() { - _, err := sl_service.GetPublicAllotmentHardwareBandwidthDetails() - Expect(err).To(Succeed()) - Expect(slsession.DoRequestCallCount()).To(Equal(1)) - }) - }) Context("SoftLayer_Account::getPublicIpAddresses", func() { It("API Call Test", func() { _, err := sl_service.GetPublicIpAddresses() @@ -2037,13 +2016,6 @@ var _ = Describe("Account Tests", func() { Expect(slsession.DoRequestCallCount()).To(Equal(1)) }) }) - Context("SoftLayer_Account::getVdrUpdatesInProgressFlag", func() { - It("API Call Test", func() { - _, err := sl_service.GetVdrUpdatesInProgressFlag() - Expect(err).To(Succeed()) - Expect(slsession.DoRequestCallCount()).To(Equal(1)) - }) - }) Context("SoftLayer_Account::getVirtualDedicatedRacks", func() { It("API Call Test", func() { _, err := sl_service.GetVirtualDedicatedRacks() diff --git a/services/billing.go b/services/billing.go index 4ee7522..2e7f34b 100644 --- a/services/billing.go +++ b/services/billing.go @@ -642,6 +642,12 @@ func (r Billing_Invoice_Item) GetDPart() (resp string, err error) { return } +// Retrieve The invoice item ID from which the discount is derived. +func (r Billing_Invoice_Item) GetDiscountingInvoiceItemId() (resp int, err error) { + err = r.Session.DoRequest("SoftLayer_Billing_Invoice_Item", "getDiscountingInvoiceItemId", nil, &r.Options, &resp) + return +} + // Retrieve An Invoice Item's associated child invoice items, excluding some items with a $0.00 recurring fee. Only parent invoice items have associated children. For instance, a server invoice item may have associated children. func (r Billing_Invoice_Item) GetFilteredAssociatedChildren() (resp []datatypes.Billing_Invoice_Item, err error) { err = r.Session.DoRequest("SoftLayer_Billing_Invoice_Item", "getFilteredAssociatedChildren", nil, &r.Options, &resp) diff --git a/services/billing_test.go b/services/billing_test.go index c6bcb21..f4d8513 100644 --- a/services/billing_test.go +++ b/services/billing_test.go @@ -612,6 +612,13 @@ var _ = Describe("Billing Tests", func() { Expect(slsession.DoRequestCallCount()).To(Equal(1)) }) }) + Context("SoftLayer_Billing_Invoice_Item::getDiscountingInvoiceItemId", func() { + It("API Call Test", func() { + _, err := sl_service.GetDiscountingInvoiceItemId() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) Context("SoftLayer_Billing_Invoice_Item::getFilteredAssociatedChildren", func() { It("API Call Test", func() { _, err := sl_service.GetFilteredAssociatedChildren() diff --git a/services/hardware.go b/services/hardware.go index 71e5e64..199ac6c 100644 --- a/services/hardware.go +++ b/services/hardware.go @@ -880,6 +880,12 @@ func (r Hardware) GetIsBillingTermChangeAvailableFlag() (resp bool, err error) { return } +// Retrieve Determine if hardware object has the IBM_CLOUD_READY_NODE_CERTIFIED attribute. +func (r Hardware) GetIsCloudReadyNodeCertified() (resp bool, err error) { + err = r.Session.DoRequest("SoftLayer_Hardware", "getIsCloudReadyNodeCertified", nil, &r.Options, &resp) + return +} + // Retrieve Information regarding the last transaction a server performed. func (r Hardware) GetLastTransaction() (resp datatypes.Provisioning_Version1_Transaction, err error) { err = r.Session.DoRequest("SoftLayer_Hardware", "getLastTransaction", nil, &r.Options, &resp) @@ -2892,6 +2898,12 @@ func (r Hardware_Router) GetIsBillingTermChangeAvailableFlag() (resp bool, err e return } +// Retrieve Determine if hardware object has the IBM_CLOUD_READY_NODE_CERTIFIED attribute. +func (r Hardware_Router) GetIsCloudReadyNodeCertified() (resp bool, err error) { + err = r.Session.DoRequest("SoftLayer_Hardware_Router", "getIsCloudReadyNodeCertified", nil, &r.Options, &resp) + return +} + // Retrieve Information regarding the last transaction a server performed. func (r Hardware_Router) GetLastTransaction() (resp datatypes.Provisioning_Version1_Transaction, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_Router", "getLastTransaction", nil, &r.Options, &resp) @@ -4735,6 +4747,12 @@ func (r Hardware_SecurityModule) GetIsIpmiDisabled() (resp bool, err error) { return } +// Retrieve A server that has nfs only drive. +func (r Hardware_SecurityModule) GetIsNfsOnly() (resp string, err error) { + err = r.Session.DoRequest("SoftLayer_Hardware_SecurityModule", "getIsNfsOnly", nil, &r.Options, &resp) + return +} + // Retrieve Determine if hardware object has the QE_INTERNAL_SERVER attribute. func (r Hardware_SecurityModule) GetIsQeInternalServer() (resp bool, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_SecurityModule", "getIsQeInternalServer", nil, &r.Options, &resp) @@ -7141,6 +7159,12 @@ func (r Hardware_SecurityModule750) GetIsIpmiDisabled() (resp bool, err error) { return } +// Retrieve A server that has nfs only drive. +func (r Hardware_SecurityModule750) GetIsNfsOnly() (resp string, err error) { + err = r.Session.DoRequest("SoftLayer_Hardware_SecurityModule750", "getIsNfsOnly", nil, &r.Options, &resp) + return +} + // Retrieve Determine if hardware object has the QE_INTERNAL_SERVER attribute. func (r Hardware_SecurityModule750) GetIsQeInternalServer() (resp bool, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_SecurityModule750", "getIsQeInternalServer", nil, &r.Options, &resp) @@ -9547,6 +9571,12 @@ func (r Hardware_Server) GetIsIpmiDisabled() (resp bool, err error) { return } +// Retrieve A server that has nfs only drive. +func (r Hardware_Server) GetIsNfsOnly() (resp string, err error) { + err = r.Session.DoRequest("SoftLayer_Hardware_Server", "getIsNfsOnly", nil, &r.Options, &resp) + return +} + // Retrieve Determine if hardware object has the QE_INTERNAL_SERVER attribute. func (r Hardware_Server) GetIsQeInternalServer() (resp bool, err error) { err = r.Session.DoRequest("SoftLayer_Hardware_Server", "getIsQeInternalServer", nil, &r.Options, &resp) diff --git a/services/hardware_test.go b/services/hardware_test.go index e396c7e..cd90776 100644 --- a/services/hardware_test.go +++ b/services/hardware_test.go @@ -595,6 +595,13 @@ var _ = Describe("Hardware Tests", func() { Expect(slsession.DoRequestCallCount()).To(Equal(1)) }) }) + Context("SoftLayer_Hardware::getIsCloudReadyNodeCertified", func() { + It("API Call Test", func() { + _, err := sl_service.GetIsCloudReadyNodeCertified() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) Context("SoftLayer_Hardware::getLastTransaction", func() { It("API Call Test", func() { _, err := sl_service.GetLastTransaction() @@ -2373,6 +2380,13 @@ var _ = Describe("Hardware Tests", func() { Expect(slsession.DoRequestCallCount()).To(Equal(1)) }) }) + Context("SoftLayer_Hardware_Router::getIsCloudReadyNodeCertified", func() { + It("API Call Test", func() { + _, err := sl_service.GetIsCloudReadyNodeCertified() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) Context("SoftLayer_Hardware_Router::getLastTransaction", func() { It("API Call Test", func() { _, err := sl_service.GetLastTransaction() @@ -3985,6 +3999,13 @@ var _ = Describe("Hardware Tests", func() { Expect(slsession.DoRequestCallCount()).To(Equal(1)) }) }) + Context("SoftLayer_Hardware_SecurityModule::getIsNfsOnly", func() { + It("API Call Test", func() { + _, err := sl_service.GetIsNfsOnly() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) Context("SoftLayer_Hardware_SecurityModule::getIsQeInternalServer", func() { It("API Call Test", func() { _, err := sl_service.GetIsQeInternalServer() @@ -6087,6 +6108,13 @@ var _ = Describe("Hardware Tests", func() { Expect(slsession.DoRequestCallCount()).To(Equal(1)) }) }) + Context("SoftLayer_Hardware_SecurityModule750::getIsNfsOnly", func() { + It("API Call Test", func() { + _, err := sl_service.GetIsNfsOnly() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) Context("SoftLayer_Hardware_SecurityModule750::getIsQeInternalServer", func() { It("API Call Test", func() { _, err := sl_service.GetIsQeInternalServer() @@ -8189,6 +8217,13 @@ var _ = Describe("Hardware Tests", func() { Expect(slsession.DoRequestCallCount()).To(Equal(1)) }) }) + Context("SoftLayer_Hardware_Server::getIsNfsOnly", func() { + It("API Call Test", func() { + _, err := sl_service.GetIsNfsOnly() + Expect(err).To(Succeed()) + Expect(slsession.DoRequestCallCount()).To(Equal(1)) + }) + }) Context("SoftLayer_Hardware_Server::getIsQeInternalServer", func() { It("API Call Test", func() { _, err := sl_service.GetIsQeInternalServer() diff --git a/services/metric.go b/services/metric.go index ea5097d..43d013e 100644 --- a/services/metric.go +++ b/services/metric.go @@ -74,7 +74,8 @@ func (r Metric_Tracking_Object) GetBandwidthData(startDateTime *datatypes.Time, return } -// Retrieve a PNG image of a bandwidth graph representing the bandwidth usage over time recorded by SofTLayer's bandwidth pollers. +// [DEPRECATED] Retrieve a PNG image of a bandwidth graph representing the bandwidth usage over time recorded by SofTLayer's bandwidth pollers. +// Deprecated: This function has been marked as deprecated. func (r Metric_Tracking_Object) GetBandwidthGraph(startDateTime *datatypes.Time, endDateTime *datatypes.Time, graphType *string, fontSize *int, graphWidth *int, graphHeight *int, doNotShowTimeZone *bool) (resp datatypes.Container_Bandwidth_GraphOutputs, err error) { params := []interface{}{ startDateTime, @@ -112,7 +113,8 @@ func (r Metric_Tracking_Object) GetDetailsForDateRange(startDate *datatypes.Time return } -// Retrieve a PNG image of a metric in graph form. +// [DEPRECATED] Retrieve a PNG image of a metric in graph form. +// Deprecated: This function has been marked as deprecated. func (r Metric_Tracking_Object) GetGraph(startDateTime *datatypes.Time, endDateTime *datatypes.Time, graphType []string) (resp datatypes.Container_Bandwidth_GraphOutputs, err error) { params := []interface{}{ startDateTime, diff --git a/services/product.go b/services/product.go index 006bbd0..b7e7ea6 100644 --- a/services/product.go +++ b/services/product.go @@ -2421,7 +2421,7 @@ func (r Product_Upgrade_Request) GetVirtualGuest() (resp datatypes.Virtual_Guest } // In case an upgrade cannot be performed, the maintenance window needs to be updated to a future date. -func (r Product_Upgrade_Request) UpdateMaintenanceWindow(maintenanceStartTime *datatypes.Time, maintenanceWindowId *int) (resp bool, err error) { +func (r Product_Upgrade_Request) UpdateMaintenanceWindow(maintenanceStartTime *string, maintenanceWindowId *int) (resp bool, err error) { params := []interface{}{ maintenanceStartTime, maintenanceWindowId,