vendor: update all dependencies to latest versions
This commit is contained in:
+68
-31
@@ -14,9 +14,8 @@ package batch
|
||||
// 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,8 +24,7 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// ApplicationClient is the client for the Application methods of the Batch
|
||||
// service.
|
||||
// ApplicationClient is the client for the Application methods of the Batch service.
|
||||
type ApplicationClient struct {
|
||||
ManagementClient
|
||||
}
|
||||
@@ -36,18 +34,16 @@ func NewApplicationClient(subscriptionID string) ApplicationClient {
|
||||
return NewApplicationClientWithBaseURI(DefaultBaseURI, subscriptionID)
|
||||
}
|
||||
|
||||
// NewApplicationClientWithBaseURI creates an instance of the ApplicationClient
|
||||
// client.
|
||||
// NewApplicationClientWithBaseURI creates an instance of the ApplicationClient client.
|
||||
func NewApplicationClientWithBaseURI(baseURI string, subscriptionID string) ApplicationClient {
|
||||
return ApplicationClient{NewWithBaseURI(baseURI, subscriptionID)}
|
||||
}
|
||||
|
||||
// Create adds an application to the specified Batch account.
|
||||
//
|
||||
// resourceGroupName is the name of the resource group that contains the Batch
|
||||
// account. accountName is the name of the Batch account. applicationID is the
|
||||
// ID of the application. parameters is the parameters for the request.
|
||||
func (client ApplicationClient) Create(resourceGroupName string, accountName string, applicationID string, parameters *AddApplicationParameters) (result Application, err error) {
|
||||
// resourceGroupName is the name of the resource group that contains the Batch account. accountName is the name of the
|
||||
// Batch account. applicationID is the ID of the application. parameters is the parameters for the request.
|
||||
func (client ApplicationClient) Create(resourceGroupName string, accountName string, applicationID string, parameters *ApplicationCreateParameters) (result Application, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}},
|
||||
@@ -80,7 +76,7 @@ func (client ApplicationClient) Create(resourceGroupName string, accountName str
|
||||
}
|
||||
|
||||
// CreatePreparer prepares the Create request.
|
||||
func (client ApplicationClient) CreatePreparer(resourceGroupName string, accountName string, applicationID string, parameters *AddApplicationParameters) (*http.Request, error) {
|
||||
func (client ApplicationClient) CreatePreparer(resourceGroupName string, accountName string, applicationID string, parameters *ApplicationCreateParameters) (*http.Request, error) {
|
||||
pathParameters := map[string]interface{}{
|
||||
"accountName": autorest.Encode("path", accountName),
|
||||
"applicationId": autorest.Encode("path", applicationID),
|
||||
@@ -88,7 +84,7 @@ func (client ApplicationClient) CreatePreparer(resourceGroupName string, account
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2017-01-01"
|
||||
const APIVersion = "2017-05-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
@@ -127,9 +123,8 @@ func (client ApplicationClient) CreateResponder(resp *http.Response) (result App
|
||||
|
||||
// Delete deletes an application.
|
||||
//
|
||||
// resourceGroupName is the name of the resource group that contains the Batch
|
||||
// account. accountName is the name of the Batch account. applicationID is the
|
||||
// ID of the application.
|
||||
// resourceGroupName is the name of the resource group that contains the Batch account. accountName is the name of the
|
||||
// Batch account. applicationID is the ID of the application.
|
||||
func (client ApplicationClient) Delete(resourceGroupName string, accountName string, applicationID string) (result autorest.Response, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
@@ -171,7 +166,7 @@ func (client ApplicationClient) DeletePreparer(resourceGroupName string, account
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2017-01-01"
|
||||
const APIVersion = "2017-05-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
@@ -204,9 +199,8 @@ func (client ApplicationClient) DeleteResponder(resp *http.Response) (result aut
|
||||
|
||||
// Get gets information about the specified application.
|
||||
//
|
||||
// resourceGroupName is the name of the resource group that contains the Batch
|
||||
// account. accountName is the name of the Batch account. applicationID is the
|
||||
// ID of the application.
|
||||
// resourceGroupName is the name of the resource group that contains the Batch account. accountName is the name of the
|
||||
// Batch account. applicationID is the ID of the application.
|
||||
func (client ApplicationClient) Get(resourceGroupName string, accountName string, applicationID string) (result Application, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
@@ -248,7 +242,7 @@ func (client ApplicationClient) GetPreparer(resourceGroupName string, accountNam
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2017-01-01"
|
||||
const APIVersion = "2017-05-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
@@ -282,9 +276,8 @@ func (client ApplicationClient) GetResponder(resp *http.Response) (result Applic
|
||||
|
||||
// List lists all of the applications in the specified account.
|
||||
//
|
||||
// resourceGroupName is the name of the resource group that contains the Batch
|
||||
// account. accountName is the name of the Batch account. maxresults is the
|
||||
// maximum number of items to return in the response.
|
||||
// resourceGroupName is the name of the resource group that contains the Batch account. accountName is the name of the
|
||||
// Batch account. maxresults is the maximum number of items to return in the response.
|
||||
func (client ApplicationClient) List(resourceGroupName string, accountName string, maxresults *int32) (result ListApplicationsResult, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
@@ -325,7 +318,7 @@ func (client ApplicationClient) ListPreparer(resourceGroupName string, accountNa
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2017-01-01"
|
||||
const APIVersion = "2017-05-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
@@ -384,12 +377,56 @@ func (client ApplicationClient) ListNextResults(lastResults ListApplicationsResu
|
||||
return
|
||||
}
|
||||
|
||||
// ListComplete gets all elements from the list without paging.
|
||||
func (client ApplicationClient) ListComplete(resourceGroupName string, accountName string, maxresults *int32, cancel <-chan struct{}) (<-chan Application, <-chan error) {
|
||||
resultChan := make(chan Application)
|
||||
errChan := make(chan error, 1)
|
||||
go func() {
|
||||
defer func() {
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
list, err := client.List(resourceGroupName, accountName, maxresults)
|
||||
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
|
||||
}
|
||||
|
||||
// Update updates settings for the specified application.
|
||||
//
|
||||
// resourceGroupName is the name of the resource group that contains the Batch
|
||||
// account. accountName is the name of the Batch account. applicationID is the
|
||||
// ID of the application. parameters is the parameters for the request.
|
||||
func (client ApplicationClient) Update(resourceGroupName string, accountName string, applicationID string, parameters UpdateApplicationParameters) (result autorest.Response, err error) {
|
||||
// resourceGroupName is the name of the resource group that contains the Batch account. accountName is the name of the
|
||||
// Batch account. applicationID is the ID of the application. parameters is the parameters for the request.
|
||||
func (client ApplicationClient) Update(resourceGroupName string, accountName string, applicationID string, parameters ApplicationUpdateParameters) (result autorest.Response, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._]+$`, Chain: nil}}},
|
||||
@@ -422,7 +459,7 @@ func (client ApplicationClient) Update(resourceGroupName string, accountName str
|
||||
}
|
||||
|
||||
// UpdatePreparer prepares the Update request.
|
||||
func (client ApplicationClient) UpdatePreparer(resourceGroupName string, accountName string, applicationID string, parameters UpdateApplicationParameters) (*http.Request, error) {
|
||||
func (client ApplicationClient) UpdatePreparer(resourceGroupName string, accountName string, applicationID string, parameters ApplicationUpdateParameters) (*http.Request, error) {
|
||||
pathParameters := map[string]interface{}{
|
||||
"accountName": autorest.Encode("path", accountName),
|
||||
"applicationId": autorest.Encode("path", applicationID),
|
||||
@@ -430,7 +467,7 @@ func (client ApplicationClient) UpdatePreparer(resourceGroupName string, account
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
|
||||
const APIVersion = "2017-01-01"
|
||||
const APIVersion = "2017-05-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user