README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/transformations
Documentation
The transformations
SDK allows for interaction with the Azure Resource Manager Service streamanalytics
(API Version 2020-03-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/streamanalytics/2020-03-01/transformations"
Client Initialization
client := transformations.NewTransformationsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: TransformationsClient.CreateOrReplace
ctx := context.TODO()
id := transformations.NewTransformationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "streamingJobValue", "transformationValue")
payload := transformations.Transformation{
// ...
}
read, err := client.CreateOrReplace(ctx, id, payload, transformations.DefaultCreateOrReplaceOperationOptions())
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: TransformationsClient.Get
ctx := context.TODO()
id := transformations.NewTransformationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "streamingJobValue", "transformationValue")
read, err := client.Get(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: TransformationsClient.Update
ctx := context.TODO()
id := transformations.NewTransformationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "streamingJobValue", "transformationValue")
payload := transformations.Transformation{
// ...
}
read, err := client.Update(ctx, id, payload, transformations.DefaultUpdateOperationOptions())
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Documentation ¶
Index ¶
- func ValidateTransformationID(input interface{}, key string) (warnings []string, errors []error)
- type CreateOrReplaceOperationOptions
- type CreateOrReplaceOperationResponse
- type GetOperationResponse
- type Transformation
- type TransformationId
- type TransformationProperties
- type TransformationsClient
- func (c TransformationsClient) CreateOrReplace(ctx context.Context, id TransformationId, input Transformation, ...) (result CreateOrReplaceOperationResponse, err error)
- func (c TransformationsClient) Get(ctx context.Context, id TransformationId) (result GetOperationResponse, err error)
- func (c TransformationsClient) Update(ctx context.Context, id TransformationId, input Transformation, ...) (result UpdateOperationResponse, err error)
- type UpdateOperationOptions
- type UpdateOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateTransformationID ¶
ValidateTransformationID checks that 'input' can be parsed as a Transformation ID
Types ¶
type CreateOrReplaceOperationOptions ¶
func DefaultCreateOrReplaceOperationOptions ¶
func DefaultCreateOrReplaceOperationOptions() CreateOrReplaceOperationOptions
func (CreateOrReplaceOperationOptions) ToHeaders ¶ added in v0.20240208.1095436
func (o CreateOrReplaceOperationOptions) ToHeaders() *client.Headers
func (CreateOrReplaceOperationOptions) ToOData ¶ added in v0.20240208.1095436
func (o CreateOrReplaceOperationOptions) ToOData() *odata.Query
func (CreateOrReplaceOperationOptions) ToQuery ¶ added in v0.20240208.1095436
func (o CreateOrReplaceOperationOptions) ToQuery() *client.QueryParams
type CreateOrReplaceOperationResponse ¶
type CreateOrReplaceOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *Transformation }
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *Transformation }
type Transformation ¶
type Transformation struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *TransformationProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type TransformationId ¶
type TransformationId struct { SubscriptionId string ResourceGroupName string StreamingJobName string TransformationName string }
TransformationId is a struct representing the Resource ID for a Transformation
func NewTransformationID ¶
func NewTransformationID(subscriptionId string, resourceGroupName string, streamingJobName string, transformationName string) TransformationId
NewTransformationID returns a new TransformationId struct
func ParseTransformationID ¶
func ParseTransformationID(input string) (*TransformationId, error)
ParseTransformationID parses 'input' into a TransformationId
func ParseTransformationIDInsensitively ¶
func ParseTransformationIDInsensitively(input string) (*TransformationId, error)
ParseTransformationIDInsensitively parses 'input' case-insensitively into a TransformationId note: this method should only be used for API response data and not user input
func (*TransformationId) FromParseResult ¶
func (id *TransformationId) FromParseResult(input resourceids.ParseResult) error
func (TransformationId) ID ¶
func (id TransformationId) ID() string
ID returns the formatted Transformation ID
func (TransformationId) Segments ¶
func (id TransformationId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Transformation ID
func (TransformationId) String ¶
func (id TransformationId) String() string
String returns a human-readable description of this Transformation ID
type TransformationsClient ¶
type TransformationsClient struct {
Client *resourcemanager.Client
}
func NewTransformationsClientWithBaseURI ¶
func NewTransformationsClientWithBaseURI(sdkApi sdkEnv.Api) (*TransformationsClient, error)
func (TransformationsClient) CreateOrReplace ¶
func (c TransformationsClient) CreateOrReplace(ctx context.Context, id TransformationId, input Transformation, options CreateOrReplaceOperationOptions) (result CreateOrReplaceOperationResponse, err error)
CreateOrReplace ...
func (TransformationsClient) Get ¶
func (c TransformationsClient) Get(ctx context.Context, id TransformationId) (result GetOperationResponse, err error)
Get ...
func (TransformationsClient) Update ¶
func (c TransformationsClient) Update(ctx context.Context, id TransformationId, input Transformation, options UpdateOperationOptions) (result UpdateOperationResponse, err error)
Update ...
type UpdateOperationOptions ¶
type UpdateOperationOptions struct {
IfMatch *string
}
func DefaultUpdateOperationOptions ¶
func DefaultUpdateOperationOptions() UpdateOperationOptions
func (UpdateOperationOptions) ToHeaders ¶ added in v0.20240208.1095436
func (o UpdateOperationOptions) ToHeaders() *client.Headers
func (UpdateOperationOptions) ToOData ¶ added in v0.20240208.1095436
func (o UpdateOperationOptions) ToOData() *odata.Query
func (UpdateOperationOptions) ToQuery ¶ added in v0.20240208.1095436
func (o UpdateOperationOptions) ToQuery() *client.QueryParams
type UpdateOperationResponse ¶
type UpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *Transformation }