Documentation ¶
Overview ¶
Package mockarmclient implements the mock client for ARM.
Package mockarmclient is a generated GoMock package.
Index ¶
- type MockInterface
- func (m *MockInterface) CloseResponse(ctx context.Context, response *http.Response)
- func (m *MockInterface) DeleteResource(ctx context.Context, resourceID string, ...) *retry.Error
- func (m *MockInterface) DeleteResourceAsync(ctx context.Context, resourceID string, ...) (*azure.Future, *retry.Error)
- func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
- func (m *MockInterface) GetResource(ctx context.Context, resourceID string, ...) (*http.Response, *retry.Error)
- func (m *MockInterface) GetResourceWithExpandAPIVersionQuery(ctx context.Context, resourceID, expand, apiVersion string) (*http.Response, *retry.Error)
- func (m *MockInterface) GetResourceWithExpandQuery(ctx context.Context, resourceID, expand string) (*http.Response, *retry.Error)
- func (m *MockInterface) GetResourceWithQueries(ctx context.Context, resourceID string, queries map[string]any) (*http.Response, *retry.Error)
- func (m *MockInterface) HeadResource(ctx context.Context, resourceID string) (*http.Response, *retry.Error)
- func (m *MockInterface) PatchResource(ctx context.Context, resourceID string, parameters any, ...) (*http.Response, *retry.Error)
- func (m *MockInterface) PatchResourceAsync(ctx context.Context, resourceID string, parameters any, ...) (*azure.Future, *retry.Error)
- func (m *MockInterface) PostResource(ctx context.Context, resourceID, action string, parameters any, ...) (*http.Response, *retry.Error)
- func (m *MockInterface) PrepareDeleteRequest(ctx context.Context, decorators ...autorest.PrepareDecorator) (*http.Request, error)
- func (m *MockInterface) PrepareGetRequest(ctx context.Context, decorators ...autorest.PrepareDecorator) (*http.Request, error)
- func (m *MockInterface) PrepareHeadRequest(ctx context.Context, decorators ...autorest.PrepareDecorator) (*http.Request, error)
- func (m *MockInterface) PreparePostRequest(ctx context.Context, decorators ...autorest.PrepareDecorator) (*http.Request, error)
- func (m *MockInterface) PreparePutRequest(ctx context.Context, decorators ...autorest.PrepareDecorator) (*http.Request, error)
- func (m *MockInterface) PutResource(ctx context.Context, resourceID string, parameters any, ...) (*http.Response, *retry.Error)
- func (m *MockInterface) PutResourceAsync(ctx context.Context, resourceID string, parameters any, ...) (*azure.Future, *retry.Error)
- func (m *MockInterface) PutResourcesInBatches(ctx context.Context, resources map[string]any, batchSize int) map[string]*armclient.PutResourcesResponse
- func (m *MockInterface) Send(ctx context.Context, request *http.Request, ...) (*http.Response, *retry.Error)
- func (m *MockInterface) SendAsync(ctx context.Context, request *http.Request) (*azure.Future, *http.Response, *retry.Error)
- func (m *MockInterface) WaitForAsyncOperationCompletion(ctx context.Context, future *azure.Future, asyncOperationName string) error
- func (m *MockInterface) WaitForAsyncOperationResult(ctx context.Context, future *azure.Future, asyncOperationName string) (*http.Response, error)
- type MockInterfaceMockRecorder
- func (mr *MockInterfaceMockRecorder) CloseResponse(ctx, response any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) DeleteResource(ctx, resourceID any, decorators ...any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) DeleteResourceAsync(ctx, resourceID any, decorators ...any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) GetResource(ctx, resourceID any, decorators ...any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) GetResourceWithExpandAPIVersionQuery(ctx, resourceID, expand, apiVersion any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) GetResourceWithExpandQuery(ctx, resourceID, expand any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) GetResourceWithQueries(ctx, resourceID, queries any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) HeadResource(ctx, resourceID any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) PatchResource(ctx, resourceID, parameters any, decorators ...any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) PatchResourceAsync(ctx, resourceID, parameters any, decorators ...any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) PostResource(ctx, resourceID, action, parameters, queryParameters any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) PrepareDeleteRequest(ctx any, decorators ...any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) PrepareGetRequest(ctx any, decorators ...any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) PrepareHeadRequest(ctx any, decorators ...any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) PreparePostRequest(ctx any, decorators ...any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) PreparePutRequest(ctx any, decorators ...any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) PutResource(ctx, resourceID, parameters any, decorators ...any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) PutResourceAsync(ctx, resourceID, parameters any, decorators ...any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) PutResourcesInBatches(ctx, resources, batchSize any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Send(ctx, request any, decorators ...any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) SendAsync(ctx, request any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) WaitForAsyncOperationCompletion(ctx, future, asyncOperationName any) *gomock.Call
- func (mr *MockInterfaceMockRecorder) WaitForAsyncOperationResult(ctx, future, asyncOperationName any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockInterface ¶
type MockInterface struct {
// contains filtered or unexported fields
}
MockInterface is a mock of Interface interface.
func NewMockInterface ¶
func NewMockInterface(ctrl *gomock.Controller) *MockInterface
NewMockInterface creates a new mock instance.
func (*MockInterface) CloseResponse ¶
func (m *MockInterface) CloseResponse(ctx context.Context, response *http.Response)
CloseResponse mocks base method.
func (*MockInterface) DeleteResource ¶
func (m *MockInterface) DeleteResource(ctx context.Context, resourceID string, decorators ...autorest.PrepareDecorator) *retry.Error
DeleteResource mocks base method.
func (*MockInterface) DeleteResourceAsync ¶
func (m *MockInterface) DeleteResourceAsync(ctx context.Context, resourceID string, decorators ...autorest.PrepareDecorator) (*azure.Future, *retry.Error)
DeleteResourceAsync mocks base method.
func (*MockInterface) EXPECT ¶
func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInterface) GetResource ¶
func (m *MockInterface) GetResource(ctx context.Context, resourceID string, decorators ...autorest.PrepareDecorator) (*http.Response, *retry.Error)
GetResource mocks base method.
func (*MockInterface) GetResourceWithExpandAPIVersionQuery ¶ added in v1.0.22
func (m *MockInterface) GetResourceWithExpandAPIVersionQuery(ctx context.Context, resourceID, expand, apiVersion string) (*http.Response, *retry.Error)
GetResourceWithExpandAPIVersionQuery mocks base method.
func (*MockInterface) GetResourceWithExpandQuery ¶ added in v1.0.18
func (m *MockInterface) GetResourceWithExpandQuery(ctx context.Context, resourceID, expand string) (*http.Response, *retry.Error)
GetResourceWithExpandQuery mocks base method.
func (*MockInterface) GetResourceWithQueries ¶ added in v1.25.0
func (m *MockInterface) GetResourceWithQueries(ctx context.Context, resourceID string, queries map[string]any) (*http.Response, *retry.Error)
GetResourceWithQueries mocks base method.
func (*MockInterface) HeadResource ¶
func (m *MockInterface) HeadResource(ctx context.Context, resourceID string) (*http.Response, *retry.Error)
HeadResource mocks base method.
func (*MockInterface) PatchResource ¶
func (m *MockInterface) PatchResource(ctx context.Context, resourceID string, parameters any, decorators ...autorest.PrepareDecorator) (*http.Response, *retry.Error)
PatchResource mocks base method.
func (*MockInterface) PatchResourceAsync ¶ added in v1.0.16
func (m *MockInterface) PatchResourceAsync(ctx context.Context, resourceID string, parameters any, decorators ...autorest.PrepareDecorator) (*azure.Future, *retry.Error)
PatchResourceAsync mocks base method.
func (*MockInterface) PostResource ¶
func (m *MockInterface) PostResource(ctx context.Context, resourceID, action string, parameters any, queryParameters map[string]any) (*http.Response, *retry.Error)
PostResource mocks base method.
func (*MockInterface) PrepareDeleteRequest ¶
func (m *MockInterface) PrepareDeleteRequest(ctx context.Context, decorators ...autorest.PrepareDecorator) (*http.Request, error)
PrepareDeleteRequest mocks base method.
func (*MockInterface) PrepareGetRequest ¶
func (m *MockInterface) PrepareGetRequest(ctx context.Context, decorators ...autorest.PrepareDecorator) (*http.Request, error)
PrepareGetRequest mocks base method.
func (*MockInterface) PrepareHeadRequest ¶
func (m *MockInterface) PrepareHeadRequest(ctx context.Context, decorators ...autorest.PrepareDecorator) (*http.Request, error)
PrepareHeadRequest mocks base method.
func (*MockInterface) PreparePostRequest ¶
func (m *MockInterface) PreparePostRequest(ctx context.Context, decorators ...autorest.PrepareDecorator) (*http.Request, error)
PreparePostRequest mocks base method.
func (*MockInterface) PreparePutRequest ¶
func (m *MockInterface) PreparePutRequest(ctx context.Context, decorators ...autorest.PrepareDecorator) (*http.Request, error)
PreparePutRequest mocks base method.
func (*MockInterface) PutResource ¶
func (m *MockInterface) PutResource(ctx context.Context, resourceID string, parameters any, decorators ...autorest.PrepareDecorator) (*http.Response, *retry.Error)
PutResource mocks base method.
func (*MockInterface) PutResourceAsync ¶
func (m *MockInterface) PutResourceAsync(ctx context.Context, resourceID string, parameters any, decorators ...autorest.PrepareDecorator) (*azure.Future, *retry.Error)
PutResourceAsync mocks base method.
func (*MockInterface) PutResourcesInBatches ¶ added in v1.0.8
func (m *MockInterface) PutResourcesInBatches(ctx context.Context, resources map[string]any, batchSize int) map[string]*armclient.PutResourcesResponse
PutResourcesInBatches mocks base method.
func (*MockInterface) Send ¶
func (m *MockInterface) Send(ctx context.Context, request *http.Request, decorators ...autorest.SendDecorator) (*http.Response, *retry.Error)
Send mocks base method.
func (*MockInterface) SendAsync ¶
func (m *MockInterface) SendAsync(ctx context.Context, request *http.Request) (*azure.Future, *http.Response, *retry.Error)
SendAsync mocks base method.
func (*MockInterface) WaitForAsyncOperationCompletion ¶
func (m *MockInterface) WaitForAsyncOperationCompletion(ctx context.Context, future *azure.Future, asyncOperationName string) error
WaitForAsyncOperationCompletion mocks base method.
type MockInterfaceMockRecorder ¶
type MockInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockInterfaceMockRecorder is the mock recorder for MockInterface.
func (*MockInterfaceMockRecorder) CloseResponse ¶
func (mr *MockInterfaceMockRecorder) CloseResponse(ctx, response any) *gomock.Call
CloseResponse indicates an expected call of CloseResponse.
func (*MockInterfaceMockRecorder) DeleteResource ¶
func (mr *MockInterfaceMockRecorder) DeleteResource(ctx, resourceID any, decorators ...any) *gomock.Call
DeleteResource indicates an expected call of DeleteResource.
func (*MockInterfaceMockRecorder) DeleteResourceAsync ¶
func (mr *MockInterfaceMockRecorder) DeleteResourceAsync(ctx, resourceID any, decorators ...any) *gomock.Call
DeleteResourceAsync indicates an expected call of DeleteResourceAsync.
func (*MockInterfaceMockRecorder) GetResource ¶
func (mr *MockInterfaceMockRecorder) GetResource(ctx, resourceID any, decorators ...any) *gomock.Call
GetResource indicates an expected call of GetResource.
func (*MockInterfaceMockRecorder) GetResourceWithExpandAPIVersionQuery ¶ added in v1.0.22
func (mr *MockInterfaceMockRecorder) GetResourceWithExpandAPIVersionQuery(ctx, resourceID, expand, apiVersion any) *gomock.Call
GetResourceWithExpandAPIVersionQuery indicates an expected call of GetResourceWithExpandAPIVersionQuery.
func (*MockInterfaceMockRecorder) GetResourceWithExpandQuery ¶ added in v1.0.18
func (mr *MockInterfaceMockRecorder) GetResourceWithExpandQuery(ctx, resourceID, expand any) *gomock.Call
GetResourceWithExpandQuery indicates an expected call of GetResourceWithExpandQuery.
func (*MockInterfaceMockRecorder) GetResourceWithQueries ¶ added in v1.25.0
func (mr *MockInterfaceMockRecorder) GetResourceWithQueries(ctx, resourceID, queries any) *gomock.Call
GetResourceWithQueries indicates an expected call of GetResourceWithQueries.
func (*MockInterfaceMockRecorder) HeadResource ¶
func (mr *MockInterfaceMockRecorder) HeadResource(ctx, resourceID any) *gomock.Call
HeadResource indicates an expected call of HeadResource.
func (*MockInterfaceMockRecorder) PatchResource ¶
func (mr *MockInterfaceMockRecorder) PatchResource(ctx, resourceID, parameters any, decorators ...any) *gomock.Call
PatchResource indicates an expected call of PatchResource.
func (*MockInterfaceMockRecorder) PatchResourceAsync ¶ added in v1.0.16
func (mr *MockInterfaceMockRecorder) PatchResourceAsync(ctx, resourceID, parameters any, decorators ...any) *gomock.Call
PatchResourceAsync indicates an expected call of PatchResourceAsync.
func (*MockInterfaceMockRecorder) PostResource ¶
func (mr *MockInterfaceMockRecorder) PostResource(ctx, resourceID, action, parameters, queryParameters any) *gomock.Call
PostResource indicates an expected call of PostResource.
func (*MockInterfaceMockRecorder) PrepareDeleteRequest ¶
func (mr *MockInterfaceMockRecorder) PrepareDeleteRequest(ctx any, decorators ...any) *gomock.Call
PrepareDeleteRequest indicates an expected call of PrepareDeleteRequest.
func (*MockInterfaceMockRecorder) PrepareGetRequest ¶
func (mr *MockInterfaceMockRecorder) PrepareGetRequest(ctx any, decorators ...any) *gomock.Call
PrepareGetRequest indicates an expected call of PrepareGetRequest.
func (*MockInterfaceMockRecorder) PrepareHeadRequest ¶
func (mr *MockInterfaceMockRecorder) PrepareHeadRequest(ctx any, decorators ...any) *gomock.Call
PrepareHeadRequest indicates an expected call of PrepareHeadRequest.
func (*MockInterfaceMockRecorder) PreparePostRequest ¶
func (mr *MockInterfaceMockRecorder) PreparePostRequest(ctx any, decorators ...any) *gomock.Call
PreparePostRequest indicates an expected call of PreparePostRequest.
func (*MockInterfaceMockRecorder) PreparePutRequest ¶
func (mr *MockInterfaceMockRecorder) PreparePutRequest(ctx any, decorators ...any) *gomock.Call
PreparePutRequest indicates an expected call of PreparePutRequest.
func (*MockInterfaceMockRecorder) PutResource ¶
func (mr *MockInterfaceMockRecorder) PutResource(ctx, resourceID, parameters any, decorators ...any) *gomock.Call
PutResource indicates an expected call of PutResource.
func (*MockInterfaceMockRecorder) PutResourceAsync ¶
func (mr *MockInterfaceMockRecorder) PutResourceAsync(ctx, resourceID, parameters any, decorators ...any) *gomock.Call
PutResourceAsync indicates an expected call of PutResourceAsync.
func (*MockInterfaceMockRecorder) PutResourcesInBatches ¶ added in v1.0.8
func (mr *MockInterfaceMockRecorder) PutResourcesInBatches(ctx, resources, batchSize any) *gomock.Call
PutResourcesInBatches indicates an expected call of PutResourcesInBatches.
func (*MockInterfaceMockRecorder) Send ¶
func (mr *MockInterfaceMockRecorder) Send(ctx, request any, decorators ...any) *gomock.Call
Send indicates an expected call of Send.
func (*MockInterfaceMockRecorder) SendAsync ¶
func (mr *MockInterfaceMockRecorder) SendAsync(ctx, request any) *gomock.Call
SendAsync indicates an expected call of SendAsync.
func (*MockInterfaceMockRecorder) WaitForAsyncOperationCompletion ¶
func (mr *MockInterfaceMockRecorder) WaitForAsyncOperationCompletion(ctx, future, asyncOperationName any) *gomock.Call
WaitForAsyncOperationCompletion indicates an expected call of WaitForAsyncOperationCompletion.
func (*MockInterfaceMockRecorder) WaitForAsyncOperationResult ¶
func (mr *MockInterfaceMockRecorder) WaitForAsyncOperationResult(ctx, future, asyncOperationName any) *gomock.Call
WaitForAsyncOperationResult indicates an expected call of WaitForAsyncOperationResult.