transformations

package
v0.20240522.1080424 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: MPL-2.0 Imports: 10 Imported by: 1

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateTransformationID

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

ValidateTransformationID checks that 'input' can be parsed as a Transformation ID

Types

type CreateOrReplaceOperationOptions

type CreateOrReplaceOperationOptions struct {
	IfMatch     *string
	IfNoneMatch *string
}

func DefaultCreateOrReplaceOperationOptions

func DefaultCreateOrReplaceOperationOptions() CreateOrReplaceOperationOptions

func (CreateOrReplaceOperationOptions) ToHeaders added in v0.20240208.1095436

func (CreateOrReplaceOperationOptions) ToOData added in v0.20240208.1095436

func (CreateOrReplaceOperationOptions) ToQuery added in v0.20240208.1095436

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 TransformationProperties

type TransformationProperties struct {
	Etag                *string  `json:"etag,omitempty"`
	Query               *string  `json:"query,omitempty"`
	StreamingUnits      *int64   `json:"streamingUnits,omitempty"`
	ValidStreamingUnits *[]int64 `json:"validStreamingUnits,omitempty"`
}

type TransformationsClient

type TransformationsClient struct {
	Client *resourcemanager.Client
}

func NewTransformationsClientWithBaseURI

func NewTransformationsClientWithBaseURI(sdkApi sdkEnv.Api) (*TransformationsClient, error)

func (TransformationsClient) CreateOrReplace

CreateOrReplace ...

func (TransformationsClient) Get

Get ...

func (TransformationsClient) Update

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

type UpdateOperationResponse

type UpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *Transformation
}

Jump to

Keyboard shortcuts

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