vendor: update all dependencies to latest versions
This commit is contained in:
+134
-44
@@ -14,9 +14,8 @@ package hdinsight
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
//
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
|
||||
import (
|
||||
"github.com/Azure/go-autorest/autorest"
|
||||
@@ -25,7 +24,7 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// ClustersClient is the the HDInsight Management Client.
|
||||
// ClustersClient is the hDInsight Management Client
|
||||
type ClustersClient struct {
|
||||
ManagementClient
|
||||
}
|
||||
@@ -35,19 +34,17 @@ func NewClustersClient(subscriptionID string) ClustersClient {
|
||||
return NewClustersClientWithBaseURI(DefaultBaseURI, subscriptionID)
|
||||
}
|
||||
|
||||
// NewClustersClientWithBaseURI creates an instance of the ClustersClient
|
||||
// client.
|
||||
// NewClustersClientWithBaseURI creates an instance of the ClustersClient client.
|
||||
func NewClustersClientWithBaseURI(baseURI string, subscriptionID string) ClustersClient {
|
||||
return ClustersClient{NewWithBaseURI(baseURI, subscriptionID)}
|
||||
}
|
||||
|
||||
// ChangeRdpSettings begins changing the RDP settings on the specified cluster.
|
||||
// This method may poll for completion. Polling can be canceled by passing the
|
||||
// cancel channel argument. The channel will be used to cancel polling and any
|
||||
// ChangeRdpSettings begins changing the RDP settings on the specified cluster. This method may poll for completion.
|
||||
// Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any
|
||||
// outstanding HTTP requests.
|
||||
//
|
||||
// resourceGroupName is the name of the resource group. clusterName is the name
|
||||
// of the cluster. parameters is the OS profile for RDP.
|
||||
// resourceGroupName is the name of the resource group. clusterName is the name of the cluster. parameters is the OS
|
||||
// profile for RDP.
|
||||
func (client ClustersClient) ChangeRdpSettings(resourceGroupName string, clusterName string, parameters RDPSettingsParameters, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error) {
|
||||
resultChan := make(chan autorest.Response, 1)
|
||||
errChan := make(chan error, 1)
|
||||
@@ -66,8 +63,10 @@ func (client ClustersClient) ChangeRdpSettings(resourceGroupName string, cluster
|
||||
var err error
|
||||
var result autorest.Response
|
||||
defer func() {
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
}
|
||||
resultChan <- result
|
||||
errChan <- err
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
@@ -135,13 +134,12 @@ func (client ClustersClient) ChangeRdpSettingsResponder(resp *http.Response) (re
|
||||
return
|
||||
}
|
||||
|
||||
// Create begins creating a new HDInsight cluster with the specified
|
||||
// parameters. This method may poll for completion. Polling can be canceled by
|
||||
// passing the cancel channel argument. The channel will be used to cancel
|
||||
// polling and any outstanding HTTP requests.
|
||||
// Create begins creating a new HDInsight cluster with the specified parameters. This method may poll for completion.
|
||||
// Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any
|
||||
// outstanding HTTP requests.
|
||||
//
|
||||
// resourceGroupName is the name of the resource group. clusterName is the name
|
||||
// of the cluster. parameters is the cluster create request.
|
||||
// resourceGroupName is the name of the resource group. clusterName is the name of the cluster. parameters is the
|
||||
// cluster create request.
|
||||
func (client ClustersClient) Create(resourceGroupName string, clusterName string, parameters ClusterCreateParametersExtended, cancel <-chan struct{}) (<-chan Cluster, <-chan error) {
|
||||
resultChan := make(chan Cluster, 1)
|
||||
errChan := make(chan error, 1)
|
||||
@@ -149,8 +147,10 @@ func (client ClustersClient) Create(resourceGroupName string, clusterName string
|
||||
var err error
|
||||
var result Cluster
|
||||
defer func() {
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
}
|
||||
resultChan <- result
|
||||
errChan <- err
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
@@ -219,13 +219,11 @@ func (client ClustersClient) CreateResponder(resp *http.Response) (result Cluste
|
||||
return
|
||||
}
|
||||
|
||||
// Delete begins deleting the specified HDInsight cluster. This method may poll
|
||||
// for completion. Polling can be canceled by passing the cancel channel
|
||||
// argument. The channel will be used to cancel polling and any outstanding
|
||||
// HTTP requests.
|
||||
// Delete begins deleting the specified HDInsight cluster. This method may poll for completion. Polling can be canceled
|
||||
// by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP
|
||||
// requests.
|
||||
//
|
||||
// resourceGroupName is the name of the resource group. clusterName is the name
|
||||
// of the cluster.
|
||||
// resourceGroupName is the name of the resource group. clusterName is the name of the cluster.
|
||||
func (client ClustersClient) Delete(resourceGroupName string, clusterName string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error) {
|
||||
resultChan := make(chan autorest.Response, 1)
|
||||
errChan := make(chan error, 1)
|
||||
@@ -233,8 +231,10 @@ func (client ClustersClient) Delete(resourceGroupName string, clusterName string
|
||||
var err error
|
||||
var result autorest.Response
|
||||
defer func() {
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
}
|
||||
resultChan <- result
|
||||
errChan <- err
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
@@ -300,13 +300,12 @@ func (client ClustersClient) DeleteResponder(resp *http.Response) (result autore
|
||||
return
|
||||
}
|
||||
|
||||
// ExecuteScriptActions begins executing script actions on the specified
|
||||
// HDInsight cluster. This method may poll for completion. Polling can be
|
||||
// canceled by passing the cancel channel argument. The channel will be used to
|
||||
// cancel polling and any outstanding HTTP requests.
|
||||
// ExecuteScriptActions begins executing script actions on the specified HDInsight cluster. This method may poll for
|
||||
// completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel
|
||||
// polling and any outstanding HTTP requests.
|
||||
//
|
||||
// resourceGroupName is the name of the resource group. clusterName is the name
|
||||
// of the cluster. parameters is the parameters for executing script actions.
|
||||
// resourceGroupName is the name of the resource group. clusterName is the name of the cluster. parameters is the
|
||||
// parameters for executing script actions.
|
||||
func (client ClustersClient) ExecuteScriptActions(resourceGroupName string, clusterName string, parameters ExecuteScriptActionParameters, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error) {
|
||||
resultChan := make(chan autorest.Response, 1)
|
||||
errChan := make(chan error, 1)
|
||||
@@ -323,8 +322,10 @@ func (client ClustersClient) ExecuteScriptActions(resourceGroupName string, clus
|
||||
var err error
|
||||
var result autorest.Response
|
||||
defer func() {
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
}
|
||||
resultChan <- result
|
||||
errChan <- err
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
@@ -394,8 +395,7 @@ func (client ClustersClient) ExecuteScriptActionsResponder(resp *http.Response)
|
||||
|
||||
// Get gets the specified cluster.
|
||||
//
|
||||
// resourceGroupName is the name of the resource group. clusterName is the name
|
||||
// of the cluster.
|
||||
// resourceGroupName is the name of the resource group. clusterName is the name of the cluster.
|
||||
func (client ClustersClient) Get(resourceGroupName string, clusterName string) (result Cluster, err error) {
|
||||
req, err := client.GetPreparer(resourceGroupName, clusterName)
|
||||
if err != nil {
|
||||
@@ -543,6 +543,51 @@ func (client ClustersClient) ListNextResults(lastResults ClusterListResult) (res
|
||||
return
|
||||
}
|
||||
|
||||
// ListComplete gets all elements from the list without paging.
|
||||
func (client ClustersClient) ListComplete(cancel <-chan struct{}) (<-chan Cluster, <-chan error) {
|
||||
resultChan := make(chan Cluster)
|
||||
errChan := make(chan error, 1)
|
||||
go func() {
|
||||
defer func() {
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
list, err := client.List()
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
return
|
||||
}
|
||||
if list.Value != nil {
|
||||
for _, item := range *list.Value {
|
||||
select {
|
||||
case <-cancel:
|
||||
return
|
||||
case resultChan <- item:
|
||||
// Intentionally left blank
|
||||
}
|
||||
}
|
||||
}
|
||||
for list.NextLink != nil {
|
||||
list, err = client.ListNextResults(list)
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
return
|
||||
}
|
||||
if list.Value != nil {
|
||||
for _, item := range *list.Value {
|
||||
select {
|
||||
case <-cancel:
|
||||
return
|
||||
case resultChan <- item:
|
||||
// Intentionally left blank
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}()
|
||||
return resultChan, errChan
|
||||
}
|
||||
|
||||
// ListByResourceGroup list the HDInsight clusters in a resource group.
|
||||
//
|
||||
// resourceGroupName is the name of the resource group.
|
||||
@@ -631,14 +676,57 @@ func (client ClustersClient) ListByResourceGroupNextResults(lastResults ClusterL
|
||||
return
|
||||
}
|
||||
|
||||
// Resize begins a resize operation on the specified HDInsight cluster. This
|
||||
// method may poll for completion. Polling can be canceled by passing the
|
||||
// cancel channel argument. The channel will be used to cancel polling and any
|
||||
// ListByResourceGroupComplete gets all elements from the list without paging.
|
||||
func (client ClustersClient) ListByResourceGroupComplete(resourceGroupName string, cancel <-chan struct{}) (<-chan Cluster, <-chan error) {
|
||||
resultChan := make(chan Cluster)
|
||||
errChan := make(chan error, 1)
|
||||
go func() {
|
||||
defer func() {
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
list, err := client.ListByResourceGroup(resourceGroupName)
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
return
|
||||
}
|
||||
if list.Value != nil {
|
||||
for _, item := range *list.Value {
|
||||
select {
|
||||
case <-cancel:
|
||||
return
|
||||
case resultChan <- item:
|
||||
// Intentionally left blank
|
||||
}
|
||||
}
|
||||
}
|
||||
for list.NextLink != nil {
|
||||
list, err = client.ListByResourceGroupNextResults(list)
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
return
|
||||
}
|
||||
if list.Value != nil {
|
||||
for _, item := range *list.Value {
|
||||
select {
|
||||
case <-cancel:
|
||||
return
|
||||
case resultChan <- item:
|
||||
// Intentionally left blank
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}()
|
||||
return resultChan, errChan
|
||||
}
|
||||
|
||||
// Resize begins a resize operation on the specified HDInsight cluster. This method may poll for completion. Polling
|
||||
// can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any
|
||||
// outstanding HTTP requests.
|
||||
//
|
||||
// resourceGroupName is the name of the resource group. clusterName is the name
|
||||
// of the cluster. roleName is the constant value for the roleName parameters
|
||||
// is the parameters for the resize operation.
|
||||
// resourceGroupName is the name of the resource group. clusterName is the name of the cluster. roleName is the
|
||||
// constant value for the roleName parameters is the parameters for the resize operation.
|
||||
func (client ClustersClient) Resize(resourceGroupName string, clusterName string, roleName string, parameters ClusterResizeParameters, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error) {
|
||||
resultChan := make(chan autorest.Response, 1)
|
||||
errChan := make(chan error, 1)
|
||||
@@ -646,8 +734,10 @@ func (client ClustersClient) Resize(resourceGroupName string, clusterName string
|
||||
var err error
|
||||
var result autorest.Response
|
||||
defer func() {
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
}
|
||||
resultChan <- result
|
||||
errChan <- err
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
@@ -718,8 +808,8 @@ func (client ClustersClient) ResizeResponder(resp *http.Response) (result autore
|
||||
|
||||
// Update patch HDInsight cluster with the specified parameters.
|
||||
//
|
||||
// resourceGroupName is the name of the resource group. clusterName is the name
|
||||
// of the cluster. parameters is the cluster patch request.
|
||||
// resourceGroupName is the name of the resource group. clusterName is the name of the cluster. parameters is the
|
||||
// cluster patch request.
|
||||
func (client ClustersClient) Update(resourceGroupName string, clusterName string, parameters ClusterPatchParameters) (result Cluster, err error) {
|
||||
req, err := client.UpdatePreparer(resourceGroupName, clusterName, parameters)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user