transformations

package
v0.20220815.1091905 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2022 License: MPL-2.0 Imports: 7 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", "jobValue", "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", "jobValue", "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", "jobValue", "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

type CreateOrReplaceOperationResponse

type CreateOrReplaceOperationResponse struct {
	HttpResponse *http.Response
	Model        *Transformation
}

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	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
	JobName            string
	TransformationName string
}

TransformationId is a struct representing the Resource ID for a Transformation

func NewTransformationID

func NewTransformationID(subscriptionId string, resourceGroupName string, jobName 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) 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 autorest.Client
	// contains filtered or unexported fields
}

func NewTransformationsClientWithBaseURI

func NewTransformationsClientWithBaseURI(endpoint string) TransformationsClient

func (TransformationsClient) CreateOrReplace

CreateOrReplace ...

func (TransformationsClient) Get

Get ...

func (TransformationsClient) Update

Update ...

type UpdateOperationOptions

type UpdateOperationOptions struct {
	IfMatch *string
}

func DefaultUpdateOperationOptions

func DefaultUpdateOperationOptions() UpdateOperationOptions

type UpdateOperationResponse

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

Jump to

Keyboard shortcuts

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