Skip to content

Commit 50603c0

Browse files
Merge pull request #171 from allmightyspiff/20220614
20220614 Release
2 parents c6804ce + 707e4c6 commit 50603c0

File tree

10 files changed

+385
-0
lines changed

10 files changed

+385
-0
lines changed

datatypes/billing.go

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1229,6 +1229,110 @@ type Billing_Item_Cancellation_Request_Status struct {
12291229
Name *string `json:"name,omitempty" xmlrpc:"name,omitempty"`
12301230
}
12311231

1232+
// no documentation yet
1233+
type Billing_Item_Chronicle struct {
1234+
Entity
1235+
1236+
// no documentation yet
1237+
AccountId *int `json:"accountId,omitempty" xmlrpc:"accountId,omitempty"`
1238+
1239+
// no documentation yet
1240+
AssociatedBillingItemId *int `json:"associatedBillingItemId,omitempty" xmlrpc:"associatedBillingItemId,omitempty"`
1241+
1242+
// A Billing Item's associated child billing items. This includes "floating" items that are not necessarily child billing items of this billing item.
1243+
AssociatedChildren []Billing_Item_Chronicle `json:"associatedChildren,omitempty" xmlrpc:"associatedChildren,omitempty"`
1244+
1245+
// no documentation yet
1246+
AssociatedChildrenCount *int `json:"associatedChildrenCount,omitempty" xmlrpc:"associatedChildrenCount,omitempty"`
1247+
1248+
// no documentation yet
1249+
CancellationDate *Time `json:"cancellationDate,omitempty" xmlrpc:"cancellationDate,omitempty"`
1250+
1251+
// no documentation yet
1252+
CategoryCode *string `json:"categoryCode,omitempty" xmlrpc:"categoryCode,omitempty"`
1253+
1254+
// no documentation yet
1255+
CreateDate *Time `json:"createDate,omitempty" xmlrpc:"createDate,omitempty"`
1256+
1257+
// no documentation yet
1258+
CurrentHourlyCharge *Float64 `json:"currentHourlyCharge,omitempty" xmlrpc:"currentHourlyCharge,omitempty"`
1259+
1260+
// no documentation yet
1261+
CycleStartDate *Time `json:"cycleStartDate,omitempty" xmlrpc:"cycleStartDate,omitempty"`
1262+
1263+
// no documentation yet
1264+
Description *string `json:"description,omitempty" xmlrpc:"description,omitempty"`
1265+
1266+
// no documentation yet
1267+
DomainName *string `json:"domainName,omitempty" xmlrpc:"domainName,omitempty"`
1268+
1269+
// no documentation yet
1270+
ExternalAccountId *string `json:"externalAccountId,omitempty" xmlrpc:"externalAccountId,omitempty"`
1271+
1272+
// no documentation yet
1273+
HostName *string `json:"hostName,omitempty" xmlrpc:"hostName,omitempty"`
1274+
1275+
// no documentation yet
1276+
HourlyFlag *bool `json:"hourlyFlag,omitempty" xmlrpc:"hourlyFlag,omitempty"`
1277+
1278+
// no documentation yet
1279+
HourlyRecurringFee *Float64 `json:"hourlyRecurringFee,omitempty" xmlrpc:"hourlyRecurringFee,omitempty"`
1280+
1281+
// no documentation yet
1282+
HoursUsed *int `json:"hoursUsed,omitempty" xmlrpc:"hoursUsed,omitempty"`
1283+
1284+
// The id for the chronicle record will match one to one the id for the corresponding billing item.
1285+
Id *int `json:"id,omitempty" xmlrpc:"id,omitempty"`
1286+
1287+
// no documentation yet
1288+
ItemId *int `json:"itemId,omitempty" xmlrpc:"itemId,omitempty"`
1289+
1290+
// no documentation yet
1291+
LaborFee *Float64 `json:"laborFee,omitempty" xmlrpc:"laborFee,omitempty"`
1292+
1293+
// no documentation yet
1294+
LastBillDate *Time `json:"lastBillDate,omitempty" xmlrpc:"lastBillDate,omitempty"`
1295+
1296+
// no documentation yet
1297+
Location *Location `json:"location,omitempty" xmlrpc:"location,omitempty"`
1298+
1299+
// no documentation yet
1300+
ModifyDate *Time `json:"modifyDate,omitempty" xmlrpc:"modifyDate,omitempty"`
1301+
1302+
// no documentation yet
1303+
NextBillDate *Time `json:"nextBillDate,omitempty" xmlrpc:"nextBillDate,omitempty"`
1304+
1305+
// no documentation yet
1306+
OneTimeFee *Float64 `json:"oneTimeFee,omitempty" xmlrpc:"oneTimeFee,omitempty"`
1307+
1308+
// no documentation yet
1309+
ParentId *int `json:"parentId,omitempty" xmlrpc:"parentId,omitempty"`
1310+
1311+
// The entry in the product catalog that the underlying billing item is based on.
1312+
Product *Product_Item `json:"product,omitempty" xmlrpc:"product,omitempty"`
1313+
1314+
// no documentation yet
1315+
RecurringFee *Float64 `json:"recurringFee,omitempty" xmlrpc:"recurringFee,omitempty"`
1316+
1317+
// no documentation yet
1318+
RecurringMonths *int `json:"recurringMonths,omitempty" xmlrpc:"recurringMonths,omitempty"`
1319+
1320+
// no documentation yet
1321+
ResourceTableId *int `json:"resourceTableId,omitempty" xmlrpc:"resourceTableId,omitempty"`
1322+
1323+
// no documentation yet
1324+
ResourceTableName *string `json:"resourceTableName,omitempty" xmlrpc:"resourceTableName,omitempty"`
1325+
1326+
// no documentation yet
1327+
SetupFee *Float64 `json:"setupFee,omitempty" xmlrpc:"setupFee,omitempty"`
1328+
1329+
// no documentation yet
1330+
TopLevelProductGroupName *string `json:"topLevelProductGroupName,omitempty" xmlrpc:"topLevelProductGroupName,omitempty"`
1331+
1332+
// no documentation yet
1333+
UsageChargeFlag *bool `json:"usageChargeFlag,omitempty" xmlrpc:"usageChargeFlag,omitempty"`
1334+
}
1335+
12321336
// The SoftLayer_Billing_Item_Ctc_Account data type contains general information relating to a single SoftLayer billing item for a CTC client account creation
12331337
type Billing_Item_Ctc_Account struct {
12341338
Billing_Item

datatypes/brand.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ type Brand struct {
3838
// This flag indicates if creation of accounts is allowed.
3939
AllowAccountCreationFlag *bool `json:"allowAccountCreationFlag,omitempty" xmlrpc:"allowAccountCreationFlag,omitempty"`
4040

41+
// A count of returns snapshots of billing items recorded periodically given an account ID owned by the brand those billing items belong to. Retrieving billing item snapshots is more performant than retrieving billing items directly and performs less relational joins improving retrieval efficiency. The downside is, they are not real time, and do not share relational parity with the original billing item.
42+
BillingItemSnapshotCount *uint `json:"billingItemSnapshotCount,omitempty" xmlrpc:"billingItemSnapshotCount,omitempty"`
43+
44+
// Returns snapshots of billing items recorded periodically given an account ID owned by the brand those billing items belong to. Retrieving billing item snapshots is more performant than retrieving billing items directly and performs less relational joins improving retrieval efficiency. The downside is, they are not real time, and do not share relational parity with the original billing item.
45+
BillingItemSnapshots []Billing_Item_Chronicle `json:"billingItemSnapshots,omitempty" xmlrpc:"billingItemSnapshots,omitempty"`
46+
4147
// Business Partner details for the brand. Country Enterprise Code, Channel, Segment, Reseller Level.
4248
BusinessPartner *Brand_Business_Partner `json:"businessPartner,omitempty" xmlrpc:"businessPartner,omitempty"`
4349

datatypes/container.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3181,6 +3181,20 @@ type Container_Network_Storage_DataCenterLimits_VolumeCountLimitContainer struct
31813181
ProvisionedCount *int `json:"provisionedCount,omitempty" xmlrpc:"provisionedCount,omitempty"`
31823182
}
31833183

3184+
// no documentation yet
3185+
type Container_Network_Storage_DuplicateConversionStatusInformation struct {
3186+
Entity
3187+
3188+
// This represents the timestamp when current conversion process started.
3189+
ActiveConversionStartTime *string `json:"activeConversionStartTime,omitempty" xmlrpc:"activeConversionStartTime,omitempty"`
3190+
3191+
// This represents the percentage progress of conversion of a dependent
3192+
DeDuplicateConversionPercentage *int `json:"deDuplicateConversionPercentage,omitempty" xmlrpc:"deDuplicateConversionPercentage,omitempty"`
3193+
3194+
// This represents the volume username.
3195+
VolumeUsername *string `json:"volumeUsername,omitempty" xmlrpc:"volumeUsername,omitempty"`
3196+
}
3197+
31843198
// SoftLayer's StorageLayer Evault services provides details regarding the the purchased vault.
31853199
//
31863200
// When a job is created using the Webcc Console, the job created is identified as a task on the vault. Using this service, information regarding the task can be retrieved.

datatypes/hardware.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1991,6 +1991,12 @@ type Hardware_Server struct {
19911991
// no documentation yet
19921992
Partitions []Hardware_Server_Partition `json:"partitions,omitempty" xmlrpc:"partitions,omitempty"`
19931993

1994+
// A count of a collection of backendNetwork components
1995+
PrivateBackendNetworkComponentCount *uint `json:"privateBackendNetworkComponentCount,omitempty" xmlrpc:"privateBackendNetworkComponentCount,omitempty"`
1996+
1997+
// A collection of backendNetwork components
1998+
PrivateBackendNetworkComponents []Network_Component `json:"privateBackendNetworkComponents,omitempty" xmlrpc:"privateBackendNetworkComponents,omitempty"`
1999+
19942000
// A server's primary private IP address.
19952001
PrivateIpAddress *string `json:"privateIpAddress,omitempty" xmlrpc:"privateIpAddress,omitempty"`
19962002

datatypes/network.go

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1811,6 +1811,12 @@ type Network_Gateway_Member struct {
18111811
// A gateway member's internal identifier.
18121812
Id *int `json:"id,omitempty" xmlrpc:"id,omitempty"`
18131813

1814+
// A count of the gateway licenses for this member.
1815+
LicenseCount *uint `json:"licenseCount,omitempty" xmlrpc:"licenseCount,omitempty"`
1816+
1817+
// The gateway licenses for this member.
1818+
Licenses []Network_Gateway_Member_Licenses `json:"licenses,omitempty" xmlrpc:"licenses,omitempty"`
1819+
18141820
// The gateway this member belongs to.
18151821
NetworkGateway *Network_Gateway `json:"networkGateway,omitempty" xmlrpc:"networkGateway,omitempty"`
18161822

@@ -1877,6 +1883,20 @@ type Network_Gateway_Member_Attribute struct {
18771883
WarningCode *int `json:"warningCode,omitempty" xmlrpc:"warningCode,omitempty"`
18781884
}
18791885

1886+
// no documentation yet
1887+
type Network_Gateway_Member_Licenses struct {
1888+
Entity
1889+
1890+
// no documentation yet
1891+
ExpirationDate *Time `json:"expirationDate,omitempty" xmlrpc:"expirationDate,omitempty"`
1892+
1893+
// The gateway member has these licenses.
1894+
GatewayMember *Network_Gateway_Member `json:"gatewayMember,omitempty" xmlrpc:"gatewayMember,omitempty"`
1895+
1896+
// no documentation yet
1897+
LicenseKey *string `json:"licenseKey,omitempty" xmlrpc:"licenseKey,omitempty"`
1898+
}
1899+
18801900
// no documentation yet
18811901
type Network_Gateway_Member_Passwords struct {
18821902
Entity
@@ -3927,6 +3947,9 @@ type Network_Storage struct {
39273947
// The maximum number of IOPs selected for this volume.
39283948
Iops *string `json:"iops,omitempty" xmlrpc:"iops,omitempty"`
39293949

3950+
// Determines whether network storage volume has an active convert dependent clone to Independent transaction.
3951+
IsConvertToIndependentTransactionInProgress *bool `json:"isConvertToIndependentTransactionInProgress,omitempty" xmlrpc:"isConvertToIndependentTransactionInProgress,omitempty"`
3952+
39303953
// Determines whether dependent volume provision is completed on background.
39313954
IsDependentDuplicateProvisionCompleted *bool `json:"isDependentDuplicateProvisionCompleted,omitempty" xmlrpc:"isDependentDuplicateProvisionCompleted,omitempty"`
39323955

@@ -3936,6 +3959,9 @@ type Network_Storage struct {
39363959
// no documentation yet
39373960
IsMagneticStorage *string `json:"isMagneticStorage,omitempty" xmlrpc:"isMagneticStorage,omitempty"`
39383961

3962+
// Determines whether network storage volume has an active provision transaction.
3963+
IsProvisionInProgress *bool `json:"isProvisionInProgress,omitempty" xmlrpc:"isProvisionInProgress,omitempty"`
3964+
39393965
// Determines whether a volume is ready to order snapshot space, or, if snapshot space is already available, to assign a snapshot schedule, or to take a manual snapshot.
39403966
IsReadyForSnapshot *bool `json:"isReadyForSnapshot,omitempty" xmlrpc:"isReadyForSnapshot,omitempty"`
39413967

datatypes/trellix.go

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
/**
2+
* Copyright 2016 IBM Corp.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
/**
18+
* AUTOMATICALLY GENERATED CODE - DO NOT MODIFY
19+
*/
20+
21+
package datatypes
22+
23+
// The Trellix_Epolicy_Orchestrator_Version51_Agent_Details data type represents a virus scan agent and contains details about its version.
24+
type Trellix_Epolicy_Orchestrator_Version51_Agent_Details struct {
25+
Entity
26+
27+
// Version number of the anti-virus scan agent.
28+
AgentVersion *string `json:"agentVersion,omitempty" xmlrpc:"agentVersion,omitempty"`
29+
30+
// The date of the last time the anti-virus agent checked in.
31+
LastUpdate *Time `json:"lastUpdate,omitempty" xmlrpc:"lastUpdate,omitempty"`
32+
}
33+
34+
// The Trellix_Epolicy_Orchestrator_Version51_Policy_Object data type represents a virus scan agent and contains details about its version.
35+
type Trellix_Epolicy_Orchestrator_Version51_Policy_Object struct {
36+
Entity
37+
38+
// no documentation yet
39+
Name *string `json:"name,omitempty" xmlrpc:"name,omitempty"`
40+
}
41+
42+
// The Trellix_Epolicy_Orchestrator_Version51_Product_Properties data type represents the version of the virus data file
43+
type Trellix_Epolicy_Orchestrator_Version51_Product_Properties struct {
44+
Entity
45+
46+
// no documentation yet
47+
DatVersion *string `json:"datVersion,omitempty" xmlrpc:"datVersion,omitempty"`
48+
}

services/billing.go

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1565,6 +1565,64 @@ func (r Billing_Item_Cancellation_Request) Void(closeRelatedTicketFlag *bool) (r
15651565
return
15661566
}
15671567

1568+
// no documentation yet
1569+
type Billing_Item_Chronicle struct {
1570+
Session *session.Session
1571+
Options sl.Options
1572+
}
1573+
1574+
// GetBillingItemChronicleService returns an instance of the Billing_Item_Chronicle SoftLayer service
1575+
func GetBillingItemChronicleService(sess *session.Session) Billing_Item_Chronicle {
1576+
return Billing_Item_Chronicle{Session: sess}
1577+
}
1578+
1579+
func (r Billing_Item_Chronicle) Id(id int) Billing_Item_Chronicle {
1580+
r.Options.Id = &id
1581+
return r
1582+
}
1583+
1584+
func (r Billing_Item_Chronicle) Mask(mask string) Billing_Item_Chronicle {
1585+
if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
1586+
mask = fmt.Sprintf("mask[%s]", mask)
1587+
}
1588+
1589+
r.Options.Mask = mask
1590+
return r
1591+
}
1592+
1593+
func (r Billing_Item_Chronicle) Filter(filter string) Billing_Item_Chronicle {
1594+
r.Options.Filter = filter
1595+
return r
1596+
}
1597+
1598+
func (r Billing_Item_Chronicle) Limit(limit int) Billing_Item_Chronicle {
1599+
r.Options.Limit = &limit
1600+
return r
1601+
}
1602+
1603+
func (r Billing_Item_Chronicle) Offset(offset int) Billing_Item_Chronicle {
1604+
r.Options.Offset = &offset
1605+
return r
1606+
}
1607+
1608+
// Retrieve A Billing Item's associated child billing items. This includes "floating" items that are not necessarily child billing items of this billing item.
1609+
func (r Billing_Item_Chronicle) GetAssociatedChildren() (resp []datatypes.Billing_Item_Chronicle, err error) {
1610+
err = r.Session.DoRequest("SoftLayer_Billing_Item_Chronicle", "getAssociatedChildren", nil, &r.Options, &resp)
1611+
return
1612+
}
1613+
1614+
// no documentation yet
1615+
func (r Billing_Item_Chronicle) GetObject() (resp datatypes.Billing_Item_Chronicle, err error) {
1616+
err = r.Session.DoRequest("SoftLayer_Billing_Item_Chronicle", "getObject", nil, &r.Options, &resp)
1617+
return
1618+
}
1619+
1620+
// Retrieve The entry in the product catalog that the underlying billing item is based on.
1621+
func (r Billing_Item_Chronicle) GetProduct() (resp datatypes.Product_Item, err error) {
1622+
err = r.Session.DoRequest("SoftLayer_Billing_Item_Chronicle", "getProduct", nil, &r.Options, &resp)
1623+
return
1624+
}
1625+
15681626
// no documentation yet
15691627
type Billing_Item_Virtual_DedicatedHost struct {
15701628
Session *session.Session

services/brand.go

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,34 @@ func (r Brand) GetAllowAccountCreationFlag() (resp bool, err error) {
223223
return
224224
}
225225

226+
// Retrieve Returns snapshots of billing items recorded periodically given an account ID owned by the brand those billing items belong to. Retrieving billing item snapshots is more performant than retrieving billing items directly and performs less relational joins improving retrieval efficiency. The downside is, they are not real time, and do not share relational parity with the original billing item.
227+
func (r Brand) GetBillingItemSnapshots() (resp []datatypes.Billing_Item_Chronicle, err error) {
228+
err = r.Session.DoRequest("SoftLayer_Brand", "getBillingItemSnapshots", nil, &r.Options, &resp)
229+
return
230+
}
231+
232+
// This service returns the snapshots of billing items recorded periodically given an account ID. The provided account ID must be owned by the brand that calls this service. In this context, it can be interpreted that the billing items snapshots belong to both the account and that accounts brand. Retrieving billing item snapshots is more performant than retrieving billing items directly and performs less relational joins improving retrieval efficiency.
233+
//
234+
// The downside is, they are not real time, and do not share relational parity with the original billing item.
235+
func (r Brand) GetBillingItemSnapshotsForSingleOwnedAccount(accountId *int) (resp []datatypes.Billing_Item_Chronicle, err error) {
236+
params := []interface{}{
237+
accountId,
238+
}
239+
err = r.Session.DoRequest("SoftLayer_Brand", "getBillingItemSnapshotsForSingleOwnedAccount", params, &r.Options, &resp)
240+
return
241+
}
242+
243+
// This service returns the snapshots of billing items recorded periodically given an account ID owned by the brand those billing items belong to. Retrieving billing item snapshots is more performant than retrieving billing items directly and performs less relational joins improving retrieval efficiency.
244+
//
245+
// The downside is, they are not real time, and do not share relational parity with the original billing item.
246+
func (r Brand) GetBillingItemSnapshotsWithExternalAccountId(externalAccountId *string) (resp []datatypes.Billing_Item_Chronicle, err error) {
247+
params := []interface{}{
248+
externalAccountId,
249+
}
250+
err = r.Session.DoRequest("SoftLayer_Brand", "getBillingItemSnapshotsWithExternalAccountId", params, &r.Options, &resp)
251+
return
252+
}
253+
226254
// Retrieve Business Partner details for the brand. Country Enterprise Code, Channel, Segment, Reseller Level.
227255
func (r Brand) GetBusinessPartner() (resp datatypes.Brand_Business_Partner, err error) {
228256
err = r.Session.DoRequest("SoftLayer_Brand", "getBusinessPartner", nil, &r.Options, &resp)
@@ -380,6 +408,17 @@ func (r Brand) ReactivateAccount(accountId *int) (err error) {
380408
return
381409
}
382410

411+
// When this service is called given an IBM Cloud infrastructure account ID owned by the calling brand, the process is started to refresh the billing item snapshots belonging to that account. This refresh is async and can take an undetermined amount of time. Even if this endpoint returns an OK, it doesn't guarantee that refresh did not fail or encounter issues.
412+
//
413+
//
414+
func (r Brand) RefreshBillingItemSnapshot(accountId *int) (resp bool, err error) {
415+
params := []interface{}{
416+
accountId,
417+
}
418+
err = r.Session.DoRequest("SoftLayer_Brand", "refreshBillingItemSnapshot", params, &r.Options, &resp)
419+
return
420+
}
421+
383422
// Verify that an account may be disabled by a Brand Agent. Anything that would disqualify the account from being disabled will cause an exception to be raised.
384423
func (r Brand) VerifyCanDisableAccount(accountId *int) (err error) {
385424
var resp datatypes.Void

0 commit comments

Comments
 (0)