1package sparkapi
2
3// Copyright (c) Microsoft and contributors.  All rights reserved.
4//
5// Licensed under the Apache License, Version 2.0 (the "License");
6// you may not use this file except in compliance with the License.
7// You may obtain a copy of the License at
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13//
14// See the License for the specific language governing permissions and
15// limitations under the License.
16//
17// Code generated by Microsoft (R) AutoRest Code Generator.
18// Changes may cause incorrect behavior and will be lost if the code is regenerated.
19
20import (
21	"context"
22	"github.com/Azure/azure-sdk-for-go/services/preview/synapse/2019-11-01-preview/spark"
23	"github.com/Azure/go-autorest/autorest"
24)
25
26// BatchClientAPI contains the set of methods on the BatchClient type.
27type BatchClientAPI interface {
28	CancelSparkBatchJob(ctx context.Context, batchID int32) (result autorest.Response, err error)
29	CreateSparkBatchJob(ctx context.Context, sparkBatchJobOptions spark.BatchJobOptions, detailed *bool) (result spark.BatchJob, err error)
30	GetSparkBatchJob(ctx context.Context, batchID int32, detailed *bool) (result spark.BatchJob, err error)
31	GetSparkBatchJobs(ctx context.Context, from *int32, size *int32, detailed *bool) (result spark.BatchJobCollection, err error)
32}
33
34var _ BatchClientAPI = (*spark.BatchClient)(nil)
35
36// SessionClientAPI contains the set of methods on the SessionClient type.
37type SessionClientAPI interface {
38	CancelSparkSession(ctx context.Context, sessionID int32) (result autorest.Response, err error)
39	CancelSparkStatement(ctx context.Context, sessionID int32, statementID int32) (result spark.StatementCancellationResult, err error)
40	CreateSparkSession(ctx context.Context, sparkSessionOptions spark.SessionOptions, detailed *bool) (result spark.Session, err error)
41	CreateSparkStatement(ctx context.Context, sessionID int32, sparkStatementOptions spark.StatementOptions) (result spark.Statement, err error)
42	GetSparkSession(ctx context.Context, sessionID int32, detailed *bool) (result spark.Session, err error)
43	GetSparkSessions(ctx context.Context, from *int32, size *int32, detailed *bool) (result spark.SessionCollection, err error)
44	GetSparkStatement(ctx context.Context, sessionID int32, statementID int32) (result spark.Statement, err error)
45	GetSparkStatements(ctx context.Context, sessionID int32) (result spark.StatementCollection, err error)
46	ResetSparkSessionTimeout(ctx context.Context, sessionID int32) (result autorest.Response, err error)
47}
48
49var _ SessionClientAPI = (*spark.SessionClient)(nil)
50