Documentation
¶
Index ¶
- type AssignmentsServer
- type AssignmentsServerTransport
- type DataPolicyManifestsServer
- type DataPolicyManifestsServerTransport
- type DefinitionsServer
- type DefinitionsServerTransport
- type ExemptionsServer
- type ExemptionsServerTransport
- type ServerFactory
- type ServerFactoryTransport
- type SetDefinitionsServer
- type SetDefinitionsServerTransport
- type VariableValuesServer
- type VariableValuesServerTransport
- type VariablesServer
- type VariablesServerTransport
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssignmentsServer ¶
type AssignmentsServer struct { // Create is the fake for method AssignmentsClient.Create // HTTP status codes to indicate success: http.StatusCreated Create func(ctx context.Context, scope string, policyAssignmentName string, parameters armpolicy.Assignment, options *armpolicy.AssignmentsClientCreateOptions) (resp azfake.Responder[armpolicy.AssignmentsClientCreateResponse], errResp azfake.ErrorResponder) // CreateByID is the fake for method AssignmentsClient.CreateByID // HTTP status codes to indicate success: http.StatusCreated CreateByID func(ctx context.Context, policyAssignmentID string, parameters armpolicy.Assignment, options *armpolicy.AssignmentsClientCreateByIDOptions) (resp azfake.Responder[armpolicy.AssignmentsClientCreateByIDResponse], errResp azfake.ErrorResponder) // Delete is the fake for method AssignmentsClient.Delete // HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent Delete func(ctx context.Context, scope string, policyAssignmentName string, options *armpolicy.AssignmentsClientDeleteOptions) (resp azfake.Responder[armpolicy.AssignmentsClientDeleteResponse], errResp azfake.ErrorResponder) // DeleteByID is the fake for method AssignmentsClient.DeleteByID // HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent DeleteByID func(ctx context.Context, policyAssignmentID string, options *armpolicy.AssignmentsClientDeleteByIDOptions) (resp azfake.Responder[armpolicy.AssignmentsClientDeleteByIDResponse], errResp azfake.ErrorResponder) // Get is the fake for method AssignmentsClient.Get // HTTP status codes to indicate success: http.StatusOK Get func(ctx context.Context, scope string, policyAssignmentName string, options *armpolicy.AssignmentsClientGetOptions) (resp azfake.Responder[armpolicy.AssignmentsClientGetResponse], errResp azfake.ErrorResponder) // GetByID is the fake for method AssignmentsClient.GetByID // HTTP status codes to indicate success: http.StatusOK GetByID func(ctx context.Context, policyAssignmentID string, options *armpolicy.AssignmentsClientGetByIDOptions) (resp azfake.Responder[armpolicy.AssignmentsClientGetByIDResponse], errResp azfake.ErrorResponder) // NewListPager is the fake for method AssignmentsClient.NewListPager // HTTP status codes to indicate success: http.StatusOK NewListPager func(options *armpolicy.AssignmentsClientListOptions) (resp azfake.PagerResponder[armpolicy.AssignmentsClientListResponse]) // NewListForManagementGroupPager is the fake for method AssignmentsClient.NewListForManagementGroupPager // HTTP status codes to indicate success: http.StatusOK NewListForManagementGroupPager func(managementGroupID string, options *armpolicy.AssignmentsClientListForManagementGroupOptions) (resp azfake.PagerResponder[armpolicy.AssignmentsClientListForManagementGroupResponse]) // NewListForResourcePager is the fake for method AssignmentsClient.NewListForResourcePager // HTTP status codes to indicate success: http.StatusOK NewListForResourcePager func(resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, options *armpolicy.AssignmentsClientListForResourceOptions) (resp azfake.PagerResponder[armpolicy.AssignmentsClientListForResourceResponse]) // NewListForResourceGroupPager is the fake for method AssignmentsClient.NewListForResourceGroupPager // HTTP status codes to indicate success: http.StatusOK NewListForResourceGroupPager func(resourceGroupName string, options *armpolicy.AssignmentsClientListForResourceGroupOptions) (resp azfake.PagerResponder[armpolicy.AssignmentsClientListForResourceGroupResponse]) // Update is the fake for method AssignmentsClient.Update // HTTP status codes to indicate success: http.StatusOK Update func(ctx context.Context, scope string, policyAssignmentName string, parameters armpolicy.AssignmentUpdate, options *armpolicy.AssignmentsClientUpdateOptions) (resp azfake.Responder[armpolicy.AssignmentsClientUpdateResponse], errResp azfake.ErrorResponder) // UpdateByID is the fake for method AssignmentsClient.UpdateByID // HTTP status codes to indicate success: http.StatusOK UpdateByID func(ctx context.Context, policyAssignmentID string, parameters armpolicy.AssignmentUpdate, options *armpolicy.AssignmentsClientUpdateByIDOptions) (resp azfake.Responder[armpolicy.AssignmentsClientUpdateByIDResponse], errResp azfake.ErrorResponder) }
AssignmentsServer is a fake server for instances of the armpolicy.AssignmentsClient type.
type AssignmentsServerTransport ¶
type AssignmentsServerTransport struct {
// contains filtered or unexported fields
}
AssignmentsServerTransport connects instances of armpolicy.AssignmentsClient to instances of AssignmentsServer. Don't use this type directly, use NewAssignmentsServerTransport instead.
func NewAssignmentsServerTransport ¶
func NewAssignmentsServerTransport(srv *AssignmentsServer) *AssignmentsServerTransport
NewAssignmentsServerTransport creates a new instance of AssignmentsServerTransport with the provided implementation. The returned AssignmentsServerTransport instance is connected to an instance of armpolicy.AssignmentsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.
type DataPolicyManifestsServer ¶
type DataPolicyManifestsServer struct { // GetByPolicyMode is the fake for method DataPolicyManifestsClient.GetByPolicyMode // HTTP status codes to indicate success: http.StatusOK GetByPolicyMode func(ctx context.Context, policyMode string, options *armpolicy.DataPolicyManifestsClientGetByPolicyModeOptions) (resp azfake.Responder[armpolicy.DataPolicyManifestsClientGetByPolicyModeResponse], errResp azfake.ErrorResponder) // NewListPager is the fake for method DataPolicyManifestsClient.NewListPager // HTTP status codes to indicate success: http.StatusOK NewListPager func(options *armpolicy.DataPolicyManifestsClientListOptions) (resp azfake.PagerResponder[armpolicy.DataPolicyManifestsClientListResponse]) }
DataPolicyManifestsServer is a fake server for instances of the armpolicy.DataPolicyManifestsClient type.
type DataPolicyManifestsServerTransport ¶
type DataPolicyManifestsServerTransport struct {
// contains filtered or unexported fields
}
DataPolicyManifestsServerTransport connects instances of armpolicy.DataPolicyManifestsClient to instances of DataPolicyManifestsServer. Don't use this type directly, use NewDataPolicyManifestsServerTransport instead.
func NewDataPolicyManifestsServerTransport ¶
func NewDataPolicyManifestsServerTransport(srv *DataPolicyManifestsServer) *DataPolicyManifestsServerTransport
NewDataPolicyManifestsServerTransport creates a new instance of DataPolicyManifestsServerTransport with the provided implementation. The returned DataPolicyManifestsServerTransport instance is connected to an instance of armpolicy.DataPolicyManifestsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.
type DefinitionsServer ¶
type DefinitionsServer struct { // CreateOrUpdate is the fake for method DefinitionsClient.CreateOrUpdate // HTTP status codes to indicate success: http.StatusCreated CreateOrUpdate func(ctx context.Context, policyDefinitionName string, parameters armpolicy.Definition, options *armpolicy.DefinitionsClientCreateOrUpdateOptions) (resp azfake.Responder[armpolicy.DefinitionsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder) // CreateOrUpdateAtManagementGroup is the fake for method DefinitionsClient.CreateOrUpdateAtManagementGroup // HTTP status codes to indicate success: http.StatusCreated CreateOrUpdateAtManagementGroup func(ctx context.Context, policyDefinitionName string, managementGroupID string, parameters armpolicy.Definition, options *armpolicy.DefinitionsClientCreateOrUpdateAtManagementGroupOptions) (resp azfake.Responder[armpolicy.DefinitionsClientCreateOrUpdateAtManagementGroupResponse], errResp azfake.ErrorResponder) // Delete is the fake for method DefinitionsClient.Delete // HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent Delete func(ctx context.Context, policyDefinitionName string, options *armpolicy.DefinitionsClientDeleteOptions) (resp azfake.Responder[armpolicy.DefinitionsClientDeleteResponse], errResp azfake.ErrorResponder) // DeleteAtManagementGroup is the fake for method DefinitionsClient.DeleteAtManagementGroup // HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent DeleteAtManagementGroup func(ctx context.Context, policyDefinitionName string, managementGroupID string, options *armpolicy.DefinitionsClientDeleteAtManagementGroupOptions) (resp azfake.Responder[armpolicy.DefinitionsClientDeleteAtManagementGroupResponse], errResp azfake.ErrorResponder) // Get is the fake for method DefinitionsClient.Get // HTTP status codes to indicate success: http.StatusOK Get func(ctx context.Context, policyDefinitionName string, options *armpolicy.DefinitionsClientGetOptions) (resp azfake.Responder[armpolicy.DefinitionsClientGetResponse], errResp azfake.ErrorResponder) // GetAtManagementGroup is the fake for method DefinitionsClient.GetAtManagementGroup // HTTP status codes to indicate success: http.StatusOK GetAtManagementGroup func(ctx context.Context, policyDefinitionName string, managementGroupID string, options *armpolicy.DefinitionsClientGetAtManagementGroupOptions) (resp azfake.Responder[armpolicy.DefinitionsClientGetAtManagementGroupResponse], errResp azfake.ErrorResponder) // GetBuiltIn is the fake for method DefinitionsClient.GetBuiltIn // HTTP status codes to indicate success: http.StatusOK GetBuiltIn func(ctx context.Context, policyDefinitionName string, options *armpolicy.DefinitionsClientGetBuiltInOptions) (resp azfake.Responder[armpolicy.DefinitionsClientGetBuiltInResponse], errResp azfake.ErrorResponder) // NewListPager is the fake for method DefinitionsClient.NewListPager // HTTP status codes to indicate success: http.StatusOK NewListPager func(options *armpolicy.DefinitionsClientListOptions) (resp azfake.PagerResponder[armpolicy.DefinitionsClientListResponse]) // NewListBuiltInPager is the fake for method DefinitionsClient.NewListBuiltInPager // HTTP status codes to indicate success: http.StatusOK NewListBuiltInPager func(options *armpolicy.DefinitionsClientListBuiltInOptions) (resp azfake.PagerResponder[armpolicy.DefinitionsClientListBuiltInResponse]) // NewListByManagementGroupPager is the fake for method DefinitionsClient.NewListByManagementGroupPager // HTTP status codes to indicate success: http.StatusOK NewListByManagementGroupPager func(managementGroupID string, options *armpolicy.DefinitionsClientListByManagementGroupOptions) (resp azfake.PagerResponder[armpolicy.DefinitionsClientListByManagementGroupResponse]) }
DefinitionsServer is a fake server for instances of the armpolicy.DefinitionsClient type.
type DefinitionsServerTransport ¶
type DefinitionsServerTransport struct {
// contains filtered or unexported fields
}
DefinitionsServerTransport connects instances of armpolicy.DefinitionsClient to instances of DefinitionsServer. Don't use this type directly, use NewDefinitionsServerTransport instead.
func NewDefinitionsServerTransport ¶
func NewDefinitionsServerTransport(srv *DefinitionsServer) *DefinitionsServerTransport
NewDefinitionsServerTransport creates a new instance of DefinitionsServerTransport with the provided implementation. The returned DefinitionsServerTransport instance is connected to an instance of armpolicy.DefinitionsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.
type ExemptionsServer ¶
type ExemptionsServer struct { // CreateOrUpdate is the fake for method ExemptionsClient.CreateOrUpdate // HTTP status codes to indicate success: http.StatusOK, http.StatusCreated CreateOrUpdate func(ctx context.Context, scope string, policyExemptionName string, parameters armpolicy.Exemption, options *armpolicy.ExemptionsClientCreateOrUpdateOptions) (resp azfake.Responder[armpolicy.ExemptionsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder) // Delete is the fake for method ExemptionsClient.Delete // HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent Delete func(ctx context.Context, scope string, policyExemptionName string, options *armpolicy.ExemptionsClientDeleteOptions) (resp azfake.Responder[armpolicy.ExemptionsClientDeleteResponse], errResp azfake.ErrorResponder) // Get is the fake for method ExemptionsClient.Get // HTTP status codes to indicate success: http.StatusOK Get func(ctx context.Context, scope string, policyExemptionName string, options *armpolicy.ExemptionsClientGetOptions) (resp azfake.Responder[armpolicy.ExemptionsClientGetResponse], errResp azfake.ErrorResponder) // NewListPager is the fake for method ExemptionsClient.NewListPager // HTTP status codes to indicate success: http.StatusOK NewListPager func(options *armpolicy.ExemptionsClientListOptions) (resp azfake.PagerResponder[armpolicy.ExemptionsClientListResponse]) // NewListForManagementGroupPager is the fake for method ExemptionsClient.NewListForManagementGroupPager // HTTP status codes to indicate success: http.StatusOK NewListForManagementGroupPager func(managementGroupID string, options *armpolicy.ExemptionsClientListForManagementGroupOptions) (resp azfake.PagerResponder[armpolicy.ExemptionsClientListForManagementGroupResponse]) // NewListForResourcePager is the fake for method ExemptionsClient.NewListForResourcePager // HTTP status codes to indicate success: http.StatusOK NewListForResourcePager func(resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, options *armpolicy.ExemptionsClientListForResourceOptions) (resp azfake.PagerResponder[armpolicy.ExemptionsClientListForResourceResponse]) // NewListForResourceGroupPager is the fake for method ExemptionsClient.NewListForResourceGroupPager // HTTP status codes to indicate success: http.StatusOK NewListForResourceGroupPager func(resourceGroupName string, options *armpolicy.ExemptionsClientListForResourceGroupOptions) (resp azfake.PagerResponder[armpolicy.ExemptionsClientListForResourceGroupResponse]) // Update is the fake for method ExemptionsClient.Update // HTTP status codes to indicate success: http.StatusOK Update func(ctx context.Context, scope string, policyExemptionName string, parameters armpolicy.ExemptionUpdate, options *armpolicy.ExemptionsClientUpdateOptions) (resp azfake.Responder[armpolicy.ExemptionsClientUpdateResponse], errResp azfake.ErrorResponder) }
ExemptionsServer is a fake server for instances of the armpolicy.ExemptionsClient type.
type ExemptionsServerTransport ¶
type ExemptionsServerTransport struct {
// contains filtered or unexported fields
}
ExemptionsServerTransport connects instances of armpolicy.ExemptionsClient to instances of ExemptionsServer. Don't use this type directly, use NewExemptionsServerTransport instead.
func NewExemptionsServerTransport ¶
func NewExemptionsServerTransport(srv *ExemptionsServer) *ExemptionsServerTransport
NewExemptionsServerTransport creates a new instance of ExemptionsServerTransport with the provided implementation. The returned ExemptionsServerTransport instance is connected to an instance of armpolicy.ExemptionsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.
type ServerFactory ¶
type ServerFactory struct { AssignmentsServer AssignmentsServer DataPolicyManifestsServer DataPolicyManifestsServer DefinitionsServer DefinitionsServer ExemptionsServer ExemptionsServer SetDefinitionsServer SetDefinitionsServer VariableValuesServer VariableValuesServer VariablesServer VariablesServer }
ServerFactory is a fake server for instances of the armpolicy.ClientFactory type.
type ServerFactoryTransport ¶
type ServerFactoryTransport struct {
// contains filtered or unexported fields
}
ServerFactoryTransport connects instances of armpolicy.ClientFactory to instances of ServerFactory. Don't use this type directly, use NewServerFactoryTransport instead.
func NewServerFactoryTransport ¶
func NewServerFactoryTransport(srv *ServerFactory) *ServerFactoryTransport
NewServerFactoryTransport creates a new instance of ServerFactoryTransport with the provided implementation. The returned ServerFactoryTransport instance is connected to an instance of armpolicy.ClientFactory via the azcore.ClientOptions.Transporter field in the client's constructor parameters.
type SetDefinitionsServer ¶
type SetDefinitionsServer struct { // CreateOrUpdate is the fake for method SetDefinitionsClient.CreateOrUpdate // HTTP status codes to indicate success: http.StatusOK, http.StatusCreated CreateOrUpdate func(ctx context.Context, policySetDefinitionName string, parameters armpolicy.SetDefinition, options *armpolicy.SetDefinitionsClientCreateOrUpdateOptions) (resp azfake.Responder[armpolicy.SetDefinitionsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder) // CreateOrUpdateAtManagementGroup is the fake for method SetDefinitionsClient.CreateOrUpdateAtManagementGroup // HTTP status codes to indicate success: http.StatusOK, http.StatusCreated CreateOrUpdateAtManagementGroup func(ctx context.Context, policySetDefinitionName string, managementGroupID string, parameters armpolicy.SetDefinition, options *armpolicy.SetDefinitionsClientCreateOrUpdateAtManagementGroupOptions) (resp azfake.Responder[armpolicy.SetDefinitionsClientCreateOrUpdateAtManagementGroupResponse], errResp azfake.ErrorResponder) // Delete is the fake for method SetDefinitionsClient.Delete // HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent Delete func(ctx context.Context, policySetDefinitionName string, options *armpolicy.SetDefinitionsClientDeleteOptions) (resp azfake.Responder[armpolicy.SetDefinitionsClientDeleteResponse], errResp azfake.ErrorResponder) // DeleteAtManagementGroup is the fake for method SetDefinitionsClient.DeleteAtManagementGroup // HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent DeleteAtManagementGroup func(ctx context.Context, policySetDefinitionName string, managementGroupID string, options *armpolicy.SetDefinitionsClientDeleteAtManagementGroupOptions) (resp azfake.Responder[armpolicy.SetDefinitionsClientDeleteAtManagementGroupResponse], errResp azfake.ErrorResponder) // Get is the fake for method SetDefinitionsClient.Get // HTTP status codes to indicate success: http.StatusOK Get func(ctx context.Context, policySetDefinitionName string, options *armpolicy.SetDefinitionsClientGetOptions) (resp azfake.Responder[armpolicy.SetDefinitionsClientGetResponse], errResp azfake.ErrorResponder) // GetAtManagementGroup is the fake for method SetDefinitionsClient.GetAtManagementGroup // HTTP status codes to indicate success: http.StatusOK GetAtManagementGroup func(ctx context.Context, policySetDefinitionName string, managementGroupID string, options *armpolicy.SetDefinitionsClientGetAtManagementGroupOptions) (resp azfake.Responder[armpolicy.SetDefinitionsClientGetAtManagementGroupResponse], errResp azfake.ErrorResponder) // GetBuiltIn is the fake for method SetDefinitionsClient.GetBuiltIn // HTTP status codes to indicate success: http.StatusOK GetBuiltIn func(ctx context.Context, policySetDefinitionName string, options *armpolicy.SetDefinitionsClientGetBuiltInOptions) (resp azfake.Responder[armpolicy.SetDefinitionsClientGetBuiltInResponse], errResp azfake.ErrorResponder) // NewListPager is the fake for method SetDefinitionsClient.NewListPager // HTTP status codes to indicate success: http.StatusOK NewListPager func(options *armpolicy.SetDefinitionsClientListOptions) (resp azfake.PagerResponder[armpolicy.SetDefinitionsClientListResponse]) // NewListBuiltInPager is the fake for method SetDefinitionsClient.NewListBuiltInPager // HTTP status codes to indicate success: http.StatusOK NewListBuiltInPager func(options *armpolicy.SetDefinitionsClientListBuiltInOptions) (resp azfake.PagerResponder[armpolicy.SetDefinitionsClientListBuiltInResponse]) // NewListByManagementGroupPager is the fake for method SetDefinitionsClient.NewListByManagementGroupPager // HTTP status codes to indicate success: http.StatusOK NewListByManagementGroupPager func(managementGroupID string, options *armpolicy.SetDefinitionsClientListByManagementGroupOptions) (resp azfake.PagerResponder[armpolicy.SetDefinitionsClientListByManagementGroupResponse]) }
SetDefinitionsServer is a fake server for instances of the armpolicy.SetDefinitionsClient type.
type SetDefinitionsServerTransport ¶
type SetDefinitionsServerTransport struct {
// contains filtered or unexported fields
}
SetDefinitionsServerTransport connects instances of armpolicy.SetDefinitionsClient to instances of SetDefinitionsServer. Don't use this type directly, use NewSetDefinitionsServerTransport instead.
func NewSetDefinitionsServerTransport ¶
func NewSetDefinitionsServerTransport(srv *SetDefinitionsServer) *SetDefinitionsServerTransport
NewSetDefinitionsServerTransport creates a new instance of SetDefinitionsServerTransport with the provided implementation. The returned SetDefinitionsServerTransport instance is connected to an instance of armpolicy.SetDefinitionsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.
type VariableValuesServer ¶
type VariableValuesServer struct { // CreateOrUpdate is the fake for method VariableValuesClient.CreateOrUpdate // HTTP status codes to indicate success: http.StatusOK, http.StatusCreated CreateOrUpdate func(ctx context.Context, variableName string, variableValueName string, parameters armpolicy.VariableValue, options *armpolicy.VariableValuesClientCreateOrUpdateOptions) (resp azfake.Responder[armpolicy.VariableValuesClientCreateOrUpdateResponse], errResp azfake.ErrorResponder) // CreateOrUpdateAtManagementGroup is the fake for method VariableValuesClient.CreateOrUpdateAtManagementGroup // HTTP status codes to indicate success: http.StatusOK, http.StatusCreated CreateOrUpdateAtManagementGroup func(ctx context.Context, managementGroupID string, variableName string, variableValueName string, parameters armpolicy.VariableValue, options *armpolicy.VariableValuesClientCreateOrUpdateAtManagementGroupOptions) (resp azfake.Responder[armpolicy.VariableValuesClientCreateOrUpdateAtManagementGroupResponse], errResp azfake.ErrorResponder) // Delete is the fake for method VariableValuesClient.Delete // HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent Delete func(ctx context.Context, variableName string, variableValueName string, options *armpolicy.VariableValuesClientDeleteOptions) (resp azfake.Responder[armpolicy.VariableValuesClientDeleteResponse], errResp azfake.ErrorResponder) // DeleteAtManagementGroup is the fake for method VariableValuesClient.DeleteAtManagementGroup // HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent DeleteAtManagementGroup func(ctx context.Context, managementGroupID string, variableName string, variableValueName string, options *armpolicy.VariableValuesClientDeleteAtManagementGroupOptions) (resp azfake.Responder[armpolicy.VariableValuesClientDeleteAtManagementGroupResponse], errResp azfake.ErrorResponder) // Get is the fake for method VariableValuesClient.Get // HTTP status codes to indicate success: http.StatusOK Get func(ctx context.Context, variableName string, variableValueName string, options *armpolicy.VariableValuesClientGetOptions) (resp azfake.Responder[armpolicy.VariableValuesClientGetResponse], errResp azfake.ErrorResponder) // GetAtManagementGroup is the fake for method VariableValuesClient.GetAtManagementGroup // HTTP status codes to indicate success: http.StatusOK GetAtManagementGroup func(ctx context.Context, managementGroupID string, variableName string, variableValueName string, options *armpolicy.VariableValuesClientGetAtManagementGroupOptions) (resp azfake.Responder[armpolicy.VariableValuesClientGetAtManagementGroupResponse], errResp azfake.ErrorResponder) // NewListPager is the fake for method VariableValuesClient.NewListPager // HTTP status codes to indicate success: http.StatusOK NewListPager func(variableName string, options *armpolicy.VariableValuesClientListOptions) (resp azfake.PagerResponder[armpolicy.VariableValuesClientListResponse]) // NewListForManagementGroupPager is the fake for method VariableValuesClient.NewListForManagementGroupPager // HTTP status codes to indicate success: http.StatusOK NewListForManagementGroupPager func(managementGroupID string, variableName string, options *armpolicy.VariableValuesClientListForManagementGroupOptions) (resp azfake.PagerResponder[armpolicy.VariableValuesClientListForManagementGroupResponse]) }
VariableValuesServer is a fake server for instances of the armpolicy.VariableValuesClient type.
type VariableValuesServerTransport ¶
type VariableValuesServerTransport struct {
// contains filtered or unexported fields
}
VariableValuesServerTransport connects instances of armpolicy.VariableValuesClient to instances of VariableValuesServer. Don't use this type directly, use NewVariableValuesServerTransport instead.
func NewVariableValuesServerTransport ¶
func NewVariableValuesServerTransport(srv *VariableValuesServer) *VariableValuesServerTransport
NewVariableValuesServerTransport creates a new instance of VariableValuesServerTransport with the provided implementation. The returned VariableValuesServerTransport instance is connected to an instance of armpolicy.VariableValuesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.
type VariablesServer ¶
type VariablesServer struct { // CreateOrUpdate is the fake for method VariablesClient.CreateOrUpdate // HTTP status codes to indicate success: http.StatusOK, http.StatusCreated CreateOrUpdate func(ctx context.Context, variableName string, parameters armpolicy.Variable, options *armpolicy.VariablesClientCreateOrUpdateOptions) (resp azfake.Responder[armpolicy.VariablesClientCreateOrUpdateResponse], errResp azfake.ErrorResponder) // CreateOrUpdateAtManagementGroup is the fake for method VariablesClient.CreateOrUpdateAtManagementGroup // HTTP status codes to indicate success: http.StatusOK, http.StatusCreated CreateOrUpdateAtManagementGroup func(ctx context.Context, managementGroupID string, variableName string, parameters armpolicy.Variable, options *armpolicy.VariablesClientCreateOrUpdateAtManagementGroupOptions) (resp azfake.Responder[armpolicy.VariablesClientCreateOrUpdateAtManagementGroupResponse], errResp azfake.ErrorResponder) // Delete is the fake for method VariablesClient.Delete // HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent Delete func(ctx context.Context, variableName string, options *armpolicy.VariablesClientDeleteOptions) (resp azfake.Responder[armpolicy.VariablesClientDeleteResponse], errResp azfake.ErrorResponder) // DeleteAtManagementGroup is the fake for method VariablesClient.DeleteAtManagementGroup // HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent DeleteAtManagementGroup func(ctx context.Context, managementGroupID string, variableName string, options *armpolicy.VariablesClientDeleteAtManagementGroupOptions) (resp azfake.Responder[armpolicy.VariablesClientDeleteAtManagementGroupResponse], errResp azfake.ErrorResponder) // Get is the fake for method VariablesClient.Get // HTTP status codes to indicate success: http.StatusOK Get func(ctx context.Context, variableName string, options *armpolicy.VariablesClientGetOptions) (resp azfake.Responder[armpolicy.VariablesClientGetResponse], errResp azfake.ErrorResponder) // GetAtManagementGroup is the fake for method VariablesClient.GetAtManagementGroup // HTTP status codes to indicate success: http.StatusOK GetAtManagementGroup func(ctx context.Context, managementGroupID string, variableName string, options *armpolicy.VariablesClientGetAtManagementGroupOptions) (resp azfake.Responder[armpolicy.VariablesClientGetAtManagementGroupResponse], errResp azfake.ErrorResponder) // NewListPager is the fake for method VariablesClient.NewListPager // HTTP status codes to indicate success: http.StatusOK NewListPager func(options *armpolicy.VariablesClientListOptions) (resp azfake.PagerResponder[armpolicy.VariablesClientListResponse]) // NewListForManagementGroupPager is the fake for method VariablesClient.NewListForManagementGroupPager // HTTP status codes to indicate success: http.StatusOK NewListForManagementGroupPager func(managementGroupID string, options *armpolicy.VariablesClientListForManagementGroupOptions) (resp azfake.PagerResponder[armpolicy.VariablesClientListForManagementGroupResponse]) }
VariablesServer is a fake server for instances of the armpolicy.VariablesClient type.
type VariablesServerTransport ¶
type VariablesServerTransport struct {
// contains filtered or unexported fields
}
VariablesServerTransport connects instances of armpolicy.VariablesClient to instances of VariablesServer. Don't use this type directly, use NewVariablesServerTransport instead.
func NewVariablesServerTransport ¶
func NewVariablesServerTransport(srv *VariablesServer) *VariablesServerTransport
NewVariablesServerTransport creates a new instance of VariablesServerTransport with the provided implementation. The returned VariablesServerTransport instance is connected to an instance of armpolicy.VariablesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.