...

Source file src/github.com/Azure/azure-sdk-for-go/services/batch/mgmt/2017-05-01/batch/batchapi/interfaces.go

Documentation: github.com/Azure/azure-sdk-for-go/services/batch/mgmt/2017-05-01/batch/batchapi

     1  // Deprecated: Please note, this package has been deprecated. A replacement package is available [github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/batch/armbatch](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/batch/armbatch). We strongly encourage you to upgrade to continue receiving updates. See [Migration Guide](https://aka.ms/azsdk/golang/t2/migration) for guidance on upgrading. Refer to our [deprecation policy](https://azure.github.io/azure-sdk/policies_support.html) for more details.
     2  package batchapi
     3  
     4  // Copyright (c) Microsoft Corporation. All rights reserved.
     5  // Licensed under the MIT License. See License.txt in the project root for license information.
     6  //
     7  // Code generated by Microsoft (R) AutoRest Code Generator.
     8  // Changes may cause incorrect behavior and will be lost if the code is regenerated.
     9  
    10  import (
    11  	"context"
    12  	"github.com/Azure/azure-sdk-for-go/services/batch/mgmt/2017-05-01/batch"
    13  	"github.com/Azure/go-autorest/autorest"
    14  )
    15  
    16  // AccountClientAPI contains the set of methods on the AccountClient type.
    17  type AccountClientAPI interface {
    18  	Create(ctx context.Context, resourceGroupName string, accountName string, parameters batch.AccountCreateParameters) (result batch.AccountCreateFuture, err error)
    19  	Delete(ctx context.Context, resourceGroupName string, accountName string) (result batch.AccountDeleteFuture, err error)
    20  	Get(ctx context.Context, resourceGroupName string, accountName string) (result batch.Account, err error)
    21  	GetKeys(ctx context.Context, resourceGroupName string, accountName string) (result batch.AccountKeys, err error)
    22  	List(ctx context.Context) (result batch.AccountListResultPage, err error)
    23  	ListComplete(ctx context.Context) (result batch.AccountListResultIterator, err error)
    24  	ListByResourceGroup(ctx context.Context, resourceGroupName string) (result batch.AccountListResultPage, err error)
    25  	ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result batch.AccountListResultIterator, err error)
    26  	RegenerateKey(ctx context.Context, resourceGroupName string, accountName string, parameters batch.AccountRegenerateKeyParameters) (result batch.AccountKeys, err error)
    27  	SynchronizeAutoStorageKeys(ctx context.Context, resourceGroupName string, accountName string) (result autorest.Response, err error)
    28  	Update(ctx context.Context, resourceGroupName string, accountName string, parameters batch.AccountUpdateParameters) (result batch.Account, err error)
    29  }
    30  
    31  var _ AccountClientAPI = (*batch.AccountClient)(nil)
    32  
    33  // ApplicationPackageClientAPI contains the set of methods on the ApplicationPackageClient type.
    34  type ApplicationPackageClientAPI interface {
    35  	Activate(ctx context.Context, resourceGroupName string, accountName string, applicationID string, version string, parameters batch.ActivateApplicationPackageParameters) (result autorest.Response, err error)
    36  	Create(ctx context.Context, resourceGroupName string, accountName string, applicationID string, version string) (result batch.ApplicationPackage, err error)
    37  	Delete(ctx context.Context, resourceGroupName string, accountName string, applicationID string, version string) (result autorest.Response, err error)
    38  	Get(ctx context.Context, resourceGroupName string, accountName string, applicationID string, version string) (result batch.ApplicationPackage, err error)
    39  }
    40  
    41  var _ ApplicationPackageClientAPI = (*batch.ApplicationPackageClient)(nil)
    42  
    43  // ApplicationClientAPI contains the set of methods on the ApplicationClient type.
    44  type ApplicationClientAPI interface {
    45  	Create(ctx context.Context, resourceGroupName string, accountName string, applicationID string, parameters *batch.ApplicationCreateParameters) (result batch.Application, err error)
    46  	Delete(ctx context.Context, resourceGroupName string, accountName string, applicationID string) (result autorest.Response, err error)
    47  	Get(ctx context.Context, resourceGroupName string, accountName string, applicationID string) (result batch.Application, err error)
    48  	List(ctx context.Context, resourceGroupName string, accountName string, maxresults *int32) (result batch.ListApplicationsResultPage, err error)
    49  	ListComplete(ctx context.Context, resourceGroupName string, accountName string, maxresults *int32) (result batch.ListApplicationsResultIterator, err error)
    50  	Update(ctx context.Context, resourceGroupName string, accountName string, applicationID string, parameters batch.ApplicationUpdateParameters) (result autorest.Response, err error)
    51  }
    52  
    53  var _ ApplicationClientAPI = (*batch.ApplicationClient)(nil)
    54  
    55  // LocationClientAPI contains the set of methods on the LocationClient type.
    56  type LocationClientAPI interface {
    57  	CheckNameAvailability(ctx context.Context, locationName string, parameters batch.CheckNameAvailabilityParameters) (result batch.CheckNameAvailabilityResult, err error)
    58  	GetQuotas(ctx context.Context, locationName string) (result batch.LocationQuota, err error)
    59  }
    60  
    61  var _ LocationClientAPI = (*batch.LocationClient)(nil)
    62  
    63  // OperationsClientAPI contains the set of methods on the OperationsClient type.
    64  type OperationsClientAPI interface {
    65  	List(ctx context.Context) (result batch.OperationListResultPage, err error)
    66  	ListComplete(ctx context.Context) (result batch.OperationListResultIterator, err error)
    67  }
    68  
    69  var _ OperationsClientAPI = (*batch.OperationsClient)(nil)
    70  

View as plain text