Skip to content

Commit be9324f

Browse files
Merge pull request #158 from allmightyspiff/20210303
20210303 Release updates
2 parents f93be0b + a383c5b commit be9324f

File tree

6 files changed

+147
-13
lines changed

6 files changed

+147
-13
lines changed

.github/workflows/go.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ jobs:
4242
# Required because the coverage.out file on github actions has a path that breaks gcov2lcov
4343
sed -i "s/$(pwd|sed 's/\//\\\//g')/./g" coverage.out
4444
- name: Convert coverage to lcov
45-
uses: jandelgado/[email protected].0
45+
uses: jandelgado/[email protected].5
4646
with:
4747
infile: coverage.out
4848
outfile: coverage.lcov
4949
- name: Coveralls
50-
uses: coverallsapp/github-action@v1.0.1
50+
uses: coverallsapp/github-action@v1.1.2
5151
with:
5252
github-token: ${{ secrets.github_token }}
5353
path-to-lcov: coverage.lcov

datatypes/container.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4322,6 +4322,9 @@ type Container_Product_Order_Network_Protection_Firewall_Dedicated_Upgrade struc
43224322
type Container_Product_Order_Network_Storage_AsAService struct {
43234323
Container_Product_Order
43244324

4325+
// Optional property to specify provisioning to a dedicated cluster at order time. The `id` property of the [[SoftLayer_Network_Storage_DedicatedCluster]] should be provided to dictate where to provision storage to. Note your account must be enabled to order into the desired location(s) prior to placing the order.
4326+
DedicatedCluster *Network_Storage_DedicatedCluster `json:"dedicatedCluster,omitempty" xmlrpc:"dedicatedCluster,omitempty"`
4327+
43254328
// This must be populated only for duplicating a specific snapshot for volume duplicating. It represents the identifier of the origin [[SoftLayer_Network_Storage_Snapshot]]
43264329
DuplicateOriginSnapshotId *int `json:"duplicateOriginSnapshotId,omitempty" xmlrpc:"duplicateOriginSnapshotId,omitempty"`
43274330

datatypes/network.go

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3873,6 +3873,9 @@ type Network_Storage struct {
38733873
// The events which have taken place on a network storage volume.
38743874
Events []Network_Storage_Event `json:"events,omitempty" xmlrpc:"events,omitempty"`
38753875

3876+
// Determines whether the volume is allowed to failback
3877+
FailbackNotAllowed *string `json:"failbackNotAllowed,omitempty" xmlrpc:"failbackNotAllowed,omitempty"`
3878+
38763879
// Retrieves the NFS Network Mount Address Name for a given File Storage Volume.
38773880
FileNetworkMountAddress *string `json:"fileNetworkMountAddress,omitempty" xmlrpc:"fileNetworkMountAddress,omitempty"`
38783881

@@ -4373,6 +4376,29 @@ type Network_Storage_Daily_Usage struct {
43734376
PublicBandwidthOut *uint `json:"publicBandwidthOut,omitempty" xmlrpc:"publicBandwidthOut,omitempty"`
43744377
}
43754378

4379+
// no documentation yet
4380+
type Network_Storage_DedicatedCluster struct {
4381+
Entity
4382+
4383+
// no documentation yet
4384+
Account *Account `json:"account,omitempty" xmlrpc:"account,omitempty"`
4385+
4386+
// The SoftLayer_Account->id of the customer account
4387+
AccountId *int `json:"accountId,omitempty" xmlrpc:"accountId,omitempty"`
4388+
4389+
// The date when Dedicated service resource entry was created.
4390+
CreateDate *Time `json:"createDate,omitempty" xmlrpc:"createDate,omitempty"`
4391+
4392+
// The unique identifier for Dedicated service resource record.
4393+
Id *int `json:"id,omitempty" xmlrpc:"id,omitempty"`
4394+
4395+
// no documentation yet
4396+
ServiceResource *Network_Service_Resource `json:"serviceResource,omitempty" xmlrpc:"serviceResource,omitempty"`
4397+
4398+
// The cluster Id that is setup as dedicated for the customer.
4399+
ServiceResourceId *int `json:"serviceResourceId,omitempty" xmlrpc:"serviceResourceId,omitempty"`
4400+
}
4401+
43764402
// Storage volumes can create various events to keep track of what has occurred to the volume. Events provide an audit trail that can be used to verify that various tasks have occurred, such as snapshots to be created by a schedule or remote replication synchronization.
43774403
type Network_Storage_Event struct {
43784404
Entity

datatypes/user.go

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1336,11 +1336,9 @@ type User_Permission_Group struct {
13361336
TypeId *int `json:"typeId,omitempty" xmlrpc:"typeId,omitempty"`
13371337
}
13381338

1339-
// The SoftLayer_User_Permission_Group_Type class is one of several classes that make up the customer permission system. This class defines the valid group types. The SYSTEM group type is reserved for internal use.
1339+
// These are the attributes which describe a SoftLayer_User_Permission_Group_Type. All SoftLayer_User_Permission_Group objects must be linked to one of these types.
13401340
//
1341-
// It is a role-based system that includes defined actions which can be "grouped" together using a SoftLayer_User_Permission_Group class. These groups of actions are then used to define roles, and the roles are assigned to users.
1342-
//
1343-
// When a [[SoftLayer_User_Customer]] is created, a SoftLayer_User_Permission_Group and SoftLayer_User_Permission_Role is created specifically for the user with a group type of SYSTEM. When the UI is used to alter the permissions of a customer user, the actions are added or removed from this group. The api can not be used to alter the permissions in this group. If an account wants to create their own unique permission groups and roles, the UI can not be used to manage them.
1341+
// For further information see: [[SoftLayer_User_Permission_Group]].
13441342
type User_Permission_Group_Type struct {
13451343
Entity
13461344

@@ -1350,13 +1348,13 @@ type User_Permission_Group_Type struct {
13501348
// The groups that are of this type.
13511349
Groups []User_Permission_Group `json:"groups,omitempty" xmlrpc:"groups,omitempty"`
13521350

1353-
// no documentation yet
1351+
// Unique Record ID.
13541352
Id *int `json:"id,omitempty" xmlrpc:"id,omitempty"`
13551353

1356-
// no documentation yet
1354+
// The keyname for the group type.
13571355
KeyName *string `json:"keyName,omitempty" xmlrpc:"keyName,omitempty"`
13581356

1359-
// no documentation yet
1357+
// A descriptive name for the group type.
13601358
Name *string `json:"name,omitempty" xmlrpc:"name,omitempty"`
13611359
}
13621360

services/network.go

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7771,6 +7771,15 @@ func (r Network_Storage) DisableSnapshots(scheduleType *string) (resp bool, err
77717771
return
77727772
}
77737773

7774+
// If a volume (with replication) becomes inaccessible due to a disaster event, this method can be used to immediately failover to an available replica in another location. This method does not allow for fail back via the API. To fail back to the original volume after using this method, open a support ticket. To test failover, use [[SoftLayer_Network_Storage::failoverToReplicant]] instead.
7775+
func (r Network_Storage) DisasterRecoveryFailoverToReplicant(replicantId *int) (resp bool, err error) {
7776+
params := []interface{}{
7777+
replicantId,
7778+
}
7779+
err = r.Session.DoRequest("SoftLayer_Network_Storage", "disasterRecoveryFailoverToReplicant", params, &r.Options, &resp)
7780+
return
7781+
}
7782+
77747783
// {{CloudLayerOnlyMethod}} Download a file from a Storage account. This method returns a file's details including the file's raw content.
77757784
func (r Network_Storage) DownloadFile(fileId *string) (resp datatypes.Container_Utility_File_Entity, err error) {
77767785
params := []interface{}{
@@ -8029,6 +8038,12 @@ func (r Network_Storage) GetEvents() (resp []datatypes.Network_Storage_Event, er
80298038
return
80308039
}
80318040

8041+
// Retrieve Determines whether the volume is allowed to failback
8042+
func (r Network_Storage) GetFailbackNotAllowed() (resp string, err error) {
8043+
err = r.Session.DoRequest("SoftLayer_Network_Storage", "getFailbackNotAllowed", nil, &r.Options, &resp)
8044+
return
8045+
}
8046+
80328047
//
80338048
//
80348049
//
@@ -9904,6 +9919,15 @@ func (r Network_Storage_Backup_Evault) DisableSnapshots(scheduleType *string) (r
99049919
return
99059920
}
99069921

9922+
// If a volume (with replication) becomes inaccessible due to a disaster event, this method can be used to immediately failover to an available replica in another location. This method does not allow for fail back via the API. To fail back to the original volume after using this method, open a support ticket. To test failover, use [[SoftLayer_Network_Storage::failoverToReplicant]] instead.
9923+
func (r Network_Storage_Backup_Evault) DisasterRecoveryFailoverToReplicant(replicantId *int) (resp bool, err error) {
9924+
params := []interface{}{
9925+
replicantId,
9926+
}
9927+
err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "disasterRecoveryFailoverToReplicant", params, &r.Options, &resp)
9928+
return
9929+
}
9930+
99079931
// {{CloudLayerOnlyMethod}} Download a file from a Storage account. This method returns a file's details including the file's raw content.
99089932
func (r Network_Storage_Backup_Evault) DownloadFile(fileId *string) (resp datatypes.Container_Utility_File_Entity, err error) {
99099933
params := []interface{}{
@@ -10162,6 +10186,12 @@ func (r Network_Storage_Backup_Evault) GetEvents() (resp []datatypes.Network_Sto
1016210186
return
1016310187
}
1016410188

10189+
// Retrieve Determines whether the volume is allowed to failback
10190+
func (r Network_Storage_Backup_Evault) GetFailbackNotAllowed() (resp string, err error) {
10191+
err = r.Session.DoRequest("SoftLayer_Network_Storage_Backup_Evault", "getFailbackNotAllowed", nil, &r.Options, &resp)
10192+
return
10193+
}
10194+
1016510195
//
1016610196
//
1016710197
//
@@ -10985,6 +11015,70 @@ func (r Network_Storage_Backup_Evault) UploadFile(file *datatypes.Container_Util
1098511015
return
1098611016
}
1098711017

11018+
// no documentation yet
11019+
type Network_Storage_DedicatedCluster struct {
11020+
Session *session.Session
11021+
Options sl.Options
11022+
}
11023+
11024+
// GetNetworkStorageDedicatedClusterService returns an instance of the Network_Storage_DedicatedCluster SoftLayer service
11025+
func GetNetworkStorageDedicatedClusterService(sess *session.Session) Network_Storage_DedicatedCluster {
11026+
return Network_Storage_DedicatedCluster{Session: sess}
11027+
}
11028+
11029+
func (r Network_Storage_DedicatedCluster) Id(id int) Network_Storage_DedicatedCluster {
11030+
r.Options.Id = &id
11031+
return r
11032+
}
11033+
11034+
func (r Network_Storage_DedicatedCluster) Mask(mask string) Network_Storage_DedicatedCluster {
11035+
if !strings.HasPrefix(mask, "mask[") && (strings.Contains(mask, "[") || strings.Contains(mask, ",")) {
11036+
mask = fmt.Sprintf("mask[%s]", mask)
11037+
}
11038+
11039+
r.Options.Mask = mask
11040+
return r
11041+
}
11042+
11043+
func (r Network_Storage_DedicatedCluster) Filter(filter string) Network_Storage_DedicatedCluster {
11044+
r.Options.Filter = filter
11045+
return r
11046+
}
11047+
11048+
func (r Network_Storage_DedicatedCluster) Limit(limit int) Network_Storage_DedicatedCluster {
11049+
r.Options.Limit = &limit
11050+
return r
11051+
}
11052+
11053+
func (r Network_Storage_DedicatedCluster) Offset(offset int) Network_Storage_DedicatedCluster {
11054+
r.Options.Offset = &offset
11055+
return r
11056+
}
11057+
11058+
// Retrieve
11059+
func (r Network_Storage_DedicatedCluster) GetAccount() (resp datatypes.Account, err error) {
11060+
err = r.Session.DoRequest("SoftLayer_Network_Storage_DedicatedCluster", "getAccount", nil, &r.Options, &resp)
11061+
return
11062+
}
11063+
11064+
// no documentation yet
11065+
func (r Network_Storage_DedicatedCluster) GetDedicatedClusterList() (resp []int, err error) {
11066+
err = r.Session.DoRequest("SoftLayer_Network_Storage_DedicatedCluster", "getDedicatedClusterList", nil, &r.Options, &resp)
11067+
return
11068+
}
11069+
11070+
// no documentation yet
11071+
func (r Network_Storage_DedicatedCluster) GetObject() (resp datatypes.Network_Storage_DedicatedCluster, err error) {
11072+
err = r.Session.DoRequest("SoftLayer_Network_Storage_DedicatedCluster", "getObject", nil, &r.Options, &resp)
11073+
return
11074+
}
11075+
11076+
// Retrieve
11077+
func (r Network_Storage_DedicatedCluster) GetServiceResource() (resp datatypes.Network_Service_Resource, err error) {
11078+
err = r.Session.DoRequest("SoftLayer_Network_Storage_DedicatedCluster", "getServiceResource", nil, &r.Options, &resp)
11079+
return
11080+
}
11081+
1098811082
// no documentation yet
1098911083
type Network_Storage_Group struct {
1099011084
Session *session.Session
@@ -12148,6 +12242,15 @@ func (r Network_Storage_Iscsi) DisableSnapshots(scheduleType *string) (resp bool
1214812242
return
1214912243
}
1215012244

12245+
// If a volume (with replication) becomes inaccessible due to a disaster event, this method can be used to immediately failover to an available replica in another location. This method does not allow for fail back via the API. To fail back to the original volume after using this method, open a support ticket. To test failover, use [[SoftLayer_Network_Storage::failoverToReplicant]] instead.
12246+
func (r Network_Storage_Iscsi) DisasterRecoveryFailoverToReplicant(replicantId *int) (resp bool, err error) {
12247+
params := []interface{}{
12248+
replicantId,
12249+
}
12250+
err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "disasterRecoveryFailoverToReplicant", params, &r.Options, &resp)
12251+
return
12252+
}
12253+
1215112254
// {{CloudLayerOnlyMethod}} Download a file from a Storage account. This method returns a file's details including the file's raw content.
1215212255
func (r Network_Storage_Iscsi) DownloadFile(fileId *string) (resp datatypes.Container_Utility_File_Entity, err error) {
1215312256
params := []interface{}{
@@ -12406,6 +12509,12 @@ func (r Network_Storage_Iscsi) GetEvents() (resp []datatypes.Network_Storage_Eve
1240612509
return
1240712510
}
1240812511

12512+
// Retrieve Determines whether the volume is allowed to failback
12513+
func (r Network_Storage_Iscsi) GetFailbackNotAllowed() (resp string, err error) {
12514+
err = r.Session.DoRequest("SoftLayer_Network_Storage_Iscsi", "getFailbackNotAllowed", nil, &r.Options, &resp)
12515+
return
12516+
}
12517+
1240912518
//
1241012519
//
1241112520
//

services/user.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4291,11 +4291,9 @@ func (r User_Permission_Group) UnlinkRole(role *datatypes.User_Permission_Role)
42914291
return
42924292
}
42934293

4294-
// The SoftLayer_User_Permission_Group_Type class is one of several classes that make up the customer permission system. This class defines the valid group types. The SYSTEM group type is reserved for internal use.
4294+
// These are the attributes which describe a SoftLayer_User_Permission_Group_Type. All SoftLayer_User_Permission_Group objects must be linked to one of these types.
42954295
//
4296-
// It is a role-based system that includes defined actions which can be "grouped" together using a SoftLayer_User_Permission_Group class. These groups of actions are then used to define roles, and the roles are assigned to users.
4297-
//
4298-
// When a [[SoftLayer_User_Customer]] is created, a SoftLayer_User_Permission_Group and SoftLayer_User_Permission_Role is created specifically for the user with a group type of SYSTEM. When the UI is used to alter the permissions of a customer user, the actions are added or removed from this group. The api can not be used to alter the permissions in this group. If an account wants to create their own unique permission groups and roles, the UI can not be used to manage them.
4296+
// For further information see: [[SoftLayer_User_Permission_Group]].
42994297
type User_Permission_Group_Type struct {
43004298
Session *session.Session
43014299
Options sl.Options

0 commit comments

Comments
 (0)