diff --git a/services/preview/containerservice/mgmt/2018-09-30-preview/containerservice/models.go b/services/preview/containerservice/mgmt/2018-09-30-preview/containerservice/models.go index 31ba2f211340..5fe46ccd4aea 100644 --- a/services/preview/containerservice/mgmt/2018-09-30-preview/containerservice/models.go +++ b/services/preview/containerservice/mgmt/2018-09-30-preview/containerservice/models.go @@ -241,8 +241,8 @@ func (future *ContainerServicesCreateOrUpdateFutureType) Result(client Container return } -// ContainerServicesDeleteFutureType an abstraction for monitoring and retrieving the results of a long-running -// operation. +// ContainerServicesDeleteFutureType an abstraction for monitoring and retrieving the results of a +// long-running operation. type ContainerServicesDeleteFutureType struct { azure.Future } @@ -470,8 +470,11 @@ func (page ListResultPage) Values() []ContainerService { } // Creates a new instance of the ListResultPage type. -func NewListResultPage(getNextPage func(context.Context, ListResult) (ListResult, error)) ListResultPage { - return ListResultPage{fn: getNextPage} +func NewListResultPage(cur ListResult, getNextPage func(context.Context, ListResult) (ListResult, error)) ListResultPage { + return ListResultPage{ + fn: getNextPage, + lr: cur, + } } // ManagedCluster managed cluster. @@ -916,8 +919,11 @@ func (page ManagedClusterListResultPage) Values() []ManagedCluster { } // Creates a new instance of the ManagedClusterListResultPage type. -func NewManagedClusterListResultPage(getNextPage func(context.Context, ManagedClusterListResult) (ManagedClusterListResult, error)) ManagedClusterListResultPage { - return ManagedClusterListResultPage{fn: getNextPage} +func NewManagedClusterListResultPage(cur ManagedClusterListResult, getNextPage func(context.Context, ManagedClusterListResult) (ManagedClusterListResult, error)) ManagedClusterListResultPage { + return ManagedClusterListResultPage{ + fn: getNextPage, + mclr: cur, + } } // ManagedClusterPoolUpgradeProfile the list of available upgrade versions. @@ -1045,8 +1051,8 @@ func (future *ManagedClustersDeleteFuture) Result(client ManagedClustersClient) return } -// ManagedClusterServicePrincipalProfile information about a service principal identity for the cluster to use -// for manipulating Azure APIs. +// ManagedClusterServicePrincipalProfile information about a service principal identity for the cluster to +// use for manipulating Azure APIs. type ManagedClusterServicePrincipalProfile struct { // ClientID - The ID for the service principal. ClientID *string `json:"clientId,omitempty"` @@ -1077,8 +1083,8 @@ func (future *ManagedClustersResetAADProfileFuture) Result(client ManagedCluster return } -// ManagedClustersResetServicePrincipalProfileFuture an abstraction for monitoring and retrieving the results -// of a long-running operation. +// ManagedClustersResetServicePrincipalProfileFuture an abstraction for monitoring and retrieving the +// results of a long-running operation. type ManagedClustersResetServicePrincipalProfileFuture struct { azure.Future } @@ -1100,8 +1106,8 @@ func (future *ManagedClustersResetServicePrincipalProfileFuture) Result(client M return } -// ManagedClustersUpdateTagsFuture an abstraction for monitoring and retrieving the results of a long-running -// operation. +// ManagedClustersUpdateTagsFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. type ManagedClustersUpdateTagsFuture struct { azure.Future } @@ -1463,7 +1469,8 @@ type OpenShiftManagedClusterAgentPoolProfile struct { Role OpenShiftAgentPoolProfileRole `json:"role,omitempty"` } -// OpenShiftManagedClusterAuthProfile defines all possible authentication profiles for the OpenShift cluster. +// OpenShiftManagedClusterAuthProfile defines all possible authentication profiles for the OpenShift +// cluster. type OpenShiftManagedClusterAuthProfile struct { // IdentityProviders - Type of authentication profile to use. IdentityProviders *[]OpenShiftManagedClusterIdentityProvider `json:"identityProviders,omitempty"` @@ -1543,8 +1550,8 @@ func (osmcbip OpenShiftManagedClusterBaseIdentityProvider) AsBasicOpenShiftManag return &osmcbip, true } -// OpenShiftManagedClusterIdentityProvider defines the configuration of the identity providers to be used in -// the OpenShift cluster. +// OpenShiftManagedClusterIdentityProvider defines the configuration of the identity providers to be used +// in the OpenShift cluster. type OpenShiftManagedClusterIdentityProvider struct { // Name - Name of the provider. Name *string `json:"name,omitempty"` @@ -1602,8 +1609,8 @@ func (osmclr OpenShiftManagedClusterListResult) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// OpenShiftManagedClusterListResultIterator provides access to a complete listing of OpenShiftManagedCluster -// values. +// OpenShiftManagedClusterListResultIterator provides access to a complete listing of +// OpenShiftManagedCluster values. type OpenShiftManagedClusterListResultIterator struct { i int page OpenShiftManagedClusterListResultPage @@ -1746,12 +1753,15 @@ func (page OpenShiftManagedClusterListResultPage) Values() []OpenShiftManagedClu } // Creates a new instance of the OpenShiftManagedClusterListResultPage type. -func NewOpenShiftManagedClusterListResultPage(getNextPage func(context.Context, OpenShiftManagedClusterListResult) (OpenShiftManagedClusterListResult, error)) OpenShiftManagedClusterListResultPage { - return OpenShiftManagedClusterListResultPage{fn: getNextPage} +func NewOpenShiftManagedClusterListResultPage(cur OpenShiftManagedClusterListResult, getNextPage func(context.Context, OpenShiftManagedClusterListResult) (OpenShiftManagedClusterListResult, error)) OpenShiftManagedClusterListResultPage { + return OpenShiftManagedClusterListResultPage{ + fn: getNextPage, + osmclr: cur, + } } -// OpenShiftManagedClusterMasterPoolProfile openShiftManagedClusterMaterPoolProfile contains configuration for -// OpenShift master VMs. +// OpenShiftManagedClusterMasterPoolProfile openShiftManagedClusterMaterPoolProfile contains configuration +// for OpenShift master VMs. type OpenShiftManagedClusterMasterPoolProfile struct { // Name - Unique name of the master pool profile in the context of the subscription and resource group. Name *string `json:"name,omitempty"` @@ -1817,8 +1827,8 @@ func (osmcp OpenShiftManagedClusterProperties) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// OpenShiftManagedClustersCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a -// long-running operation. +// OpenShiftManagedClustersCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of +// a long-running operation. type OpenShiftManagedClustersCreateOrUpdateFuture struct { azure.Future }