vendor: update all dependencies to latest versions
This commit is contained in:
+126
-71
@@ -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"
|
||||
@@ -35,6 +34,16 @@ const (
|
||||
Secondary AccountKeyType = "Secondary"
|
||||
)
|
||||
|
||||
// NameAvailabilityReason enumerates the values for name availability reason.
|
||||
type NameAvailabilityReason string
|
||||
|
||||
const (
|
||||
// AlreadyExists specifies the already exists state for name availability reason.
|
||||
AlreadyExists NameAvailabilityReason = "AlreadyExists"
|
||||
// Invalid specifies the invalid state for name availability reason.
|
||||
Invalid NameAvailabilityReason = "Invalid"
|
||||
)
|
||||
|
||||
// PackageState enumerates the values for package state.
|
||||
type PackageState string
|
||||
|
||||
@@ -53,8 +62,7 @@ type PoolAllocationMode string
|
||||
const (
|
||||
// BatchService specifies the batch service state for pool allocation mode.
|
||||
BatchService PoolAllocationMode = "BatchService"
|
||||
// UserSubscription specifies the user subscription state for pool
|
||||
// allocation mode.
|
||||
// UserSubscription specifies the user subscription state for pool allocation mode.
|
||||
UserSubscription PoolAllocationMode = "UserSubscription"
|
||||
)
|
||||
|
||||
@@ -62,18 +70,18 @@ const (
|
||||
type ProvisioningState string
|
||||
|
||||
const (
|
||||
// Cancelled specifies the cancelled state for provisioning state.
|
||||
Cancelled ProvisioningState = "Cancelled"
|
||||
// Creating specifies the creating state for provisioning state.
|
||||
Creating ProvisioningState = "Creating"
|
||||
// Deleting specifies the deleting state for provisioning state.
|
||||
Deleting ProvisioningState = "Deleting"
|
||||
// Failed specifies the failed state for provisioning state.
|
||||
Failed ProvisioningState = "Failed"
|
||||
// Invalid specifies the invalid state for provisioning state.
|
||||
Invalid ProvisioningState = "Invalid"
|
||||
// Succeeded specifies the succeeded state for provisioning state.
|
||||
Succeeded ProvisioningState = "Succeeded"
|
||||
// ProvisioningStateCancelled specifies the provisioning state cancelled state for provisioning state.
|
||||
ProvisioningStateCancelled ProvisioningState = "Cancelled"
|
||||
// ProvisioningStateCreating specifies the provisioning state creating state for provisioning state.
|
||||
ProvisioningStateCreating ProvisioningState = "Creating"
|
||||
// ProvisioningStateDeleting specifies the provisioning state deleting state for provisioning state.
|
||||
ProvisioningStateDeleting ProvisioningState = "Deleting"
|
||||
// ProvisioningStateFailed specifies the provisioning state failed state for provisioning state.
|
||||
ProvisioningStateFailed ProvisioningState = "Failed"
|
||||
// ProvisioningStateInvalid specifies the provisioning state invalid state for provisioning state.
|
||||
ProvisioningStateInvalid ProvisioningState = "Invalid"
|
||||
// ProvisioningStateSucceeded specifies the provisioning state succeeded state for provisioning state.
|
||||
ProvisioningStateSucceeded ProvisioningState = "Succeeded"
|
||||
)
|
||||
|
||||
// Account is contains information about an Azure Batch account.
|
||||
@@ -87,23 +95,24 @@ type Account struct {
|
||||
*AccountProperties `json:"properties,omitempty"`
|
||||
}
|
||||
|
||||
// AccountBaseProperties is the properties of a Batch account.
|
||||
type AccountBaseProperties struct {
|
||||
// AccountCreateParameters is parameters supplied to the Create operation.
|
||||
type AccountCreateParameters struct {
|
||||
Location *string `json:"location,omitempty"`
|
||||
Tags *map[string]*string `json:"tags,omitempty"`
|
||||
*AccountCreateProperties `json:"properties,omitempty"`
|
||||
}
|
||||
|
||||
// AccountCreateProperties is the properties of a Batch account.
|
||||
type AccountCreateProperties struct {
|
||||
AutoStorage *AutoStorageBaseProperties `json:"autoStorage,omitempty"`
|
||||
PoolAllocationMode PoolAllocationMode `json:"poolAllocationMode,omitempty"`
|
||||
KeyVaultReference *KeyVaultReference `json:"keyVaultReference,omitempty"`
|
||||
}
|
||||
|
||||
// AccountCreateParameters is parameters supplied to the Create operation.
|
||||
type AccountCreateParameters struct {
|
||||
Location *string `json:"location,omitempty"`
|
||||
Tags *map[string]*string `json:"tags,omitempty"`
|
||||
*AccountBaseProperties `json:"properties,omitempty"`
|
||||
}
|
||||
|
||||
// AccountKeys is a set of Azure Batch account keys.
|
||||
type AccountKeys struct {
|
||||
autorest.Response `json:"-"`
|
||||
AccountName *string `json:"accountName,omitempty"`
|
||||
Primary *string `json:"primary,omitempty"`
|
||||
Secondary *string `json:"secondary,omitempty"`
|
||||
}
|
||||
@@ -134,41 +143,33 @@ type AccountProperties struct {
|
||||
PoolAllocationMode PoolAllocationMode `json:"poolAllocationMode,omitempty"`
|
||||
KeyVaultReference *KeyVaultReference `json:"keyVaultReference,omitempty"`
|
||||
AutoStorage *AutoStorageProperties `json:"autoStorage,omitempty"`
|
||||
CoreQuota *int32 `json:"coreQuota,omitempty"`
|
||||
DedicatedCoreQuota *int32 `json:"dedicatedCoreQuota,omitempty"`
|
||||
LowPriorityCoreQuota *int32 `json:"lowPriorityCoreQuota,omitempty"`
|
||||
PoolQuota *int32 `json:"poolQuota,omitempty"`
|
||||
ActiveJobAndJobScheduleQuota *int32 `json:"activeJobAndJobScheduleQuota,omitempty"`
|
||||
}
|
||||
|
||||
// AccountRegenerateKeyParameters is parameters supplied to the RegenerateKey
|
||||
// operation.
|
||||
// AccountRegenerateKeyParameters is parameters supplied to the RegenerateKey operation.
|
||||
type AccountRegenerateKeyParameters struct {
|
||||
KeyName AccountKeyType `json:"keyName,omitempty"`
|
||||
}
|
||||
|
||||
// AccountUpdateBaseProperties is the properties for a Batch account update.
|
||||
type AccountUpdateBaseProperties struct {
|
||||
// AccountUpdateParameters is parameters for updating an Azure Batch account.
|
||||
type AccountUpdateParameters struct {
|
||||
Tags *map[string]*string `json:"tags,omitempty"`
|
||||
*AccountUpdateProperties `json:"properties,omitempty"`
|
||||
}
|
||||
|
||||
// AccountUpdateProperties is the properties of a Batch account.
|
||||
type AccountUpdateProperties struct {
|
||||
AutoStorage *AutoStorageBaseProperties `json:"autoStorage,omitempty"`
|
||||
}
|
||||
|
||||
// AccountUpdateParameters is parameters supplied to the Update operation.
|
||||
type AccountUpdateParameters struct {
|
||||
Tags *map[string]*string `json:"tags,omitempty"`
|
||||
*AccountUpdateBaseProperties `json:"properties,omitempty"`
|
||||
}
|
||||
|
||||
// ActivateApplicationPackageParameters is parameters for an
|
||||
// ApplicationOperations.ActivateApplicationPackage request.
|
||||
// ActivateApplicationPackageParameters is parameters for an activating an application package.
|
||||
type ActivateApplicationPackageParameters struct {
|
||||
Format *string `json:"format,omitempty"`
|
||||
}
|
||||
|
||||
// AddApplicationParameters is parameters for an
|
||||
// ApplicationOperations.AddApplication request.
|
||||
type AddApplicationParameters struct {
|
||||
AllowUpdates *bool `json:"allowUpdates,omitempty"`
|
||||
DisplayName *string `json:"displayName,omitempty"`
|
||||
}
|
||||
|
||||
// Application is contains information about an application in a Batch account.
|
||||
type Application struct {
|
||||
autorest.Response `json:"-"`
|
||||
@@ -179,8 +180,13 @@ type Application struct {
|
||||
DefaultVersion *string `json:"defaultVersion,omitempty"`
|
||||
}
|
||||
|
||||
// ApplicationPackage is an application package which represents a particular
|
||||
// version of an application.
|
||||
// ApplicationCreateParameters is parameters for adding an Application.
|
||||
type ApplicationCreateParameters struct {
|
||||
AllowUpdates *bool `json:"allowUpdates,omitempty"`
|
||||
DisplayName *string `json:"displayName,omitempty"`
|
||||
}
|
||||
|
||||
// ApplicationPackage is an application package which represents a particular version of an application.
|
||||
type ApplicationPackage struct {
|
||||
autorest.Response `json:"-"`
|
||||
ID *string `json:"id,omitempty"`
|
||||
@@ -192,35 +198,58 @@ type ApplicationPackage struct {
|
||||
LastActivationTime *date.Time `json:"lastActivationTime,omitempty"`
|
||||
}
|
||||
|
||||
// AutoStorageBaseProperties is the properties related to auto storage account.
|
||||
// ApplicationUpdateParameters is parameters for an update application request.
|
||||
type ApplicationUpdateParameters struct {
|
||||
AllowUpdates *bool `json:"allowUpdates,omitempty"`
|
||||
DefaultVersion *string `json:"defaultVersion,omitempty"`
|
||||
DisplayName *string `json:"displayName,omitempty"`
|
||||
}
|
||||
|
||||
// AutoStorageBaseProperties is the properties related to the auto-storage account.
|
||||
type AutoStorageBaseProperties struct {
|
||||
StorageAccountID *string `json:"storageAccountId,omitempty"`
|
||||
}
|
||||
|
||||
// AutoStorageProperties is contains information about the auto storage account
|
||||
// associated with a Batch account.
|
||||
// AutoStorageProperties is contains information about the auto-storage account associated with a Batch account.
|
||||
type AutoStorageProperties struct {
|
||||
StorageAccountID *string `json:"storageAccountId,omitempty"`
|
||||
LastKeySync *date.Time `json:"lastKeySync,omitempty"`
|
||||
}
|
||||
|
||||
// CloudError is an error response from the Batch service.
|
||||
type CloudError struct {
|
||||
Code *string `json:"code,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
Target *string `json:"target,omitempty"`
|
||||
Details *[]CloudError `json:"details,omitempty"`
|
||||
// CheckNameAvailabilityParameters is parameters for a check name availability request.
|
||||
type CheckNameAvailabilityParameters struct {
|
||||
Name *string `json:"name,omitempty"`
|
||||
Type *string `json:"type,omitempty"`
|
||||
}
|
||||
|
||||
// KeyVaultReference is identifies the Azure key vault associated with a Batch
|
||||
// account.
|
||||
// CheckNameAvailabilityResult is the CheckNameAvailability operation response.
|
||||
type CheckNameAvailabilityResult struct {
|
||||
autorest.Response `json:"-"`
|
||||
NameAvailable *bool `json:"nameAvailable,omitempty"`
|
||||
Reason NameAvailabilityReason `json:"reason,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
}
|
||||
|
||||
// CloudError is an error response from the Batch service.
|
||||
type CloudError struct {
|
||||
Error *CloudErrorBody `json:"error,omitempty"`
|
||||
}
|
||||
|
||||
// CloudErrorBody is an error response from the Batch service.
|
||||
type CloudErrorBody struct {
|
||||
Code *string `json:"code,omitempty"`
|
||||
Message *string `json:"message,omitempty"`
|
||||
Target *string `json:"target,omitempty"`
|
||||
Details *[]CloudErrorBody `json:"details,omitempty"`
|
||||
}
|
||||
|
||||
// KeyVaultReference is identifies the Azure key vault associated with a Batch account.
|
||||
type KeyVaultReference struct {
|
||||
ID *string `json:"id,omitempty"`
|
||||
URL *string `json:"url,omitempty"`
|
||||
}
|
||||
|
||||
// ListApplicationsResult is response to an
|
||||
// ApplicationOperations.ListApplications request.
|
||||
// ListApplicationsResult is the result of performing list applications.
|
||||
type ListApplicationsResult struct {
|
||||
autorest.Response `json:"-"`
|
||||
Value *[]Application `json:"value,omitempty"`
|
||||
@@ -239,13 +268,47 @@ func (client ListApplicationsResult) ListApplicationsResultPreparer() (*http.Req
|
||||
autorest.WithBaseURL(to.String(client.NextLink)))
|
||||
}
|
||||
|
||||
// LocationQuota is quotas associated with a Batch region for a particular
|
||||
// subscription.
|
||||
// LocationQuota is quotas associated with a Batch region for a particular subscription.
|
||||
type LocationQuota struct {
|
||||
autorest.Response `json:"-"`
|
||||
AccountQuota *int32 `json:"accountQuota,omitempty"`
|
||||
}
|
||||
|
||||
// Operation is
|
||||
type Operation struct {
|
||||
Name *string `json:"name,omitempty"`
|
||||
Display *OperationDisplay `json:"display,omitempty"`
|
||||
Origin *string `json:"origin,omitempty"`
|
||||
Properties *map[string]interface{} `json:"properties,omitempty"`
|
||||
}
|
||||
|
||||
// OperationDisplay is
|
||||
type OperationDisplay struct {
|
||||
Provider *string `json:"provider,omitempty"`
|
||||
Operation *string `json:"operation,omitempty"`
|
||||
Resource *string `json:"resource,omitempty"`
|
||||
Description *string `json:"description,omitempty"`
|
||||
}
|
||||
|
||||
// OperationListResult is
|
||||
type OperationListResult struct {
|
||||
autorest.Response `json:"-"`
|
||||
Value *[]Operation `json:"value,omitempty"`
|
||||
NextLink *string `json:"nextLink,omitempty"`
|
||||
}
|
||||
|
||||
// OperationListResultPreparer prepares a request to retrieve the next set of results. It returns
|
||||
// nil if no more results exist.
|
||||
func (client OperationListResult) OperationListResultPreparer() (*http.Request, error) {
|
||||
if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
|
||||
return nil, nil
|
||||
}
|
||||
return autorest.Prepare(&http.Request{},
|
||||
autorest.AsJSON(),
|
||||
autorest.AsGet(),
|
||||
autorest.WithBaseURL(to.String(client.NextLink)))
|
||||
}
|
||||
|
||||
// Resource is a definition of an Azure resource.
|
||||
type Resource struct {
|
||||
ID *string `json:"id,omitempty"`
|
||||
@@ -254,11 +317,3 @@ type Resource struct {
|
||||
Location *string `json:"location,omitempty"`
|
||||
Tags *map[string]*string `json:"tags,omitempty"`
|
||||
}
|
||||
|
||||
// UpdateApplicationParameters is parameters for an
|
||||
// ApplicationOperations.UpdateApplication request.
|
||||
type UpdateApplicationParameters struct {
|
||||
AllowUpdates *bool `json:"allowUpdates,omitempty"`
|
||||
DefaultVersion *string `json:"defaultVersion,omitempty"`
|
||||
DisplayName *string `json:"displayName,omitempty"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user