exposurecontrol

package
v0.20230518.1140509 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 18, 2023 License: MPL-2.0 Imports: 9 Imported by: 1

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateFactoryID

func ValidateFactoryID(input interface{}, key string) (warnings []string, errors []error)

ValidateFactoryID checks that 'input' can be parsed as a Factory ID

func ValidateLocationID

func ValidateLocationID(input interface{}, key string) (warnings []string, errors []error)

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(api environments.Api) (*ExposureControlClient, error)

func (ExposureControlClient) GetFeatureValue

GetFeatureValue ...

func (ExposureControlClient) GetFeatureValueByFactory

GetFeatureValueByFactory ...

func (ExposureControlClient) QueryFeatureValuesByFactory

QueryFeatureValuesByFactory ...

type ExposureControlRequest

type ExposureControlRequest struct {
	FeatureName *string `json:"featureName,omitempty"`
	FeatureType *string `json:"featureType,omitempty"`
}

type ExposureControlResponse

type ExposureControlResponse struct {
	FeatureName *string `json:"featureName,omitempty"`
	Value       *string `json:"value,omitempty"`
}

type FactoryId

type FactoryId struct {
	SubscriptionId    string
	ResourceGroupName string
	FactoryName       string
}

FactoryId is a struct representing the Resource ID for a Factory

func NewFactoryID

func NewFactoryID(subscriptionId string, resourceGroupName string, factoryName string) FactoryId

NewFactoryID returns a new FactoryId struct

func ParseFactoryID

func ParseFactoryID(input string) (*FactoryId, error)

ParseFactoryID parses 'input' into a FactoryId

func ParseFactoryIDInsensitively

func ParseFactoryIDInsensitively(input string) (*FactoryId, error)

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) ID

func (id FactoryId) ID() string

ID returns the formatted Factory ID

func (FactoryId) Segments

func (id FactoryId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Factory ID

func (FactoryId) String

func (id FactoryId) String() string

String returns a human-readable description of 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

type LocationId struct {
	SubscriptionId string
	LocationId     string
}

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) ID

func (id LocationId) ID() string

ID returns the formatted Location ID

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL