vendor: update all dependencies to latest versions
This commit is contained in:
+18
-26
@@ -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,30 +24,26 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// ApplicationPackageClient is the client for the ApplicationPackage methods of
|
||||
// the Batch service.
|
||||
// ApplicationPackageClient is the client for the ApplicationPackage methods of the Batch service.
|
||||
type ApplicationPackageClient struct {
|
||||
ManagementClient
|
||||
}
|
||||
|
||||
// NewApplicationPackageClient creates an instance of the
|
||||
// ApplicationPackageClient client.
|
||||
// NewApplicationPackageClient creates an instance of the ApplicationPackageClient client.
|
||||
func NewApplicationPackageClient(subscriptionID string) ApplicationPackageClient {
|
||||
return NewApplicationPackageClientWithBaseURI(DefaultBaseURI, subscriptionID)
|
||||
}
|
||||
|
||||
// NewApplicationPackageClientWithBaseURI creates an instance of the
|
||||
// ApplicationPackageClient client.
|
||||
// NewApplicationPackageClientWithBaseURI creates an instance of the ApplicationPackageClient client.
|
||||
func NewApplicationPackageClientWithBaseURI(baseURI string, subscriptionID string) ApplicationPackageClient {
|
||||
return ApplicationPackageClient{NewWithBaseURI(baseURI, subscriptionID)}
|
||||
}
|
||||
|
||||
// Activate activates the specified application package.
|
||||
//
|
||||
// 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. version is the version of the application to
|
||||
// activate. parameters is the parameters for the request.
|
||||
// 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. version is the version of the application to activate.
|
||||
// parameters is the parameters for the request.
|
||||
func (client ApplicationPackageClient) Activate(resourceGroupName string, accountName string, applicationID string, version string, parameters ActivateApplicationPackageParameters) (result autorest.Response, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
@@ -93,7 +88,7 @@ func (client ApplicationPackageClient) ActivatePreparer(resourceGroupName string
|
||||
"version": autorest.Encode("path", version),
|
||||
}
|
||||
|
||||
const APIVersion = "2017-01-01"
|
||||
const APIVersion = "2017-05-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
@@ -128,9 +123,8 @@ func (client ApplicationPackageClient) ActivateResponder(resp *http.Response) (r
|
||||
|
||||
// Create creates an application package record.
|
||||
//
|
||||
// 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. version is the version 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. version is the version of the application.
|
||||
func (client ApplicationPackageClient) Create(resourceGroupName string, accountName string, applicationID string, version string) (result ApplicationPackage, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
@@ -173,7 +167,7 @@ func (client ApplicationPackageClient) CreatePreparer(resourceGroupName string,
|
||||
"version": autorest.Encode("path", version),
|
||||
}
|
||||
|
||||
const APIVersion = "2017-01-01"
|
||||
const APIVersion = "2017-05-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
@@ -207,9 +201,8 @@ func (client ApplicationPackageClient) CreateResponder(resp *http.Response) (res
|
||||
|
||||
// Delete deletes an application package record and its associated binary file.
|
||||
//
|
||||
// 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. version is the version of the application to delete.
|
||||
// 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. version is the version of the application to delete.
|
||||
func (client ApplicationPackageClient) Delete(resourceGroupName string, accountName string, applicationID string, version string) (result autorest.Response, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
@@ -252,7 +245,7 @@ func (client ApplicationPackageClient) DeletePreparer(resourceGroupName string,
|
||||
"version": autorest.Encode("path", version),
|
||||
}
|
||||
|
||||
const APIVersion = "2017-01-01"
|
||||
const APIVersion = "2017-05-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
@@ -285,9 +278,8 @@ func (client ApplicationPackageClient) DeleteResponder(resp *http.Response) (res
|
||||
|
||||
// Get gets information about the specified application package.
|
||||
//
|
||||
// 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. version is the version 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. version is the version of the application.
|
||||
func (client ApplicationPackageClient) Get(resourceGroupName string, accountName string, applicationID string, version string) (result ApplicationPackage, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
@@ -330,7 +322,7 @@ func (client ApplicationPackageClient) GetPreparer(resourceGroupName string, acc
|
||||
"version": autorest.Encode("path", version),
|
||||
}
|
||||
|
||||
const APIVersion = "2017-01-01"
|
||||
const APIVersion = "2017-05-01"
|
||||
queryParameters := map[string]interface{}{
|
||||
"api-version": APIVersion,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user