...

Source file src/github.com/Azure/azure-sdk-for-go/services/preview/synapse/2019-06-01-preview/artifacts/artifactsapi/interfaces.go

Documentation: github.com/Azure/azure-sdk-for-go/services/preview/synapse/2019-06-01-preview/artifacts/artifactsapi

     1  package artifactsapi
     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  
     9  import (
    10  	"context"
    11  	"github.com/Azure/azure-sdk-for-go/services/preview/synapse/2019-06-01-preview/artifacts"
    12  	"github.com/Azure/go-autorest/autorest"
    13  )
    14  
    15  // LinkedServiceClientAPI contains the set of methods on the LinkedServiceClient type.
    16  type LinkedServiceClientAPI interface {
    17  	CreateOrUpdateLinkedService(ctx context.Context, linkedServiceName string, linkedService artifacts.LinkedServiceResource, ifMatch string) (result artifacts.LinkedServiceCreateOrUpdateLinkedServiceFuture, err error)
    18  	DeleteLinkedService(ctx context.Context, linkedServiceName string) (result artifacts.LinkedServiceDeleteLinkedServiceFuture, err error)
    19  	GetLinkedService(ctx context.Context, linkedServiceName string, ifNoneMatch string) (result artifacts.LinkedServiceResource, err error)
    20  	GetLinkedServicesByWorkspace(ctx context.Context) (result artifacts.LinkedServiceListResponsePage, err error)
    21  	GetLinkedServicesByWorkspaceComplete(ctx context.Context) (result artifacts.LinkedServiceListResponseIterator, err error)
    22  	RenameLinkedService(ctx context.Context, linkedServiceName string, request artifacts.RenameRequest) (result artifacts.LinkedServiceRenameLinkedServiceFuture, err error)
    23  }
    24  
    25  var _ LinkedServiceClientAPI = (*artifacts.LinkedServiceClient)(nil)
    26  
    27  // DatasetClientAPI contains the set of methods on the DatasetClient type.
    28  type DatasetClientAPI interface {
    29  	CreateOrUpdateDataset(ctx context.Context, datasetName string, dataset artifacts.DatasetResource, ifMatch string) (result artifacts.DatasetCreateOrUpdateDatasetFuture, err error)
    30  	DeleteDataset(ctx context.Context, datasetName string) (result artifacts.DatasetDeleteDatasetFuture, err error)
    31  	GetDataset(ctx context.Context, datasetName string, ifNoneMatch string) (result artifacts.DatasetResource, err error)
    32  	GetDatasetsByWorkspace(ctx context.Context) (result artifacts.DatasetListResponsePage, err error)
    33  	GetDatasetsByWorkspaceComplete(ctx context.Context) (result artifacts.DatasetListResponseIterator, err error)
    34  	RenameDataset(ctx context.Context, datasetName string, request artifacts.RenameRequest) (result artifacts.DatasetRenameDatasetFuture, err error)
    35  }
    36  
    37  var _ DatasetClientAPI = (*artifacts.DatasetClient)(nil)
    38  
    39  // PipelineClientAPI contains the set of methods on the PipelineClient type.
    40  type PipelineClientAPI interface {
    41  	CreateOrUpdatePipeline(ctx context.Context, pipelineName string, pipeline artifacts.PipelineResource, ifMatch string) (result artifacts.PipelineCreateOrUpdatePipelineFuture, err error)
    42  	CreatePipelineRun(ctx context.Context, pipelineName string, referencePipelineRunID string, isRecovery *bool, startActivityName string, parameters map[string]interface{}) (result artifacts.CreateRunResponse, err error)
    43  	DeletePipeline(ctx context.Context, pipelineName string) (result artifacts.PipelineDeletePipelineFuture, err error)
    44  	GetPipeline(ctx context.Context, pipelineName string, ifNoneMatch string) (result artifacts.PipelineResource, err error)
    45  	GetPipelinesByWorkspace(ctx context.Context) (result artifacts.PipelineListResponsePage, err error)
    46  	GetPipelinesByWorkspaceComplete(ctx context.Context) (result artifacts.PipelineListResponseIterator, err error)
    47  	RenamePipeline(ctx context.Context, pipelineName string, request artifacts.RenameRequest) (result artifacts.PipelineRenamePipelineFuture, err error)
    48  }
    49  
    50  var _ PipelineClientAPI = (*artifacts.PipelineClient)(nil)
    51  
    52  // PipelineRunClientAPI contains the set of methods on the PipelineRunClient type.
    53  type PipelineRunClientAPI interface {
    54  	CancelPipelineRun(ctx context.Context, runID string, isRecursive *bool) (result autorest.Response, err error)
    55  	GetPipelineRun(ctx context.Context, runID string) (result artifacts.PipelineRun, err error)
    56  	QueryActivityRuns(ctx context.Context, pipelineName string, runID string, filterParameters artifacts.RunFilterParameters) (result artifacts.ActivityRunsQueryResponse, err error)
    57  	QueryPipelineRunsByWorkspace(ctx context.Context, filterParameters artifacts.RunFilterParameters) (result artifacts.PipelineRunsQueryResponse, err error)
    58  }
    59  
    60  var _ PipelineRunClientAPI = (*artifacts.PipelineRunClient)(nil)
    61  
    62  // TriggerClientAPI contains the set of methods on the TriggerClient type.
    63  type TriggerClientAPI interface {
    64  	CreateOrUpdateTrigger(ctx context.Context, triggerName string, trigger artifacts.TriggerResource, ifMatch string) (result artifacts.TriggerCreateOrUpdateTriggerFuture, err error)
    65  	DeleteTrigger(ctx context.Context, triggerName string) (result artifacts.TriggerDeleteTriggerFuture, err error)
    66  	GetEventSubscriptionStatus(ctx context.Context, triggerName string) (result artifacts.TriggerSubscriptionOperationStatus, err error)
    67  	GetTrigger(ctx context.Context, triggerName string, ifNoneMatch string) (result artifacts.TriggerResource, err error)
    68  	GetTriggersByWorkspace(ctx context.Context) (result artifacts.TriggerListResponsePage, err error)
    69  	GetTriggersByWorkspaceComplete(ctx context.Context) (result artifacts.TriggerListResponseIterator, err error)
    70  	StartTrigger(ctx context.Context, triggerName string) (result artifacts.TriggerStartTriggerFuture, err error)
    71  	StopTrigger(ctx context.Context, triggerName string) (result artifacts.TriggerStopTriggerFuture, err error)
    72  	SubscribeTriggerToEvents(ctx context.Context, triggerName string) (result artifacts.TriggerSubscribeTriggerToEventsFuture, err error)
    73  	UnsubscribeTriggerFromEvents(ctx context.Context, triggerName string) (result artifacts.TriggerUnsubscribeTriggerFromEventsFuture, err error)
    74  }
    75  
    76  var _ TriggerClientAPI = (*artifacts.TriggerClient)(nil)
    77  
    78  // TriggerRunClientAPI contains the set of methods on the TriggerRunClient type.
    79  type TriggerRunClientAPI interface {
    80  	CancelTriggerInstance(ctx context.Context, triggerName string, runID string) (result autorest.Response, err error)
    81  	QueryTriggerRunsByWorkspace(ctx context.Context, filterParameters artifacts.RunFilterParameters) (result artifacts.TriggerRunsQueryResponse, err error)
    82  	RerunTriggerInstance(ctx context.Context, triggerName string, runID string) (result autorest.Response, err error)
    83  }
    84  
    85  var _ TriggerRunClientAPI = (*artifacts.TriggerRunClient)(nil)
    86  
    87  // DataFlowClientAPI contains the set of methods on the DataFlowClient type.
    88  type DataFlowClientAPI interface {
    89  	CreateOrUpdateDataFlow(ctx context.Context, dataFlowName string, dataFlow artifacts.DataFlowResource, ifMatch string) (result artifacts.DataFlowCreateOrUpdateDataFlowFuture, err error)
    90  	DeleteDataFlow(ctx context.Context, dataFlowName string) (result artifacts.DataFlowDeleteDataFlowFuture, err error)
    91  	GetDataFlow(ctx context.Context, dataFlowName string, ifNoneMatch string) (result artifacts.DataFlowResource, err error)
    92  	GetDataFlowsByWorkspace(ctx context.Context) (result artifacts.DataFlowListResponsePage, err error)
    93  	GetDataFlowsByWorkspaceComplete(ctx context.Context) (result artifacts.DataFlowListResponseIterator, err error)
    94  	RenameDataFlow(ctx context.Context, dataFlowName string, request artifacts.RenameRequest) (result artifacts.DataFlowRenameDataFlowFuture, err error)
    95  }
    96  
    97  var _ DataFlowClientAPI = (*artifacts.DataFlowClient)(nil)
    98  
    99  // DataFlowDebugSessionClientAPI contains the set of methods on the DataFlowDebugSessionClient type.
   100  type DataFlowDebugSessionClientAPI interface {
   101  	AddDataFlow(ctx context.Context, request artifacts.DataFlowDebugPackage) (result artifacts.AddDataFlowToDebugSessionResponse, err error)
   102  	CreateDataFlowDebugSession(ctx context.Context, request artifacts.CreateDataFlowDebugSessionRequest) (result artifacts.DataFlowDebugSessionCreateDataFlowDebugSessionFuture, err error)
   103  	DeleteDataFlowDebugSession(ctx context.Context, request artifacts.DeleteDataFlowDebugSessionRequest) (result autorest.Response, err error)
   104  	ExecuteCommand(ctx context.Context, request artifacts.DataFlowDebugCommandRequest) (result artifacts.DataFlowDebugSessionExecuteCommandFuture, err error)
   105  	QueryDataFlowDebugSessionsByWorkspace(ctx context.Context) (result artifacts.QueryDataFlowDebugSessionsResponsePage, err error)
   106  	QueryDataFlowDebugSessionsByWorkspaceComplete(ctx context.Context) (result artifacts.QueryDataFlowDebugSessionsResponseIterator, err error)
   107  }
   108  
   109  var _ DataFlowDebugSessionClientAPI = (*artifacts.DataFlowDebugSessionClient)(nil)
   110  
   111  // SQLScriptClientAPI contains the set of methods on the SQLScriptClient type.
   112  type SQLScriptClientAPI interface {
   113  	CreateOrUpdateSQLScript(ctx context.Context, SQLScriptName string, SQLScript artifacts.SQLScriptResource, ifMatch string) (result artifacts.SQLScriptResource, err error)
   114  	DeleteSQLScript(ctx context.Context, SQLScriptName string) (result autorest.Response, err error)
   115  	GetSQLScript(ctx context.Context, SQLScriptName string, ifNoneMatch string) (result artifacts.SQLScriptResource, err error)
   116  	GetSQLScriptsByWorkspace(ctx context.Context) (result artifacts.SQLScriptsListResponsePage, err error)
   117  	GetSQLScriptsByWorkspaceComplete(ctx context.Context) (result artifacts.SQLScriptsListResponseIterator, err error)
   118  	RenameSQLScript(ctx context.Context, SQLScriptName string, request artifacts.RenameRequest) (result artifacts.SQLScriptRenameSQLScriptFuture, err error)
   119  }
   120  
   121  var _ SQLScriptClientAPI = (*artifacts.SQLScriptClient)(nil)
   122  
   123  // SparkJobDefinitionClientAPI contains the set of methods on the SparkJobDefinitionClient type.
   124  type SparkJobDefinitionClientAPI interface {
   125  	CreateOrUpdateSparkJobDefinition(ctx context.Context, sparkJobDefinitionName string, sparkJobDefinition artifacts.SparkJobDefinitionResource, ifMatch string) (result artifacts.SparkJobDefinitionResource, err error)
   126  	DebugSparkJobDefinition(ctx context.Context, sparkJobDefinitionAzureResource artifacts.SparkJobDefinitionResource) (result artifacts.SparkJobDefinitionDebugSparkJobDefinitionFuture, err error)
   127  	DeleteSparkJobDefinition(ctx context.Context, sparkJobDefinitionName string) (result autorest.Response, err error)
   128  	ExecuteSparkJobDefinition(ctx context.Context, sparkJobDefinitionName string) (result artifacts.SparkJobDefinitionExecuteSparkJobDefinitionFuture, err error)
   129  	GetSparkJobDefinition(ctx context.Context, sparkJobDefinitionName string, ifNoneMatch string) (result artifacts.SparkJobDefinitionResource, err error)
   130  	GetSparkJobDefinitionsByWorkspace(ctx context.Context) (result artifacts.SparkJobDefinitionsListResponsePage, err error)
   131  	GetSparkJobDefinitionsByWorkspaceComplete(ctx context.Context) (result artifacts.SparkJobDefinitionsListResponseIterator, err error)
   132  	RenameSparkJobDefinition(ctx context.Context, sparkJobDefinitionName string, request artifacts.RenameRequest) (result artifacts.SparkJobDefinitionRenameSparkJobDefinitionFuture, err error)
   133  }
   134  
   135  var _ SparkJobDefinitionClientAPI = (*artifacts.SparkJobDefinitionClient)(nil)
   136  
   137  // NotebookClientAPI contains the set of methods on the NotebookClient type.
   138  type NotebookClientAPI interface {
   139  	CreateOrUpdateNotebook(ctx context.Context, notebookName string, notebook artifacts.NotebookResource, ifMatch string) (result artifacts.NotebookCreateOrUpdateNotebookFuture, err error)
   140  	DeleteNotebook(ctx context.Context, notebookName string) (result artifacts.NotebookDeleteNotebookFuture, err error)
   141  	GetNotebook(ctx context.Context, notebookName string, ifNoneMatch string) (result artifacts.NotebookResource, err error)
   142  	GetNotebooksByWorkspace(ctx context.Context) (result artifacts.NotebookListResponsePage, err error)
   143  	GetNotebooksByWorkspaceComplete(ctx context.Context) (result artifacts.NotebookListResponseIterator, err error)
   144  	GetNotebookSummaryByWorkSpace(ctx context.Context) (result artifacts.NotebookListResponsePage, err error)
   145  	GetNotebookSummaryByWorkSpaceComplete(ctx context.Context) (result artifacts.NotebookListResponseIterator, err error)
   146  	RenameNotebook(ctx context.Context, notebookName string, request artifacts.RenameRequest) (result artifacts.NotebookRenameNotebookFuture, err error)
   147  }
   148  
   149  var _ NotebookClientAPI = (*artifacts.NotebookClient)(nil)
   150  
   151  // WorkspaceClientAPI contains the set of methods on the WorkspaceClient type.
   152  type WorkspaceClientAPI interface {
   153  	Get(ctx context.Context) (result artifacts.Workspace, err error)
   154  }
   155  
   156  var _ WorkspaceClientAPI = (*artifacts.WorkspaceClient)(nil)
   157  
   158  // SQLPoolsClientAPI contains the set of methods on the SQLPoolsClient type.
   159  type SQLPoolsClientAPI interface {
   160  	Get(ctx context.Context, SQLPoolName string) (result artifacts.SQLPool, err error)
   161  	List(ctx context.Context) (result artifacts.SQLPoolInfoListResult, err error)
   162  }
   163  
   164  var _ SQLPoolsClientAPI = (*artifacts.SQLPoolsClient)(nil)
   165  
   166  // BigDataPoolsClientAPI contains the set of methods on the BigDataPoolsClient type.
   167  type BigDataPoolsClientAPI interface {
   168  	Get(ctx context.Context, bigDataPoolName string) (result artifacts.BigDataPoolResourceInfo, err error)
   169  	List(ctx context.Context) (result artifacts.BigDataPoolResourceInfoListResult, err error)
   170  }
   171  
   172  var _ BigDataPoolsClientAPI = (*artifacts.BigDataPoolsClient)(nil)
   173  
   174  // IntegrationRuntimesClientAPI contains the set of methods on the IntegrationRuntimesClient type.
   175  type IntegrationRuntimesClientAPI interface {
   176  	Get(ctx context.Context, integrationRuntimeName string) (result artifacts.IntegrationRuntimeResource, err error)
   177  	List(ctx context.Context) (result artifacts.IntegrationRuntimeListResponse, err error)
   178  }
   179  
   180  var _ IntegrationRuntimesClientAPI = (*artifacts.IntegrationRuntimesClient)(nil)
   181  
   182  // WorkspaceGitRepoManagementClientAPI contains the set of methods on the WorkspaceGitRepoManagementClient type.
   183  type WorkspaceGitRepoManagementClientAPI interface {
   184  	GetGitHubAccessToken(ctx context.Context, APIVersion string, gitHubAccessTokenRequest artifacts.GitHubAccessTokenRequest, clientRequestID string) (result artifacts.GitHubAccessTokenResponse, err error)
   185  }
   186  
   187  var _ WorkspaceGitRepoManagementClientAPI = (*artifacts.WorkspaceGitRepoManagementClient)(nil)
   188  

View as plain text