diff --git a/services/databoxedge/mgmt/2019-08-01/databoxedge/models.go b/services/databoxedge/mgmt/2019-08-01/databoxedge/models.go index a19a15c6a72a..6b7a26d62f5b 100644 --- a/services/databoxedge/mgmt/2019-08-01/databoxedge/models.go +++ b/services/databoxedge/mgmt/2019-08-01/databoxedge/models.go @@ -281,8 +281,11 @@ func (page AlertListPage) Values() []Alert { } // Creates a new instance of the AlertListPage type. -func NewAlertListPage(getNextPage func(context.Context, AlertList) (AlertList, error)) AlertListPage { - return AlertListPage{fn: getNextPage} +func NewAlertListPage(cur AlertList, getNextPage func(context.Context, AlertList) (AlertList, error)) AlertListPage { + return AlertListPage{ + fn: getNextPage, + al: cur, + } } // AlertProperties properties of alert. @@ -459,8 +462,8 @@ func (future *BandwidthSchedulesCreateOrUpdateFuture) Result(client BandwidthSch return } -// BandwidthSchedulesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running -// operation. +// BandwidthSchedulesDeleteFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. type BandwidthSchedulesDeleteFuture struct { azure.Future } @@ -634,12 +637,15 @@ func (page BandwidthSchedulesListPage) Values() []BandwidthSchedule { } // Creates a new instance of the BandwidthSchedulesListPage type. -func NewBandwidthSchedulesListPage(getNextPage func(context.Context, BandwidthSchedulesList) (BandwidthSchedulesList, error)) BandwidthSchedulesListPage { - return BandwidthSchedulesListPage{fn: getNextPage} +func NewBandwidthSchedulesListPage(cur BandwidthSchedulesList, getNextPage func(context.Context, BandwidthSchedulesList) (BandwidthSchedulesList, error)) BandwidthSchedulesListPage { + return BandwidthSchedulesListPage{ + fn: getNextPage, + bsl: cur, + } } -// ClientAccessRight the mapping between a particular client IP and the type of access client has on the NFS -// share. +// ClientAccessRight the mapping between a particular client IP and the type of access client has on the +// NFS share. type ClientAccessRight struct { // Client - IP of the client. Client *string `json:"client,omitempty"` @@ -900,8 +906,11 @@ func (page ContainerListPage) Values() []Container { } // Creates a new instance of the ContainerListPage type. -func NewContainerListPage(getNextPage func(context.Context, ContainerList) (ContainerList, error)) ContainerListPage { - return ContainerListPage{fn: getNextPage} +func NewContainerListPage(cur ContainerList, getNextPage func(context.Context, ContainerList) (ContainerList, error)) ContainerListPage { + return ContainerListPage{ + fn: getNextPage, + cl: cur, + } } // ContainerProperties the container properties. @@ -925,8 +934,8 @@ func (cp ContainerProperties) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// ContainersCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running -// operation. +// ContainersCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. type ContainersCreateOrUpdateFuture struct { azure.Future } @@ -954,7 +963,8 @@ func (future *ContainersCreateOrUpdateFuture) Result(client ContainersClient) (c return } -// ContainersDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation. +// ContainersDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. type ContainersDeleteFuture struct { azure.Future } @@ -1375,8 +1385,11 @@ func (page DeviceListPage) Values() []Device { } // Creates a new instance of the DeviceListPage type. -func NewDeviceListPage(getNextPage func(context.Context, DeviceList) (DeviceList, error)) DeviceListPage { - return DeviceListPage{fn: getNextPage} +func NewDeviceListPage(cur DeviceList, getNextPage func(context.Context, DeviceList) (DeviceList, error)) DeviceListPage { + return DeviceListPage{ + fn: getNextPage, + dl: cur, + } } // DevicePatch the Data Box Edge/Gateway device patch. @@ -1473,8 +1486,8 @@ func (future *DevicesCreateOrUpdateFuture) Result(client DevicesClient) (d Devic return } -// DevicesCreateOrUpdateSecuritySettingsFuture an abstraction for monitoring and retrieving the results of a -// long-running operation. +// DevicesCreateOrUpdateSecuritySettingsFuture an abstraction for monitoring and retrieving the results of +// a long-running operation. type DevicesCreateOrUpdateSecuritySettingsFuture struct { azure.Future } @@ -1496,7 +1509,8 @@ func (future *DevicesCreateOrUpdateSecuritySettingsFuture) Result(client Devices return } -// DevicesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation. +// DevicesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. type DevicesDeleteFuture struct { azure.Future } @@ -2566,8 +2580,11 @@ func (page OperationsListPage) Values() []Operation { } // Creates a new instance of the OperationsListPage type. -func NewOperationsListPage(getNextPage func(context.Context, OperationsList) (OperationsList, error)) OperationsListPage { - return OperationsListPage{fn: getNextPage} +func NewOperationsListPage(cur OperationsList, getNextPage func(context.Context, OperationsList) (OperationsList, error)) OperationsListPage { + return OperationsListPage{ + fn: getNextPage, + ol: cur, + } } // Order the order details. @@ -2795,8 +2812,11 @@ func (page OrderListPage) Values() []Order { } // Creates a new instance of the OrderListPage type. -func NewOrderListPage(getNextPage func(context.Context, OrderList) (OrderList, error)) OrderListPage { - return OrderListPage{fn: getNextPage} +func NewOrderListPage(cur OrderList, getNextPage func(context.Context, OrderList) (OrderList, error)) OrderListPage { + return OrderListPage{ + fn: getNextPage, + ol: cur, + } } // OrderProperties order properties. @@ -3344,8 +3364,11 @@ func (page RoleListPage) Values() []BasicRole { } // Creates a new instance of the RoleListPage type. -func NewRoleListPage(getNextPage func(context.Context, RoleList) (RoleList, error)) RoleListPage { - return RoleListPage{fn: getNextPage} +func NewRoleListPage(cur RoleList, getNextPage func(context.Context, RoleList) (RoleList, error)) RoleListPage { + return RoleListPage{ + fn: getNextPage, + rl: cur, + } } // RoleModel ... @@ -3579,8 +3602,8 @@ func (s *Share) UnmarshalJSON(body []byte) error { return nil } -// ShareAccessRight specifies the mapping between this particular user and the type of access he has on shares -// on this device. +// ShareAccessRight specifies the mapping between this particular user and the type of access he has on +// shares on this device. type ShareAccessRight struct { // ShareID - The share ID. ShareID *string `json:"shareId,omitempty"` @@ -3740,8 +3763,11 @@ func (page ShareListPage) Values() []Share { } // Creates a new instance of the ShareListPage type. -func NewShareListPage(getNextPage func(context.Context, ShareList) (ShareList, error)) ShareListPage { - return ShareListPage{fn: getNextPage} +func NewShareListPage(cur ShareList, getNextPage func(context.Context, ShareList) (ShareList, error)) ShareListPage { + return ShareListPage{ + fn: getNextPage, + sl: cur, + } } // ShareProperties the share properties. @@ -3852,7 +3878,8 @@ func (future *SharesDeleteFuture) Result(client SharesClient) (ar autorest.Respo return } -// SharesRefreshFuture an abstraction for monitoring and retrieving the results of a long-running operation. +// SharesRefreshFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. type SharesRefreshFuture struct { azure.Future } @@ -4230,8 +4257,11 @@ func (page StorageAccountCredentialListPage) Values() []StorageAccountCredential } // Creates a new instance of the StorageAccountCredentialListPage type. -func NewStorageAccountCredentialListPage(getNextPage func(context.Context, StorageAccountCredentialList) (StorageAccountCredentialList, error)) StorageAccountCredentialListPage { - return StorageAccountCredentialListPage{fn: getNextPage} +func NewStorageAccountCredentialListPage(cur StorageAccountCredentialList, getNextPage func(context.Context, StorageAccountCredentialList) (StorageAccountCredentialList, error)) StorageAccountCredentialListPage { + return StorageAccountCredentialListPage{ + fn: getNextPage, + sacl: cur, + } } // StorageAccountCredentialProperties the storage account credential properties. @@ -4254,8 +4284,8 @@ type StorageAccountCredentialProperties struct { StorageAccountID *string `json:"storageAccountId,omitempty"` } -// StorageAccountCredentialsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a -// long-running operation. +// StorageAccountCredentialsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results +// of a long-running operation. type StorageAccountCredentialsCreateOrUpdateFuture struct { azure.Future } @@ -4458,8 +4488,11 @@ func (page StorageAccountListPage) Values() []StorageAccount { } // Creates a new instance of the StorageAccountListPage type. -func NewStorageAccountListPage(getNextPage func(context.Context, StorageAccountList) (StorageAccountList, error)) StorageAccountListPage { - return StorageAccountListPage{fn: getNextPage} +func NewStorageAccountListPage(cur StorageAccountList, getNextPage func(context.Context, StorageAccountList) (StorageAccountList, error)) StorageAccountListPage { + return StorageAccountListPage{ + fn: getNextPage, + sal: cur, + } } // StorageAccountProperties the storage account properties. @@ -4841,8 +4874,11 @@ func (page TriggerListPage) Values() []BasicTrigger { } // Creates a new instance of the TriggerListPage type. -func NewTriggerListPage(getNextPage func(context.Context, TriggerList) (TriggerList, error)) TriggerListPage { - return TriggerListPage{fn: getNextPage} +func NewTriggerListPage(cur TriggerList, getNextPage func(context.Context, TriggerList) (TriggerList, error)) TriggerListPage { + return TriggerListPage{ + fn: getNextPage, + tl: cur, + } } // TriggerModel ... @@ -4891,7 +4927,8 @@ func (future *TriggersCreateOrUpdateFuture) Result(client TriggersClient) (tm Tr return } -// TriggersDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation. +// TriggersDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. type TriggersDeleteFuture struct { azure.Future } @@ -5370,8 +5407,11 @@ func (page UserListPage) Values() []User { } // Creates a new instance of the UserListPage type. -func NewUserListPage(getNextPage func(context.Context, UserList) (UserList, error)) UserListPage { - return UserListPage{fn: getNextPage} +func NewUserListPage(cur UserList, getNextPage func(context.Context, UserList) (UserList, error)) UserListPage { + return UserListPage{ + fn: getNextPage, + ul: cur, + } } // UserProperties the user properties.