README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/exposurecontrol
Documentation
The exposurecontrol
SDK allows for interaction with the Azure Resource Manager Service datafactory
(API Version 2018-06-01
).
This readme covers example usages, but further information on using this SDK can be found in the project root.
Import Path
import "github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/exposurecontrol"
Client Initialization
client := exposurecontrol.NewExposureControlClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: ExposureControlClient.GetFeatureValue
ctx := context.TODO()
id := exposurecontrol.NewLocationID("12345678-1234-9876-4563-123456789012", "locationIdValue")
payload := exposurecontrol.ExposureControlRequest{
// ...
}
read, err := client.GetFeatureValue(ctx, id, payload)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: ExposureControlClient.GetFeatureValueByFactory
ctx := context.TODO()
id := exposurecontrol.NewFactoryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "factoryValue")
payload := exposurecontrol.ExposureControlRequest{
// ...
}
read, err := client.GetFeatureValueByFactory(ctx, id, payload)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: ExposureControlClient.QueryFeatureValuesByFactory
ctx := context.TODO()
id := exposurecontrol.NewFactoryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "factoryValue")
payload := exposurecontrol.ExposureControlBatchRequest{
// ...
}
read, err := client.QueryFeatureValuesByFactory(ctx, id, payload)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Documentation ¶
Index ¶
- func ValidateFactoryID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateLocationID(input interface{}, key string) (warnings []string, errors []error)
- type ExposureControlBatchRequest
- type ExposureControlBatchResponse
- type ExposureControlClient
- func (c ExposureControlClient) GetFeatureValue(ctx context.Context, id LocationId, input ExposureControlRequest) (result GetFeatureValueOperationResponse, err error)
- func (c ExposureControlClient) GetFeatureValueByFactory(ctx context.Context, id FactoryId, input ExposureControlRequest) (result GetFeatureValueByFactoryOperationResponse, err error)
- func (c ExposureControlClient) QueryFeatureValuesByFactory(ctx context.Context, id FactoryId, input ExposureControlBatchRequest) (result QueryFeatureValuesByFactoryOperationResponse, err error)
- type ExposureControlRequest
- type ExposureControlResponse
- type FactoryId
- type GetFeatureValueByFactoryOperationResponse
- type GetFeatureValueOperationResponse
- type LocationId
- type QueryFeatureValuesByFactoryOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateFactoryID ¶
ValidateFactoryID checks that 'input' can be parsed as a Factory ID
func ValidateLocationID ¶
ValidateLocationID checks that 'input' can be parsed as a Location ID
Types ¶
type ExposureControlBatchRequest ¶
type ExposureControlBatchRequest struct {
ExposureControlRequests []ExposureControlRequest `json:"exposureControlRequests"`
}
type ExposureControlBatchResponse ¶
type ExposureControlBatchResponse struct {
ExposureControlResponses []ExposureControlResponse `json:"exposureControlResponses"`
}
type ExposureControlClient ¶
type ExposureControlClient struct {
Client *resourcemanager.Client
}
func NewExposureControlClientWithBaseURI ¶
func NewExposureControlClientWithBaseURI(sdkApi sdkEnv.Api) (*ExposureControlClient, error)
func (ExposureControlClient) GetFeatureValue ¶
func (c ExposureControlClient) GetFeatureValue(ctx context.Context, id LocationId, input ExposureControlRequest) (result GetFeatureValueOperationResponse, err error)
GetFeatureValue ...
func (ExposureControlClient) GetFeatureValueByFactory ¶
func (c ExposureControlClient) GetFeatureValueByFactory(ctx context.Context, id FactoryId, input ExposureControlRequest) (result GetFeatureValueByFactoryOperationResponse, err error)
GetFeatureValueByFactory ...
func (ExposureControlClient) QueryFeatureValuesByFactory ¶
func (c ExposureControlClient) QueryFeatureValuesByFactory(ctx context.Context, id FactoryId, input ExposureControlBatchRequest) (result QueryFeatureValuesByFactoryOperationResponse, err error)
QueryFeatureValuesByFactory ...
type ExposureControlRequest ¶
type ExposureControlResponse ¶
type FactoryId ¶
FactoryId is a struct representing the Resource ID for a Factory
func NewFactoryID ¶
NewFactoryID returns a new FactoryId struct
func ParseFactoryID ¶
ParseFactoryID parses 'input' into a FactoryId
func ParseFactoryIDInsensitively ¶
ParseFactoryIDInsensitively parses 'input' case-insensitively into a FactoryId note: this method should only be used for API response data and not user input
func (*FactoryId) FromParseResult ¶
func (id *FactoryId) FromParseResult(input resourceids.ParseResult) error
func (FactoryId) Segments ¶
func (id FactoryId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Factory ID
type GetFeatureValueByFactoryOperationResponse ¶
type GetFeatureValueByFactoryOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ExposureControlResponse }
type GetFeatureValueOperationResponse ¶
type GetFeatureValueOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ExposureControlResponse }
type LocationId ¶
LocationId is a struct representing the Resource ID for a Location
func NewLocationID ¶
func NewLocationID(subscriptionId string, locationId string) LocationId
NewLocationID returns a new LocationId struct
func ParseLocationID ¶
func ParseLocationID(input string) (*LocationId, error)
ParseLocationID parses 'input' into a LocationId
func ParseLocationIDInsensitively ¶
func ParseLocationIDInsensitively(input string) (*LocationId, error)
ParseLocationIDInsensitively parses 'input' case-insensitively into a LocationId note: this method should only be used for API response data and not user input
func (*LocationId) FromParseResult ¶
func (id *LocationId) FromParseResult(input resourceids.ParseResult) error
func (LocationId) Segments ¶
func (id LocationId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Location ID
func (LocationId) String ¶
func (id LocationId) String() string
String returns a human-readable description of this Location ID
type QueryFeatureValuesByFactoryOperationResponse ¶
type QueryFeatureValuesByFactoryOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ExposureControlBatchResponse }