1package hdinsightapi 2 3// Copyright (c) Microsoft Corporation. All rights reserved. 4// Licensed under the MIT License. See License.txt in the project root for license information. 5// 6// Code generated by Microsoft (R) AutoRest Code Generator. 7// Changes may cause incorrect behavior and will be lost if the code is regenerated. 8 9import ( 10 "context" 11 "github.com/Azure/azure-sdk-for-go/services/hdinsight/mgmt/2018-06-01/hdinsight" 12 "github.com/Azure/go-autorest/autorest" 13) 14 15// ClustersClientAPI contains the set of methods on the ClustersClient type. 16type ClustersClientAPI interface { 17 Create(ctx context.Context, resourceGroupName string, clusterName string, parameters hdinsight.ClusterCreateParametersExtended) (result hdinsight.ClustersCreateFuture, err error) 18 Delete(ctx context.Context, resourceGroupName string, clusterName string) (result hdinsight.ClustersDeleteFuture, err error) 19 ExecuteScriptActions(ctx context.Context, resourceGroupName string, clusterName string, parameters hdinsight.ExecuteScriptActionParameters) (result hdinsight.ClustersExecuteScriptActionsFuture, err error) 20 Get(ctx context.Context, resourceGroupName string, clusterName string) (result hdinsight.Cluster, err error) 21 GetAzureAsyncOperationStatus(ctx context.Context, resourceGroupName string, clusterName string, operationID string) (result hdinsight.AsyncOperationResult, err error) 22 GetGatewaySettings(ctx context.Context, resourceGroupName string, clusterName string) (result hdinsight.GatewaySettings, err error) 23 List(ctx context.Context) (result hdinsight.ClusterListResultPage, err error) 24 ListComplete(ctx context.Context) (result hdinsight.ClusterListResultIterator, err error) 25 ListByResourceGroup(ctx context.Context, resourceGroupName string) (result hdinsight.ClusterListResultPage, err error) 26 ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result hdinsight.ClusterListResultIterator, err error) 27 Resize(ctx context.Context, resourceGroupName string, clusterName string, parameters hdinsight.ClusterResizeParameters) (result hdinsight.ClustersResizeFuture, err error) 28 RotateDiskEncryptionKey(ctx context.Context, resourceGroupName string, clusterName string, parameters hdinsight.ClusterDiskEncryptionParameters) (result hdinsight.ClustersRotateDiskEncryptionKeyFuture, err error) 29 Update(ctx context.Context, resourceGroupName string, clusterName string, parameters hdinsight.ClusterPatchParameters) (result hdinsight.Cluster, err error) 30 UpdateAutoScaleConfiguration(ctx context.Context, resourceGroupName string, clusterName string, parameters hdinsight.AutoscaleConfigurationUpdateParameter) (result hdinsight.ClustersUpdateAutoScaleConfigurationFuture, err error) 31 UpdateGatewaySettings(ctx context.Context, resourceGroupName string, clusterName string, parameters hdinsight.UpdateGatewaySettingsParameters) (result hdinsight.ClustersUpdateGatewaySettingsFuture, err error) 32 UpdateIdentityCertificate(ctx context.Context, resourceGroupName string, clusterName string, parameters hdinsight.UpdateClusterIdentityCertificateParameters) (result hdinsight.ClustersUpdateIdentityCertificateFuture, err error) 33} 34 35var _ ClustersClientAPI = (*hdinsight.ClustersClient)(nil) 36 37// ApplicationsClientAPI contains the set of methods on the ApplicationsClient type. 38type ApplicationsClientAPI interface { 39 Create(ctx context.Context, resourceGroupName string, clusterName string, applicationName string, parameters hdinsight.Application) (result hdinsight.ApplicationsCreateFuture, err error) 40 Delete(ctx context.Context, resourceGroupName string, clusterName string, applicationName string) (result hdinsight.ApplicationsDeleteFuture, err error) 41 Get(ctx context.Context, resourceGroupName string, clusterName string, applicationName string) (result hdinsight.Application, err error) 42 GetAzureAsyncOperationStatus(ctx context.Context, resourceGroupName string, clusterName string, applicationName string, operationID string) (result hdinsight.AsyncOperationResult, err error) 43 ListByCluster(ctx context.Context, resourceGroupName string, clusterName string) (result hdinsight.ApplicationListResultPage, err error) 44 ListByClusterComplete(ctx context.Context, resourceGroupName string, clusterName string) (result hdinsight.ApplicationListResultIterator, err error) 45} 46 47var _ ApplicationsClientAPI = (*hdinsight.ApplicationsClient)(nil) 48 49// LocationsClientAPI contains the set of methods on the LocationsClient type. 50type LocationsClientAPI interface { 51 CheckNameAvailability(ctx context.Context, location string, parameters hdinsight.NameAvailabilityCheckRequestParameters) (result hdinsight.NameAvailabilityCheckResult, err error) 52 GetAzureAsyncOperationStatus(ctx context.Context, location string, operationID string) (result hdinsight.AsyncOperationResult, err error) 53 GetCapabilities(ctx context.Context, location string) (result hdinsight.CapabilitiesResult, err error) 54 ListBillingSpecs(ctx context.Context, location string) (result hdinsight.BillingResponseListResult, err error) 55 ListUsages(ctx context.Context, location string) (result hdinsight.UsagesListResult, err error) 56 ValidateClusterCreateRequest(ctx context.Context, location string, parameters hdinsight.ClusterCreateRequestValidationParameters) (result hdinsight.ClusterCreateValidationResult, err error) 57} 58 59var _ LocationsClientAPI = (*hdinsight.LocationsClient)(nil) 60 61// ConfigurationsClientAPI contains the set of methods on the ConfigurationsClient type. 62type ConfigurationsClientAPI interface { 63 Get(ctx context.Context, resourceGroupName string, clusterName string, configurationName string) (result hdinsight.SetString, err error) 64 List(ctx context.Context, resourceGroupName string, clusterName string) (result hdinsight.ClusterConfigurations, err error) 65 Update(ctx context.Context, resourceGroupName string, clusterName string, configurationName string, parameters map[string]*string) (result hdinsight.ConfigurationsUpdateFuture, err error) 66} 67 68var _ ConfigurationsClientAPI = (*hdinsight.ConfigurationsClient)(nil) 69 70// ExtensionsClientAPI contains the set of methods on the ExtensionsClient type. 71type ExtensionsClientAPI interface { 72 Create(ctx context.Context, resourceGroupName string, clusterName string, extensionName string, parameters hdinsight.Extension) (result hdinsight.ExtensionsCreateFuture, err error) 73 Delete(ctx context.Context, resourceGroupName string, clusterName string, extensionName string) (result hdinsight.ExtensionsDeleteFuture, err error) 74 DisableAzureMonitor(ctx context.Context, resourceGroupName string, clusterName string) (result hdinsight.ExtensionsDisableAzureMonitorFuture, err error) 75 DisableMonitoring(ctx context.Context, resourceGroupName string, clusterName string) (result hdinsight.ExtensionsDisableMonitoringFuture, err error) 76 EnableAzureMonitor(ctx context.Context, resourceGroupName string, clusterName string, parameters hdinsight.AzureMonitorRequest) (result hdinsight.ExtensionsEnableAzureMonitorFuture, err error) 77 EnableMonitoring(ctx context.Context, resourceGroupName string, clusterName string, parameters hdinsight.ClusterMonitoringRequest) (result hdinsight.ExtensionsEnableMonitoringFuture, err error) 78 Get(ctx context.Context, resourceGroupName string, clusterName string, extensionName string) (result hdinsight.ClusterMonitoringResponse, err error) 79 GetAzureAsyncOperationStatus(ctx context.Context, resourceGroupName string, clusterName string, extensionName string, operationID string) (result hdinsight.AsyncOperationResult, err error) 80 GetAzureMonitorStatus(ctx context.Context, resourceGroupName string, clusterName string) (result hdinsight.AzureMonitorResponse, err error) 81 GetMonitoringStatus(ctx context.Context, resourceGroupName string, clusterName string) (result hdinsight.ClusterMonitoringResponse, err error) 82} 83 84var _ ExtensionsClientAPI = (*hdinsight.ExtensionsClient)(nil) 85 86// ScriptActionsClientAPI contains the set of methods on the ScriptActionsClient type. 87type ScriptActionsClientAPI interface { 88 Delete(ctx context.Context, resourceGroupName string, clusterName string, scriptName string) (result autorest.Response, err error) 89 GetExecutionAsyncOperationStatus(ctx context.Context, resourceGroupName string, clusterName string, operationID string) (result hdinsight.AsyncOperationResult, err error) 90 GetExecutionDetail(ctx context.Context, resourceGroupName string, clusterName string, scriptExecutionID string) (result hdinsight.RuntimeScriptActionDetail, err error) 91 ListByCluster(ctx context.Context, resourceGroupName string, clusterName string) (result hdinsight.ScriptActionsListPage, err error) 92 ListByClusterComplete(ctx context.Context, resourceGroupName string, clusterName string) (result hdinsight.ScriptActionsListIterator, err error) 93} 94 95var _ ScriptActionsClientAPI = (*hdinsight.ScriptActionsClient)(nil) 96 97// ScriptExecutionHistoryClientAPI contains the set of methods on the ScriptExecutionHistoryClient type. 98type ScriptExecutionHistoryClientAPI interface { 99 ListByCluster(ctx context.Context, resourceGroupName string, clusterName string) (result hdinsight.ScriptActionExecutionHistoryListPage, err error) 100 ListByClusterComplete(ctx context.Context, resourceGroupName string, clusterName string) (result hdinsight.ScriptActionExecutionHistoryListIterator, err error) 101 Promote(ctx context.Context, resourceGroupName string, clusterName string, scriptExecutionID string) (result autorest.Response, err error) 102} 103 104var _ ScriptExecutionHistoryClientAPI = (*hdinsight.ScriptExecutionHistoryClient)(nil) 105 106// OperationsClientAPI contains the set of methods on the OperationsClient type. 107type OperationsClientAPI interface { 108 List(ctx context.Context) (result hdinsight.OperationListResultPage, err error) 109 ListComplete(ctx context.Context) (result hdinsight.OperationListResultIterator, err error) 110} 111 112var _ OperationsClientAPI = (*hdinsight.OperationsClient)(nil) 113 114// VirtualMachinesClientAPI contains the set of methods on the VirtualMachinesClient type. 115type VirtualMachinesClientAPI interface { 116 GetAsyncOperationStatus(ctx context.Context, resourceGroupName string, clusterName string, operationID string) (result hdinsight.AsyncOperationResult, err error) 117 ListHosts(ctx context.Context, resourceGroupName string, clusterName string) (result hdinsight.ListHostInfo, err error) 118 RestartHosts(ctx context.Context, resourceGroupName string, clusterName string, hosts []string) (result hdinsight.VirtualMachinesRestartHostsFuture, err error) 119} 120 121var _ VirtualMachinesClientAPI = (*hdinsight.VirtualMachinesClient)(nil) 122