armstreamanalytics

package module
v2.0.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MIT Imports: 14 Imported by: 0

README

Azure Stream Analytics Module for Go

PkgGoDev

The armstreamanalytics module provides operations for working with Azure Stream Analytics.

Source code

Getting started

Prerequisites

  • an Azure subscription
  • Go 1.18 or above (You could download and install the latest version of Go from here. It will replace the existing Go on your machine. If you want to install multiple Go versions on the same machine, you could refer this doc.)

Install the package

This project uses Go modules for versioning and dependency management.

Install the Azure Stream Analytics module:

go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics/v2

Authorization

When creating a client, you will need to provide a credential for authenticating with Azure Stream Analytics. The azidentity module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more.

cred, err := azidentity.NewDefaultAzureCredential(nil)

For more information on authentication, please see the documentation for azidentity at pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity.

Client Factory

Azure Stream Analytics module consists of one or more clients. We provide a client factory which could be used to create any client in this module.

clientFactory, err := armstreamanalytics.NewClientFactory(<subscription ID>, cred, nil)

You can use ClientOptions in package github.com/Azure/azure-sdk-for-go/sdk/azcore/arm to set endpoint to connect with public and sovereign clouds as well as Azure Stack. For more information, please see the documentation for azcore at pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore.

options := arm.ClientOptions {
    ClientOptions: azcore.ClientOptions {
        Cloud: cloud.AzureChina,
    },
}
clientFactory, err := armstreamanalytics.NewClientFactory(<subscription ID>, cred, &options)

Clients

A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory.

client := clientFactory.NewClustersClient()

Fakes

The fake package contains types used for constructing in-memory fake servers used in unit tests. This allows writing tests to cover various success/error conditions without the need for connecting to a live service.

Please see https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/samples/fakes for details and examples on how to use fakes.

Provide Feedback

If you encounter bugs or have suggestions, please open an issue and assign the Stream Analytics label.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AggregateFunctionProperties

type AggregateFunctionProperties struct {
	// REQUIRED; Indicates the type of function.
	Type       *string
	Properties *FunctionConfiguration

	// READ-ONLY; The current entity tag for the function. This is an opaque string. You can use it to detect whether the resource
	// has changed between requests. You can also use it in the If-Match or If-None-Match
	// headers for write operations for optimistic concurrency.
	Etag *string
}

AggregateFunctionProperties - The properties that are associated with an aggregate function.

func (*AggregateFunctionProperties) GetFunctionProperties

func (a *AggregateFunctionProperties) GetFunctionProperties() *FunctionProperties

GetFunctionProperties implements the FunctionPropertiesClassification interface for type AggregateFunctionProperties.

func (AggregateFunctionProperties) MarshalJSON

func (a AggregateFunctionProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AggregateFunctionProperties.

func (*AggregateFunctionProperties) UnmarshalJSON

func (a *AggregateFunctionProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AggregateFunctionProperties.

type AuthenticationMode

type AuthenticationMode string

AuthenticationMode - Authentication Mode. Valid modes are ConnectionString, Msi and 'UserToken'.

const (
	AuthenticationModeConnectionString AuthenticationMode = "ConnectionString"
	AuthenticationModeMsi              AuthenticationMode = "Msi"
	AuthenticationModeUserToken        AuthenticationMode = "UserToken"
)

func PossibleAuthenticationModeValues

func PossibleAuthenticationModeValues() []AuthenticationMode

PossibleAuthenticationModeValues returns the possible values for the AuthenticationMode const type.

type AvroSerialization

type AvroSerialization struct {
	// REQUIRED; Indicates the type of serialization that the input or output uses. Required on PUT (CreateOrReplace) requests.
	Type *EventSerializationType

	// The properties that are associated with the Avro serialization type. Required on PUT (CreateOrReplace) requests.
	Properties any
}

AvroSerialization - Describes how data from an input is serialized or how data is serialized when written to an output in Avro format.

func (*AvroSerialization) GetSerialization

func (a *AvroSerialization) GetSerialization() *Serialization

GetSerialization implements the SerializationClassification interface for type AvroSerialization.

func (AvroSerialization) MarshalJSON

func (a AvroSerialization) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AvroSerialization.

func (*AvroSerialization) UnmarshalJSON

func (a *AvroSerialization) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AvroSerialization.

type AzureDataExplorerOutputDataSource

type AzureDataExplorerOutputDataSource struct {
	// REQUIRED; Indicates the type of data source output will be written to. Required on PUT (CreateOrReplace) requests.
	Type *string

	// The properties that are associated with an Azure Data Explorer output. Required on PUT (CreateOrReplace) requests.
	Properties *AzureDataExplorerOutputDataSourceProperties
}

AzureDataExplorerOutputDataSource - Describes an Azure Data Explorer output data source.

func (*AzureDataExplorerOutputDataSource) GetOutputDataSource

func (a *AzureDataExplorerOutputDataSource) GetOutputDataSource() *OutputDataSource

GetOutputDataSource implements the OutputDataSourceClassification interface for type AzureDataExplorerOutputDataSource.

func (AzureDataExplorerOutputDataSource) MarshalJSON

func (a AzureDataExplorerOutputDataSource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AzureDataExplorerOutputDataSource.

func (*AzureDataExplorerOutputDataSource) UnmarshalJSON

func (a *AzureDataExplorerOutputDataSource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AzureDataExplorerOutputDataSource.

type AzureDataExplorerOutputDataSourceProperties

type AzureDataExplorerOutputDataSourceProperties struct {
	// Authentication Mode.
	AuthenticationMode *AuthenticationMode

	// The name of the Azure Data Explorer cluster. Required on PUT (CreateOrReplace) requests.
	Cluster *string

	// The name of the Azure Data Explorer database. Required on PUT (CreateOrReplace) requests.
	Database *string

	// The name of the Azure Table. Required on PUT (CreateOrReplace) requests.
	Table *string
}

AzureDataExplorerOutputDataSourceProperties - The properties that are associated with an Azure Data Explorer output.

func (AzureDataExplorerOutputDataSourceProperties) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type AzureDataExplorerOutputDataSourceProperties.

func (*AzureDataExplorerOutputDataSourceProperties) UnmarshalJSON

func (a *AzureDataExplorerOutputDataSourceProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AzureDataExplorerOutputDataSourceProperties.

type AzureDataLakeStoreOutputDataSource

type AzureDataLakeStoreOutputDataSource struct {
	// REQUIRED; Indicates the type of data source output will be written to. Required on PUT (CreateOrReplace) requests.
	Type *string

	// The properties that are associated with an Azure Data Lake Store output. Required on PUT (CreateOrReplace) requests.
	Properties *AzureDataLakeStoreOutputDataSourceProperties
}

AzureDataLakeStoreOutputDataSource - Describes an Azure Data Lake Store output data source.

func (*AzureDataLakeStoreOutputDataSource) GetOutputDataSource

func (a *AzureDataLakeStoreOutputDataSource) GetOutputDataSource() *OutputDataSource

GetOutputDataSource implements the OutputDataSourceClassification interface for type AzureDataLakeStoreOutputDataSource.

func (AzureDataLakeStoreOutputDataSource) MarshalJSON

func (a AzureDataLakeStoreOutputDataSource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AzureDataLakeStoreOutputDataSource.

func (*AzureDataLakeStoreOutputDataSource) UnmarshalJSON

func (a *AzureDataLakeStoreOutputDataSource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AzureDataLakeStoreOutputDataSource.

type AzureDataLakeStoreOutputDataSourceProperties

type AzureDataLakeStoreOutputDataSourceProperties struct {
	// The name of the Azure Data Lake Store account. Required on PUT (CreateOrReplace) requests.
	AccountName *string

	// Authentication Mode.
	AuthenticationMode *AuthenticationMode

	// The date format. Wherever {date} appears in filePathPrefix, the value of this property is used as the date format instead.
	DateFormat *string

	// The location of the file to which the output should be written to. Required on PUT (CreateOrReplace) requests.
	FilePathPrefix *string

	// A refresh token that can be used to obtain a valid access token that can then be used to authenticate with the data source.
	// A valid refresh token is currently only obtainable via the Azure Portal. It
	// is recommended to put a dummy string value here when creating the data source and then going to the Azure Portal to authenticate
	// the data source which will update this property with a valid refresh
	// token. Required on PUT (CreateOrReplace) requests.
	RefreshToken *string

	// The tenant id of the user used to obtain the refresh token. Required on PUT (CreateOrReplace) requests.
	TenantID *string

	// The time format. Wherever {time} appears in filePathPrefix, the value of this property is used as the time format instead.
	TimeFormat *string

	// The user display name of the user that was used to obtain the refresh token. Use this property to help remember which user
	// was used to obtain the refresh token.
	TokenUserDisplayName *string

	// The user principal name (UPN) of the user that was used to obtain the refresh token. Use this property to help remember
	// which user was used to obtain the refresh token.
	TokenUserPrincipalName *string
}

AzureDataLakeStoreOutputDataSourceProperties - The properties that are associated with an Azure Data Lake Store.

func (AzureDataLakeStoreOutputDataSourceProperties) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type AzureDataLakeStoreOutputDataSourceProperties.

func (*AzureDataLakeStoreOutputDataSourceProperties) UnmarshalJSON

func (a *AzureDataLakeStoreOutputDataSourceProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AzureDataLakeStoreOutputDataSourceProperties.

type AzureFunctionOutputDataSource

type AzureFunctionOutputDataSource struct {
	// REQUIRED; Indicates the type of data source output will be written to. Required on PUT (CreateOrReplace) requests.
	Type *string

	// The properties that are associated with a Azure Function output. Required on PUT (CreateOrReplace) requests.
	Properties *AzureFunctionOutputDataSourceProperties
}

AzureFunctionOutputDataSource - Defines the metadata of AzureFunctionOutputDataSource

func (*AzureFunctionOutputDataSource) GetOutputDataSource

func (a *AzureFunctionOutputDataSource) GetOutputDataSource() *OutputDataSource

GetOutputDataSource implements the OutputDataSourceClassification interface for type AzureFunctionOutputDataSource.

func (AzureFunctionOutputDataSource) MarshalJSON

func (a AzureFunctionOutputDataSource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AzureFunctionOutputDataSource.

func (*AzureFunctionOutputDataSource) UnmarshalJSON

func (a *AzureFunctionOutputDataSource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AzureFunctionOutputDataSource.

type AzureFunctionOutputDataSourceProperties

type AzureFunctionOutputDataSourceProperties struct {
	// If you want to use an Azure Function from another subscription, you can do so by providing the key to access your function.
	APIKey *string

	// The name of your Azure Functions app.
	FunctionAppName *string

	// The name of the function in your Azure Functions app.
	FunctionName *string

	// A property that lets you specify the maximum number of events in each batch that's sent to Azure Functions. The default
	// value is 100.
	MaxBatchCount *float32

	// A property that lets you set the maximum size for each output batch that's sent to your Azure function. The input unit
	// is in bytes. By default, this value is 262,144 bytes (256 KB).
	MaxBatchSize *float32
}

AzureFunctionOutputDataSourceProperties - The properties that are associated with an Azure Function output.

func (AzureFunctionOutputDataSourceProperties) MarshalJSON

func (a AzureFunctionOutputDataSourceProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AzureFunctionOutputDataSourceProperties.

func (*AzureFunctionOutputDataSourceProperties) UnmarshalJSON

func (a *AzureFunctionOutputDataSourceProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AzureFunctionOutputDataSourceProperties.

type AzureMachineLearningServiceFunctionBinding

type AzureMachineLearningServiceFunctionBinding struct {
	// REQUIRED; Indicates the function binding type.
	Type *string

	// The binding properties associated with an Azure Machine learning web service.
	Properties *AzureMachineLearningServiceFunctionBindingProperties
}

AzureMachineLearningServiceFunctionBinding - The binding to an Azure Machine Learning web service.

func (*AzureMachineLearningServiceFunctionBinding) GetFunctionBinding

GetFunctionBinding implements the FunctionBindingClassification interface for type AzureMachineLearningServiceFunctionBinding.

func (AzureMachineLearningServiceFunctionBinding) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type AzureMachineLearningServiceFunctionBinding.

func (*AzureMachineLearningServiceFunctionBinding) UnmarshalJSON

func (a *AzureMachineLearningServiceFunctionBinding) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AzureMachineLearningServiceFunctionBinding.

type AzureMachineLearningServiceFunctionBindingProperties

type AzureMachineLearningServiceFunctionBindingProperties struct {
	// The API key used to authenticate with Request-Response endpoint.
	APIKey *string

	// Number between 1 and 10000 describing maximum number of rows for every Azure ML RRS execute request. Default is 1000.
	BatchSize *int32

	// The Request-Response execute endpoint of the Azure Machine Learning web service.
	Endpoint *string

	// Label for the input request object.
	InputRequestName *string

	// The inputs for the Azure Machine Learning web service endpoint.
	Inputs []*AzureMachineLearningServiceInputColumn

	// The number of parallel requests that will be sent per partition of your job to the machine learning service. Default is
	// 1.
	NumberOfParallelRequests *int32

	// Label for the output request object.
	OutputResponseName *string

	// A list of outputs from the Azure Machine Learning web service endpoint execution.
	Outputs []*AzureMachineLearningServiceOutputColumn
}

AzureMachineLearningServiceFunctionBindingProperties - The binding properties associated with an Azure Machine learning web service.

func (AzureMachineLearningServiceFunctionBindingProperties) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type AzureMachineLearningServiceFunctionBindingProperties.

func (*AzureMachineLearningServiceFunctionBindingProperties) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type AzureMachineLearningServiceFunctionBindingProperties.

type AzureMachineLearningServiceFunctionBindingRetrievalProperties

type AzureMachineLearningServiceFunctionBindingRetrievalProperties struct {
	// The Request-Response execute endpoint of the Azure Machine Learning web service.
	ExecuteEndpoint *string

	// The function type.
	UdfType *string
}

AzureMachineLearningServiceFunctionBindingRetrievalProperties - The binding retrieval properties associated with an Azure Machine learning web service.

func (AzureMachineLearningServiceFunctionBindingRetrievalProperties) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type AzureMachineLearningServiceFunctionBindingRetrievalProperties.

func (*AzureMachineLearningServiceFunctionBindingRetrievalProperties) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type AzureMachineLearningServiceFunctionBindingRetrievalProperties.

type AzureMachineLearningServiceFunctionRetrieveDefaultDefinitionParameters

type AzureMachineLearningServiceFunctionRetrieveDefaultDefinitionParameters struct {
	// REQUIRED; Indicates the function binding type.
	BindingType *string

	// The binding retrieval properties associated with an Azure Machine learning web service.
	BindingRetrievalProperties *AzureMachineLearningServiceFunctionBindingRetrievalProperties
}

AzureMachineLearningServiceFunctionRetrieveDefaultDefinitionParameters - The parameters needed to retrieve the default function definition for an Azure Machine Learning web service function.

func (*AzureMachineLearningServiceFunctionRetrieveDefaultDefinitionParameters) GetFunctionRetrieveDefaultDefinitionParameters

GetFunctionRetrieveDefaultDefinitionParameters implements the FunctionRetrieveDefaultDefinitionParametersClassification interface for type AzureMachineLearningServiceFunctionRetrieveDefaultDefinitionParameters.

func (AzureMachineLearningServiceFunctionRetrieveDefaultDefinitionParameters) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type AzureMachineLearningServiceFunctionRetrieveDefaultDefinitionParameters.

func (*AzureMachineLearningServiceFunctionRetrieveDefaultDefinitionParameters) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type AzureMachineLearningServiceFunctionRetrieveDefaultDefinitionParameters.

type AzureMachineLearningServiceInputColumn

type AzureMachineLearningServiceInputColumn struct {
	// The (Azure Machine Learning supported) data type of the input column.
	DataType *string

	// The zero based index of the function parameter this input maps to.
	MapTo *int32

	// The name of the input column.
	Name *string
}

AzureMachineLearningServiceInputColumn - Describes an input column for the Azure Machine Learning web service endpoint.

func (AzureMachineLearningServiceInputColumn) MarshalJSON

func (a AzureMachineLearningServiceInputColumn) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AzureMachineLearningServiceInputColumn.

func (*AzureMachineLearningServiceInputColumn) UnmarshalJSON

func (a *AzureMachineLearningServiceInputColumn) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AzureMachineLearningServiceInputColumn.

type AzureMachineLearningServiceInputs

type AzureMachineLearningServiceInputs struct {
	// A list of input columns for the Azure Machine Learning web service endpoint.
	ColumnNames []*AzureMachineLearningServiceInputColumn

	// The name of the input. This is the name provided while authoring the endpoint.
	Name *string
}

AzureMachineLearningServiceInputs - The inputs for the Azure Machine Learning web service endpoint.

func (AzureMachineLearningServiceInputs) MarshalJSON

func (a AzureMachineLearningServiceInputs) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AzureMachineLearningServiceInputs.

func (*AzureMachineLearningServiceInputs) UnmarshalJSON

func (a *AzureMachineLearningServiceInputs) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AzureMachineLearningServiceInputs.

type AzureMachineLearningServiceOutputColumn

type AzureMachineLearningServiceOutputColumn struct {
	// The (Azure Machine Learning supported) data type of the output column.
	DataType *string

	// The zero based index of the function parameter this input maps to.
	MapTo *int32

	// The name of the output column.
	Name *string
}

AzureMachineLearningServiceOutputColumn - Describes an output column for the Azure Machine Learning web service endpoint.

func (AzureMachineLearningServiceOutputColumn) MarshalJSON

func (a AzureMachineLearningServiceOutputColumn) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AzureMachineLearningServiceOutputColumn.

func (*AzureMachineLearningServiceOutputColumn) UnmarshalJSON

func (a *AzureMachineLearningServiceOutputColumn) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AzureMachineLearningServiceOutputColumn.

type AzureMachineLearningStudioFunctionBinding

type AzureMachineLearningStudioFunctionBinding struct {
	// REQUIRED; Indicates the function binding type.
	Type *string

	// The binding properties associated with an Azure Machine learning Studio.
	Properties *AzureMachineLearningStudioFunctionBindingProperties
}

AzureMachineLearningStudioFunctionBinding - The binding to an Azure Machine Learning Studio.

func (*AzureMachineLearningStudioFunctionBinding) GetFunctionBinding

GetFunctionBinding implements the FunctionBindingClassification interface for type AzureMachineLearningStudioFunctionBinding.

func (AzureMachineLearningStudioFunctionBinding) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type AzureMachineLearningStudioFunctionBinding.

func (*AzureMachineLearningStudioFunctionBinding) UnmarshalJSON

func (a *AzureMachineLearningStudioFunctionBinding) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AzureMachineLearningStudioFunctionBinding.

type AzureMachineLearningStudioFunctionBindingProperties

type AzureMachineLearningStudioFunctionBindingProperties struct {
	// The API key used to authenticate with Request-Response endpoint.
	APIKey *string

	// Number between 1 and 10000 describing maximum number of rows for every Azure ML RRS execute request. Default is 1000.
	BatchSize *int32

	// The Request-Response execute endpoint of the Azure Machine Learning Studio. Find out more here:
	// https://docs.microsoft.com/en-us/azure/machine-learning/machine-learning-consume-web-services#request-response-service-rrs
	Endpoint *string

	// The inputs for the Azure Machine Learning Studio endpoint.
	Inputs *AzureMachineLearningStudioInputs

	// A list of outputs from the Azure Machine Learning Studio endpoint execution.
	Outputs []*AzureMachineLearningStudioOutputColumn
}

AzureMachineLearningStudioFunctionBindingProperties - The binding properties associated with an Azure Machine learning Studio.

func (AzureMachineLearningStudioFunctionBindingProperties) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type AzureMachineLearningStudioFunctionBindingProperties.

func (*AzureMachineLearningStudioFunctionBindingProperties) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type AzureMachineLearningStudioFunctionBindingProperties.

type AzureMachineLearningStudioFunctionBindingRetrievalProperties

type AzureMachineLearningStudioFunctionBindingRetrievalProperties struct {
	// The Request-Response execute endpoint of the Azure Machine Learning Studio. Find out more here:
	// https://docs.microsoft.com/en-us/azure/machine-learning/machine-learning-consume-web-services#request-response-service-rrs
	ExecuteEndpoint *string

	// The function type.
	UdfType *string
}

AzureMachineLearningStudioFunctionBindingRetrievalProperties - The binding retrieval properties associated with an Azure Machine learning Studio.

func (AzureMachineLearningStudioFunctionBindingRetrievalProperties) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type AzureMachineLearningStudioFunctionBindingRetrievalProperties.

func (*AzureMachineLearningStudioFunctionBindingRetrievalProperties) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type AzureMachineLearningStudioFunctionBindingRetrievalProperties.

type AzureMachineLearningStudioFunctionRetrieveDefaultDefinitionParameters

type AzureMachineLearningStudioFunctionRetrieveDefaultDefinitionParameters struct {
	// REQUIRED; Indicates the function binding type.
	BindingType *string

	// The binding retrieval properties associated with an Azure Machine learning Studio.
	BindingRetrievalProperties *AzureMachineLearningStudioFunctionBindingRetrievalProperties
}

AzureMachineLearningStudioFunctionRetrieveDefaultDefinitionParameters - The parameters needed to retrieve the default function definition for an Azure Machine Learning Studio function.

func (*AzureMachineLearningStudioFunctionRetrieveDefaultDefinitionParameters) GetFunctionRetrieveDefaultDefinitionParameters

GetFunctionRetrieveDefaultDefinitionParameters implements the FunctionRetrieveDefaultDefinitionParametersClassification interface for type AzureMachineLearningStudioFunctionRetrieveDefaultDefinitionParameters.

func (AzureMachineLearningStudioFunctionRetrieveDefaultDefinitionParameters) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type AzureMachineLearningStudioFunctionRetrieveDefaultDefinitionParameters.

func (*AzureMachineLearningStudioFunctionRetrieveDefaultDefinitionParameters) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type AzureMachineLearningStudioFunctionRetrieveDefaultDefinitionParameters.

type AzureMachineLearningStudioInputColumn

type AzureMachineLearningStudioInputColumn struct {
	// The (Azure Machine Learning supported) data type of the input column. A list of valid Azure Machine Learning data types
	// are described at https://msdn.microsoft.com/en-us/library/azure/dn905923.aspx .
	DataType *string

	// The zero based index of the function parameter this input maps to.
	MapTo *int32

	// The name of the input column.
	Name *string
}

AzureMachineLearningStudioInputColumn - Describes an input column for the Azure Machine Learning Studio endpoint.

func (AzureMachineLearningStudioInputColumn) MarshalJSON

func (a AzureMachineLearningStudioInputColumn) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AzureMachineLearningStudioInputColumn.

func (*AzureMachineLearningStudioInputColumn) UnmarshalJSON

func (a *AzureMachineLearningStudioInputColumn) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AzureMachineLearningStudioInputColumn.

type AzureMachineLearningStudioInputs

type AzureMachineLearningStudioInputs struct {
	// A list of input columns for the Azure Machine Learning Studio endpoint.
	ColumnNames []*AzureMachineLearningStudioInputColumn

	// The name of the input. This is the name provided while authoring the endpoint.
	Name *string
}

AzureMachineLearningStudioInputs - The inputs for the Azure Machine Learning Studio endpoint.

func (AzureMachineLearningStudioInputs) MarshalJSON

func (a AzureMachineLearningStudioInputs) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AzureMachineLearningStudioInputs.

func (*AzureMachineLearningStudioInputs) UnmarshalJSON

func (a *AzureMachineLearningStudioInputs) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AzureMachineLearningStudioInputs.

type AzureMachineLearningStudioOutputColumn

type AzureMachineLearningStudioOutputColumn struct {
	// The (Azure Machine Learning supported) data type of the output column. A list of valid Azure Machine Learning data types
	// are described at https://msdn.microsoft.com/en-us/library/azure/dn905923.aspx .
	DataType *string

	// The name of the output column.
	Name *string
}

AzureMachineLearningStudioOutputColumn - Describes an output column for the Azure Machine Learning Studio endpoint.

func (AzureMachineLearningStudioOutputColumn) MarshalJSON

func (a AzureMachineLearningStudioOutputColumn) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AzureMachineLearningStudioOutputColumn.

func (*AzureMachineLearningStudioOutputColumn) UnmarshalJSON

func (a *AzureMachineLearningStudioOutputColumn) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AzureMachineLearningStudioOutputColumn.

type AzureSQLDatabaseDataSourceProperties

type AzureSQLDatabaseDataSourceProperties struct {
	// Authentication Mode.
	AuthenticationMode *AuthenticationMode

	// The name of the Azure SQL database. Required on PUT (CreateOrReplace) requests.
	Database *string

	// Max Batch count for write to Sql database, the default value is 10,000. Optional on PUT requests.
	MaxBatchCount *float32

	// Max Writer count, currently only 1(single writer) and 0(based on query partition) are available. Optional on PUT requests.
	MaxWriterCount *float32

	// The password that will be used to connect to the Azure SQL database. Required on PUT (CreateOrReplace) requests.
	Password *string

	// The name of the SQL server containing the Azure SQL database. Required on PUT (CreateOrReplace) requests.
	Server *string

	// The name of the table in the Azure SQL database. Required on PUT (CreateOrReplace) requests.
	Table *string

	// The user name that will be used to connect to the Azure SQL database. Required on PUT (CreateOrReplace) requests.
	User *string
}

AzureSQLDatabaseDataSourceProperties - The properties that are associated with an Azure SQL database data source.

func (AzureSQLDatabaseDataSourceProperties) MarshalJSON

func (a AzureSQLDatabaseDataSourceProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AzureSQLDatabaseDataSourceProperties.

func (*AzureSQLDatabaseDataSourceProperties) UnmarshalJSON

func (a *AzureSQLDatabaseDataSourceProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AzureSQLDatabaseDataSourceProperties.

type AzureSQLDatabaseOutputDataSource

type AzureSQLDatabaseOutputDataSource struct {
	// REQUIRED; Indicates the type of data source output will be written to. Required on PUT (CreateOrReplace) requests.
	Type *string

	// The properties that are associated with an Azure SQL database output. Required on PUT (CreateOrReplace) requests.
	Properties *AzureSQLDatabaseOutputDataSourceProperties
}

AzureSQLDatabaseOutputDataSource - Describes an Azure SQL database output data source.

func (*AzureSQLDatabaseOutputDataSource) GetOutputDataSource

func (a *AzureSQLDatabaseOutputDataSource) GetOutputDataSource() *OutputDataSource

GetOutputDataSource implements the OutputDataSourceClassification interface for type AzureSQLDatabaseOutputDataSource.

func (AzureSQLDatabaseOutputDataSource) MarshalJSON

func (a AzureSQLDatabaseOutputDataSource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AzureSQLDatabaseOutputDataSource.

func (*AzureSQLDatabaseOutputDataSource) UnmarshalJSON

func (a *AzureSQLDatabaseOutputDataSource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AzureSQLDatabaseOutputDataSource.

type AzureSQLDatabaseOutputDataSourceProperties

type AzureSQLDatabaseOutputDataSourceProperties struct {
	// Authentication Mode.
	AuthenticationMode *AuthenticationMode

	// The name of the Azure SQL database. Required on PUT (CreateOrReplace) requests.
	Database *string

	// Max Batch count for write to Sql database, the default value is 10,000. Optional on PUT requests.
	MaxBatchCount *float32

	// Max Writer count, currently only 1(single writer) and 0(based on query partition) are available. Optional on PUT requests.
	MaxWriterCount *float32

	// The password that will be used to connect to the Azure SQL database. Required on PUT (CreateOrReplace) requests.
	Password *string

	// The name of the SQL server containing the Azure SQL database. Required on PUT (CreateOrReplace) requests.
	Server *string

	// The name of the table in the Azure SQL database. Required on PUT (CreateOrReplace) requests.
	Table *string

	// The user name that will be used to connect to the Azure SQL database. Required on PUT (CreateOrReplace) requests.
	User *string
}

AzureSQLDatabaseOutputDataSourceProperties - The properties that are associated with an Azure SQL database output.

func (AzureSQLDatabaseOutputDataSourceProperties) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type AzureSQLDatabaseOutputDataSourceProperties.

func (*AzureSQLDatabaseOutputDataSourceProperties) UnmarshalJSON

func (a *AzureSQLDatabaseOutputDataSourceProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AzureSQLDatabaseOutputDataSourceProperties.

type AzureSQLReferenceInputDataSource

type AzureSQLReferenceInputDataSource struct {
	// REQUIRED; Indicates the type of input data source containing reference data. Required on PUT (CreateOrReplace) requests.
	Type *string

	// The properties that are associated with SQL DB input containing reference data. Required on PUT (CreateOrReplace) requests.
	Properties *AzureSQLReferenceInputDataSourceProperties
}

AzureSQLReferenceInputDataSource - Describes an Azure SQL database reference input data source.

func (*AzureSQLReferenceInputDataSource) GetReferenceInputDataSource

func (a *AzureSQLReferenceInputDataSource) GetReferenceInputDataSource() *ReferenceInputDataSource

GetReferenceInputDataSource implements the ReferenceInputDataSourceClassification interface for type AzureSQLReferenceInputDataSource.

func (AzureSQLReferenceInputDataSource) MarshalJSON

func (a AzureSQLReferenceInputDataSource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AzureSQLReferenceInputDataSource.

func (*AzureSQLReferenceInputDataSource) UnmarshalJSON

func (a *AzureSQLReferenceInputDataSource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AzureSQLReferenceInputDataSource.

type AzureSQLReferenceInputDataSourceProperties

type AzureSQLReferenceInputDataSourceProperties struct {
	// Authentication Mode.
	AuthenticationMode *AuthenticationMode

	// This element is associated with the datasource element. This is the name of the database that output will be written to.
	Database *string

	// This element is associated with the datasource element. This query is used to fetch incremental changes from the SQL database.
	// To use this option, we recommend using temporal tables in Azure SQL
	// Database.
	DeltaSnapshotQuery *string

	// This element is associated with the datasource element. This query is used to fetch data from the sql database.
	FullSnapshotQuery *string

	// This element is associated with the datasource element. This is the password that will be used to connect to the SQL Database
	// instance.
	Password *string

	// This element is associated with the datasource element. This indicates how frequently the data will be fetched from the
	// database. It is of DateTime format.
	RefreshRate *string

	// Indicates the type of data refresh option.
	RefreshType *RefreshType

	// This element is associated with the datasource element. This is the name of the server that contains the database that
	// will be written to.
	Server *string

	// This element is associated with the datasource element. This is the user name that will be used to connect to the SQL Database
	// instance.
	User *string
}

AzureSQLReferenceInputDataSourceProperties - The properties that are associated with SQL DB input containing reference data. Required on PUT (CreateOrReplace) requests.

func (AzureSQLReferenceInputDataSourceProperties) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type AzureSQLReferenceInputDataSourceProperties.

func (*AzureSQLReferenceInputDataSourceProperties) UnmarshalJSON

func (a *AzureSQLReferenceInputDataSourceProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AzureSQLReferenceInputDataSourceProperties.

type AzureSynapseDataSourceProperties

type AzureSynapseDataSourceProperties struct {
	// Authentication Mode.
	AuthenticationMode *AuthenticationMode

	// The name of the Azure SQL database. Required on PUT (CreateOrReplace) requests.
	Database *string

	// The password that will be used to connect to the Azure SQL database. Required on PUT (CreateOrReplace) requests.
	Password *string

	// The name of the SQL server containing the Azure SQL database. Required on PUT (CreateOrReplace) requests.
	Server *string

	// The name of the table in the Azure SQL database. Required on PUT (CreateOrReplace) requests.
	Table *string

	// The user name that will be used to connect to the Azure SQL database. Required on PUT (CreateOrReplace) requests.
	User *string
}

AzureSynapseDataSourceProperties - The properties that are associated with an Azure SQL database data source.

func (AzureSynapseDataSourceProperties) MarshalJSON

func (a AzureSynapseDataSourceProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AzureSynapseDataSourceProperties.

func (*AzureSynapseDataSourceProperties) UnmarshalJSON

func (a *AzureSynapseDataSourceProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AzureSynapseDataSourceProperties.

type AzureSynapseOutputDataSource

type AzureSynapseOutputDataSource struct {
	// REQUIRED; Indicates the type of data source output will be written to. Required on PUT (CreateOrReplace) requests.
	Type *string

	// The properties that are associated with an Azure Synapse output. Required on PUT (CreateOrReplace) requests.
	Properties *AzureSynapseOutputDataSourceProperties
}

AzureSynapseOutputDataSource - Describes an Azure Synapse output data source.

func (*AzureSynapseOutputDataSource) GetOutputDataSource

func (a *AzureSynapseOutputDataSource) GetOutputDataSource() *OutputDataSource

GetOutputDataSource implements the OutputDataSourceClassification interface for type AzureSynapseOutputDataSource.

func (AzureSynapseOutputDataSource) MarshalJSON

func (a AzureSynapseOutputDataSource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AzureSynapseOutputDataSource.

func (*AzureSynapseOutputDataSource) UnmarshalJSON

func (a *AzureSynapseOutputDataSource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AzureSynapseOutputDataSource.

type AzureSynapseOutputDataSourceProperties

type AzureSynapseOutputDataSourceProperties struct {
	// Authentication Mode.
	AuthenticationMode *AuthenticationMode

	// The name of the Azure SQL database. Required on PUT (CreateOrReplace) requests.
	Database *string

	// The password that will be used to connect to the Azure SQL database. Required on PUT (CreateOrReplace) requests.
	Password *string

	// The name of the SQL server containing the Azure SQL database. Required on PUT (CreateOrReplace) requests.
	Server *string

	// The name of the table in the Azure SQL database. Required on PUT (CreateOrReplace) requests.
	Table *string

	// The user name that will be used to connect to the Azure SQL database. Required on PUT (CreateOrReplace) requests.
	User *string
}

AzureSynapseOutputDataSourceProperties - The properties that are associated with an Azure Synapse output.

func (AzureSynapseOutputDataSourceProperties) MarshalJSON

func (a AzureSynapseOutputDataSourceProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AzureSynapseOutputDataSourceProperties.

func (*AzureSynapseOutputDataSourceProperties) UnmarshalJSON

func (a *AzureSynapseOutputDataSourceProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AzureSynapseOutputDataSourceProperties.

type AzureTableOutputDataSource

type AzureTableOutputDataSource struct {
	// REQUIRED; Indicates the type of data source output will be written to. Required on PUT (CreateOrReplace) requests.
	Type *string

	// The properties that are associated with an Azure Table output. Required on PUT (CreateOrReplace) requests.
	Properties *AzureTableOutputDataSourceProperties
}

AzureTableOutputDataSource - Describes an Azure Table output data source.

func (*AzureTableOutputDataSource) GetOutputDataSource

func (a *AzureTableOutputDataSource) GetOutputDataSource() *OutputDataSource

GetOutputDataSource implements the OutputDataSourceClassification interface for type AzureTableOutputDataSource.

func (AzureTableOutputDataSource) MarshalJSON

func (a AzureTableOutputDataSource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AzureTableOutputDataSource.

func (*AzureTableOutputDataSource) UnmarshalJSON

func (a *AzureTableOutputDataSource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AzureTableOutputDataSource.

type AzureTableOutputDataSourceProperties

type AzureTableOutputDataSourceProperties struct {
	// The account key for the Azure Storage account. Required on PUT (CreateOrReplace) requests.
	AccountKey *string

	// The name of the Azure Storage account. Required on PUT (CreateOrReplace) requests.
	AccountName *string

	// The number of rows to write to the Azure Table at a time.
	BatchSize *int32

	// If specified, each item in the array is the name of a column to remove (if present) from output event entities.
	ColumnsToRemove []*string

	// This element indicates the name of a column from the SELECT statement in the query that will be used as the partition key
	// for the Azure Table. Required on PUT (CreateOrReplace) requests.
	PartitionKey *string

	// This element indicates the name of a column from the SELECT statement in the query that will be used as the row key for
	// the Azure Table. Required on PUT (CreateOrReplace) requests.
	RowKey *string

	// The name of the Azure Table. Required on PUT (CreateOrReplace) requests.
	Table *string
}

AzureTableOutputDataSourceProperties - The properties that are associated with an Azure Table output.

func (AzureTableOutputDataSourceProperties) MarshalJSON

func (a AzureTableOutputDataSourceProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AzureTableOutputDataSourceProperties.

func (*AzureTableOutputDataSourceProperties) UnmarshalJSON

func (a *AzureTableOutputDataSourceProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AzureTableOutputDataSourceProperties.

type BlobDataSourceProperties

type BlobDataSourceProperties struct {
	// Authentication Mode.
	AuthenticationMode *AuthenticationMode

	// The name of a container within the associated Storage account. This container contains either the blob(s) to be read from
	// or written to. Required on PUT (CreateOrReplace) requests.
	Container *string

	// The date format. Wherever {date} appears in pathPattern, the value of this property is used as the date format instead.
	DateFormat *string

	// The blob path pattern. Not a regular expression. It represents a pattern against which blob names will be matched to determine
	// whether or not they should be included as input or output to the job. See
	// https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-input or https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-output
	// for a more detailed explanation
	// and example.
	PathPattern *string

	// A list of one or more Azure Storage accounts. Required on PUT (CreateOrReplace) requests.
	StorageAccounts []*StorageAccount

	// The time format. Wherever {time} appears in pathPattern, the value of this property is used as the time format instead.
	TimeFormat *string
}

BlobDataSourceProperties - The properties that are associated with a blob data source.

func (BlobDataSourceProperties) MarshalJSON

func (b BlobDataSourceProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type BlobDataSourceProperties.

func (*BlobDataSourceProperties) UnmarshalJSON

func (b *BlobDataSourceProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type BlobDataSourceProperties.

type BlobOutputDataSource

type BlobOutputDataSource struct {
	// REQUIRED; Indicates the type of data source output will be written to. Required on PUT (CreateOrReplace) requests.
	Type *string

	// The properties that are associated with a blob output. Required on PUT (CreateOrReplace) requests.
	Properties *BlobOutputDataSourceProperties
}

BlobOutputDataSource - Describes a blob output data source.

func (*BlobOutputDataSource) GetOutputDataSource

func (b *BlobOutputDataSource) GetOutputDataSource() *OutputDataSource

GetOutputDataSource implements the OutputDataSourceClassification interface for type BlobOutputDataSource.

func (BlobOutputDataSource) MarshalJSON

func (b BlobOutputDataSource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type BlobOutputDataSource.

func (*BlobOutputDataSource) UnmarshalJSON

func (b *BlobOutputDataSource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type BlobOutputDataSource.

type BlobOutputDataSourceProperties

type BlobOutputDataSourceProperties struct {
	// Authentication Mode.
	AuthenticationMode *AuthenticationMode

	// Blob path prefix.
	BlobPathPrefix *string

	// Blob write mode.
	BlobWriteMode *BlobWriteMode

	// The name of a container within the associated Storage account. This container contains either the blob(s) to be read from
	// or written to. Required on PUT (CreateOrReplace) requests.
	Container *string

	// The date format. Wherever {date} appears in pathPattern, the value of this property is used as the date format instead.
	DateFormat *string

	// The blob path pattern. Not a regular expression. It represents a pattern against which blob names will be matched to determine
	// whether or not they should be included as input or output to the job. See
	// https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-input or https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-output
	// for a more detailed explanation
	// and example.
	PathPattern *string

	// A list of one or more Azure Storage accounts. Required on PUT (CreateOrReplace) requests.
	StorageAccounts []*StorageAccount

	// The time format. Wherever {time} appears in pathPattern, the value of this property is used as the time format instead.
	TimeFormat *string
}

BlobOutputDataSourceProperties - The properties that are associated with a blob output.

func (BlobOutputDataSourceProperties) MarshalJSON

func (b BlobOutputDataSourceProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type BlobOutputDataSourceProperties.

func (*BlobOutputDataSourceProperties) UnmarshalJSON

func (b *BlobOutputDataSourceProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type BlobOutputDataSourceProperties.

type BlobReferenceInputDataSource

type BlobReferenceInputDataSource struct {
	// REQUIRED; Indicates the type of input data source containing reference data. Required on PUT (CreateOrReplace) requests.
	Type *string

	// The properties that are associated with a blob input containing reference data. Required on PUT (CreateOrReplace) requests.
	Properties *BlobReferenceInputDataSourceProperties
}

BlobReferenceInputDataSource - Describes a blob input data source that contains reference data.

func (*BlobReferenceInputDataSource) GetReferenceInputDataSource

func (b *BlobReferenceInputDataSource) GetReferenceInputDataSource() *ReferenceInputDataSource

GetReferenceInputDataSource implements the ReferenceInputDataSourceClassification interface for type BlobReferenceInputDataSource.

func (BlobReferenceInputDataSource) MarshalJSON

func (b BlobReferenceInputDataSource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type BlobReferenceInputDataSource.

func (*BlobReferenceInputDataSource) UnmarshalJSON

func (b *BlobReferenceInputDataSource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type BlobReferenceInputDataSource.

type BlobReferenceInputDataSourceProperties

type BlobReferenceInputDataSourceProperties struct {
	// Authentication Mode.
	AuthenticationMode *AuthenticationMode

	// The name of the blob input.
	BlobName *string

	// The name of a container within the associated Storage account. This container contains either the blob(s) to be read from
	// or written to. Required on PUT (CreateOrReplace) requests.
	Container *string

	// The date format. Wherever {date} appears in pathPattern, the value of this property is used as the date format instead.
	DateFormat *string

	// The path pattern of the delta snapshot.
	DeltaPathPattern *string

	// The interval that the user generates a delta snapshot of this reference blob input data source.
	DeltaSnapshotRefreshRate *string

	// The refresh interval of the blob input data source.
	FullSnapshotRefreshRate *string

	// The blob path pattern. Not a regular expression. It represents a pattern against which blob names will be matched to determine
	// whether or not they should be included as input or output to the job. See
	// https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-input or https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-output
	// for a more detailed explanation
	// and example.
	PathPattern *string

	// The partition count of the blob input data source. Range 1 - 256.
	SourcePartitionCount *int32

	// A list of one or more Azure Storage accounts. Required on PUT (CreateOrReplace) requests.
	StorageAccounts []*StorageAccount

	// The time format. Wherever {time} appears in pathPattern, the value of this property is used as the time format instead.
	TimeFormat *string
}

BlobReferenceInputDataSourceProperties - The properties that are associated with a blob input containing reference data.

func (BlobReferenceInputDataSourceProperties) MarshalJSON

func (b BlobReferenceInputDataSourceProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type BlobReferenceInputDataSourceProperties.

func (*BlobReferenceInputDataSourceProperties) UnmarshalJSON

func (b *BlobReferenceInputDataSourceProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type BlobReferenceInputDataSourceProperties.

type BlobStreamInputDataSource

type BlobStreamInputDataSource struct {
	// REQUIRED; Indicates the type of input data source containing stream data. Required on PUT (CreateOrReplace) requests.
	Type *string

	// The properties that are associated with a blob input containing stream data. Required on PUT (CreateOrReplace) requests.
	Properties *BlobStreamInputDataSourceProperties
}

BlobStreamInputDataSource - Describes a blob input data source that contains stream data.

func (*BlobStreamInputDataSource) GetStreamInputDataSource

func (b *BlobStreamInputDataSource) GetStreamInputDataSource() *StreamInputDataSource

GetStreamInputDataSource implements the StreamInputDataSourceClassification interface for type BlobStreamInputDataSource.

func (BlobStreamInputDataSource) MarshalJSON

func (b BlobStreamInputDataSource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type BlobStreamInputDataSource.

func (*BlobStreamInputDataSource) UnmarshalJSON

func (b *BlobStreamInputDataSource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type BlobStreamInputDataSource.

type BlobStreamInputDataSourceProperties

type BlobStreamInputDataSourceProperties struct {
	// Authentication Mode.
	AuthenticationMode *AuthenticationMode

	// The name of a container within the associated Storage account. This container contains either the blob(s) to be read from
	// or written to. Required on PUT (CreateOrReplace) requests.
	Container *string

	// The date format. Wherever {date} appears in pathPattern, the value of this property is used as the date format instead.
	DateFormat *string

	// The blob path pattern. Not a regular expression. It represents a pattern against which blob names will be matched to determine
	// whether or not they should be included as input or output to the job. See
	// https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-input or https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-output
	// for a more detailed explanation
	// and example.
	PathPattern *string

	// The partition count of the blob input data source. Range 1 - 1024.
	SourcePartitionCount *int32

	// A list of one or more Azure Storage accounts. Required on PUT (CreateOrReplace) requests.
	StorageAccounts []*StorageAccount

	// The time format. Wherever {time} appears in pathPattern, the value of this property is used as the time format instead.
	TimeFormat *string
}

BlobStreamInputDataSourceProperties - The properties that are associated with a blob input containing stream data.

func (BlobStreamInputDataSourceProperties) MarshalJSON

func (b BlobStreamInputDataSourceProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type BlobStreamInputDataSourceProperties.

func (*BlobStreamInputDataSourceProperties) UnmarshalJSON

func (b *BlobStreamInputDataSourceProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type BlobStreamInputDataSourceProperties.

type BlobWriteMode

type BlobWriteMode string

BlobWriteMode - Determines whether blob blocks are either committed automatically or appended.

const (
	BlobWriteModeAppend BlobWriteMode = "Append"
	BlobWriteModeOnce   BlobWriteMode = "Once"
)

func PossibleBlobWriteModeValues

func PossibleBlobWriteModeValues() []BlobWriteMode

PossibleBlobWriteModeValues returns the possible values for the BlobWriteMode const type.

type CSVSerialization

type CSVSerialization struct {
	// REQUIRED; Indicates the type of serialization that the input or output uses. Required on PUT (CreateOrReplace) requests.
	Type *EventSerializationType

	// The properties that are associated with the CSV serialization type. Required on PUT (CreateOrReplace) requests.
	Properties *CSVSerializationProperties
}

CSVSerialization - Describes how data from an input is serialized or how data is serialized when written to an output in CSV format.

func (*CSVSerialization) GetSerialization

func (c *CSVSerialization) GetSerialization() *Serialization

GetSerialization implements the SerializationClassification interface for type CSVSerialization.

func (CSVSerialization) MarshalJSON

func (c CSVSerialization) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CSVSerialization.

func (*CSVSerialization) UnmarshalJSON

func (c *CSVSerialization) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CSVSerialization.

type CSVSerializationProperties

type CSVSerializationProperties struct {
	// Specifies the encoding of the incoming data in the case of input and the encoding of outgoing data in the case of output.
	// Required on PUT (CreateOrReplace) requests.
	Encoding *Encoding

	// Specifies the delimiter that will be used to separate comma-separated value (CSV) records. See https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-input
	// or
	// https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-output for a list of supported values. Required
	// on PUT (CreateOrReplace) requests.
	FieldDelimiter *string
}

CSVSerializationProperties - The properties that are associated with the CSV serialization type.

func (CSVSerializationProperties) MarshalJSON

func (c CSVSerializationProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CSVSerializationProperties.

func (*CSVSerializationProperties) UnmarshalJSON

func (c *CSVSerializationProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CSVSerializationProperties.

type CSharpFunctionBinding

type CSharpFunctionBinding struct {
	// REQUIRED; Indicates the function binding type.
	Type *string

	// The binding properties associated with a CSharp function.
	Properties *CSharpFunctionBindingProperties
}

CSharpFunctionBinding - The binding to a CSharp function.

func (*CSharpFunctionBinding) GetFunctionBinding

func (c *CSharpFunctionBinding) GetFunctionBinding() *FunctionBinding

GetFunctionBinding implements the FunctionBindingClassification interface for type CSharpFunctionBinding.

func (CSharpFunctionBinding) MarshalJSON

func (c CSharpFunctionBinding) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CSharpFunctionBinding.

func (*CSharpFunctionBinding) UnmarshalJSON

func (c *CSharpFunctionBinding) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CSharpFunctionBinding.

type CSharpFunctionBindingProperties

type CSharpFunctionBindingProperties struct {
	// The Csharp code containing a single function definition.
	Class *string

	// The Csharp code containing a single function definition.
	DllPath *string

	// The Csharp code containing a single function definition.
	Method *string

	// Refresh modes for Stream Analytics functions.
	UpdateMode *UpdateMode
}

CSharpFunctionBindingProperties - The binding properties associated with a CSharp function.

func (CSharpFunctionBindingProperties) MarshalJSON

func (c CSharpFunctionBindingProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CSharpFunctionBindingProperties.

func (*CSharpFunctionBindingProperties) UnmarshalJSON

func (c *CSharpFunctionBindingProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CSharpFunctionBindingProperties.

type CSharpFunctionBindingRetrievalProperties

type CSharpFunctionBindingRetrievalProperties struct {
	// The CSharp code containing a single function definition.
	Script *string

	// The function type.
	UdfType *string
}

CSharpFunctionBindingRetrievalProperties - The binding retrieval properties associated with a CSharp function.

func (CSharpFunctionBindingRetrievalProperties) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type CSharpFunctionBindingRetrievalProperties.

func (*CSharpFunctionBindingRetrievalProperties) UnmarshalJSON

func (c *CSharpFunctionBindingRetrievalProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CSharpFunctionBindingRetrievalProperties.

type CSharpFunctionRetrieveDefaultDefinitionParameters

type CSharpFunctionRetrieveDefaultDefinitionParameters struct {
	// REQUIRED; Indicates the function binding type.
	BindingType *string

	// The binding retrieval properties associated with a CSharp function.
	BindingRetrievalProperties *CSharpFunctionBindingRetrievalProperties
}

CSharpFunctionRetrieveDefaultDefinitionParameters - The parameters needed to retrieve the default function definition for a CSharp function.

func (*CSharpFunctionRetrieveDefaultDefinitionParameters) GetFunctionRetrieveDefaultDefinitionParameters

func (c *CSharpFunctionRetrieveDefaultDefinitionParameters) GetFunctionRetrieveDefaultDefinitionParameters() *FunctionRetrieveDefaultDefinitionParameters

GetFunctionRetrieveDefaultDefinitionParameters implements the FunctionRetrieveDefaultDefinitionParametersClassification interface for type CSharpFunctionRetrieveDefaultDefinitionParameters.

func (CSharpFunctionRetrieveDefaultDefinitionParameters) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type CSharpFunctionRetrieveDefaultDefinitionParameters.

func (*CSharpFunctionRetrieveDefaultDefinitionParameters) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type CSharpFunctionRetrieveDefaultDefinitionParameters.

type ClientFactory

type ClientFactory struct {
	// contains filtered or unexported fields
}

ClientFactory is a client factory used to create any client in this module. Don't use this type directly, use NewClientFactory instead.

func NewClientFactory

func NewClientFactory(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ClientFactory, error)

NewClientFactory creates a new instance of ClientFactory with the specified values. The parameter values will be propagated to any client created from this factory.

  • subscriptionID - The ID of the target subscription.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*ClientFactory) NewClustersClient

func (c *ClientFactory) NewClustersClient() *ClustersClient

NewClustersClient creates a new instance of ClustersClient.

func (*ClientFactory) NewFunctionsClient

func (c *ClientFactory) NewFunctionsClient() *FunctionsClient

NewFunctionsClient creates a new instance of FunctionsClient.

func (*ClientFactory) NewInputsClient

func (c *ClientFactory) NewInputsClient() *InputsClient

NewInputsClient creates a new instance of InputsClient.

func (*ClientFactory) NewOperationsClient

func (c *ClientFactory) NewOperationsClient() *OperationsClient

NewOperationsClient creates a new instance of OperationsClient.

func (*ClientFactory) NewOutputsClient

func (c *ClientFactory) NewOutputsClient() *OutputsClient

NewOutputsClient creates a new instance of OutputsClient.

func (*ClientFactory) NewPrivateEndpointsClient

func (c *ClientFactory) NewPrivateEndpointsClient() *PrivateEndpointsClient

NewPrivateEndpointsClient creates a new instance of PrivateEndpointsClient.

func (*ClientFactory) NewSKUClient

func (c *ClientFactory) NewSKUClient() *SKUClient

NewSKUClient creates a new instance of SKUClient.

func (*ClientFactory) NewStreamingJobsClient

func (c *ClientFactory) NewStreamingJobsClient() *StreamingJobsClient

NewStreamingJobsClient creates a new instance of StreamingJobsClient.

func (*ClientFactory) NewSubscriptionsClient

func (c *ClientFactory) NewSubscriptionsClient() *SubscriptionsClient

NewSubscriptionsClient creates a new instance of SubscriptionsClient.

func (*ClientFactory) NewTransformationsClient

func (c *ClientFactory) NewTransformationsClient() *TransformationsClient

NewTransformationsClient creates a new instance of TransformationsClient.

type Cluster

type Cluster struct {
	// The geo-location where the resource lives
	Location *string

	// The properties associated with a Stream Analytics cluster.
	Properties *ClusterProperties

	// The SKU of the cluster. This determines the size/capacity of the cluster. Required on PUT (CreateOrUpdate) requests.
	SKU *ClusterSKU

	// Resource tags.
	Tags map[string]*string

	// READ-ONLY; The current entity tag for the cluster. This is an opaque string. You can use it to detect whether the resource
	// has changed between requests. You can also use it in the If-Match or If-None-Match
	// headers for write operations for optimistic concurrency.
	Etag *string

	// READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
	Type *string
}

Cluster - A Stream Analytics Cluster object

func (Cluster) MarshalJSON

func (c Cluster) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Cluster.

func (*Cluster) UnmarshalJSON

func (c *Cluster) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Cluster.

type ClusterInfo

type ClusterInfo struct {
	// The resource id of cluster.
	ID *string
}

ClusterInfo - The properties associated with a Stream Analytics cluster.

func (ClusterInfo) MarshalJSON

func (c ClusterInfo) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ClusterInfo.

func (*ClusterInfo) UnmarshalJSON

func (c *ClusterInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ClusterInfo.

type ClusterJob

type ClusterJob struct {
	// READ-ONLY; Resource ID of the streaming job.
	ID *string

	// READ-ONLY; The current execution state of the streaming job.
	JobState *JobState

	// READ-ONLY; The number of streaming units that are used by the streaming job.
	StreamingUnits *int32
}

ClusterJob - A streaming job.

func (ClusterJob) MarshalJSON

func (c ClusterJob) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ClusterJob.

func (*ClusterJob) UnmarshalJSON

func (c *ClusterJob) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ClusterJob.

type ClusterJobListResult

type ClusterJobListResult struct {
	// READ-ONLY; The URL to fetch the next set of streaming jobs.
	NextLink *string

	// READ-ONLY; A list of streaming jobs.
	Value []*ClusterJob
}

ClusterJobListResult - A list of streaming jobs. Populated by a List operation.

func (ClusterJobListResult) MarshalJSON

func (c ClusterJobListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ClusterJobListResult.

func (*ClusterJobListResult) UnmarshalJSON

func (c *ClusterJobListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ClusterJobListResult.

type ClusterListResult

type ClusterListResult struct {
	// READ-ONLY; The URL to fetch the next set of clusters.
	NextLink *string

	// READ-ONLY; A list of clusters.
	Value []*Cluster
}

ClusterListResult - A list of clusters populated by a 'list' operation.

func (ClusterListResult) MarshalJSON

func (c ClusterListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ClusterListResult.

func (*ClusterListResult) UnmarshalJSON

func (c *ClusterListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ClusterListResult.

type ClusterProperties

type ClusterProperties struct {
	// READ-ONLY; Represents the number of streaming units currently being used on the cluster.
	CapacityAllocated *int32

	// READ-ONLY; Represents the sum of the SUs of all streaming jobs associated with the cluster. If all of the jobs were running,
	// this would be the capacity allocated.
	CapacityAssigned *int32

	// READ-ONLY; Unique identifier for the cluster.
	ClusterID *string

	// READ-ONLY; The date this cluster was created.
	CreatedDate *time.Time

	// READ-ONLY; The status of the cluster provisioning. The three terminal states are: Succeeded, Failed and Canceled
	ProvisioningState *ClusterProvisioningState
}

ClusterProperties - The properties associated with a Stream Analytics cluster.

func (ClusterProperties) MarshalJSON

func (c ClusterProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ClusterProperties.

func (*ClusterProperties) UnmarshalJSON

func (c *ClusterProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ClusterProperties.

type ClusterProvisioningState

type ClusterProvisioningState string

ClusterProvisioningState - The status of the cluster provisioning. The three terminal states are: Succeeded, Failed and Canceled

const (
	// ClusterProvisioningStateCanceled - The cluster provisioning was canceled.
	ClusterProvisioningStateCanceled ClusterProvisioningState = "Canceled"
	// ClusterProvisioningStateFailed - The cluster provisioning failed.
	ClusterProvisioningStateFailed ClusterProvisioningState = "Failed"
	// ClusterProvisioningStateInProgress - The cluster provisioning was inprogress.
	ClusterProvisioningStateInProgress ClusterProvisioningState = "InProgress"
	// ClusterProvisioningStateSucceeded - The cluster provisioning succeeded.
	ClusterProvisioningStateSucceeded ClusterProvisioningState = "Succeeded"
)

func PossibleClusterProvisioningStateValues

func PossibleClusterProvisioningStateValues() []ClusterProvisioningState

PossibleClusterProvisioningStateValues returns the possible values for the ClusterProvisioningState const type.

type ClusterSKU

type ClusterSKU struct {
	// Denotes the number of streaming units the cluster can support. Valid values for this property are multiples of 36 with
	// a minimum value of 36 and maximum value of 216. Required on PUT (CreateOrUpdate)
	// requests.
	Capacity *int32

	// Specifies the SKU name of the cluster. Required on PUT (CreateOrUpdate) requests.
	Name *ClusterSKUName
}

ClusterSKU - The SKU of the cluster. This determines the size/capacity of the cluster. Required on PUT (CreateOrUpdate) requests.

func (ClusterSKU) MarshalJSON

func (c ClusterSKU) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ClusterSKU.

func (*ClusterSKU) UnmarshalJSON

func (c *ClusterSKU) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ClusterSKU.

type ClusterSKUName

type ClusterSKUName string

ClusterSKUName - Specifies the SKU name of the cluster. Required on PUT (CreateOrUpdate) requests.

const (
	// ClusterSKUNameDefault - The default SKU.
	ClusterSKUNameDefault ClusterSKUName = "Default"
)

func PossibleClusterSKUNameValues

func PossibleClusterSKUNameValues() []ClusterSKUName

PossibleClusterSKUNameValues returns the possible values for the ClusterSKUName const type.

type ClustersClient

type ClustersClient struct {
	// contains filtered or unexported fields
}

ClustersClient contains the methods for the Clusters group. Don't use this type directly, use NewClustersClient() instead.

func NewClustersClient

func NewClustersClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ClustersClient, error)

NewClustersClient creates a new instance of ClustersClient with the specified values.

  • subscriptionID - The ID of the target subscription.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*ClustersClient) BeginCreateOrUpdate

func (client *ClustersClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, clusterName string, cluster Cluster, options *ClustersClientBeginCreateOrUpdateOptions) (*runtime.Poller[ClustersClientCreateOrUpdateResponse], error)

BeginCreateOrUpdate - Creates a Stream Analytics Cluster or replaces an already existing cluster. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2020-03-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • clusterName - The name of the cluster.
  • cluster - The definition of the cluster that will be used to create a new cluster or replace the existing one.
  • options - ClustersClientBeginCreateOrUpdateOptions contains the optional parameters for the ClustersClient.BeginCreateOrUpdate method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2020-03-01-preview/examples/Cluster_Create.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewClustersClient().BeginCreateOrUpdate(ctx, "sjrg", "An Example Cluster", armstreamanalytics.Cluster{
	Location: to.Ptr("North US"),
	Tags: map[string]*string{
		"key": to.Ptr("value"),
	},
	SKU: &armstreamanalytics.ClusterSKU{
		Name:     to.Ptr(armstreamanalytics.ClusterSKUNameDefault),
		Capacity: to.Ptr[int32](48),
	},
}, &armstreamanalytics.ClustersClientBeginCreateOrUpdateOptions{IfMatch: nil,
	IfNoneMatch: nil,
})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
	log.Fatalf("failed to pull the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Cluster = armstreamanalytics.Cluster{
// 	Name: to.Ptr("An Example Cluster"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/clusters"),
// 	ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/sjrg/providers/Microsoft.StreamAnalytics/clusters/AnExampleStreamingCluster"),
// 	Location: to.Ptr("North US"),
// 	Tags: map[string]*string{
// 		"key": to.Ptr("value"),
// 	},
// 	Etag: to.Ptr("F86B9B70-D5B1-451D-AFC8-0B42D4729B8C"),
// 	Properties: &armstreamanalytics.ClusterProperties{
// 		CapacityAllocated: to.Ptr[int32](0),
// 		CapacityAssigned: to.Ptr[int32](0),
// 		ClusterID: to.Ptr("B01C67EF-4739-4DDD-9FB2-427EB43DE839"),
// 		CreatedDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-25T01:00:00.000Z"); return t}()),
// 		ProvisioningState: to.Ptr(armstreamanalytics.ClusterProvisioningStateSucceeded),
// 	},
// 	SKU: &armstreamanalytics.ClusterSKU{
// 		Name: to.Ptr(armstreamanalytics.ClusterSKUNameDefault),
// 		Capacity: to.Ptr[int32](48),
// 	},
// }
Output:

func (*ClustersClient) BeginDelete

func (client *ClustersClient) BeginDelete(ctx context.Context, resourceGroupName string, clusterName string, options *ClustersClientBeginDeleteOptions) (*runtime.Poller[ClustersClientDeleteResponse], error)

BeginDelete - Deletes the specified cluster. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2020-03-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • clusterName - The name of the cluster.
  • options - ClustersClientBeginDeleteOptions contains the optional parameters for the ClustersClient.BeginDelete method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2020-03-01-preview/examples/Cluster_Delete.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewClustersClient().BeginDelete(ctx, "sjrg", "testcluster", nil)
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
_, err = poller.PollUntilDone(ctx, nil)
if err != nil {
	log.Fatalf("failed to pull the result: %v", err)
}
Output:

func (*ClustersClient) BeginUpdate

func (client *ClustersClient) BeginUpdate(ctx context.Context, resourceGroupName string, clusterName string, cluster Cluster, options *ClustersClientBeginUpdateOptions) (*runtime.Poller[ClustersClientUpdateResponse], error)

BeginUpdate - Updates an existing cluster. This can be used to partially update (ie. update one or two properties) a cluster without affecting the rest of the cluster definition. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2020-03-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • clusterName - The name of the cluster.
  • cluster - The properties specified here will overwrite the corresponding properties in the existing cluster (ie. Those properties will be updated).
  • options - ClustersClientBeginUpdateOptions contains the optional parameters for the ClustersClient.BeginUpdate method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2020-03-01-preview/examples/Cluster_Update.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewClustersClient().BeginUpdate(ctx, "sjrg", "testcluster", armstreamanalytics.Cluster{
	Location: to.Ptr("Central US"),
	SKU: &armstreamanalytics.ClusterSKU{
		Capacity: to.Ptr[int32](96),
	},
}, &armstreamanalytics.ClustersClientBeginUpdateOptions{IfMatch: nil})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
	log.Fatalf("failed to pull the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Cluster = armstreamanalytics.Cluster{
// 	Name: to.Ptr("An Example Cluster"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/clusters"),
// 	ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/sjrg/providers/Microsoft.StreamAnalytics/clusters/AnExampleStreamingCluster"),
// 	Location: to.Ptr("Central US"),
// 	Tags: map[string]*string{
// 		"key": to.Ptr("value"),
// 	},
// 	Etag: to.Ptr("F86B9B70-D5B1-451D-AFC8-0B42D4729B8C"),
// 	Properties: &armstreamanalytics.ClusterProperties{
// 		CapacityAllocated: to.Ptr[int32](36),
// 		CapacityAssigned: to.Ptr[int32](48),
// 		ClusterID: to.Ptr("B01C67EF-4739-4DDD-9FB2-427EB43DE839"),
// 		CreatedDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-25T01:00:00.000Z"); return t}()),
// 		ProvisioningState: to.Ptr(armstreamanalytics.ClusterProvisioningStateSucceeded),
// 	},
// 	SKU: &armstreamanalytics.ClusterSKU{
// 		Name: to.Ptr(armstreamanalytics.ClusterSKUNameDefault),
// 		Capacity: to.Ptr[int32](96),
// 	},
// }
Output:

func (*ClustersClient) Get

func (client *ClustersClient) Get(ctx context.Context, resourceGroupName string, clusterName string, options *ClustersClientGetOptions) (ClustersClientGetResponse, error)

Get - Gets information about the specified cluster. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2020-03-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • clusterName - The name of the cluster.
  • options - ClustersClientGetOptions contains the optional parameters for the ClustersClient.Get method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2020-03-01-preview/examples/Cluster_Get.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewClustersClient().Get(ctx, "sjrg", "testcluster", nil)
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Cluster = armstreamanalytics.Cluster{
// 	Name: to.Ptr("An Example Cluster"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/clusters"),
// 	ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/sjrg/providers/Microsoft.StreamAnalytics/clusters/AnExampleStreamingCluster"),
// 	Location: to.Ptr("Central US"),
// 	Tags: map[string]*string{
// 		"key": to.Ptr("value"),
// 	},
// 	Etag: to.Ptr("F86B9B70-D5B1-451D-AFC8-0B42D4729B8C"),
// 	Properties: &armstreamanalytics.ClusterProperties{
// 		CapacityAllocated: to.Ptr[int32](48),
// 		CapacityAssigned: to.Ptr[int32](96),
// 		ClusterID: to.Ptr("B01C67EF-4739-4DDD-9FB2-427EB43DE839"),
// 		CreatedDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-25T01:00:00.000Z"); return t}()),
// 		ProvisioningState: to.Ptr(armstreamanalytics.ClusterProvisioningStateSucceeded),
// 	},
// 	SKU: &armstreamanalytics.ClusterSKU{
// 		Name: to.Ptr(armstreamanalytics.ClusterSKUNameDefault),
// 		Capacity: to.Ptr[int32](96),
// 	},
// }
Output:

func (*ClustersClient) NewListByResourceGroupPager

func (client *ClustersClient) NewListByResourceGroupPager(resourceGroupName string, options *ClustersClientListByResourceGroupOptions) *runtime.Pager[ClustersClientListByResourceGroupResponse]

NewListByResourceGroupPager - Lists all of the clusters in the given resource group.

Generated from API version 2020-03-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • options - ClustersClientListByResourceGroupOptions contains the optional parameters for the ClustersClient.NewListByResourceGroupPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2020-03-01-preview/examples/Cluster_ListByResourceGroup.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewClustersClient().NewListByResourceGroupPager("sjrg", nil)
for pager.More() {
	page, err := pager.NextPage(ctx)
	if err != nil {
		log.Fatalf("failed to advance page: %v", err)
	}
	for _, v := range page.Value {
		// You could use page here. We use blank identifier for just demo purposes.
		_ = v
	}
	// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// page.ClusterListResult = armstreamanalytics.ClusterListResult{
	// 	Value: []*armstreamanalytics.Cluster{
	// 		{
	// 			Name: to.Ptr("An Example Cluster"),
	// 			Type: to.Ptr("Microsoft.StreamAnalytics/clusters"),
	// 			ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/sjrg/providers/Microsoft.StreamAnalytics/clusters/AnExampleStreamingCluster"),
	// 			Location: to.Ptr("Central US"),
	// 			Tags: map[string]*string{
	// 				"key": to.Ptr("value"),
	// 			},
	// 			Etag: to.Ptr("F86B9B70-D5B1-451D-AFC8-0B42D4729B8C"),
	// 			Properties: &armstreamanalytics.ClusterProperties{
	// 				CapacityAllocated: to.Ptr[int32](48),
	// 				CapacityAssigned: to.Ptr[int32](96),
	// 				ClusterID: to.Ptr("B01C67EF-4739-4DDD-9FB2-427EB43DE839"),
	// 				CreatedDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-25T01:00:00.000Z"); return t}()),
	// 				ProvisioningState: to.Ptr(armstreamanalytics.ClusterProvisioningStateSucceeded),
	// 			},
	// 			SKU: &armstreamanalytics.ClusterSKU{
	// 				Name: to.Ptr(armstreamanalytics.ClusterSKUNameDefault),
	// 				Capacity: to.Ptr[int32](96),
	// 			},
	// 		},
	// 		{
	// 			Name: to.Ptr("A Different Cluster"),
	// 			Type: to.Ptr("Microsoft.StreamAnalytics/clusters"),
	// 			ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/sjrg/providers/Microsoft.StreamAnalytics/clusters/ADifferentStreamingCluster"),
	// 			Location: to.Ptr("Central US"),
	// 			Tags: map[string]*string{
	// 				"key": to.Ptr("value"),
	// 			},
	// 			Etag: to.Ptr("G97C0C81-D5B1-451D-AFC8-0B42D4729B8C"),
	// 			Properties: &armstreamanalytics.ClusterProperties{
	// 				CapacityAllocated: to.Ptr[int32](48),
	// 				CapacityAssigned: to.Ptr[int32](96),
	// 				ClusterID: to.Ptr("B01C67EF-4739-4DDD-9FB2-427EB43DE839"),
	// 				CreatedDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-25T01:00:00.000Z"); return t}()),
	// 				ProvisioningState: to.Ptr(armstreamanalytics.ClusterProvisioningStateSucceeded),
	// 			},
	// 			SKU: &armstreamanalytics.ClusterSKU{
	// 				Name: to.Ptr(armstreamanalytics.ClusterSKUNameDefault),
	// 				Capacity: to.Ptr[int32](96),
	// 			},
	// 	}},
	// }
}
Output:

func (*ClustersClient) NewListBySubscriptionPager

NewListBySubscriptionPager - Lists all of the clusters in the given subscription.

Generated from API version 2020-03-01-preview

  • options - ClustersClientListBySubscriptionOptions contains the optional parameters for the ClustersClient.NewListBySubscriptionPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2020-03-01-preview/examples/Cluster_ListBySubscription.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewClustersClient().NewListBySubscriptionPager(nil)
for pager.More() {
	page, err := pager.NextPage(ctx)
	if err != nil {
		log.Fatalf("failed to advance page: %v", err)
	}
	for _, v := range page.Value {
		// You could use page here. We use blank identifier for just demo purposes.
		_ = v
	}
	// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// page.ClusterListResult = armstreamanalytics.ClusterListResult{
	// 	Value: []*armstreamanalytics.Cluster{
	// 		{
	// 			Name: to.Ptr("An Example Cluster"),
	// 			Type: to.Ptr("Microsoft.StreamAnalytics/clusters"),
	// 			ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/sjrg/providers/Microsoft.StreamAnalytics/clusters/AnExampleStreamingCluster"),
	// 			Location: to.Ptr("Central US"),
	// 			Tags: map[string]*string{
	// 				"key": to.Ptr("value"),
	// 			},
	// 			Etag: to.Ptr("F86B9B70-D5B1-451D-AFC8-0B42D4729B8C"),
	// 			Properties: &armstreamanalytics.ClusterProperties{
	// 				CapacityAllocated: to.Ptr[int32](48),
	// 				CapacityAssigned: to.Ptr[int32](96),
	// 				ClusterID: to.Ptr("B01C67EF-4739-4DDD-9FB2-427EB43DE839"),
	// 				CreatedDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-25T01:00:00.000Z"); return t}()),
	// 				ProvisioningState: to.Ptr(armstreamanalytics.ClusterProvisioningStateSucceeded),
	// 			},
	// 			SKU: &armstreamanalytics.ClusterSKU{
	// 				Name: to.Ptr(armstreamanalytics.ClusterSKUNameDefault),
	// 				Capacity: to.Ptr[int32](96),
	// 			},
	// 		},
	// 		{
	// 			Name: to.Ptr("A Different Cluster"),
	// 			Type: to.Ptr("Microsoft.StreamAnalytics/clusters"),
	// 			ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/sjrg/providers/Microsoft.StreamAnalytics/clusters/ADifferentStreamingCluster"),
	// 			Location: to.Ptr("Central US"),
	// 			Tags: map[string]*string{
	// 				"key": to.Ptr("value"),
	// 			},
	// 			Etag: to.Ptr("G97C0C81-D5B1-451D-AFC8-0B42D4729B8C"),
	// 			Properties: &armstreamanalytics.ClusterProperties{
	// 				CapacityAllocated: to.Ptr[int32](48),
	// 				CapacityAssigned: to.Ptr[int32](96),
	// 				ClusterID: to.Ptr("B01C67EF-4739-4DDD-9FB2-427EB43DE839"),
	// 				CreatedDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-25T01:00:00.000Z"); return t}()),
	// 				ProvisioningState: to.Ptr(armstreamanalytics.ClusterProvisioningStateSucceeded),
	// 			},
	// 			SKU: &armstreamanalytics.ClusterSKU{
	// 				Name: to.Ptr(armstreamanalytics.ClusterSKUNameDefault),
	// 				Capacity: to.Ptr[int32](96),
	// 			},
	// 	}},
	// }
}
Output:

func (*ClustersClient) NewListStreamingJobsPager

func (client *ClustersClient) NewListStreamingJobsPager(resourceGroupName string, clusterName string, options *ClustersClientListStreamingJobsOptions) *runtime.Pager[ClustersClientListStreamingJobsResponse]

NewListStreamingJobsPager - Lists all of the streaming jobs in the given cluster.

Generated from API version 2020-03-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • clusterName - The name of the cluster.
  • options - ClustersClientListStreamingJobsOptions contains the optional parameters for the ClustersClient.NewListStreamingJobsPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2020-03-01-preview/examples/Cluster_ListStreamingJobs.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewClustersClient().NewListStreamingJobsPager("sjrg", "testcluster", nil)
for pager.More() {
	page, err := pager.NextPage(ctx)
	if err != nil {
		log.Fatalf("failed to advance page: %v", err)
	}
	for _, v := range page.Value {
		// You could use page here. We use blank identifier for just demo purposes.
		_ = v
	}
	// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// page.ClusterJobListResult = armstreamanalytics.ClusterJobListResult{
	// 	Value: []*armstreamanalytics.ClusterJob{
	// 		{
	// 			ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/sjrg/providers/microsoft.streamAnalytics/streamingjobs/AFilterSample"),
	// 			JobState: to.Ptr(armstreamanalytics.JobStateRunning),
	// 			StreamingUnits: to.Ptr[int32](6),
	// 		},
	// 		{
	// 			ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/sjrg/providers/microsoft.streamAnalytics/streamingjobs/AnotherFilterSample"),
	// 			JobState: to.Ptr(armstreamanalytics.JobStateStopped),
	// 			StreamingUnits: to.Ptr[int32](1),
	// 	}},
	// }
}
Output:

type ClustersClientBeginCreateOrUpdateOptions

type ClustersClientBeginCreateOrUpdateOptions struct {
	// The ETag of the resource. Omit this value to always overwrite the current record set. Specify the last-seen ETag value
	// to prevent accidentally overwriting concurrent changes.
	IfMatch *string

	// Set to '*' to allow a new resource to be created, but to prevent updating an existing record set. Other values will result
	// in a 412 Pre-condition Failed response.
	IfNoneMatch *string

	// Resumes the LRO from the provided token.
	ResumeToken string
}

ClustersClientBeginCreateOrUpdateOptions contains the optional parameters for the ClustersClient.BeginCreateOrUpdate method.

type ClustersClientBeginDeleteOptions

type ClustersClientBeginDeleteOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

ClustersClientBeginDeleteOptions contains the optional parameters for the ClustersClient.BeginDelete method.

type ClustersClientBeginUpdateOptions

type ClustersClientBeginUpdateOptions struct {
	// The ETag of the resource. Omit this value to always overwrite the current record set. Specify the last-seen ETag value
	// to prevent accidentally overwriting concurrent changes.
	IfMatch *string

	// Resumes the LRO from the provided token.
	ResumeToken string
}

ClustersClientBeginUpdateOptions contains the optional parameters for the ClustersClient.BeginUpdate method.

type ClustersClientCreateOrUpdateResponse

type ClustersClientCreateOrUpdateResponse struct {
	// A Stream Analytics Cluster object
	Cluster
}

ClustersClientCreateOrUpdateResponse contains the response from method ClustersClient.BeginCreateOrUpdate.

type ClustersClientDeleteResponse

type ClustersClientDeleteResponse struct {
}

ClustersClientDeleteResponse contains the response from method ClustersClient.BeginDelete.

type ClustersClientGetOptions

type ClustersClientGetOptions struct {
}

ClustersClientGetOptions contains the optional parameters for the ClustersClient.Get method.

type ClustersClientGetResponse

type ClustersClientGetResponse struct {
	// A Stream Analytics Cluster object
	Cluster
}

ClustersClientGetResponse contains the response from method ClustersClient.Get.

type ClustersClientListByResourceGroupOptions

type ClustersClientListByResourceGroupOptions struct {
}

ClustersClientListByResourceGroupOptions contains the optional parameters for the ClustersClient.NewListByResourceGroupPager method.

type ClustersClientListByResourceGroupResponse

type ClustersClientListByResourceGroupResponse struct {
	// A list of clusters populated by a 'list' operation.
	ClusterListResult
}

ClustersClientListByResourceGroupResponse contains the response from method ClustersClient.NewListByResourceGroupPager.

type ClustersClientListBySubscriptionOptions

type ClustersClientListBySubscriptionOptions struct {
}

ClustersClientListBySubscriptionOptions contains the optional parameters for the ClustersClient.NewListBySubscriptionPager method.

type ClustersClientListBySubscriptionResponse

type ClustersClientListBySubscriptionResponse struct {
	// A list of clusters populated by a 'list' operation.
	ClusterListResult
}

ClustersClientListBySubscriptionResponse contains the response from method ClustersClient.NewListBySubscriptionPager.

type ClustersClientListStreamingJobsOptions

type ClustersClientListStreamingJobsOptions struct {
}

ClustersClientListStreamingJobsOptions contains the optional parameters for the ClustersClient.NewListStreamingJobsPager method.

type ClustersClientListStreamingJobsResponse

type ClustersClientListStreamingJobsResponse struct {
	// A list of streaming jobs. Populated by a List operation.
	ClusterJobListResult
}

ClustersClientListStreamingJobsResponse contains the response from method ClustersClient.NewListStreamingJobsPager.

type ClustersClientUpdateResponse

type ClustersClientUpdateResponse struct {
	// A Stream Analytics Cluster object
	Cluster
}

ClustersClientUpdateResponse contains the response from method ClustersClient.BeginUpdate.

type CompatibilityLevel

type CompatibilityLevel string

CompatibilityLevel - Controls certain runtime behaviors of the streaming job.

const (
	CompatibilityLevelOne0 CompatibilityLevel = "1.0"
	CompatibilityLevelOne2 CompatibilityLevel = "1.2"
)

func PossibleCompatibilityLevelValues

func PossibleCompatibilityLevelValues() []CompatibilityLevel

PossibleCompatibilityLevelValues returns the possible values for the CompatibilityLevel const type.

type CompileQuery

type CompileQuery struct {
	// REQUIRED; Describes the type of the job. Valid values are Cloud and 'Edge'.
	JobType *JobType

	// REQUIRED; The query to compile.
	Query *string

	// The query to compile.
	CompatibilityLevel *CompatibilityLevel

	// The functions for the query compilation.
	Functions []*QueryFunction

	// The inputs for the query compilation.
	Inputs []*QueryInput
}

CompileQuery - The query compilation object which defines the input, output, and transformation for the query compilation.

func (CompileQuery) MarshalJSON

func (c CompileQuery) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CompileQuery.

func (*CompileQuery) UnmarshalJSON

func (c *CompileQuery) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CompileQuery.

type Compression

type Compression struct {
	// REQUIRED; Indicates the type of compression that the input uses. Required on PUT (CreateOrReplace) requests.
	Type *CompressionType
}

Compression - Describes how input data is compressed

func (Compression) MarshalJSON

func (c Compression) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Compression.

func (*Compression) UnmarshalJSON

func (c *Compression) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Compression.

type CompressionType

type CompressionType string

CompressionType - Indicates the type of compression that the input uses. Required on PUT (CreateOrReplace) requests.

const (
	CompressionTypeDeflate CompressionType = "Deflate"
	CompressionTypeGZip    CompressionType = "GZip"
	CompressionTypeNone    CompressionType = "None"
)

func PossibleCompressionTypeValues

func PossibleCompressionTypeValues() []CompressionType

PossibleCompressionTypeValues returns the possible values for the CompressionType const type.

type ContentStoragePolicy

type ContentStoragePolicy string

ContentStoragePolicy - Valid values are JobStorageAccount and SystemAccount. If set to JobStorageAccount, this requires the user to also specify jobStorageAccount property. .

const (
	ContentStoragePolicyJobStorageAccount ContentStoragePolicy = "JobStorageAccount"
	ContentStoragePolicySystemAccount     ContentStoragePolicy = "SystemAccount"
)

func PossibleContentStoragePolicyValues

func PossibleContentStoragePolicyValues() []ContentStoragePolicy

PossibleContentStoragePolicyValues returns the possible values for the ContentStoragePolicy const type.

type CustomClrSerialization

type CustomClrSerialization struct {
	// REQUIRED; Indicates the type of serialization that the input or output uses. Required on PUT (CreateOrReplace) requests.
	Type *EventSerializationType

	// The properties that are associated with the CustomClr serialization type. Required on PUT (CreateOrReplace) requests.
	Properties *CustomClrSerializationProperties
}

CustomClrSerialization - Describes how data from an input is serialized or how data is serialized when written to an output in custom format.

func (*CustomClrSerialization) GetSerialization

func (c *CustomClrSerialization) GetSerialization() *Serialization

GetSerialization implements the SerializationClassification interface for type CustomClrSerialization.

func (CustomClrSerialization) MarshalJSON

func (c CustomClrSerialization) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CustomClrSerialization.

func (*CustomClrSerialization) UnmarshalJSON

func (c *CustomClrSerialization) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CustomClrSerialization.

type CustomClrSerializationProperties

type CustomClrSerializationProperties struct {
	// The serialization class name.
	SerializationClassName *string

	// The serialization library path.
	SerializationDllPath *string
}

CustomClrSerializationProperties - The properties that are associated with the CustomClr serialization type.

func (CustomClrSerializationProperties) MarshalJSON

func (c CustomClrSerializationProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CustomClrSerializationProperties.

func (*CustomClrSerializationProperties) UnmarshalJSON

func (c *CustomClrSerializationProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type CustomClrSerializationProperties.

type DeltaSerialization

type DeltaSerialization struct {
	// REQUIRED; Indicates the type of serialization that the input or output uses. Required on PUT (CreateOrReplace) requests.
	Type *EventSerializationType

	// The properties that are associated with the Delta Lake serialization type. Required on PUT (CreateOrReplace) requests.
	Properties *DeltaSerializationProperties
}

DeltaSerialization - Describes how data from an input is serialized or how data is serialized when written to an output in Delta Lake format.

func (*DeltaSerialization) GetSerialization

func (d *DeltaSerialization) GetSerialization() *Serialization

GetSerialization implements the SerializationClassification interface for type DeltaSerialization.

func (DeltaSerialization) MarshalJSON

func (d DeltaSerialization) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DeltaSerialization.

func (*DeltaSerialization) UnmarshalJSON

func (d *DeltaSerialization) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DeltaSerialization.

type DeltaSerializationProperties

type DeltaSerializationProperties struct {
	// REQUIRED; Specifies the path of the Delta Lake table that the output will be written to.
	DeltaTablePath *string

	// Specifies the names of the columns for which the Delta Lake table will be partitioned. We are only supporting 1 partition
	// column, but keeping it as an array for extensibility.
	PartitionColumns []*string
}

DeltaSerializationProperties - The properties that are associated with the Delta Lake serialization type.

func (DeltaSerializationProperties) MarshalJSON

func (d DeltaSerializationProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DeltaSerializationProperties.

func (*DeltaSerializationProperties) UnmarshalJSON

func (d *DeltaSerializationProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DeltaSerializationProperties.

type DiagnosticCondition

type DiagnosticCondition struct {
	// READ-ONLY; The opaque diagnostic code.
	Code *string

	// READ-ONLY; The human-readable message describing the condition in detail. Localized in the Accept-Language of the client
	// request.
	Message *string

	// READ-ONLY; The UTC timestamp of when the condition started. Customers should be able to find a corresponding event in the
	// ops log around this time.
	Since *string
}

DiagnosticCondition - Condition applicable to the resource, or to the job overall, that warrant customer attention.

func (DiagnosticCondition) MarshalJSON

func (d DiagnosticCondition) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DiagnosticCondition.

func (*DiagnosticCondition) UnmarshalJSON

func (d *DiagnosticCondition) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DiagnosticCondition.

type Diagnostics

type Diagnostics struct {
	// READ-ONLY; A collection of zero or more conditions applicable to the resource, or to the job overall, that warrant customer
	// attention.
	Conditions []*DiagnosticCondition
}

Diagnostics - Describes conditions applicable to the Input, Output, or the job overall, that warrant customer attention.

func (Diagnostics) MarshalJSON

func (d Diagnostics) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Diagnostics.

func (*Diagnostics) UnmarshalJSON

func (d *Diagnostics) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Diagnostics.

type DocumentDbOutputDataSource

type DocumentDbOutputDataSource struct {
	// REQUIRED; Indicates the type of data source output will be written to. Required on PUT (CreateOrReplace) requests.
	Type *string

	// The properties that are associated with a DocumentDB output. Required on PUT (CreateOrReplace) requests.
	Properties *DocumentDbOutputDataSourceProperties
}

DocumentDbOutputDataSource - Describes a DocumentDB output data source.

func (*DocumentDbOutputDataSource) GetOutputDataSource

func (d *DocumentDbOutputDataSource) GetOutputDataSource() *OutputDataSource

GetOutputDataSource implements the OutputDataSourceClassification interface for type DocumentDbOutputDataSource.

func (DocumentDbOutputDataSource) MarshalJSON

func (d DocumentDbOutputDataSource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DocumentDbOutputDataSource.

func (*DocumentDbOutputDataSource) UnmarshalJSON

func (d *DocumentDbOutputDataSource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DocumentDbOutputDataSource.

type DocumentDbOutputDataSourceProperties

type DocumentDbOutputDataSourceProperties struct {
	// The DocumentDB account name or ID. Required on PUT (CreateOrReplace) requests.
	AccountID *string

	// The account key for the DocumentDB account. Required on PUT (CreateOrReplace) requests.
	AccountKey *string

	// Authentication Mode.
	AuthenticationMode *AuthenticationMode

	// The collection name pattern for the collections to be used. The collection name format can be constructed using the optional
	// {partition} token, where partitions start from 0. See the DocumentDB
	// section of https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-output for more information. Required
	// on PUT (CreateOrReplace) requests.
	CollectionNamePattern *string

	// The name of the DocumentDB database. Required on PUT (CreateOrReplace) requests.
	Database *string

	// The name of the field in output events used to specify the primary key which insert or update operations are based on.
	DocumentID *string

	// The name of the field in output events used to specify the key for partitioning output across collections. If 'collectionNamePattern'
	// contains the {partition} token, this property is required to be
	// specified.
	PartitionKey *string
}

DocumentDbOutputDataSourceProperties - The properties that are associated with a DocumentDB output.

func (DocumentDbOutputDataSourceProperties) MarshalJSON

func (d DocumentDbOutputDataSourceProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DocumentDbOutputDataSourceProperties.

func (*DocumentDbOutputDataSourceProperties) UnmarshalJSON

func (d *DocumentDbOutputDataSourceProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type DocumentDbOutputDataSourceProperties.

type Encoding

type Encoding string

Encoding - Specifies the encoding of the incoming data in the case of input and the encoding of outgoing data in the case of output.

const (
	EncodingUTF8 Encoding = "UTF8"
)

func PossibleEncodingValues

func PossibleEncodingValues() []Encoding

PossibleEncodingValues returns the possible values for the Encoding const type.

type Error

type Error struct {
	// Error definition properties.
	Error *ErrorError
}

Error - Common error representation.

func (Error) MarshalJSON

func (e Error) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Error.

func (*Error) UnmarshalJSON

func (e *Error) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Error.

type ErrorDetails

type ErrorDetails struct {
	// Error code.
	Code *string

	// Error message.
	Message *string

	// Error target.
	Target *string
}

ErrorDetails - Common error details representation.

func (ErrorDetails) MarshalJSON

func (e ErrorDetails) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ErrorDetails.

func (*ErrorDetails) UnmarshalJSON

func (e *ErrorDetails) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ErrorDetails.

type ErrorError

type ErrorError struct {
	// Error code.
	Code *string

	// Error details.
	Details []*ErrorDetails

	// Error message.
	Message *string

	// Error target.
	Target *string
}

ErrorError - Error definition properties.

func (ErrorError) MarshalJSON

func (e ErrorError) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ErrorError.

func (*ErrorError) UnmarshalJSON

func (e *ErrorError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ErrorError.

type ErrorResponse

type ErrorResponse struct {
	// READ-ONLY; Error code associated with the error that occurred.
	Code *string

	// READ-ONLY; Describes the error in detail.
	Message *string
}

ErrorResponse - Describes the error that occurred.

func (ErrorResponse) MarshalJSON

func (e ErrorResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ErrorResponse.

func (*ErrorResponse) UnmarshalJSON

func (e *ErrorResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ErrorResponse.

type EventGridEventSchemaType

type EventGridEventSchemaType string

EventGridEventSchemaType - Supported Event Grid schema types.

const (
	EventGridEventSchemaTypeCloudEventSchema     EventGridEventSchemaType = "CloudEventSchema"
	EventGridEventSchemaTypeEventGridEventSchema EventGridEventSchemaType = "EventGridEventSchema"
)

func PossibleEventGridEventSchemaTypeValues

func PossibleEventGridEventSchemaTypeValues() []EventGridEventSchemaType

PossibleEventGridEventSchemaTypeValues returns the possible values for the EventGridEventSchemaType const type.

type EventGridStreamInputDataSource

type EventGridStreamInputDataSource struct {
	// REQUIRED; Indicates the type of input data source containing stream data. Required on PUT (CreateOrReplace) requests.
	Type *string

	// The properties that are associated with an event grid input containing stream data.
	Properties *EventGridStreamInputDataSourceProperties
}

EventGridStreamInputDataSource - Describes an event grid input data source that contains stream data.

func (*EventGridStreamInputDataSource) GetStreamInputDataSource

func (e *EventGridStreamInputDataSource) GetStreamInputDataSource() *StreamInputDataSource

GetStreamInputDataSource implements the StreamInputDataSourceClassification interface for type EventGridStreamInputDataSource.

func (EventGridStreamInputDataSource) MarshalJSON

func (e EventGridStreamInputDataSource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type EventGridStreamInputDataSource.

func (*EventGridStreamInputDataSource) UnmarshalJSON

func (e *EventGridStreamInputDataSource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type EventGridStreamInputDataSource.

type EventGridStreamInputDataSourceProperties

type EventGridStreamInputDataSourceProperties struct {
	// List of Event Types that are supported by the Event Grid adapter.
	EventTypes []*string

	// Indicates the Event Grid schema type.
	Schema *EventGridEventSchemaType

	// A list of one or more Azure Storage accounts. Required on PUT (CreateOrReplace) requests.
	StorageAccounts []*StorageAccount

	// Subscribers for the Event Grid. Currently only EventHub Subscriber is supported.
	Subscriber *EventHubV2StreamInputDataSource
}

EventGridStreamInputDataSourceProperties - The properties that are associated with an event grid input containing stream data.

func (EventGridStreamInputDataSourceProperties) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type EventGridStreamInputDataSourceProperties.

func (*EventGridStreamInputDataSourceProperties) UnmarshalJSON

func (e *EventGridStreamInputDataSourceProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type EventGridStreamInputDataSourceProperties.

type EventHubDataSourceProperties

type EventHubDataSourceProperties struct {
	// Authentication Mode.
	AuthenticationMode *AuthenticationMode

	// The name of the Event Hub. Required on PUT (CreateOrReplace) requests.
	EventHubName *string

	// The partition count of the event hub data source. Range 1 - 256.
	PartitionCount *int32

	// The namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus Topic, etc. Required on PUT
	// (CreateOrReplace) requests.
	ServiceBusNamespace *string

	// The shared access policy key for the specified shared access policy. Required on PUT (CreateOrReplace) requests.
	SharedAccessPolicyKey *string

	// The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc. Required on PUT (CreateOrReplace)
	// requests.
	SharedAccessPolicyName *string
}

EventHubDataSourceProperties - The common properties that are associated with Event Hub data sources.

func (EventHubDataSourceProperties) MarshalJSON

func (e EventHubDataSourceProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type EventHubDataSourceProperties.

func (*EventHubDataSourceProperties) UnmarshalJSON

func (e *EventHubDataSourceProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type EventHubDataSourceProperties.

type EventHubOutputDataSource

type EventHubOutputDataSource struct {
	// REQUIRED; Indicates the type of data source output will be written to. Required on PUT (CreateOrReplace) requests.
	Type *string

	// The properties that are associated with an Event Hub output. Required on PUT (CreateOrReplace) requests.
	Properties *EventHubOutputDataSourceProperties
}

EventHubOutputDataSource - Describes an Event Hub output data source.

func (*EventHubOutputDataSource) GetOutputDataSource

func (e *EventHubOutputDataSource) GetOutputDataSource() *OutputDataSource

GetOutputDataSource implements the OutputDataSourceClassification interface for type EventHubOutputDataSource.

func (EventHubOutputDataSource) MarshalJSON

func (e EventHubOutputDataSource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type EventHubOutputDataSource.

func (*EventHubOutputDataSource) UnmarshalJSON

func (e *EventHubOutputDataSource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type EventHubOutputDataSource.

type EventHubOutputDataSourceProperties

type EventHubOutputDataSourceProperties struct {
	// Authentication Mode.
	AuthenticationMode *AuthenticationMode

	// The name of the Event Hub. Required on PUT (CreateOrReplace) requests.
	EventHubName *string

	// The partition count of the event hub data source. Range 1 - 256.
	PartitionCount *int32

	// The key/column that is used to determine to which partition to send event data.
	PartitionKey *string

	// The properties associated with this Event Hub output.
	PropertyColumns []*string

	// The namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus Topic, etc. Required on PUT
	// (CreateOrReplace) requests.
	ServiceBusNamespace *string

	// The shared access policy key for the specified shared access policy. Required on PUT (CreateOrReplace) requests.
	SharedAccessPolicyKey *string

	// The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc. Required on PUT (CreateOrReplace)
	// requests.
	SharedAccessPolicyName *string
}

EventHubOutputDataSourceProperties - The properties that are associated with an Event Hub output.

func (EventHubOutputDataSourceProperties) MarshalJSON

func (e EventHubOutputDataSourceProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type EventHubOutputDataSourceProperties.

func (*EventHubOutputDataSourceProperties) UnmarshalJSON

func (e *EventHubOutputDataSourceProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type EventHubOutputDataSourceProperties.

type EventHubStreamInputDataSource

type EventHubStreamInputDataSource struct {
	// REQUIRED; Indicates the type of input data source containing stream data. Required on PUT (CreateOrReplace) requests.
	Type *string

	// The properties that are associated with an Event Hub input containing stream data. Required on PUT (CreateOrReplace) requests.
	Properties *EventHubStreamInputDataSourceProperties
}

EventHubStreamInputDataSource - Describes an Event Hub input data source that contains stream data.

func (*EventHubStreamInputDataSource) GetStreamInputDataSource

func (e *EventHubStreamInputDataSource) GetStreamInputDataSource() *StreamInputDataSource

GetStreamInputDataSource implements the StreamInputDataSourceClassification interface for type EventHubStreamInputDataSource.

func (EventHubStreamInputDataSource) MarshalJSON

func (e EventHubStreamInputDataSource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type EventHubStreamInputDataSource.

func (*EventHubStreamInputDataSource) UnmarshalJSON

func (e *EventHubStreamInputDataSource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type EventHubStreamInputDataSource.

type EventHubStreamInputDataSourceProperties

type EventHubStreamInputDataSourceProperties struct {
	// Authentication Mode.
	AuthenticationMode *AuthenticationMode

	// The name of an Event Hub Consumer Group that should be used to read events from the Event Hub. Specifying distinct consumer
	// group names for multiple inputs allows each of those inputs to receive the
	// same events from the Event Hub. If not specified, the input uses the Event Hub’s default consumer group.
	ConsumerGroupName *string

	// The name of the Event Hub. Required on PUT (CreateOrReplace) requests.
	EventHubName *string

	// The partition count of the event hub data source. Range 1 - 256.
	PartitionCount *int32

	// The number of messages that the message receiver can simultaneously request.
	PrefetchCount *int32

	// The namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus Topic, etc. Required on PUT
	// (CreateOrReplace) requests.
	ServiceBusNamespace *string

	// The shared access policy key for the specified shared access policy. Required on PUT (CreateOrReplace) requests.
	SharedAccessPolicyKey *string

	// The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc. Required on PUT (CreateOrReplace)
	// requests.
	SharedAccessPolicyName *string
}

EventHubStreamInputDataSourceProperties - The properties that are associated with a Event Hub input containing stream data.

func (EventHubStreamInputDataSourceProperties) MarshalJSON

func (e EventHubStreamInputDataSourceProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type EventHubStreamInputDataSourceProperties.

func (*EventHubStreamInputDataSourceProperties) UnmarshalJSON

func (e *EventHubStreamInputDataSourceProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type EventHubStreamInputDataSourceProperties.

type EventHubV2OutputDataSource

type EventHubV2OutputDataSource struct {
	// REQUIRED; Indicates the type of data source output will be written to. Required on PUT (CreateOrReplace) requests.
	Type *string

	// The properties that are associated with an Event Hub output. Required on PUT (CreateOrReplace) requests.
	Properties *EventHubOutputDataSourceProperties
}

EventHubV2OutputDataSource - Describes an Event Hub output data source.

func (*EventHubV2OutputDataSource) GetOutputDataSource

func (e *EventHubV2OutputDataSource) GetOutputDataSource() *OutputDataSource

GetOutputDataSource implements the OutputDataSourceClassification interface for type EventHubV2OutputDataSource.

func (EventHubV2OutputDataSource) MarshalJSON

func (e EventHubV2OutputDataSource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type EventHubV2OutputDataSource.

func (*EventHubV2OutputDataSource) UnmarshalJSON

func (e *EventHubV2OutputDataSource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type EventHubV2OutputDataSource.

type EventHubV2StreamInputDataSource

type EventHubV2StreamInputDataSource struct {
	// REQUIRED; Indicates the type of input data source containing stream data. Required on PUT (CreateOrReplace) requests.
	Type *string

	// The properties that are associated with an Event Hub input containing stream data. Required on PUT (CreateOrReplace) requests.
	Properties *EventHubStreamInputDataSourceProperties
}

EventHubV2StreamInputDataSource - Describes an Event Hub input data source that contains stream data.

func (*EventHubV2StreamInputDataSource) GetStreamInputDataSource

func (e *EventHubV2StreamInputDataSource) GetStreamInputDataSource() *StreamInputDataSource

GetStreamInputDataSource implements the StreamInputDataSourceClassification interface for type EventHubV2StreamInputDataSource.

func (EventHubV2StreamInputDataSource) MarshalJSON

func (e EventHubV2StreamInputDataSource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type EventHubV2StreamInputDataSource.

func (*EventHubV2StreamInputDataSource) UnmarshalJSON

func (e *EventHubV2StreamInputDataSource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type EventHubV2StreamInputDataSource.

type EventSerializationType

type EventSerializationType string

EventSerializationType - Indicates the type of serialization that the input or output uses. Required on PUT (CreateOrReplace) requests.

const (
	EventSerializationTypeAvro      EventSerializationType = "Avro"
	EventSerializationTypeCSV       EventSerializationType = "Csv"
	EventSerializationTypeCustomClr EventSerializationType = "CustomClr"
	EventSerializationTypeDelta     EventSerializationType = "Delta"
	EventSerializationTypeJSON      EventSerializationType = "Json"
	EventSerializationTypeParquet   EventSerializationType = "Parquet"
)

func PossibleEventSerializationTypeValues

func PossibleEventSerializationTypeValues() []EventSerializationType

PossibleEventSerializationTypeValues returns the possible values for the EventSerializationType const type.

type EventsOutOfOrderPolicy

type EventsOutOfOrderPolicy string

EventsOutOfOrderPolicy - Indicates the policy to apply to events that arrive out of order in the input event stream.

const (
	EventsOutOfOrderPolicyAdjust EventsOutOfOrderPolicy = "Adjust"
	EventsOutOfOrderPolicyDrop   EventsOutOfOrderPolicy = "Drop"
)

func PossibleEventsOutOfOrderPolicyValues

func PossibleEventsOutOfOrderPolicyValues() []EventsOutOfOrderPolicy

PossibleEventsOutOfOrderPolicyValues returns the possible values for the EventsOutOfOrderPolicy const type.

type External

type External struct {
	// The UserCustomCode container.
	Container *string

	// The UserCustomCode path.
	Path *string

	// The refresh parameters for any/all updatable user defined functions present in the job config.
	RefreshConfiguration *RefreshConfiguration

	// The properties that are associated with an Azure Storage account
	StorageAccount *StorageAccount
}

External - The storage account where the custom code artifacts are located.

func (External) MarshalJSON

func (e External) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type External.

func (*External) UnmarshalJSON

func (e *External) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type External.

type FileReferenceInputDataSource

type FileReferenceInputDataSource struct {
	// REQUIRED; Indicates the type of input data source containing reference data. Required on PUT (CreateOrReplace) requests.
	Type *string

	// The properties that are associated with a file input containing reference data. Required on PUT (CreateOrReplace) requests.
	Properties *FileReferenceInputDataSourceProperties
}

FileReferenceInputDataSource - Describes a file input data source that contains reference data.

func (*FileReferenceInputDataSource) GetReferenceInputDataSource

func (f *FileReferenceInputDataSource) GetReferenceInputDataSource() *ReferenceInputDataSource

GetReferenceInputDataSource implements the ReferenceInputDataSourceClassification interface for type FileReferenceInputDataSource.

func (FileReferenceInputDataSource) MarshalJSON

func (f FileReferenceInputDataSource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type FileReferenceInputDataSource.

func (*FileReferenceInputDataSource) UnmarshalJSON

func (f *FileReferenceInputDataSource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type FileReferenceInputDataSource.

type FileReferenceInputDataSourceProperties

type FileReferenceInputDataSourceProperties struct {
	// The path of the file.
	Path *string
}

FileReferenceInputDataSourceProperties - The properties that are associated with a file input containing reference data.

func (FileReferenceInputDataSourceProperties) MarshalJSON

func (f FileReferenceInputDataSourceProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type FileReferenceInputDataSourceProperties.

func (*FileReferenceInputDataSourceProperties) UnmarshalJSON

func (f *FileReferenceInputDataSourceProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type FileReferenceInputDataSourceProperties.

type Function

type Function struct {
	// Resource name
	Name *string

	// The properties that are associated with a function.
	Properties FunctionPropertiesClassification

	// READ-ONLY; Resource Id
	ID *string

	// READ-ONLY; Resource type
	Type *string
}

Function - A function object, containing all information associated with the named function. All functions are contained under a streaming job.

func (Function) MarshalJSON

func (f Function) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Function.

func (*Function) UnmarshalJSON

func (f *Function) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Function.

type FunctionBinding

type FunctionBinding struct {
	// REQUIRED; Indicates the function binding type.
	Type *string
}

FunctionBinding - The physical binding of the function. For example, in the Azure Machine Learning web service’s case, this describes the endpoint.

func (*FunctionBinding) GetFunctionBinding

func (f *FunctionBinding) GetFunctionBinding() *FunctionBinding

GetFunctionBinding implements the FunctionBindingClassification interface for type FunctionBinding.

func (FunctionBinding) MarshalJSON

func (f FunctionBinding) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type FunctionBinding.

func (*FunctionBinding) UnmarshalJSON

func (f *FunctionBinding) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type FunctionBinding.

type FunctionBindingClassification

type FunctionBindingClassification interface {
	// GetFunctionBinding returns the FunctionBinding content of the underlying type.
	GetFunctionBinding() *FunctionBinding
}

FunctionBindingClassification provides polymorphic access to related types. Call the interface's GetFunctionBinding() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *AzureMachineLearningServiceFunctionBinding, *AzureMachineLearningStudioFunctionBinding, *CSharpFunctionBinding, *FunctionBinding, - *JavaScriptFunctionBinding

type FunctionConfiguration

type FunctionConfiguration struct {
	// The physical binding of the function. For example, in the Azure Machine Learning web service’s case, this describes the
	// endpoint.
	Binding FunctionBindingClassification
	Inputs  []*FunctionInput

	// Describes the output of a function.
	Output *FunctionOutput
}

func (FunctionConfiguration) MarshalJSON

func (f FunctionConfiguration) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type FunctionConfiguration.

func (*FunctionConfiguration) UnmarshalJSON

func (f *FunctionConfiguration) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type FunctionConfiguration.

type FunctionInput

type FunctionInput struct {
	// The (Azure Stream Analytics supported) data type of the function input parameter. A list of valid Azure Stream Analytics
	// data types are described at
	// https://msdn.microsoft.com/en-us/library/azure/dn835065.aspx
	DataType *string

	// A flag indicating if the parameter is a configuration parameter. True if this input parameter is expected to be a constant.
	// Default is false.
	IsConfigurationParameter *bool
}

FunctionInput - Describes one input parameter of a function.

func (FunctionInput) MarshalJSON

func (f FunctionInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type FunctionInput.

func (*FunctionInput) UnmarshalJSON

func (f *FunctionInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type FunctionInput.

type FunctionListResult

type FunctionListResult struct {
	// READ-ONLY; The link (url) to the next page of results.
	NextLink *string

	// READ-ONLY; A list of functions under a streaming job. Populated by a 'List' operation.
	Value []*Function
}

FunctionListResult - Object containing a list of functions under a streaming job.

func (FunctionListResult) MarshalJSON

func (f FunctionListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type FunctionListResult.

func (*FunctionListResult) UnmarshalJSON

func (f *FunctionListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type FunctionListResult.

type FunctionOutput

type FunctionOutput struct {
	// The (Azure Stream Analytics supported) data type of the function output. A list of valid Azure Stream Analytics data types
	// are described at https://msdn.microsoft.com/en-us/library/azure/dn835065.aspx
	DataType *string
}

FunctionOutput - Describes the output of a function.

func (FunctionOutput) MarshalJSON

func (f FunctionOutput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type FunctionOutput.

func (*FunctionOutput) UnmarshalJSON

func (f *FunctionOutput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type FunctionOutput.

type FunctionProperties

type FunctionProperties struct {
	// REQUIRED; Indicates the type of function.
	Type       *string
	Properties *FunctionConfiguration

	// READ-ONLY; The current entity tag for the function. This is an opaque string. You can use it to detect whether the resource
	// has changed between requests. You can also use it in the If-Match or If-None-Match
	// headers for write operations for optimistic concurrency.
	Etag *string
}

FunctionProperties - The properties that are associated with a function.

func (*FunctionProperties) GetFunctionProperties

func (f *FunctionProperties) GetFunctionProperties() *FunctionProperties

GetFunctionProperties implements the FunctionPropertiesClassification interface for type FunctionProperties.

func (FunctionProperties) MarshalJSON

func (f FunctionProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type FunctionProperties.

func (*FunctionProperties) UnmarshalJSON

func (f *FunctionProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type FunctionProperties.

type FunctionPropertiesClassification

type FunctionPropertiesClassification interface {
	// GetFunctionProperties returns the FunctionProperties content of the underlying type.
	GetFunctionProperties() *FunctionProperties
}

FunctionPropertiesClassification provides polymorphic access to related types. Call the interface's GetFunctionProperties() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *AggregateFunctionProperties, *FunctionProperties, *ScalarFunctionProperties

type FunctionRetrieveDefaultDefinitionParameters

type FunctionRetrieveDefaultDefinitionParameters struct {
	// REQUIRED; Indicates the function binding type.
	BindingType *string
}

FunctionRetrieveDefaultDefinitionParameters - Parameters used to specify the type of function to retrieve the default definition for.

func (*FunctionRetrieveDefaultDefinitionParameters) GetFunctionRetrieveDefaultDefinitionParameters

func (f *FunctionRetrieveDefaultDefinitionParameters) GetFunctionRetrieveDefaultDefinitionParameters() *FunctionRetrieveDefaultDefinitionParameters

GetFunctionRetrieveDefaultDefinitionParameters implements the FunctionRetrieveDefaultDefinitionParametersClassification interface for type FunctionRetrieveDefaultDefinitionParameters.

func (FunctionRetrieveDefaultDefinitionParameters) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type FunctionRetrieveDefaultDefinitionParameters.

func (*FunctionRetrieveDefaultDefinitionParameters) UnmarshalJSON

func (f *FunctionRetrieveDefaultDefinitionParameters) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type FunctionRetrieveDefaultDefinitionParameters.

type FunctionRetrieveDefaultDefinitionParametersClassification

type FunctionRetrieveDefaultDefinitionParametersClassification interface {
	// GetFunctionRetrieveDefaultDefinitionParameters returns the FunctionRetrieveDefaultDefinitionParameters content of the underlying type.
	GetFunctionRetrieveDefaultDefinitionParameters() *FunctionRetrieveDefaultDefinitionParameters
}

FunctionRetrieveDefaultDefinitionParametersClassification provides polymorphic access to related types. Call the interface's GetFunctionRetrieveDefaultDefinitionParameters() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *AzureMachineLearningServiceFunctionRetrieveDefaultDefinitionParameters, *AzureMachineLearningStudioFunctionRetrieveDefaultDefinitionParameters, - *CSharpFunctionRetrieveDefaultDefinitionParameters, *FunctionRetrieveDefaultDefinitionParameters, *JavaScriptFunctionRetrieveDefaultDefinitionParameters

type FunctionsClient

type FunctionsClient struct {
	// contains filtered or unexported fields
}

FunctionsClient contains the methods for the Functions group. Don't use this type directly, use NewFunctionsClient() instead.

func NewFunctionsClient

func NewFunctionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*FunctionsClient, error)

NewFunctionsClient creates a new instance of FunctionsClient with the specified values.

  • subscriptionID - The ID of the target subscription.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*FunctionsClient) BeginTest

func (client *FunctionsClient) BeginTest(ctx context.Context, resourceGroupName string, jobName string, functionName string, options *FunctionsClientBeginTestOptions) (*runtime.Poller[FunctionsClientTestResponse], error)

BeginTest - Tests if the information provided for a function is valid. This can range from testing the connection to the underlying web service behind the function or making sure the function code provided is syntactically correct. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-10-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • jobName - The name of the streaming job.
  • functionName - The name of the function.
  • options - FunctionsClientBeginTestOptions contains the optional parameters for the FunctionsClient.BeginTest method.
Example (TestTheConnectionForAJavaScriptFunction)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Function_Test_JavaScript.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewFunctionsClient().BeginTest(ctx, "sjrg1637", "sj8653", "function8197", &armstreamanalytics.FunctionsClientBeginTestOptions{Function: nil})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
	log.Fatalf("failed to pull the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.ResourceTestStatus = armstreamanalytics.ResourceTestStatus{
// 	Error: &armstreamanalytics.ErrorResponse{
// 		Code: to.Ptr("BadRequest"),
// 		Message: to.Ptr("Test operation is not supported for function type: Microsoft.StreamAnalytics/JavascriptUdf"),
// 	},
// 	Status: to.Ptr("TestFailed"),
// }
Output:

Example (TestTheConnectionForAnAzureMlFunction)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Function_Test_AzureML.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewFunctionsClient().BeginTest(ctx, "sjrg", "sjName", "function588", &armstreamanalytics.FunctionsClientBeginTestOptions{Function: nil})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
	log.Fatalf("failed to pull the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.ResourceTestStatus = armstreamanalytics.ResourceTestStatus{
// 	Status: to.Ptr("TestSucceeded"),
// }
Output:

func (*FunctionsClient) CreateOrReplace

func (client *FunctionsClient) CreateOrReplace(ctx context.Context, resourceGroupName string, jobName string, functionName string, function Function, options *FunctionsClientCreateOrReplaceOptions) (FunctionsClientCreateOrReplaceResponse, error)

CreateOrReplace - Creates a function or replaces an already existing function under an existing streaming job. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-10-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • jobName - The name of the streaming job.
  • functionName - The name of the function.
  • function - The definition of the function that will be used to create a new function or replace the existing one under the streaming job.
  • options - FunctionsClientCreateOrReplaceOptions contains the optional parameters for the FunctionsClient.CreateOrReplace method.
Example (CreateAClrUdfFunction)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Function_Create_CSharp.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewFunctionsClient().CreateOrReplace(ctx, "sjrg", "sjName", "function588", armstreamanalytics.Function{
	Properties: &armstreamanalytics.ScalarFunctionProperties{
		Type: to.Ptr("Scalar"),
		Properties: &armstreamanalytics.FunctionConfiguration{
			Binding: &armstreamanalytics.CSharpFunctionBinding{
				Type: to.Ptr("Microsoft.StreamAnalytics/CLRUdf"),
				Properties: &armstreamanalytics.CSharpFunctionBindingProperties{
					Method:     to.Ptr("SquareFunction"),
					Class:      to.Ptr("ASAEdgeUDFDemo.Class1"),
					DllPath:    to.Ptr("ASAEdgeApplication2_CodeBehind"),
					UpdateMode: to.Ptr(armstreamanalytics.UpdateModeStatic),
				},
			},
			Inputs: []*armstreamanalytics.FunctionInput{
				{
					DataType: to.Ptr("nvarchar(max)"),
				}},
			Output: &armstreamanalytics.FunctionOutput{
				DataType: to.Ptr("nvarchar(max)"),
			},
		},
	},
}, &armstreamanalytics.FunctionsClientCreateOrReplaceOptions{IfMatch: nil,
	IfNoneMatch: nil,
})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Function = armstreamanalytics.Function{
// 	Name: to.Ptr("function588"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/functions"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg/providers/Microsoft.StreamAnalytics/streamingjobs/sjName/functions/function588"),
// 	Properties: &armstreamanalytics.ScalarFunctionProperties{
// 		Type: to.Ptr("Scalar"),
// 		Properties: &armstreamanalytics.FunctionConfiguration{
// 			Binding: &armstreamanalytics.CSharpFunctionBinding{
// 				Type: to.Ptr("Microsoft.StreamAnalytics/CLRUdf"),
// 				Properties: &armstreamanalytics.CSharpFunctionBindingProperties{
// 					Method: to.Ptr("SquareFunction"),
// 					Class: to.Ptr("ASAEdgeUDFDemo.Class1"),
// 					DllPath: to.Ptr("ASAEdgeApplication2_CodeBehind"),
// 				},
// 			},
// 			Inputs: []*armstreamanalytics.FunctionInput{
// 				{
// 					DataType: to.Ptr("nvarchar(max)"),
// 			}},
Output:

Example (CreateAJavaScriptFunction)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Function_Create_JavaScript.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewFunctionsClient().CreateOrReplace(ctx, "sjrg1637", "sj8653", "function8197", armstreamanalytics.Function{
	Properties: &armstreamanalytics.ScalarFunctionProperties{
		Type: to.Ptr("Scalar"),
		Properties: &armstreamanalytics.FunctionConfiguration{
			Binding: &armstreamanalytics.JavaScriptFunctionBinding{
				Type: to.Ptr("Microsoft.StreamAnalytics/JavascriptUdf"),
				Properties: &armstreamanalytics.JavaScriptFunctionBindingProperties{
					Script: to.Ptr("function (x, y) { return x + y; }"),
				},
			},
			Inputs: []*armstreamanalytics.FunctionInput{
				{
					DataType: to.Ptr("Any"),
				}},
			Output: &armstreamanalytics.FunctionOutput{
				DataType: to.Ptr("Any"),
			},
		},
	},
}, &armstreamanalytics.FunctionsClientCreateOrReplaceOptions{IfMatch: nil,
	IfNoneMatch: nil,
})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Function = armstreamanalytics.Function{
// 	Name: to.Ptr("function8197"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/functions"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg1637/providers/Microsoft.StreamAnalytics/streamingjobs/sj8653/functions/function8197"),
// 	Properties: &armstreamanalytics.ScalarFunctionProperties{
// 		Type: to.Ptr("Scalar"),
// 		Properties: &armstreamanalytics.FunctionConfiguration{
// 			Binding: &armstreamanalytics.JavaScriptFunctionBinding{
// 				Type: to.Ptr("Microsoft.StreamAnalytics/JavascriptUdf"),
// 				Properties: &armstreamanalytics.JavaScriptFunctionBindingProperties{
// 					Script: to.Ptr("function (x, y) { return x + y; }"),
// 				},
// 			},
// 			Inputs: []*armstreamanalytics.FunctionInput{
// 				{
// 					DataType: to.Ptr("Any"),
// 			}},
Output:

Example (CreateAnAzureMlFunction)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Function_Create_AzureML.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewFunctionsClient().CreateOrReplace(ctx, "sjrg7", "sj9093", "function588", armstreamanalytics.Function{
	Properties: &armstreamanalytics.ScalarFunctionProperties{
		Type: to.Ptr("Scalar"),
		Properties: &armstreamanalytics.FunctionConfiguration{
			Binding: &armstreamanalytics.AzureMachineLearningStudioFunctionBinding{
				Type: to.Ptr("Microsoft.MachineLearning/WebService"),
				Properties: &armstreamanalytics.AzureMachineLearningStudioFunctionBindingProperties{
					APIKey:    to.Ptr("someApiKey=="),
					BatchSize: to.Ptr[int32](1000),
					Endpoint:  to.Ptr("someAzureMLEndpointURL"),
					Inputs: &armstreamanalytics.AzureMachineLearningStudioInputs{
						Name: to.Ptr("input1"),
						ColumnNames: []*armstreamanalytics.AzureMachineLearningStudioInputColumn{
							{
								Name:     to.Ptr("tweet"),
								DataType: to.Ptr("string"),
								MapTo:    to.Ptr[int32](0),
							}},
					},
					Outputs: []*armstreamanalytics.AzureMachineLearningStudioOutputColumn{
						{
							Name:     to.Ptr("Sentiment"),
							DataType: to.Ptr("string"),
						}},
				},
			},
			Inputs: []*armstreamanalytics.FunctionInput{
				{
					DataType: to.Ptr("nvarchar(max)"),
				}},
			Output: &armstreamanalytics.FunctionOutput{
				DataType: to.Ptr("nvarchar(max)"),
			},
		},
	},
}, &armstreamanalytics.FunctionsClientCreateOrReplaceOptions{IfMatch: nil,
	IfNoneMatch: nil,
})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Function = armstreamanalytics.Function{
// 	Name: to.Ptr("function588"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/functions"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg7/providers/Microsoft.StreamAnalytics/streamingjobs/sj9093/functions/function588"),
// 	Properties: &armstreamanalytics.ScalarFunctionProperties{
// 		Type: to.Ptr("Scalar"),
// 		Properties: &armstreamanalytics.FunctionConfiguration{
// 			Binding: &armstreamanalytics.AzureMachineLearningStudioFunctionBinding{
// 				Type: to.Ptr("Microsoft.MachineLearning/WebService"),
// 				Properties: &armstreamanalytics.AzureMachineLearningStudioFunctionBindingProperties{
// 					BatchSize: to.Ptr[int32](1000),
// 					Endpoint: to.Ptr("someAzureMLEndpointURL"),
// 					Inputs: &armstreamanalytics.AzureMachineLearningStudioInputs{
// 						Name: to.Ptr("input1"),
// 						ColumnNames: []*armstreamanalytics.AzureMachineLearningStudioInputColumn{
// 							{
// 								Name: to.Ptr("tweet"),
// 								DataType: to.Ptr("string"),
// 								MapTo: to.Ptr[int32](0),
// 						}},
// 					},
// 					Outputs: []*armstreamanalytics.AzureMachineLearningStudioOutputColumn{
// 						{
// 							Name: to.Ptr("Sentiment"),
// 							DataType: to.Ptr("string"),
// 					}},
// 				},
// 			},
// 			Inputs: []*armstreamanalytics.FunctionInput{
// 				{
// 					DataType: to.Ptr("nvarchar(max)"),
// 			}},
Output:

Example (CreateAnAzureMlServiceFunction)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Function_Create_AzureMLService.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewFunctionsClient().CreateOrReplace(ctx, "sjrg", "sjName", "function588", armstreamanalytics.Function{
	Properties: &armstreamanalytics.ScalarFunctionProperties{
		Type: to.Ptr("Scalar"),
		Properties: &armstreamanalytics.FunctionConfiguration{
			Binding: &armstreamanalytics.AzureMachineLearningServiceFunctionBinding{
				Type: to.Ptr("Microsoft.MachineLearningServices"),
				Properties: &armstreamanalytics.AzureMachineLearningServiceFunctionBindingProperties{
					APIKey:           to.Ptr("someApiKey=="),
					BatchSize:        to.Ptr[int32](1000),
					Endpoint:         to.Ptr("someAzureMLEndpointURL"),
					InputRequestName: to.Ptr("Inputs"),
					Inputs: []*armstreamanalytics.AzureMachineLearningServiceInputColumn{
						{
							Name:     to.Ptr("data"),
							DataType: to.Ptr("array"),
							MapTo:    to.Ptr[int32](0),
						}},
					NumberOfParallelRequests: to.Ptr[int32](1),
					OutputResponseName:       to.Ptr("Results"),
					Outputs: []*armstreamanalytics.AzureMachineLearningServiceOutputColumn{
						{
							Name:     to.Ptr("Sentiment"),
							DataType: to.Ptr("string"),
						}},
				},
			},
			Inputs: []*armstreamanalytics.FunctionInput{
				{
					DataType: to.Ptr("nvarchar(max)"),
				}},
			Output: &armstreamanalytics.FunctionOutput{
				DataType: to.Ptr("nvarchar(max)"),
			},
		},
	},
}, &armstreamanalytics.FunctionsClientCreateOrReplaceOptions{IfMatch: nil,
	IfNoneMatch: nil,
})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Function = armstreamanalytics.Function{
// 	Name: to.Ptr("function588"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/functions"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg/providers/Microsoft.StreamAnalytics/streamingjobs/sjName/functions/function588"),
// 	Properties: &armstreamanalytics.ScalarFunctionProperties{
// 		Type: to.Ptr("Scalar"),
// 		Properties: &armstreamanalytics.FunctionConfiguration{
// 			Binding: &armstreamanalytics.AzureMachineLearningStudioFunctionBinding{
// 				Type: to.Ptr("Microsoft.MachineLearning/WebService"),
// 				Properties: &armstreamanalytics.AzureMachineLearningStudioFunctionBindingProperties{
// 					BatchSize: to.Ptr[int32](1000),
// 					Endpoint: to.Ptr("someAzureMLEndpointURL"),
// 					Inputs: &armstreamanalytics.AzureMachineLearningStudioInputs{
// 						Name: to.Ptr("input1"),
// 						ColumnNames: []*armstreamanalytics.AzureMachineLearningStudioInputColumn{
// 							{
// 								Name: to.Ptr("tweet"),
// 								DataType: to.Ptr("string"),
// 								MapTo: to.Ptr[int32](0),
// 						}},
// 					},
// 					Outputs: []*armstreamanalytics.AzureMachineLearningStudioOutputColumn{
// 						{
// 							Name: to.Ptr("Sentiment"),
// 							DataType: to.Ptr("string"),
// 					}},
// 				},
// 			},
// 			Inputs: []*armstreamanalytics.FunctionInput{
// 				{
// 					DataType: to.Ptr("nvarchar(max)"),
// 			}},
Output:

func (*FunctionsClient) Delete

func (client *FunctionsClient) Delete(ctx context.Context, resourceGroupName string, jobName string, functionName string, options *FunctionsClientDeleteOptions) (FunctionsClientDeleteResponse, error)

Delete - Deletes a function from the streaming job. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-10-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • jobName - The name of the streaming job.
  • functionName - The name of the function.
  • options - FunctionsClientDeleteOptions contains the optional parameters for the FunctionsClient.Delete method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Function_Delete.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
_, err = clientFactory.NewFunctionsClient().Delete(ctx, "sjrg1637", "sj8653", "function8197", nil)
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
Output:

func (*FunctionsClient) Get

func (client *FunctionsClient) Get(ctx context.Context, resourceGroupName string, jobName string, functionName string, options *FunctionsClientGetOptions) (FunctionsClientGetResponse, error)

Get - Gets details about the specified function. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-10-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • jobName - The name of the streaming job.
  • functionName - The name of the function.
  • options - FunctionsClientGetOptions contains the optional parameters for the FunctionsClient.Get method.
Example (GetAJavaScriptFunction)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Function_Get_JavaScript.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewFunctionsClient().Get(ctx, "sjrg1637", "sj8653", "function8197", nil)
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Function = armstreamanalytics.Function{
// 	Name: to.Ptr("function8197"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/functions"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg1637/providers/Microsoft.StreamAnalytics/streamingjobs/sj8653/functions/function8197"),
// 	Properties: &armstreamanalytics.ScalarFunctionProperties{
// 		Type: to.Ptr("Scalar"),
// 		Properties: &armstreamanalytics.FunctionConfiguration{
// 			Binding: &armstreamanalytics.JavaScriptFunctionBinding{
// 				Type: to.Ptr("Microsoft.StreamAnalytics/JavascriptUdf"),
// 				Properties: &armstreamanalytics.JavaScriptFunctionBindingProperties{
// 					Script: to.Ptr("function (x, y) { return x + y; }"),
// 				},
// 			},
// 			Inputs: []*armstreamanalytics.FunctionInput{
// 				{
// 					DataType: to.Ptr("Any"),
// 			}},
Output:

Example (GetAnAzureMlFunction)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Function_Get_AzureML.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewFunctionsClient().Get(ctx, "sjrg7", "sj9093", "function588", nil)
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Function = armstreamanalytics.Function{
// 	Name: to.Ptr("function588"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/functions"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg7/providers/Microsoft.StreamAnalytics/streamingjobs/sj9093/functions/function588"),
// 	Properties: &armstreamanalytics.ScalarFunctionProperties{
// 		Type: to.Ptr("Scalar"),
// 		Properties: &armstreamanalytics.FunctionConfiguration{
// 			Binding: &armstreamanalytics.AzureMachineLearningStudioFunctionBinding{
// 				Type: to.Ptr("Microsoft.MachineLearning/WebService"),
// 				Properties: &armstreamanalytics.AzureMachineLearningStudioFunctionBindingProperties{
// 					BatchSize: to.Ptr[int32](1000),
// 					Endpoint: to.Ptr("someAzureMLEndpointURL"),
// 					Inputs: &armstreamanalytics.AzureMachineLearningStudioInputs{
// 						Name: to.Ptr("input1"),
// 						ColumnNames: []*armstreamanalytics.AzureMachineLearningStudioInputColumn{
// 							{
// 								Name: to.Ptr("tweet"),
// 								DataType: to.Ptr("string"),
// 								MapTo: to.Ptr[int32](0),
// 						}},
// 					},
// 					Outputs: []*armstreamanalytics.AzureMachineLearningStudioOutputColumn{
// 						{
// 							Name: to.Ptr("Sentiment"),
// 							DataType: to.Ptr("string"),
// 					}},
// 				},
// 			},
// 			Inputs: []*armstreamanalytics.FunctionInput{
// 				{
// 					DataType: to.Ptr("nvarchar(max)"),
// 			}},
Output:

func (*FunctionsClient) NewListByStreamingJobPager

func (client *FunctionsClient) NewListByStreamingJobPager(resourceGroupName string, jobName string, options *FunctionsClientListByStreamingJobOptions) *runtime.Pager[FunctionsClientListByStreamingJobResponse]

NewListByStreamingJobPager - Lists all of the functions under the specified streaming job.

Generated from API version 2021-10-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • jobName - The name of the streaming job.
  • options - FunctionsClientListByStreamingJobOptions contains the optional parameters for the FunctionsClient.NewListByStreamingJobPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Function_ListByStreamingJob.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewFunctionsClient().NewListByStreamingJobPager("sjrg1637", "sj8653", &armstreamanalytics.FunctionsClientListByStreamingJobOptions{Select: nil})
for pager.More() {
	page, err := pager.NextPage(ctx)
	if err != nil {
		log.Fatalf("failed to advance page: %v", err)
	}
	for _, v := range page.Value {
		// You could use page here. We use blank identifier for just demo purposes.
		_ = v
	}
	// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// page.FunctionListResult = armstreamanalytics.FunctionListResult{
	// 	Value: []*armstreamanalytics.Function{
	// 		{
	// 			Name: to.Ptr("function588"),
	// 			Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/functions"),
	// 			ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg1637/providers/Microsoft.StreamAnalytics/streamingjobs/sj8653/functions/function588"),
	// 			Properties: &armstreamanalytics.ScalarFunctionProperties{
	// 				Type: to.Ptr("Scalar"),
	// 				Etag: to.Ptr("281cbf11-cd50-4a44-b833-cf170ce74748"),
	// 				Properties: &armstreamanalytics.FunctionConfiguration{
	// 					Binding: &armstreamanalytics.AzureMachineLearningStudioFunctionBinding{
	// 						Type: to.Ptr("Microsoft.MachineLearning/WebService"),
	// 						Properties: &armstreamanalytics.AzureMachineLearningStudioFunctionBindingProperties{
	// 							BatchSize: to.Ptr[int32](5000),
	// 							Endpoint: to.Ptr("someAzureMLEndpointURL"),
	// 							Inputs: &armstreamanalytics.AzureMachineLearningStudioInputs{
	// 								Name: to.Ptr("input1"),
	// 								ColumnNames: []*armstreamanalytics.AzureMachineLearningStudioInputColumn{
	// 									{
	// 										Name: to.Ptr("tweet"),
	// 										DataType: to.Ptr("string"),
	// 										MapTo: to.Ptr[int32](0),
	// 								}},
	// 							},
	// 							Outputs: []*armstreamanalytics.AzureMachineLearningStudioOutputColumn{
	// 								{
	// 									Name: to.Ptr("Sentiment"),
	// 									DataType: to.Ptr("string"),
	// 							}},
	// 						},
	// 					},
	// 					Inputs: []*armstreamanalytics.FunctionInput{
	// 						{
	// 							DataType: to.Ptr("nvarchar(max)"),
	// 					}},
	// 					Output: &armstreamanalytics.FunctionOutput{
	// 						DataType: to.Ptr("nvarchar(max)"),
	// 					},
	// 				},
	// 			},
	// 		},
	// 		{
	// 			Name: to.Ptr("function8197"),
	// 			Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/functions"),
	// 			ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg1637/providers/Microsoft.StreamAnalytics/streamingjobs/sj8653/functions/function8197"),
	// 			Properties: &armstreamanalytics.ScalarFunctionProperties{
	// 				Type: to.Ptr("Scalar"),
	// 				Etag: to.Ptr("94a512d5-2f59-4e39-b9c8-bca4abd74b7e"),
	// 				Properties: &armstreamanalytics.FunctionConfiguration{
	// 					Binding: &armstreamanalytics.JavaScriptFunctionBinding{
	// 						Type: to.Ptr("Microsoft.StreamAnalytics/JavascriptUdf"),
	// 						Properties: &armstreamanalytics.JavaScriptFunctionBindingProperties{
	// 							Script: to.Ptr("function (a, b) { return a * b; }"),
	// 						},
	// 					},
	// 					Inputs: []*armstreamanalytics.FunctionInput{
	// 						{
	// 							DataType: to.Ptr("Any"),
	// 					}},
	
Output:

func (*FunctionsClient) RetrieveDefaultDefinition

func (client *FunctionsClient) RetrieveDefaultDefinition(ctx context.Context, resourceGroupName string, jobName string, functionName string, options *FunctionsClientRetrieveDefaultDefinitionOptions) (FunctionsClientRetrieveDefaultDefinitionResponse, error)

RetrieveDefaultDefinition - Retrieves the default definition of a function based on the parameters specified. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-10-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • jobName - The name of the streaming job.
  • functionName - The name of the function.
  • options - FunctionsClientRetrieveDefaultDefinitionOptions contains the optional parameters for the FunctionsClient.RetrieveDefaultDefinition method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Function_RetrieveDefaultDefinition_AzureML.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewFunctionsClient().RetrieveDefaultDefinition(ctx, "sjrg7", "sj9093", "function588", &armstreamanalytics.FunctionsClientRetrieveDefaultDefinitionOptions{FunctionRetrieveDefaultDefinitionParameters: &armstreamanalytics.AzureMachineLearningStudioFunctionRetrieveDefaultDefinitionParameters{
	BindingType: to.Ptr("Microsoft.MachineLearning/WebService"),
	BindingRetrievalProperties: &armstreamanalytics.AzureMachineLearningStudioFunctionBindingRetrievalProperties{
		ExecuteEndpoint: to.Ptr("someAzureMLExecuteEndpointUrl"),
		UdfType:         to.Ptr("Scalar"),
	},
},
})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Function = armstreamanalytics.Function{
// 	Name: to.Ptr("function588"),
// 	Properties: &armstreamanalytics.ScalarFunctionProperties{
// 		Type: to.Ptr("Scalar"),
// 		Properties: &armstreamanalytics.FunctionConfiguration{
// 			Binding: &armstreamanalytics.AzureMachineLearningStudioFunctionBinding{
// 				Type: to.Ptr("Microsoft.MachineLearning/WebService"),
// 				Properties: &armstreamanalytics.AzureMachineLearningStudioFunctionBindingProperties{
// 					BatchSize: to.Ptr[int32](1000),
// 					Endpoint: to.Ptr("someAzureMLExecuteEndpointUrl"),
// 					Inputs: &armstreamanalytics.AzureMachineLearningStudioInputs{
// 						Name: to.Ptr("input1"),
// 						ColumnNames: []*armstreamanalytics.AzureMachineLearningStudioInputColumn{
// 							{
// 								Name: to.Ptr("tweet"),
// 								DataType: to.Ptr("string"),
// 								MapTo: to.Ptr[int32](0),
// 						}},
// 					},
// 					Outputs: []*armstreamanalytics.AzureMachineLearningStudioOutputColumn{
// 						{
// 							Name: to.Ptr("Sentiment"),
// 							DataType: to.Ptr("string"),
// 					}},
// 				},
// 			},
// 			Inputs: []*armstreamanalytics.FunctionInput{
// 				{
// 					DataType: to.Ptr("nvarchar(max)"),
// 			}},
Output:

func (*FunctionsClient) Update

func (client *FunctionsClient) Update(ctx context.Context, resourceGroupName string, jobName string, functionName string, function Function, options *FunctionsClientUpdateOptions) (FunctionsClientUpdateResponse, error)

Update - Updates an existing function under an existing streaming job. This can be used to partially update (ie. update one or two properties) a function without affecting the rest the job or function definition. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-10-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • jobName - The name of the streaming job.
  • functionName - The name of the function.
  • function - A function object. The properties specified here will overwrite the corresponding properties in the existing function (ie. Those properties will be updated). Any properties that are set to null here will mean that the corresponding property in the existing function will remain the same and not change as a result of this PATCH operation.
  • options - FunctionsClientUpdateOptions contains the optional parameters for the FunctionsClient.Update method.
Example (UpdateAJavaScriptFunction)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Function_Update_JavaScript.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewFunctionsClient().Update(ctx, "sjrg1637", "sj8653", "function8197", armstreamanalytics.Function{
	Properties: &armstreamanalytics.ScalarFunctionProperties{
		Type: to.Ptr("Scalar"),
		Properties: &armstreamanalytics.FunctionConfiguration{
			Binding: &armstreamanalytics.JavaScriptFunctionBinding{
				Type: to.Ptr("Microsoft.StreamAnalytics/JavascriptUdf"),
				Properties: &armstreamanalytics.JavaScriptFunctionBindingProperties{
					Script: to.Ptr("function (a, b) { return a * b; }"),
				},
			},
		},
	},
}, &armstreamanalytics.FunctionsClientUpdateOptions{IfMatch: nil})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Function = armstreamanalytics.Function{
// 	Name: to.Ptr("function8197"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/functions"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg1637/providers/Microsoft.StreamAnalytics/streamingjobs/sj8653/functions/function8197"),
// 	Properties: &armstreamanalytics.ScalarFunctionProperties{
// 		Type: to.Ptr("Scalar"),
// 		Properties: &armstreamanalytics.FunctionConfiguration{
// 			Binding: &armstreamanalytics.JavaScriptFunctionBinding{
// 				Type: to.Ptr("Microsoft.StreamAnalytics/JavascriptUdf"),
// 				Properties: &armstreamanalytics.JavaScriptFunctionBindingProperties{
// 					Script: to.Ptr("function (a, b) { return a * b; }"),
// 				},
// 			},
// 			Inputs: []*armstreamanalytics.FunctionInput{
// 				{
// 					DataType: to.Ptr("Any"),
// 			}},
Output:

Example (UpdateAnAzureMlFunction)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Function_Update_AzureML.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewFunctionsClient().Update(ctx, "sjrg7", "sj9093", "function588", armstreamanalytics.Function{
	Properties: &armstreamanalytics.ScalarFunctionProperties{
		Type: to.Ptr("Scalar"),
		Properties: &armstreamanalytics.FunctionConfiguration{
			Binding: &armstreamanalytics.AzureMachineLearningStudioFunctionBinding{
				Type: to.Ptr("Microsoft.MachineLearning/WebService"),
				Properties: &armstreamanalytics.AzureMachineLearningStudioFunctionBindingProperties{
					BatchSize: to.Ptr[int32](5000),
				},
			},
		},
	},
}, &armstreamanalytics.FunctionsClientUpdateOptions{IfMatch: nil})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Function = armstreamanalytics.Function{
// 	Name: to.Ptr("function588"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/functions"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg7/providers/Microsoft.StreamAnalytics/streamingjobs/sj9093/functions/function588"),
// 	Properties: &armstreamanalytics.ScalarFunctionProperties{
// 		Type: to.Ptr("Scalar"),
// 		Properties: &armstreamanalytics.FunctionConfiguration{
// 			Binding: &armstreamanalytics.AzureMachineLearningStudioFunctionBinding{
// 				Type: to.Ptr("Microsoft.MachineLearning/WebService"),
// 				Properties: &armstreamanalytics.AzureMachineLearningStudioFunctionBindingProperties{
// 					BatchSize: to.Ptr[int32](5000),
// 					Endpoint: to.Ptr("someAzureMLEndpointURL"),
// 					Inputs: &armstreamanalytics.AzureMachineLearningStudioInputs{
// 						Name: to.Ptr("input1"),
// 						ColumnNames: []*armstreamanalytics.AzureMachineLearningStudioInputColumn{
// 							{
// 								Name: to.Ptr("tweet"),
// 								DataType: to.Ptr("string"),
// 								MapTo: to.Ptr[int32](0),
// 						}},
// 					},
// 					Outputs: []*armstreamanalytics.AzureMachineLearningStudioOutputColumn{
// 						{
// 							Name: to.Ptr("Sentiment"),
// 							DataType: to.Ptr("string"),
// 					}},
// 				},
// 			},
// 			Inputs: []*armstreamanalytics.FunctionInput{
// 				{
// 					DataType: to.Ptr("nvarchar(max)"),
// 			}},
Output:

type FunctionsClientBeginTestOptions

type FunctionsClientBeginTestOptions struct {
	// If the function specified does not already exist, this parameter must contain the full function definition intended to
	// be tested. If the function specified already exists, this parameter can be left
	// null to test the existing function as is or if specified, the properties specified will overwrite the corresponding properties
	// in the existing function (exactly like a PATCH operation) and the
	// resulting function will be tested.
	Function *Function

	// Resumes the LRO from the provided token.
	ResumeToken string
}

FunctionsClientBeginTestOptions contains the optional parameters for the FunctionsClient.BeginTest method.

type FunctionsClientCreateOrReplaceOptions

type FunctionsClientCreateOrReplaceOptions struct {
	// The ETag of the function. Omit this value to always overwrite the current function. Specify the last-seen ETag value to
	// prevent accidentally overwriting concurrent changes.
	IfMatch *string

	// Set to '*' to allow a new function to be created, but to prevent updating an existing function. Other values will result
	// in a 412 Pre-condition Failed response.
	IfNoneMatch *string
}

FunctionsClientCreateOrReplaceOptions contains the optional parameters for the FunctionsClient.CreateOrReplace method.

type FunctionsClientCreateOrReplaceResponse

type FunctionsClientCreateOrReplaceResponse struct {
	// A function object, containing all information associated with the named function. All functions are contained under a streaming
	// job.
	Function

	// ETag contains the information returned from the ETag header response.
	ETag *string
}

FunctionsClientCreateOrReplaceResponse contains the response from method FunctionsClient.CreateOrReplace.

type FunctionsClientDeleteOptions

type FunctionsClientDeleteOptions struct {
}

FunctionsClientDeleteOptions contains the optional parameters for the FunctionsClient.Delete method.

type FunctionsClientDeleteResponse

type FunctionsClientDeleteResponse struct {
}

FunctionsClientDeleteResponse contains the response from method FunctionsClient.Delete.

type FunctionsClientGetOptions

type FunctionsClientGetOptions struct {
}

FunctionsClientGetOptions contains the optional parameters for the FunctionsClient.Get method.

type FunctionsClientGetResponse

type FunctionsClientGetResponse struct {
	// A function object, containing all information associated with the named function. All functions are contained under a streaming
	// job.
	Function

	// ETag contains the information returned from the ETag header response.
	ETag *string
}

FunctionsClientGetResponse contains the response from method FunctionsClient.Get.

type FunctionsClientListByStreamingJobOptions

type FunctionsClientListByStreamingJobOptions struct {
	// The $select OData query parameter. This is a comma-separated list of structural properties to include in the response,
	// or "" to include all properties. By default, all properties are returned except
	// diagnostics. Currently only accepts ” as a valid value.
	Select *string
}

FunctionsClientListByStreamingJobOptions contains the optional parameters for the FunctionsClient.NewListByStreamingJobPager method.

type FunctionsClientListByStreamingJobResponse

type FunctionsClientListByStreamingJobResponse struct {
	// Object containing a list of functions under a streaming job.
	FunctionListResult
}

FunctionsClientListByStreamingJobResponse contains the response from method FunctionsClient.NewListByStreamingJobPager.

type FunctionsClientRetrieveDefaultDefinitionOptions

type FunctionsClientRetrieveDefaultDefinitionOptions struct {
	// Parameters used to specify the type of function to retrieve the default definition for.
	FunctionRetrieveDefaultDefinitionParameters FunctionRetrieveDefaultDefinitionParametersClassification
}

FunctionsClientRetrieveDefaultDefinitionOptions contains the optional parameters for the FunctionsClient.RetrieveDefaultDefinition method.

type FunctionsClientRetrieveDefaultDefinitionResponse

type FunctionsClientRetrieveDefaultDefinitionResponse struct {
	// A function object, containing all information associated with the named function. All functions are contained under a streaming
	// job.
	Function
}

FunctionsClientRetrieveDefaultDefinitionResponse contains the response from method FunctionsClient.RetrieveDefaultDefinition.

type FunctionsClientTestResponse

type FunctionsClientTestResponse struct {
	// Describes the status of the test operation along with error information, if applicable.
	ResourceTestStatus
}

FunctionsClientTestResponse contains the response from method FunctionsClient.BeginTest.

type FunctionsClientUpdateOptions

type FunctionsClientUpdateOptions struct {
	// The ETag of the function. Omit this value to always overwrite the current function. Specify the last-seen ETag value to
	// prevent accidentally overwriting concurrent changes.
	IfMatch *string
}

FunctionsClientUpdateOptions contains the optional parameters for the FunctionsClient.Update method.

type FunctionsClientUpdateResponse

type FunctionsClientUpdateResponse struct {
	// A function object, containing all information associated with the named function. All functions are contained under a streaming
	// job.
	Function

	// ETag contains the information returned from the ETag header response.
	ETag *string
}

FunctionsClientUpdateResponse contains the response from method FunctionsClient.Update.

type GatewayMessageBusOutputDataSource

type GatewayMessageBusOutputDataSource struct {
	// REQUIRED; Indicates the type of data source output will be written to. Required on PUT (CreateOrReplace) requests.
	Type *string

	// The properties that are associated with a Gateway Message Bus output. Required on PUT (CreateOrReplace) requests.
	Properties *GatewayMessageBusOutputDataSourceProperties
}

GatewayMessageBusOutputDataSource - Describes a Gateway Message Bus output data source.

func (*GatewayMessageBusOutputDataSource) GetOutputDataSource

func (g *GatewayMessageBusOutputDataSource) GetOutputDataSource() *OutputDataSource

GetOutputDataSource implements the OutputDataSourceClassification interface for type GatewayMessageBusOutputDataSource.

func (GatewayMessageBusOutputDataSource) MarshalJSON

func (g GatewayMessageBusOutputDataSource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type GatewayMessageBusOutputDataSource.

func (*GatewayMessageBusOutputDataSource) UnmarshalJSON

func (g *GatewayMessageBusOutputDataSource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type GatewayMessageBusOutputDataSource.

type GatewayMessageBusOutputDataSourceProperties

type GatewayMessageBusOutputDataSourceProperties struct {
	// The name of the Service Bus topic.
	Topic *string
}

GatewayMessageBusOutputDataSourceProperties - The properties that are associated with a Gateway Message Bus.

func (GatewayMessageBusOutputDataSourceProperties) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type GatewayMessageBusOutputDataSourceProperties.

func (*GatewayMessageBusOutputDataSourceProperties) UnmarshalJSON

func (g *GatewayMessageBusOutputDataSourceProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type GatewayMessageBusOutputDataSourceProperties.

type GatewayMessageBusSourceProperties

type GatewayMessageBusSourceProperties struct {
	// The name of the Service Bus topic.
	Topic *string
}

GatewayMessageBusSourceProperties - The properties that are associated with a gateway message bus datasource.

func (GatewayMessageBusSourceProperties) MarshalJSON

func (g GatewayMessageBusSourceProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type GatewayMessageBusSourceProperties.

func (*GatewayMessageBusSourceProperties) UnmarshalJSON

func (g *GatewayMessageBusSourceProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type GatewayMessageBusSourceProperties.

type GatewayMessageBusStreamInputDataSource

type GatewayMessageBusStreamInputDataSource struct {
	// REQUIRED; Indicates the type of input data source containing stream data. Required on PUT (CreateOrReplace) requests.
	Type *string

	// The properties that are associated with a gateway message bus input containing stream data.
	Properties *GatewayMessageBusStreamInputDataSourceProperties
}

GatewayMessageBusStreamInputDataSource - Describes a blob input data source that contains stream data.

func (*GatewayMessageBusStreamInputDataSource) GetStreamInputDataSource

func (g *GatewayMessageBusStreamInputDataSource) GetStreamInputDataSource() *StreamInputDataSource

GetStreamInputDataSource implements the StreamInputDataSourceClassification interface for type GatewayMessageBusStreamInputDataSource.

func (GatewayMessageBusStreamInputDataSource) MarshalJSON

func (g GatewayMessageBusStreamInputDataSource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type GatewayMessageBusStreamInputDataSource.

func (*GatewayMessageBusStreamInputDataSource) UnmarshalJSON

func (g *GatewayMessageBusStreamInputDataSource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type GatewayMessageBusStreamInputDataSource.

type GatewayMessageBusStreamInputDataSourceProperties

type GatewayMessageBusStreamInputDataSourceProperties struct {
	// The name of the Service Bus topic.
	Topic *string
}

GatewayMessageBusStreamInputDataSourceProperties - The properties that are associated with a gateway message bus input containing stream data.

func (GatewayMessageBusStreamInputDataSourceProperties) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type GatewayMessageBusStreamInputDataSourceProperties.

func (*GatewayMessageBusStreamInputDataSourceProperties) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type GatewayMessageBusStreamInputDataSourceProperties.

type GetStreamingJobSKUResult

type GetStreamingJobSKUResult struct {
	// READ-ONLY; Describes scaling information of a SKU.
	Capacity *SKUCapacity

	// READ-ONLY; The type of resource the SKU applies to.
	ResourceType *ResourceType

	// READ-ONLY; The properties that are associated with a SKU.
	SKU *GetStreamingJobSKUResultSKU
}

GetStreamingJobSKUResult - Describes an available SKU information.

func (GetStreamingJobSKUResult) MarshalJSON

func (g GetStreamingJobSKUResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type GetStreamingJobSKUResult.

func (*GetStreamingJobSKUResult) UnmarshalJSON

func (g *GetStreamingJobSKUResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type GetStreamingJobSKUResult.

type GetStreamingJobSKUResultSKU

type GetStreamingJobSKUResultSKU struct {
	// The name of the SKU.
	Name *SKUName
}

GetStreamingJobSKUResultSKU - The properties that are associated with a SKU.

func (GetStreamingJobSKUResultSKU) MarshalJSON

func (g GetStreamingJobSKUResultSKU) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type GetStreamingJobSKUResultSKU.

func (*GetStreamingJobSKUResultSKU) UnmarshalJSON

func (g *GetStreamingJobSKUResultSKU) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type GetStreamingJobSKUResultSKU.

type GetStreamingJobSKUResults

type GetStreamingJobSKUResults struct {
	// The list of available SKUs that the streaming job can use.
	Value []*GetStreamingJobSKUResult

	// READ-ONLY; The link (url) to the next page of results.
	NextLink *string
}

GetStreamingJobSKUResults - Result of the request to get streaming job SKUs.

func (GetStreamingJobSKUResults) MarshalJSON

func (g GetStreamingJobSKUResults) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type GetStreamingJobSKUResults.

func (*GetStreamingJobSKUResults) UnmarshalJSON

func (g *GetStreamingJobSKUResults) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type GetStreamingJobSKUResults.

type Identity

type Identity struct {
	// The type of identity, can be SystemAssigned or UserAssigned.
	Type *string

	// The user assigned identities associated with the streaming job resource.
	UserAssignedIdentities map[string]any

	// READ-ONLY; The principalId of the identity.
	PrincipalID *string

	// READ-ONLY; The tenantId of the identity.
	TenantID *string
}

Identity - Describes how identity is verified

func (Identity) MarshalJSON

func (i Identity) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Identity.

func (*Identity) UnmarshalJSON

func (i *Identity) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Identity.

type Input

type Input struct {
	// Resource name
	Name *string

	// The properties that are associated with an input. Required on PUT (CreateOrReplace) requests.
	Properties InputPropertiesClassification

	// READ-ONLY; Resource Id
	ID *string

	// READ-ONLY; Resource type
	Type *string
}

Input - An input object, containing all information associated with the named input. All inputs are contained under a streaming job.

func (Input) MarshalJSON

func (i Input) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Input.

func (*Input) UnmarshalJSON

func (i *Input) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Input.

type InputListResult

type InputListResult struct {
	// READ-ONLY; The link (url) to the next page of results.
	NextLink *string

	// READ-ONLY; A list of inputs under a streaming job. Populated by a 'List' operation.
	Value []*Input
}

InputListResult - Object containing a list of inputs under a streaming job.

func (InputListResult) MarshalJSON

func (i InputListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InputListResult.

func (*InputListResult) UnmarshalJSON

func (i *InputListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InputListResult.

type InputProperties

type InputProperties struct {
	// REQUIRED; Indicates whether the input is a source of reference data or stream data. Required on PUT (CreateOrReplace) requests.
	Type *string

	// Describes how input data is compressed
	Compression *Compression

	// partitionKey Describes a key in the input data which is used for partitioning the input data
	PartitionKey *string

	// Describes how data from an input is serialized or how data is serialized when written to an output. Required on PUT (CreateOrReplace)
	// requests.
	Serialization SerializationClassification

	// Settings which determine whether to read watermark events.
	WatermarkSettings *InputWatermarkProperties

	// READ-ONLY; Describes conditions applicable to the Input, Output, or the job overall, that warrant customer attention.
	Diagnostics *Diagnostics

	// READ-ONLY; The current entity tag for the input. This is an opaque string. You can use it to detect whether the resource
	// has changed between requests. You can also use it in the If-Match or If-None-Match headers
	// for write operations for optimistic concurrency.
	Etag *string
}

InputProperties - The properties that are associated with an input.

func (*InputProperties) GetInputProperties

func (i *InputProperties) GetInputProperties() *InputProperties

GetInputProperties implements the InputPropertiesClassification interface for type InputProperties.

func (InputProperties) MarshalJSON

func (i InputProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InputProperties.

func (*InputProperties) UnmarshalJSON

func (i *InputProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InputProperties.

type InputPropertiesClassification

type InputPropertiesClassification interface {
	// GetInputProperties returns the InputProperties content of the underlying type.
	GetInputProperties() *InputProperties
}

InputPropertiesClassification provides polymorphic access to related types. Call the interface's GetInputProperties() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *InputProperties, *ReferenceInputProperties, *StreamInputProperties

type InputWatermarkMode

type InputWatermarkMode string

InputWatermarkMode - The input watermark mode.

const (
	InputWatermarkModeNone          InputWatermarkMode = "None"
	InputWatermarkModeReadWatermark InputWatermarkMode = "ReadWatermark"
)

func PossibleInputWatermarkModeValues

func PossibleInputWatermarkModeValues() []InputWatermarkMode

PossibleInputWatermarkModeValues returns the possible values for the InputWatermarkMode const type.

type InputWatermarkProperties

type InputWatermarkProperties struct {
	// The input watermark mode.
	WatermarkMode *InputWatermarkMode
}

InputWatermarkProperties - Settings which determine whether to read watermark events.

func (InputWatermarkProperties) MarshalJSON

func (i InputWatermarkProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type InputWatermarkProperties.

func (*InputWatermarkProperties) UnmarshalJSON

func (i *InputWatermarkProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type InputWatermarkProperties.

type InputsClient

type InputsClient struct {
	// contains filtered or unexported fields
}

InputsClient contains the methods for the Inputs group. Don't use this type directly, use NewInputsClient() instead.

func NewInputsClient

func NewInputsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*InputsClient, error)

NewInputsClient creates a new instance of InputsClient with the specified values.

  • subscriptionID - The ID of the target subscription.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*InputsClient) BeginTest

func (client *InputsClient) BeginTest(ctx context.Context, resourceGroupName string, jobName string, inputName string, options *InputsClientBeginTestOptions) (*runtime.Poller[InputsClientTestResponse], error)

BeginTest - Tests whether an input’s datasource is reachable and usable by the Azure Stream Analytics service. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-10-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • jobName - The name of the streaming job.
  • inputName - The name of the input.
  • options - InputsClientBeginTestOptions contains the optional parameters for the InputsClient.BeginTest method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Input_Test.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewInputsClient().BeginTest(ctx, "sjrg8440", "sj9597", "input7225", &armstreamanalytics.InputsClientBeginTestOptions{Input: nil})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
	log.Fatalf("failed to pull the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.ResourceTestStatus = armstreamanalytics.ResourceTestStatus{
// 	Status: to.Ptr("TestSucceeded"),
// }
Output:

func (*InputsClient) CreateOrReplace

func (client *InputsClient) CreateOrReplace(ctx context.Context, resourceGroupName string, jobName string, inputName string, input Input, options *InputsClientCreateOrReplaceOptions) (InputsClientCreateOrReplaceResponse, error)

CreateOrReplace - Creates an input or replaces an already existing input under an existing streaming job. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-10-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • jobName - The name of the streaming job.
  • inputName - The name of the input.
  • input - The definition of the input that will be used to create a new input or replace the existing one under the streaming job.
  • options - InputsClientCreateOrReplaceOptions contains the optional parameters for the InputsClient.CreateOrReplace method.
Example (CreateAGatewayMessageBusInput)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Input_Create_GatewayMessageBus.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewInputsClient().CreateOrReplace(ctx, "sjrg3467", "sj9742", "input7970", armstreamanalytics.Input{
	Properties: &armstreamanalytics.StreamInputProperties{
		Type: to.Ptr("Stream"),
		Datasource: &armstreamanalytics.GatewayMessageBusStreamInputDataSource{
			Type: to.Ptr("GatewayMessageBus"),
			Properties: &armstreamanalytics.GatewayMessageBusStreamInputDataSourceProperties{
				Topic: to.Ptr("EdgeTopic1"),
			},
		},
	},
}, &armstreamanalytics.InputsClientCreateOrReplaceOptions{IfMatch: nil,
	IfNoneMatch: nil,
})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Input = armstreamanalytics.Input{
// 	Name: to.Ptr("input7970"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/inputs"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg3467/providers/Microsoft.StreamAnalytics/streamingjobs/sj9742/inputs/input7970"),
// 	Properties: &armstreamanalytics.StreamInputProperties{
// 		Type: to.Ptr("Stream"),
// 		Datasource: &armstreamanalytics.GatewayMessageBusStreamInputDataSource{
// 			Type: to.Ptr("GatewayMessageBus"),
// 			Properties: &armstreamanalytics.GatewayMessageBusStreamInputDataSourceProperties{
// 				Topic: to.Ptr("EdgeTopic1"),
// 			},
// 		},
// 	},
// }
Output:

Example (CreateAReferenceBlobInputWithCsvSerialization)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Input_Create_Reference_Blob_CSV.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewInputsClient().CreateOrReplace(ctx, "sjrg8440", "sj9597", "input7225", armstreamanalytics.Input{
	Properties: &armstreamanalytics.ReferenceInputProperties{
		Type: to.Ptr("Reference"),
		Serialization: &armstreamanalytics.CSVSerialization{
			Type: to.Ptr(armstreamanalytics.EventSerializationTypeCSV),
			Properties: &armstreamanalytics.CSVSerializationProperties{
				Encoding:       to.Ptr(armstreamanalytics.EncodingUTF8),
				FieldDelimiter: to.Ptr(","),
			},
		},
		Datasource: &armstreamanalytics.BlobReferenceInputDataSource{
			Type: to.Ptr("Microsoft.Storage/Blob"),
			Properties: &armstreamanalytics.BlobReferenceInputDataSourceProperties{
				Container:   to.Ptr("state"),
				DateFormat:  to.Ptr("yyyy/MM/dd"),
				PathPattern: to.Ptr("{date}/{time}"),
				StorageAccounts: []*armstreamanalytics.StorageAccount{
					{
						AccountKey:  to.Ptr("someAccountKey=="),
						AccountName: to.Ptr("someAccountName"),
					}},
				TimeFormat:               to.Ptr("HH"),
				BlobName:                 to.Ptr("myblobinput"),
				DeltaPathPattern:         to.Ptr("/testBlob/{date}/delta/{time}/"),
				DeltaSnapshotRefreshRate: to.Ptr("16:14:30"),
				FullSnapshotRefreshRate:  to.Ptr("16:14:30"),
				SourcePartitionCount:     to.Ptr[int32](16),
			},
		},
	},
}, &armstreamanalytics.InputsClientCreateOrReplaceOptions{IfMatch: nil,
	IfNoneMatch: nil,
})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Input = armstreamanalytics.Input{
// 	Name: to.Ptr("input7225"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/inputs"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg8440/providers/Microsoft.StreamAnalytics/streamingjobs/sj9597/inputs/input7225"),
// 	Properties: &armstreamanalytics.ReferenceInputProperties{
// 		Type: to.Ptr("Reference"),
// 		Serialization: &armstreamanalytics.CSVSerialization{
// 			Type: to.Ptr(armstreamanalytics.EventSerializationTypeCSV),
// 			Properties: &armstreamanalytics.CSVSerializationProperties{
// 				Encoding: to.Ptr(armstreamanalytics.EncodingUTF8),
// 				FieldDelimiter: to.Ptr(","),
// 			},
// 		},
// 		Datasource: &armstreamanalytics.BlobReferenceInputDataSource{
// 			Type: to.Ptr("Microsoft.Storage/Blob"),
// 			Properties: &armstreamanalytics.BlobReferenceInputDataSourceProperties{
// 				Container: to.Ptr("state"),
// 				DateFormat: to.Ptr("yyyy/MM/dd"),
// 				PathPattern: to.Ptr("{date}/{time}"),
// 				StorageAccounts: []*armstreamanalytics.StorageAccount{
// 					{
// 						AccountName: to.Ptr("someAccountName"),
// 				}},
// 				TimeFormat: to.Ptr("HH"),
// 			},
// 		},
// 	},
// }
Output:

Example (CreateAReferenceFileInput)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Input_Create_Reference_File.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewInputsClient().CreateOrReplace(ctx, "sjrg8440", "sj9597", "input7225", armstreamanalytics.Input{
	Properties: &armstreamanalytics.ReferenceInputProperties{
		Type: to.Ptr("Reference"),
		Datasource: &armstreamanalytics.FileReferenceInputDataSource{
			Type: to.Ptr("File"),
			Properties: &armstreamanalytics.FileReferenceInputDataSourceProperties{
				Path: to.Ptr("my/path"),
			},
		},
	},
}, &armstreamanalytics.InputsClientCreateOrReplaceOptions{IfMatch: nil,
	IfNoneMatch: nil,
})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Input = armstreamanalytics.Input{
// 	Name: to.Ptr("input7225"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/inputs"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg8440/providers/Microsoft.StreamAnalytics/streamingjobs/sj9597/inputs/input7225"),
// 	Properties: &armstreamanalytics.ReferenceInputProperties{
// 		Type: to.Ptr("Reference"),
// 		Datasource: &armstreamanalytics.FileReferenceInputDataSource{
// 			Type: to.Ptr("File"),
// 			Properties: &armstreamanalytics.FileReferenceInputDataSourceProperties{
// 				Path: to.Ptr("my/path"),
// 			},
// 		},
// 	},
// }
Output:

Example (CreateAStreamBlobInputWithCsvSerialization)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Input_Create_Stream_Blob_CSV.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewInputsClient().CreateOrReplace(ctx, "sjrg8161", "sj6695", "input8899", armstreamanalytics.Input{
	Properties: &armstreamanalytics.StreamInputProperties{
		Type: to.Ptr("Stream"),
		Serialization: &armstreamanalytics.CSVSerialization{
			Type: to.Ptr(armstreamanalytics.EventSerializationTypeCSV),
			Properties: &armstreamanalytics.CSVSerializationProperties{
				Encoding:       to.Ptr(armstreamanalytics.EncodingUTF8),
				FieldDelimiter: to.Ptr(","),
			},
		},
		Datasource: &armstreamanalytics.BlobStreamInputDataSource{
			Type: to.Ptr("Microsoft.Storage/Blob"),
			Properties: &armstreamanalytics.BlobStreamInputDataSourceProperties{
				Container:   to.Ptr("state"),
				DateFormat:  to.Ptr("yyyy/MM/dd"),
				PathPattern: to.Ptr("{date}/{time}"),
				StorageAccounts: []*armstreamanalytics.StorageAccount{
					{
						AccountKey:  to.Ptr("someAccountKey=="),
						AccountName: to.Ptr("someAccountName"),
					}},
				TimeFormat:           to.Ptr("HH"),
				SourcePartitionCount: to.Ptr[int32](16),
			},
		},
	},
}, &armstreamanalytics.InputsClientCreateOrReplaceOptions{IfMatch: nil,
	IfNoneMatch: nil,
})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Input = armstreamanalytics.Input{
// 	Name: to.Ptr("input8899"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/inputs"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg8161/providers/Microsoft.StreamAnalytics/streamingjobs/sj6695/inputs/input8899"),
// 	Properties: &armstreamanalytics.StreamInputProperties{
// 		Type: to.Ptr("Stream"),
// 		Serialization: &armstreamanalytics.CSVSerialization{
// 			Type: to.Ptr(armstreamanalytics.EventSerializationTypeCSV),
// 			Properties: &armstreamanalytics.CSVSerializationProperties{
// 				Encoding: to.Ptr(armstreamanalytics.EncodingUTF8),
// 				FieldDelimiter: to.Ptr(","),
// 			},
// 		},
// 		Datasource: &armstreamanalytics.BlobStreamInputDataSource{
// 			Type: to.Ptr("Microsoft.Storage/Blob"),
// 			Properties: &armstreamanalytics.BlobStreamInputDataSourceProperties{
// 				Container: to.Ptr("state"),
// 				DateFormat: to.Ptr("yyyy/MM/dd"),
// 				PathPattern: to.Ptr("{date}/{time}"),
// 				StorageAccounts: []*armstreamanalytics.StorageAccount{
// 					{
// 						AccountName: to.Ptr("someAccountName"),
// 				}},
// 				TimeFormat: to.Ptr("HH"),
// 				SourcePartitionCount: to.Ptr[int32](16),
// 			},
// 		},
// 	},
// }
Output:

Example (CreateAStreamEventHubInputWithJsonSerialization)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Input_Create_Stream_EventHub_JSON.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewInputsClient().CreateOrReplace(ctx, "sjrg3139", "sj197", "input7425", armstreamanalytics.Input{
	Properties: &armstreamanalytics.StreamInputProperties{
		Type: to.Ptr("Stream"),
		Serialization: &armstreamanalytics.JSONSerialization{
			Type: to.Ptr(armstreamanalytics.EventSerializationTypeJSON),
			Properties: &armstreamanalytics.JSONSerializationProperties{
				Encoding: to.Ptr(armstreamanalytics.EncodingUTF8),
			},
		},
		WatermarkSettings: &armstreamanalytics.InputWatermarkProperties{
			WatermarkMode: to.Ptr(armstreamanalytics.InputWatermarkModeReadWatermark),
		},
		Datasource: &armstreamanalytics.EventHubStreamInputDataSource{
			Type: to.Ptr("Microsoft.ServiceBus/EventHub"),
			Properties: &armstreamanalytics.EventHubStreamInputDataSourceProperties{
				ServiceBusNamespace:    to.Ptr("sdktest"),
				SharedAccessPolicyKey:  to.Ptr("someSharedAccessPolicyKey=="),
				SharedAccessPolicyName: to.Ptr("RootManageSharedAccessKey"),
				EventHubName:           to.Ptr("sdkeventhub"),
				ConsumerGroupName:      to.Ptr("sdkconsumergroup"),
			},
		},
	},
}, &armstreamanalytics.InputsClientCreateOrReplaceOptions{IfMatch: nil,
	IfNoneMatch: nil,
})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Input = armstreamanalytics.Input{
// 	Name: to.Ptr("input7425"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/inputs"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg3139/providers/Microsoft.StreamAnalytics/streamingjobs/sj197/inputs/input7425"),
// 	Properties: &armstreamanalytics.StreamInputProperties{
// 		Type: to.Ptr("Stream"),
// 		Serialization: &armstreamanalytics.JSONSerialization{
// 			Type: to.Ptr(armstreamanalytics.EventSerializationTypeJSON),
// 			Properties: &armstreamanalytics.JSONSerializationProperties{
// 				Encoding: to.Ptr(armstreamanalytics.EncodingUTF8),
// 			},
// 		},
// 		Datasource: &armstreamanalytics.EventHubStreamInputDataSource{
// 			Type: to.Ptr("Microsoft.ServiceBus/EventHub"),
// 			Properties: &armstreamanalytics.EventHubStreamInputDataSourceProperties{
// 				ServiceBusNamespace: to.Ptr("sdktest"),
// 				SharedAccessPolicyName: to.Ptr("RootManageSharedAccessKey"),
// 				EventHubName: to.Ptr("sdkeventhub"),
// 				ConsumerGroupName: to.Ptr("sdkconsumergroup"),
// 			},
// 		},
// 	},
// }
Output:

Example (CreateAStreamIoTHubInputWithAvroSerialization)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Input_Create_Stream_IoTHub_Avro.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewInputsClient().CreateOrReplace(ctx, "sjrg3467", "sj9742", "input7970", armstreamanalytics.Input{
	Properties: &armstreamanalytics.StreamInputProperties{
		Type: to.Ptr("Stream"),
		Serialization: &armstreamanalytics.AvroSerialization{
			Type: to.Ptr(armstreamanalytics.EventSerializationTypeAvro),
		},
		Datasource: &armstreamanalytics.IoTHubStreamInputDataSource{
			Type: to.Ptr("Microsoft.Devices/IotHubs"),
			Properties: &armstreamanalytics.IoTHubStreamInputDataSourceProperties{
				ConsumerGroupName:      to.Ptr("sdkconsumergroup"),
				Endpoint:               to.Ptr("messages/events"),
				IotHubNamespace:        to.Ptr("iothub"),
				SharedAccessPolicyKey:  to.Ptr("sharedAccessPolicyKey="),
				SharedAccessPolicyName: to.Ptr("owner"),
			},
		},
	},
}, &armstreamanalytics.InputsClientCreateOrReplaceOptions{IfMatch: nil,
	IfNoneMatch: nil,
})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Input = armstreamanalytics.Input{
// 	Name: to.Ptr("input7970"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/inputs"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg3467/providers/Microsoft.StreamAnalytics/streamingjobs/sj9742/inputs/input7970"),
// 	Properties: &armstreamanalytics.StreamInputProperties{
// 		Type: to.Ptr("Stream"),
// 		Serialization: &armstreamanalytics.AvroSerialization{
// 			Type: to.Ptr(armstreamanalytics.EventSerializationTypeAvro),
// 			Properties: map[string]any{
// 			},
// 		},
// 		Datasource: &armstreamanalytics.IoTHubStreamInputDataSource{
// 			Type: to.Ptr("Microsoft.Devices/IotHubs"),
// 			Properties: &armstreamanalytics.IoTHubStreamInputDataSourceProperties{
// 				ConsumerGroupName: to.Ptr("sdkconsumergroup"),
// 				Endpoint: to.Ptr("messages/events"),
// 				IotHubNamespace: to.Ptr("iothub"),
// 				SharedAccessPolicyName: to.Ptr("owner"),
// 			},
// 		},
// 	},
// }
Output:

Example (CreateAnEventGridInput)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Input_Create_EventGrid.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewInputsClient().CreateOrReplace(ctx, "sjrg3467", "sj9742", "input7970", armstreamanalytics.Input{
	Properties: &armstreamanalytics.StreamInputProperties{
		Type: to.Ptr("Stream"),
		Datasource: &armstreamanalytics.EventGridStreamInputDataSource{
			Type: to.Ptr("Microsoft.EventGrid/EventSubscriptions"),
			Properties: &armstreamanalytics.EventGridStreamInputDataSourceProperties{
				Schema: to.Ptr(armstreamanalytics.EventGridEventSchemaTypeCloudEventSchema),
				EventTypes: []*string{
					to.Ptr("Microsoft.Storage.BlobCreated")},
				StorageAccounts: []*armstreamanalytics.StorageAccount{
					{
						AccountKey:         to.Ptr("myaccountkey"),
						AccountName:        to.Ptr("myaccount"),
						AuthenticationMode: to.Ptr(armstreamanalytics.AuthenticationModeMsi),
					}},
				Subscriber: &armstreamanalytics.EventHubV2StreamInputDataSource{
					Type: to.Ptr("Microsoft.EventHub/EventHub"),
					Properties: &armstreamanalytics.EventHubStreamInputDataSourceProperties{
						AuthenticationMode:     to.Ptr(armstreamanalytics.AuthenticationModeMsi),
						ServiceBusNamespace:    to.Ptr("sdktest"),
						SharedAccessPolicyKey:  to.Ptr("someSharedAccessPolicyKey=="),
						SharedAccessPolicyName: to.Ptr("RootManageSharedAccessKey"),
						EventHubName:           to.Ptr("sdkeventhub"),
						PartitionCount:         to.Ptr[int32](16),
						ConsumerGroupName:      to.Ptr("sdkconsumergroup"),
					},
				},
			},
		},
	},
}, &armstreamanalytics.InputsClientCreateOrReplaceOptions{IfMatch: nil,
	IfNoneMatch: nil,
})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Input = armstreamanalytics.Input{
// 	Name: to.Ptr("input7970"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/inputs"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg3467/providers/Microsoft.StreamAnalytics/streamingjobs/sj9742/inputs/input7970"),
// 	Properties: &armstreamanalytics.StreamInputProperties{
// 		Type: to.Ptr("Stream"),
// 		Datasource: &armstreamanalytics.EventGridStreamInputDataSource{
// 			Type: to.Ptr("Microsoft.EventGrid/EventSubscriptions"),
// 			Properties: &armstreamanalytics.EventGridStreamInputDataSourceProperties{
// 				Schema: to.Ptr(armstreamanalytics.EventGridEventSchemaTypeCloudEventSchema),
// 				EventTypes: []*string{
// 					to.Ptr("Microsoft.Storage.BlobCreated")},
// 					StorageAccounts: []*armstreamanalytics.StorageAccount{
// 						{
// 							AccountName: to.Ptr("myaccount"),
// 							AuthenticationMode: to.Ptr(armstreamanalytics.AuthenticationModeMsi),
// 					}},
// 					Subscriber: &armstreamanalytics.EventHubV2StreamInputDataSource{
// 						Type: to.Ptr("Microsoft.EventHub/EventHub"),
// 						Properties: &armstreamanalytics.EventHubStreamInputDataSourceProperties{
// 							AuthenticationMode: to.Ptr(armstreamanalytics.AuthenticationModeMsi),
// 							ServiceBusNamespace: to.Ptr("sdktest"),
// 							SharedAccessPolicyName: to.Ptr("RootManageSharedAccessKey"),
// 							EventHubName: to.Ptr("sdkeventhub"),
// 							PartitionCount: to.Ptr[int32](16),
// 							ConsumerGroupName: to.Ptr("sdkconsumergroup"),
// 						},
// 					},
// 				},
// 			},
// 		},
// 	}
Output:

func (*InputsClient) Delete

func (client *InputsClient) Delete(ctx context.Context, resourceGroupName string, jobName string, inputName string, options *InputsClientDeleteOptions) (InputsClientDeleteResponse, error)

Delete - Deletes an input from the streaming job. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-10-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • jobName - The name of the streaming job.
  • inputName - The name of the input.
  • options - InputsClientDeleteOptions contains the optional parameters for the InputsClient.Delete method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Input_Delete.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
_, err = clientFactory.NewInputsClient().Delete(ctx, "sjrg8440", "sj9597", "input7225", nil)
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
Output:

func (*InputsClient) Get

func (client *InputsClient) Get(ctx context.Context, resourceGroupName string, jobName string, inputName string, options *InputsClientGetOptions) (InputsClientGetResponse, error)

Get - Gets details about the specified input. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-10-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • jobName - The name of the streaming job.
  • inputName - The name of the input.
  • options - InputsClientGetOptions contains the optional parameters for the InputsClient.Get method.
Example (GetAReferenceBlobInputWithCsvSerialization)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Input_Get_Reference_Blob_CSV.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewInputsClient().Get(ctx, "sjrg8440", "sj9597", "input7225", nil)
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Input = armstreamanalytics.Input{
// 	Name: to.Ptr("input7225"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/inputs"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg8440/providers/Microsoft.StreamAnalytics/streamingjobs/sj9597/inputs/input7225"),
// 	Properties: &armstreamanalytics.ReferenceInputProperties{
// 		Type: to.Ptr("Reference"),
// 		Serialization: &armstreamanalytics.CSVSerialization{
// 			Type: to.Ptr(armstreamanalytics.EventSerializationTypeCSV),
// 			Properties: &armstreamanalytics.CSVSerializationProperties{
// 				Encoding: to.Ptr(armstreamanalytics.EncodingUTF8),
// 				FieldDelimiter: to.Ptr(","),
// 			},
// 		},
// 		Datasource: &armstreamanalytics.BlobReferenceInputDataSource{
// 			Type: to.Ptr("Microsoft.Storage/Blob"),
// 			Properties: &armstreamanalytics.BlobReferenceInputDataSourceProperties{
// 				Container: to.Ptr("state"),
// 				DateFormat: to.Ptr("yyyy/MM/dd"),
// 				PathPattern: to.Ptr("{date}/{time}"),
// 				StorageAccounts: []*armstreamanalytics.StorageAccount{
// 					{
// 						AccountName: to.Ptr("someAccountName"),
// 				}},
// 				TimeFormat: to.Ptr("HH"),
// 			},
// 		},
// 	},
// }
Output:

Example (GetAStreamBlobInputWithCsvSerialization)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Input_Get_Stream_Blob_CSV.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewInputsClient().Get(ctx, "sjrg8161", "sj6695", "input8899", nil)
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Input = armstreamanalytics.Input{
// 	Name: to.Ptr("input8899"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/inputs"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg8161/providers/Microsoft.StreamAnalytics/streamingjobs/sj6695/inputs/input8899"),
// 	Properties: &armstreamanalytics.StreamInputProperties{
// 		Type: to.Ptr("Stream"),
// 		Serialization: &armstreamanalytics.CSVSerialization{
// 			Type: to.Ptr(armstreamanalytics.EventSerializationTypeCSV),
// 			Properties: &armstreamanalytics.CSVSerializationProperties{
// 				Encoding: to.Ptr(armstreamanalytics.EncodingUTF8),
// 				FieldDelimiter: to.Ptr(","),
// 			},
// 		},
// 		Datasource: &armstreamanalytics.BlobStreamInputDataSource{
// 			Type: to.Ptr("Microsoft.Storage/Blob"),
// 			Properties: &armstreamanalytics.BlobStreamInputDataSourceProperties{
// 				Container: to.Ptr("state"),
// 				DateFormat: to.Ptr("yyyy/MM/dd"),
// 				PathPattern: to.Ptr("{date}/{time}"),
// 				StorageAccounts: []*armstreamanalytics.StorageAccount{
// 					{
// 						AccountName: to.Ptr("someAccountName"),
// 				}},
// 				TimeFormat: to.Ptr("HH"),
// 				SourcePartitionCount: to.Ptr[int32](16),
// 			},
// 		},
// 	},
// }
Output:

Example (GetAStreamEventHubInputWithJsonSerialization)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Input_Get_Stream_EventHub_JSON.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewInputsClient().Get(ctx, "sjrg3139", "sj197", "input7425", nil)
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Input = armstreamanalytics.Input{
// 	Name: to.Ptr("input7425"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/inputs"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg3139/providers/Microsoft.StreamAnalytics/streamingjobs/sj197/inputs/input7425"),
// 	Properties: &armstreamanalytics.StreamInputProperties{
// 		Type: to.Ptr("Stream"),
// 		Serialization: &armstreamanalytics.JSONSerialization{
// 			Type: to.Ptr(armstreamanalytics.EventSerializationTypeJSON),
// 			Properties: &armstreamanalytics.JSONSerializationProperties{
// 				Encoding: to.Ptr(armstreamanalytics.EncodingUTF8),
// 			},
// 		},
// 		Datasource: &armstreamanalytics.EventHubStreamInputDataSource{
// 			Type: to.Ptr("Microsoft.ServiceBus/EventHub"),
// 			Properties: &armstreamanalytics.EventHubStreamInputDataSourceProperties{
// 				ServiceBusNamespace: to.Ptr("sdktest"),
// 				SharedAccessPolicyName: to.Ptr("RootManageSharedAccessKey"),
// 				EventHubName: to.Ptr("sdkeventhub"),
// 				ConsumerGroupName: to.Ptr("sdkconsumergroup"),
// 			},
// 		},
// 	},
// }
Output:

Example (GetAStreamIoTHubInputWithAvroSerialization)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Input_Get_Stream_IoTHub_Avro.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewInputsClient().Get(ctx, "sjrg3467", "sj9742", "input7970", nil)
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Input = armstreamanalytics.Input{
// 	Name: to.Ptr("input7970"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/inputs"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg3467/providers/Microsoft.StreamAnalytics/streamingjobs/sj9742/inputs/input7970"),
// 	Properties: &armstreamanalytics.StreamInputProperties{
// 		Type: to.Ptr("Stream"),
// 		Serialization: &armstreamanalytics.AvroSerialization{
// 			Type: to.Ptr(armstreamanalytics.EventSerializationTypeAvro),
// 			Properties: map[string]any{
// 			},
// 		},
// 		Datasource: &armstreamanalytics.IoTHubStreamInputDataSource{
// 			Type: to.Ptr("Microsoft.Devices/IotHubs"),
// 			Properties: &armstreamanalytics.IoTHubStreamInputDataSourceProperties{
// 				ConsumerGroupName: to.Ptr("sdkconsumergroup"),
// 				Endpoint: to.Ptr("messages/events"),
// 				IotHubNamespace: to.Ptr("iothub"),
// 				SharedAccessPolicyName: to.Ptr("owner"),
// 			},
// 		},
// 	},
// }
Output:

func (*InputsClient) NewListByStreamingJobPager

func (client *InputsClient) NewListByStreamingJobPager(resourceGroupName string, jobName string, options *InputsClientListByStreamingJobOptions) *runtime.Pager[InputsClientListByStreamingJobResponse]

NewListByStreamingJobPager - Lists all of the inputs under the specified streaming job.

Generated from API version 2021-10-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • jobName - The name of the streaming job.
  • options - InputsClientListByStreamingJobOptions contains the optional parameters for the InputsClient.NewListByStreamingJobPager method.
Example (ListAllInputsInAStreamingJob)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Input_ListByStreamingJob.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewInputsClient().NewListByStreamingJobPager("sjrg8440", "sj9597", &armstreamanalytics.InputsClientListByStreamingJobOptions{Select: nil})
for pager.More() {
	page, err := pager.NextPage(ctx)
	if err != nil {
		log.Fatalf("failed to advance page: %v", err)
	}
	for _, v := range page.Value {
		// You could use page here. We use blank identifier for just demo purposes.
		_ = v
	}
	// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// page.InputListResult = armstreamanalytics.InputListResult{
	// 	Value: []*armstreamanalytics.Input{
	// 		{
	// 			Name: to.Ptr("input7225"),
	// 			Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/inputs"),
	// 			ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg8440/providers/Microsoft.StreamAnalytics/streamingjobs/sj9597/inputs/input7225"),
	// 			Properties: &armstreamanalytics.ReferenceInputProperties{
	// 				Type: to.Ptr("Reference"),
	// 				Etag: to.Ptr("a4ceb697-1c8f-40c8-b951-fb5ee4757437"),
	// 				Serialization: &armstreamanalytics.CSVSerialization{
	// 					Type: to.Ptr(armstreamanalytics.EventSerializationTypeCSV),
	// 					Properties: &armstreamanalytics.CSVSerializationProperties{
	// 						Encoding: to.Ptr(armstreamanalytics.EncodingUTF8),
	// 						FieldDelimiter: to.Ptr("|"),
	// 					},
	// 				},
	// 				Datasource: &armstreamanalytics.BlobReferenceInputDataSource{
	// 					Type: to.Ptr("Microsoft.Storage/Blob"),
	// 					Properties: &armstreamanalytics.BlobReferenceInputDataSourceProperties{
	// 						Container: to.Ptr("differentContainer"),
	// 						DateFormat: to.Ptr("yyyy/MM/dd"),
	// 						PathPattern: to.Ptr("{date}/{time}"),
	// 						StorageAccounts: []*armstreamanalytics.StorageAccount{
	// 							{
	// 								AccountName: to.Ptr("someAccountName"),
	// 						}},
	// 						TimeFormat: to.Ptr("HH"),
	// 					},
	// 				},
	// 			},
	// 		},
	// 		{
	// 			Name: to.Ptr("input8899"),
	// 			Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/inputs"),
	// 			ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg8440/providers/Microsoft.StreamAnalytics/streamingjobs/sj9597/inputs/input8899"),
	// 			Properties: &armstreamanalytics.StreamInputProperties{
	// 				Type: to.Ptr("Stream"),
	// 				Etag: to.Ptr("3b35d57c-02f4-4b41-8e1d-af02a86c2fa1"),
	// 				Serialization: &armstreamanalytics.CSVSerialization{
	// 					Type: to.Ptr(armstreamanalytics.EventSerializationTypeCSV),
	// 					Properties: &armstreamanalytics.CSVSerializationProperties{
	// 						Encoding: to.Ptr(armstreamanalytics.EncodingUTF8),
	// 						FieldDelimiter: to.Ptr("|"),
	// 					},
	// 				},
	// 				Datasource: &armstreamanalytics.BlobStreamInputDataSource{
	// 					Type: to.Ptr("Microsoft.Storage/Blob"),
	// 					Properties: &armstreamanalytics.BlobStreamInputDataSourceProperties{
	// 						Container: to.Ptr("state"),
	// 						DateFormat: to.Ptr("yyyy/MM/dd"),
	// 						PathPattern: to.Ptr("{date}/{time}"),
	// 						StorageAccounts: []*armstreamanalytics.StorageAccount{
	// 							{
	// 								AccountName: to.Ptr("someAccountName"),
	// 						}},
	// 						TimeFormat: to.Ptr("HH"),
	// 						SourcePartitionCount: to.Ptr[int32](32),
	// 					},
	// 				},
	// 			},
	// 		},
	// 		{
	// 			Name: to.Ptr("input7425"),
	// 			Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/inputs"),
	// 			ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg8440/providers/Microsoft.StreamAnalytics/streamingjobs/sj9597/inputs/input7425"),
	// 			Properties: &armstreamanalytics.StreamInputProperties{
	// 				Type: to.Ptr("Stream"),
	// 				Etag: to.Ptr("7548f259-81b5-4ea7-b896-25c6717d98ba"),
	// 				Serialization: &armstreamanalytics.AvroSerialization{
	// 					Type: to.Ptr(armstreamanalytics.EventSerializationTypeAvro),
	// 					Properties: map[string]any{
	// 					},
	// 				},
	// 				Datasource: &armstreamanalytics.EventHubStreamInputDataSource{
	// 					Type: to.Ptr("Microsoft.ServiceBus/EventHub"),
	// 					Properties: &armstreamanalytics.EventHubStreamInputDataSourceProperties{
	// 						ServiceBusNamespace: to.Ptr("sdktest"),
	// 						SharedAccessPolicyName: to.Ptr("RootManageSharedAccessKey"),
	// 						EventHubName: to.Ptr("sdkeventhub"),
	// 						ConsumerGroupName: to.Ptr("differentConsumerGroupName"),
	// 					},
	// 				},
	// 			},
	// 		},
	// 		{
	// 			Name: to.Ptr("input7970"),
	// 			Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/inputs"),
	// 			ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg8440/providers/Microsoft.StreamAnalytics/streamingjobs/sj9597/inputs/input7970"),
	// 			Properties: &armstreamanalytics.StreamInputProperties{
	// 				Type: to.Ptr("Stream"),
	// 				Etag: to.Ptr("e2d847e0-c95b-48ef-9e14-1afc1f2270cb"),
	// 				Serialization: &armstreamanalytics.CSVSerialization{
	// 					Type: to.Ptr(armstreamanalytics.EventSerializationTypeCSV),
	// 					Properties: &armstreamanalytics.CSVSerializationProperties{
	// 						Encoding: to.Ptr(armstreamanalytics.EncodingUTF8),
	// 						FieldDelimiter: to.Ptr("|"),
	// 					},
	// 				},
	// 				Datasource: &armstreamanalytics.IoTHubStreamInputDataSource{
	// 					Type: to.Ptr("Microsoft.Devices/IotHubs"),
	// 					Properties: &armstreamanalytics.IoTHubStreamInputDataSourceProperties{
	// 						ConsumerGroupName: to.Ptr("sdkconsumergroup"),
	// 						Endpoint: to.Ptr("messages/operationsMonitoringEvents"),
	// 						IotHubNamespace: to.Ptr("iothub"),
	// 						SharedAccessPolicyName: to.Ptr("owner"),
	// 					},
	// 				},
	// 			},
	// 	}},
	// }
}
Output:

Example (ListAllInputsInAStreamingJobAndIncludeDiagnosticInformationUsingTheSelectODataQueryParameter)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Input_ListByStreamingJob_Diagnostics.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewInputsClient().NewListByStreamingJobPager("sjrg3276", "sj7804", &armstreamanalytics.InputsClientListByStreamingJobOptions{Select: to.Ptr("*")})
for pager.More() {
	page, err := pager.NextPage(ctx)
	if err != nil {
		log.Fatalf("failed to advance page: %v", err)
	}
	for _, v := range page.Value {
		// You could use page here. We use blank identifier for just demo purposes.
		_ = v
	}
	// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// page.InputListResult = armstreamanalytics.InputListResult{
	// 	Value: []*armstreamanalytics.Input{
	// 		{
	// 			Name: to.Ptr("inputtest"),
	// 			Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/inputs"),
	// 			ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg3276/providers/Microsoft.StreamAnalytics/streamingjobs/sj7804/inputs/inputtest"),
	// 			Properties: &armstreamanalytics.StreamInputProperties{
	// 				Type: to.Ptr("Stream"),
	// 				Diagnostics: &armstreamanalytics.Diagnostics{
	// 					Conditions: []*armstreamanalytics.DiagnosticCondition{
	// 						{
	// 							Code: to.Ptr("INP-3"),
	// 							Message: to.Ptr("Could not deserialize the input event as Json. Some possible reasons: 1) Malformed events 2) Input source configured with incorrect serialization format"),
	// 							Since: to.Ptr("2017-05-11T04:38:42.4938687Z"),
	// 					}},
	// 				},
	// 				Etag: to.Ptr("ca88f8fa-605b-4c7f-8695-46f5faa60cd0"),
	// 				Serialization: &armstreamanalytics.JSONSerialization{
	// 					Type: to.Ptr(armstreamanalytics.EventSerializationTypeJSON),
	// 					Properties: &armstreamanalytics.JSONSerializationProperties{
	// 						Encoding: to.Ptr(armstreamanalytics.EncodingUTF8),
	// 					},
	// 				},
	// 				Datasource: &armstreamanalytics.BlobStreamInputDataSource{
	// 					Type: to.Ptr("Microsoft.Storage/Blob"),
	// 					Properties: &armstreamanalytics.BlobStreamInputDataSourceProperties{
	// 						Container: to.Ptr("state"),
	// 						PathPattern: to.Ptr(""),
	// 						StorageAccounts: []*armstreamanalytics.StorageAccount{
	// 							{
	// 								AccountName: to.Ptr("someAccountName"),
	// 						}},
	// 					},
	// 				},
	// 			},
	// 	}},
	// }
}
Output:

func (*InputsClient) Update

func (client *InputsClient) Update(ctx context.Context, resourceGroupName string, jobName string, inputName string, input Input, options *InputsClientUpdateOptions) (InputsClientUpdateResponse, error)

Update - Updates an existing input under an existing streaming job. This can be used to partially update (ie. update one or two properties) an input without affecting the rest the job or input definition. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-10-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • jobName - The name of the streaming job.
  • inputName - The name of the input.
  • input - An Input object. The properties specified here will overwrite the corresponding properties in the existing input (ie. Those properties will be updated). Any properties that are set to null here will mean that the corresponding property in the existing input will remain the same and not change as a result of this PATCH operation.
  • options - InputsClientUpdateOptions contains the optional parameters for the InputsClient.Update method.
Example (UpdateAReferenceBlobInput)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Input_Update_Reference_Blob.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewInputsClient().Update(ctx, "sjrg8440", "sj9597", "input7225", armstreamanalytics.Input{
	Properties: &armstreamanalytics.ReferenceInputProperties{
		Type: to.Ptr("Reference"),
		Serialization: &armstreamanalytics.CSVSerialization{
			Type: to.Ptr(armstreamanalytics.EventSerializationTypeCSV),
			Properties: &armstreamanalytics.CSVSerializationProperties{
				Encoding:       to.Ptr(armstreamanalytics.EncodingUTF8),
				FieldDelimiter: to.Ptr("|"),
			},
		},
		Datasource: &armstreamanalytics.BlobReferenceInputDataSource{
			Type: to.Ptr("Microsoft.Storage/Blob"),
			Properties: &armstreamanalytics.BlobReferenceInputDataSourceProperties{
				Container: to.Ptr("differentContainer"),
			},
		},
	},
}, &armstreamanalytics.InputsClientUpdateOptions{IfMatch: nil})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Input = armstreamanalytics.Input{
// 	Name: to.Ptr("input7225"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/inputs"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg8440/providers/Microsoft.StreamAnalytics/streamingjobs/sj9597/inputs/input7225"),
// 	Properties: &armstreamanalytics.ReferenceInputProperties{
// 		Type: to.Ptr("Reference"),
// 		Serialization: &armstreamanalytics.CSVSerialization{
// 			Type: to.Ptr(armstreamanalytics.EventSerializationTypeCSV),
// 			Properties: &armstreamanalytics.CSVSerializationProperties{
// 				Encoding: to.Ptr(armstreamanalytics.EncodingUTF8),
// 				FieldDelimiter: to.Ptr("|"),
// 			},
// 		},
// 		Datasource: &armstreamanalytics.BlobReferenceInputDataSource{
// 			Type: to.Ptr("Microsoft.Storage/Blob"),
// 			Properties: &armstreamanalytics.BlobReferenceInputDataSourceProperties{
// 				Container: to.Ptr("differentContainer"),
// 				DateFormat: to.Ptr("yyyy/MM/dd"),
// 				PathPattern: to.Ptr("{date}/{time}"),
// 				StorageAccounts: []*armstreamanalytics.StorageAccount{
// 					{
// 						AccountName: to.Ptr("someAccountName"),
// 				}},
// 				TimeFormat: to.Ptr("HH"),
// 			},
// 		},
// 	},
// }
Output:

Example (UpdateAStreamBlobInput)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Input_Update_Stream_Blob.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewInputsClient().Update(ctx, "sjrg8161", "sj6695", "input8899", armstreamanalytics.Input{
	Properties: &armstreamanalytics.StreamInputProperties{
		Type: to.Ptr("Stream"),
		Serialization: &armstreamanalytics.CSVSerialization{
			Type: to.Ptr(armstreamanalytics.EventSerializationTypeCSV),
			Properties: &armstreamanalytics.CSVSerializationProperties{
				Encoding:       to.Ptr(armstreamanalytics.EncodingUTF8),
				FieldDelimiter: to.Ptr("|"),
			},
		},
		Datasource: &armstreamanalytics.BlobStreamInputDataSource{
			Type: to.Ptr("Microsoft.Storage/Blob"),
			Properties: &armstreamanalytics.BlobStreamInputDataSourceProperties{
				SourcePartitionCount: to.Ptr[int32](32),
			},
		},
	},
}, &armstreamanalytics.InputsClientUpdateOptions{IfMatch: nil})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Input = armstreamanalytics.Input{
// 	Name: to.Ptr("input8899"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/inputs"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg8161/providers/Microsoft.StreamAnalytics/streamingjobs/sj6695/inputs/input8899"),
// 	Properties: &armstreamanalytics.StreamInputProperties{
// 		Type: to.Ptr("Stream"),
// 		Serialization: &armstreamanalytics.CSVSerialization{
// 			Type: to.Ptr(armstreamanalytics.EventSerializationTypeCSV),
// 			Properties: &armstreamanalytics.CSVSerializationProperties{
// 				Encoding: to.Ptr(armstreamanalytics.EncodingUTF8),
// 				FieldDelimiter: to.Ptr("|"),
// 			},
// 		},
// 		Datasource: &armstreamanalytics.BlobStreamInputDataSource{
// 			Type: to.Ptr("Microsoft.Storage/Blob"),
// 			Properties: &armstreamanalytics.BlobStreamInputDataSourceProperties{
// 				Container: to.Ptr("state"),
// 				DateFormat: to.Ptr("yyyy/MM/dd"),
// 				PathPattern: to.Ptr("{date}/{time}"),
// 				StorageAccounts: []*armstreamanalytics.StorageAccount{
// 					{
// 						AccountName: to.Ptr("someAccountName"),
// 				}},
// 				TimeFormat: to.Ptr("HH"),
// 				SourcePartitionCount: to.Ptr[int32](32),
// 			},
// 		},
// 	},
// }
Output:

Example (UpdateAStreamEventHubInput)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Input_Update_Stream_EventHub.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewInputsClient().Update(ctx, "sjrg3139", "sj197", "input7425", armstreamanalytics.Input{
	Properties: &armstreamanalytics.StreamInputProperties{
		Type: to.Ptr("Stream"),
		Serialization: &armstreamanalytics.AvroSerialization{
			Type: to.Ptr(armstreamanalytics.EventSerializationTypeAvro),
		},
		Datasource: &armstreamanalytics.EventHubStreamInputDataSource{
			Type: to.Ptr("Microsoft.ServiceBus/EventHub"),
			Properties: &armstreamanalytics.EventHubStreamInputDataSourceProperties{
				ConsumerGroupName: to.Ptr("differentConsumerGroupName"),
			},
		},
	},
}, &armstreamanalytics.InputsClientUpdateOptions{IfMatch: nil})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Input = armstreamanalytics.Input{
// 	Name: to.Ptr("input7425"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/inputs"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg3139/providers/Microsoft.StreamAnalytics/streamingjobs/sj197/inputs/input7425"),
// 	Properties: &armstreamanalytics.StreamInputProperties{
// 		Type: to.Ptr("Stream"),
// 		Serialization: &armstreamanalytics.AvroSerialization{
// 			Type: to.Ptr(armstreamanalytics.EventSerializationTypeAvro),
// 			Properties: map[string]any{
// 			},
// 		},
// 		Datasource: &armstreamanalytics.EventHubStreamInputDataSource{
// 			Type: to.Ptr("Microsoft.ServiceBus/EventHub"),
// 			Properties: &armstreamanalytics.EventHubStreamInputDataSourceProperties{
// 				ServiceBusNamespace: to.Ptr("sdktest"),
// 				SharedAccessPolicyName: to.Ptr("RootManageSharedAccessKey"),
// 				EventHubName: to.Ptr("sdkeventhub"),
// 				ConsumerGroupName: to.Ptr("differentConsumerGroupName"),
// 			},
// 		},
// 	},
// }
Output:

Example (UpdateAStreamIoTHubInput)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Input_Update_Stream_IoTHub.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewInputsClient().Update(ctx, "sjrg3467", "sj9742", "input7970", armstreamanalytics.Input{
	Properties: &armstreamanalytics.StreamInputProperties{
		Type: to.Ptr("Stream"),
		Serialization: &armstreamanalytics.CSVSerialization{
			Type: to.Ptr(armstreamanalytics.EventSerializationTypeCSV),
			Properties: &armstreamanalytics.CSVSerializationProperties{
				Encoding:       to.Ptr(armstreamanalytics.EncodingUTF8),
				FieldDelimiter: to.Ptr("|"),
			},
		},
		Datasource: &armstreamanalytics.IoTHubStreamInputDataSource{
			Type: to.Ptr("Microsoft.Devices/IotHubs"),
			Properties: &armstreamanalytics.IoTHubStreamInputDataSourceProperties{
				Endpoint: to.Ptr("messages/operationsMonitoringEvents"),
			},
		},
	},
}, &armstreamanalytics.InputsClientUpdateOptions{IfMatch: nil})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Input = armstreamanalytics.Input{
// 	Name: to.Ptr("input7970"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/inputs"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg3467/providers/Microsoft.StreamAnalytics/streamingjobs/sj9742/inputs/input7970"),
// 	Properties: &armstreamanalytics.StreamInputProperties{
// 		Type: to.Ptr("Stream"),
// 		Serialization: &armstreamanalytics.CSVSerialization{
// 			Type: to.Ptr(armstreamanalytics.EventSerializationTypeCSV),
// 			Properties: &armstreamanalytics.CSVSerializationProperties{
// 				Encoding: to.Ptr(armstreamanalytics.EncodingUTF8),
// 				FieldDelimiter: to.Ptr("|"),
// 			},
// 		},
// 		Datasource: &armstreamanalytics.IoTHubStreamInputDataSource{
// 			Type: to.Ptr("Microsoft.Devices/IotHubs"),
// 			Properties: &armstreamanalytics.IoTHubStreamInputDataSourceProperties{
// 				ConsumerGroupName: to.Ptr("sdkconsumergroup"),
// 				Endpoint: to.Ptr("messages/operationsMonitoringEvents"),
// 				IotHubNamespace: to.Ptr("iothub"),
// 				SharedAccessPolicyName: to.Ptr("owner"),
// 			},
// 		},
// 	},
// }
Output:

type InputsClientBeginTestOptions

type InputsClientBeginTestOptions struct {
	// If the input specified does not already exist, this parameter must contain the full input definition intended to be tested.
	// If the input specified already exists, this parameter can be left null to
	// test the existing input as is or if specified, the properties specified will overwrite the corresponding properties in
	// the existing input (exactly like a PATCH operation) and the resulting input will
	// be tested.
	Input *Input

	// Resumes the LRO from the provided token.
	ResumeToken string
}

InputsClientBeginTestOptions contains the optional parameters for the InputsClient.BeginTest method.

type InputsClientCreateOrReplaceOptions

type InputsClientCreateOrReplaceOptions struct {
	// The ETag of the input. Omit this value to always overwrite the current input. Specify the last-seen ETag value to prevent
	// accidentally overwriting concurrent changes.
	IfMatch *string

	// Set to '*' to allow a new input to be created, but to prevent updating an existing input. Other values will result in a
	// 412 Pre-condition Failed response.
	IfNoneMatch *string
}

InputsClientCreateOrReplaceOptions contains the optional parameters for the InputsClient.CreateOrReplace method.

type InputsClientCreateOrReplaceResponse

type InputsClientCreateOrReplaceResponse struct {
	// An input object, containing all information associated with the named input. All inputs are contained under a streaming
	// job.
	Input

	// ETag contains the information returned from the ETag header response.
	ETag *string
}

InputsClientCreateOrReplaceResponse contains the response from method InputsClient.CreateOrReplace.

type InputsClientDeleteOptions

type InputsClientDeleteOptions struct {
}

InputsClientDeleteOptions contains the optional parameters for the InputsClient.Delete method.

type InputsClientDeleteResponse

type InputsClientDeleteResponse struct {
}

InputsClientDeleteResponse contains the response from method InputsClient.Delete.

type InputsClientGetOptions

type InputsClientGetOptions struct {
}

InputsClientGetOptions contains the optional parameters for the InputsClient.Get method.

type InputsClientGetResponse

type InputsClientGetResponse struct {
	// An input object, containing all information associated with the named input. All inputs are contained under a streaming
	// job.
	Input

	// ETag contains the information returned from the ETag header response.
	ETag *string
}

InputsClientGetResponse contains the response from method InputsClient.Get.

type InputsClientListByStreamingJobOptions

type InputsClientListByStreamingJobOptions struct {
	// The $select OData query parameter. This is a comma-separated list of structural properties to include in the response,
	// or "" to include all properties. By default, all properties are returned except
	// diagnostics. Currently only accepts ” as a valid value.
	Select *string
}

InputsClientListByStreamingJobOptions contains the optional parameters for the InputsClient.NewListByStreamingJobPager method.

type InputsClientListByStreamingJobResponse

type InputsClientListByStreamingJobResponse struct {
	// Object containing a list of inputs under a streaming job.
	InputListResult
}

InputsClientListByStreamingJobResponse contains the response from method InputsClient.NewListByStreamingJobPager.

type InputsClientTestResponse

type InputsClientTestResponse struct {
	// Describes the status of the test operation along with error information, if applicable.
	ResourceTestStatus
}

InputsClientTestResponse contains the response from method InputsClient.BeginTest.

type InputsClientUpdateOptions

type InputsClientUpdateOptions struct {
	// The ETag of the input. Omit this value to always overwrite the current input. Specify the last-seen ETag value to prevent
	// accidentally overwriting concurrent changes.
	IfMatch *string
}

InputsClientUpdateOptions contains the optional parameters for the InputsClient.Update method.

type InputsClientUpdateResponse

type InputsClientUpdateResponse struct {
	// An input object, containing all information associated with the named input. All inputs are contained under a streaming
	// job.
	Input

	// ETag contains the information returned from the ETag header response.
	ETag *string
}

InputsClientUpdateResponse contains the response from method InputsClient.Update.

type IoTHubStreamInputDataSource

type IoTHubStreamInputDataSource struct {
	// REQUIRED; Indicates the type of input data source containing stream data. Required on PUT (CreateOrReplace) requests.
	Type *string

	// The properties that are associated with an IoT Hub input containing stream data. Required on PUT (CreateOrReplace) requests.
	Properties *IoTHubStreamInputDataSourceProperties
}

IoTHubStreamInputDataSource - Describes an IoT Hub input data source that contains stream data.

func (*IoTHubStreamInputDataSource) GetStreamInputDataSource

func (i *IoTHubStreamInputDataSource) GetStreamInputDataSource() *StreamInputDataSource

GetStreamInputDataSource implements the StreamInputDataSourceClassification interface for type IoTHubStreamInputDataSource.

func (IoTHubStreamInputDataSource) MarshalJSON

func (i IoTHubStreamInputDataSource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type IoTHubStreamInputDataSource.

func (*IoTHubStreamInputDataSource) UnmarshalJSON

func (i *IoTHubStreamInputDataSource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type IoTHubStreamInputDataSource.

type IoTHubStreamInputDataSourceProperties

type IoTHubStreamInputDataSourceProperties struct {
	// The name of an IoT Hub Consumer Group that should be used to read events from the IoT Hub. If not specified, the input
	// uses the Iot Hub’s default consumer group.
	ConsumerGroupName *string

	// The IoT Hub endpoint to connect to (ie. messages/events, messages/operationsMonitoringEvents, etc.).
	Endpoint *string

	// The name or the URI of the IoT Hub. Required on PUT (CreateOrReplace) requests.
	IotHubNamespace *string

	// The shared access policy key for the specified shared access policy. Required on PUT (CreateOrReplace) requests.
	SharedAccessPolicyKey *string

	// The shared access policy name for the IoT Hub. This policy must contain at least the Service connect permission. Required
	// on PUT (CreateOrReplace) requests.
	SharedAccessPolicyName *string
}

IoTHubStreamInputDataSourceProperties - The properties that are associated with a IoT Hub input containing stream data.

func (IoTHubStreamInputDataSourceProperties) MarshalJSON

func (i IoTHubStreamInputDataSourceProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type IoTHubStreamInputDataSourceProperties.

func (*IoTHubStreamInputDataSourceProperties) UnmarshalJSON

func (i *IoTHubStreamInputDataSourceProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type IoTHubStreamInputDataSourceProperties.

type JSONOutputSerializationFormat

type JSONOutputSerializationFormat string

JSONOutputSerializationFormat - Specifies the format of the JSON the output will be written in. The currently supported values are 'lineSeparated' indicating the output will be formatted by having each JSON object separated by a new line and 'array' indicating the output will be formatted as an array of JSON objects.

const (
	JSONOutputSerializationFormatArray         JSONOutputSerializationFormat = "Array"
	JSONOutputSerializationFormatLineSeparated JSONOutputSerializationFormat = "LineSeparated"
)

func PossibleJSONOutputSerializationFormatValues

func PossibleJSONOutputSerializationFormatValues() []JSONOutputSerializationFormat

PossibleJSONOutputSerializationFormatValues returns the possible values for the JSONOutputSerializationFormat const type.

type JSONSerialization

type JSONSerialization struct {
	// REQUIRED; Indicates the type of serialization that the input or output uses. Required on PUT (CreateOrReplace) requests.
	Type *EventSerializationType

	// The properties that are associated with the JSON serialization type. Required on PUT (CreateOrReplace) requests.
	Properties *JSONSerializationProperties
}

JSONSerialization - Describes how data from an input is serialized or how data is serialized when written to an output in JSON format.

func (*JSONSerialization) GetSerialization

func (j *JSONSerialization) GetSerialization() *Serialization

GetSerialization implements the SerializationClassification interface for type JSONSerialization.

func (JSONSerialization) MarshalJSON

func (j JSONSerialization) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type JSONSerialization.

func (*JSONSerialization) UnmarshalJSON

func (j *JSONSerialization) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type JSONSerialization.

type JSONSerializationProperties

type JSONSerializationProperties struct {
	// Specifies the encoding of the incoming data in the case of input and the encoding of outgoing data in the case of output.
	// Required on PUT (CreateOrReplace) requests.
	Encoding *Encoding

	// This property only applies to JSON serialization of outputs only. It is not applicable to inputs. This property specifies
	// the format of the JSON the output will be written in. The currently supported
	// values are 'lineSeparated' indicating the output will be formatted by having each JSON object separated by a new line and
	// 'array' indicating the output will be formatted as an array of JSON objects.
	// Default value is 'lineSeparated' if left null.
	Format *JSONOutputSerializationFormat
}

JSONSerializationProperties - The properties that are associated with the JSON serialization type.

func (JSONSerializationProperties) MarshalJSON

func (j JSONSerializationProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type JSONSerializationProperties.

func (*JSONSerializationProperties) UnmarshalJSON

func (j *JSONSerializationProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type JSONSerializationProperties.

type JavaScriptFunctionBinding

type JavaScriptFunctionBinding struct {
	// REQUIRED; Indicates the function binding type.
	Type *string

	// The binding properties associated with a JavaScript function.
	Properties *JavaScriptFunctionBindingProperties
}

JavaScriptFunctionBinding - The binding to a JavaScript function.

func (*JavaScriptFunctionBinding) GetFunctionBinding

func (j *JavaScriptFunctionBinding) GetFunctionBinding() *FunctionBinding

GetFunctionBinding implements the FunctionBindingClassification interface for type JavaScriptFunctionBinding.

func (JavaScriptFunctionBinding) MarshalJSON

func (j JavaScriptFunctionBinding) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type JavaScriptFunctionBinding.

func (*JavaScriptFunctionBinding) UnmarshalJSON

func (j *JavaScriptFunctionBinding) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type JavaScriptFunctionBinding.

type JavaScriptFunctionBindingProperties

type JavaScriptFunctionBindingProperties struct {
	// The JavaScript code containing a single function definition. For example: 'function (x, y) { return x + y; }'
	Script *string
}

JavaScriptFunctionBindingProperties - The binding properties associated with a JavaScript function.

func (JavaScriptFunctionBindingProperties) MarshalJSON

func (j JavaScriptFunctionBindingProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type JavaScriptFunctionBindingProperties.

func (*JavaScriptFunctionBindingProperties) UnmarshalJSON

func (j *JavaScriptFunctionBindingProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type JavaScriptFunctionBindingProperties.

type JavaScriptFunctionBindingRetrievalProperties

type JavaScriptFunctionBindingRetrievalProperties struct {
	// The JavaScript code containing a single function definition. For example: 'function (x, y) { return x + y; }'.
	Script *string

	// The function type.
	UdfType *string
}

JavaScriptFunctionBindingRetrievalProperties - The binding retrieval properties associated with a JavaScript function.

func (JavaScriptFunctionBindingRetrievalProperties) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type JavaScriptFunctionBindingRetrievalProperties.

func (*JavaScriptFunctionBindingRetrievalProperties) UnmarshalJSON

func (j *JavaScriptFunctionBindingRetrievalProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type JavaScriptFunctionBindingRetrievalProperties.

type JavaScriptFunctionRetrieveDefaultDefinitionParameters

type JavaScriptFunctionRetrieveDefaultDefinitionParameters struct {
	// REQUIRED; Indicates the function binding type.
	BindingType *string

	// The binding retrieval properties associated with a JavaScript function.
	BindingRetrievalProperties *JavaScriptFunctionBindingRetrievalProperties
}

JavaScriptFunctionRetrieveDefaultDefinitionParameters - The parameters needed to retrieve the default function definition for a JavaScript function.

func (*JavaScriptFunctionRetrieveDefaultDefinitionParameters) GetFunctionRetrieveDefaultDefinitionParameters

GetFunctionRetrieveDefaultDefinitionParameters implements the FunctionRetrieveDefaultDefinitionParametersClassification interface for type JavaScriptFunctionRetrieveDefaultDefinitionParameters.

func (JavaScriptFunctionRetrieveDefaultDefinitionParameters) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type JavaScriptFunctionRetrieveDefaultDefinitionParameters.

func (*JavaScriptFunctionRetrieveDefaultDefinitionParameters) UnmarshalJSON

UnmarshalJSON implements the json.Unmarshaller interface for type JavaScriptFunctionRetrieveDefaultDefinitionParameters.

type JobState

type JobState string

JobState - The current execution state of the streaming job.

const (
	// JobStateCreated - The job is currently in the Created state.
	JobStateCreated JobState = "Created"
	// JobStateDegraded - The job is currently in the Degraded state.
	JobStateDegraded JobState = "Degraded"
	// JobStateDeleting - The job is currently in the Deleting state.
	JobStateDeleting JobState = "Deleting"
	// JobStateFailed - The job is currently in the Failed state.
	JobStateFailed JobState = "Failed"
	// JobStateRestarting - The job is currently in the Restarting state.
	JobStateRestarting JobState = "Restarting"
	// JobStateRunning - The job is currently in the Running state.
	JobStateRunning JobState = "Running"
	// JobStateScaling - The job is currently in the Scaling state.
	JobStateScaling JobState = "Scaling"
	// JobStateStarting - The job is currently in the Starting state.
	JobStateStarting JobState = "Starting"
	// JobStateStopped - The job is currently in the Stopped state.
	JobStateStopped JobState = "Stopped"
	// JobStateStopping - The job is currently in the Stopping state.
	JobStateStopping JobState = "Stopping"
)

func PossibleJobStateValues

func PossibleJobStateValues() []JobState

PossibleJobStateValues returns the possible values for the JobState const type.

type JobStorageAccount

type JobStorageAccount struct {
	// The account key for the Azure Storage account. Required on PUT (CreateOrReplace) requests.
	AccountKey *string

	// The name of the Azure Storage account. Required on PUT (CreateOrReplace) requests.
	AccountName *string

	// Authentication Mode.
	AuthenticationMode *AuthenticationMode
}

JobStorageAccount - The properties that are associated with an Azure Storage account with MSI

func (JobStorageAccount) MarshalJSON

func (j JobStorageAccount) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type JobStorageAccount.

func (*JobStorageAccount) UnmarshalJSON

func (j *JobStorageAccount) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type JobStorageAccount.

type JobType

type JobType string

JobType - Describes the type of the job. Valid modes are Cloud and 'Edge'.

const (
	JobTypeCloud JobType = "Cloud"
	JobTypeEdge  JobType = "Edge"
)

func PossibleJobTypeValues

func PossibleJobTypeValues() []JobType

PossibleJobTypeValues returns the possible values for the JobType const type.

type LastOutputEventTimestamp

type LastOutputEventTimestamp struct {
	// The last output event time.
	LastOutputEventTime *string

	// The time that the last update happened.
	LastUpdateTime *string
}

LastOutputEventTimestamp - An output event timestamp.

func (LastOutputEventTimestamp) MarshalJSON

func (l LastOutputEventTimestamp) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type LastOutputEventTimestamp.

func (*LastOutputEventTimestamp) UnmarshalJSON

func (l *LastOutputEventTimestamp) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type LastOutputEventTimestamp.

type OAuthBasedDataSourceProperties

type OAuthBasedDataSourceProperties struct {
	// A refresh token that can be used to obtain a valid access token that can then be used to authenticate with the data source.
	// A valid refresh token is currently only obtainable via the Azure Portal. It
	// is recommended to put a dummy string value here when creating the data source and then going to the Azure Portal to authenticate
	// the data source which will update this property with a valid refresh
	// token. Required on PUT (CreateOrReplace) requests.
	RefreshToken *string

	// The user display name of the user that was used to obtain the refresh token. Use this property to help remember which user
	// was used to obtain the refresh token.
	TokenUserDisplayName *string

	// The user principal name (UPN) of the user that was used to obtain the refresh token. Use this property to help remember
	// which user was used to obtain the refresh token.
	TokenUserPrincipalName *string
}

OAuthBasedDataSourceProperties - The properties that are associated with data sources that use OAuth as their authentication model.

func (OAuthBasedDataSourceProperties) MarshalJSON

func (o OAuthBasedDataSourceProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type OAuthBasedDataSourceProperties.

func (*OAuthBasedDataSourceProperties) UnmarshalJSON

func (o *OAuthBasedDataSourceProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type OAuthBasedDataSourceProperties.

type Operation

type Operation struct {
	// Indicates whether the operation is a data action
	IsDataAction *bool

	// READ-ONLY; Contains the localized display information for this particular operation / action.
	Display *OperationDisplay

	// READ-ONLY; The name of the operation being performed on this particular object.
	Name *string
}

Operation - A Stream Analytics REST API operation

func (Operation) MarshalJSON

func (o Operation) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Operation.

func (*Operation) UnmarshalJSON

func (o *Operation) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Operation.

type OperationDisplay

type OperationDisplay struct {
	// READ-ONLY; The localized friendly description for the operation.
	Description *string

	// READ-ONLY; The localized friendly name for the operation.
	Operation *string

	// READ-ONLY; The localized friendly form of the resource provider name.
	Provider *string

	// READ-ONLY; The localized friendly form of the resource type related to this action/operation.
	Resource *string
}

OperationDisplay - Contains the localized display information for this particular operation / action.

func (OperationDisplay) MarshalJSON

func (o OperationDisplay) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type OperationDisplay.

func (*OperationDisplay) UnmarshalJSON

func (o *OperationDisplay) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type OperationDisplay.

type OperationListResult

type OperationListResult struct {
	// READ-ONLY; URL to get the next set of operation list results if there are any.
	NextLink *string

	// READ-ONLY; List of Stream Analytics operations supported by the Microsoft.StreamAnalytics resource provider.
	Value []*Operation
}

OperationListResult - Result of the request to list Stream Analytics operations. It contains a list of operations and a URL link to get the next set of results.

func (OperationListResult) MarshalJSON

func (o OperationListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type OperationListResult.

func (*OperationListResult) UnmarshalJSON

func (o *OperationListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type OperationListResult.

type OperationsClient

type OperationsClient struct {
	// contains filtered or unexported fields
}

OperationsClient contains the methods for the Operations group. Don't use this type directly, use NewOperationsClient() instead.

func NewOperationsClient

func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, error)

NewOperationsClient creates a new instance of OperationsClient with the specified values.

  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*OperationsClient) NewListPager

NewListPager - Lists all of the available Stream Analytics related operations.

Generated from API version 2021-10-01-preview

  • options - OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Operation_List.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewOperationsClient().NewListPager(nil)
for pager.More() {
	page, err := pager.NextPage(ctx)
	if err != nil {
		log.Fatalf("failed to advance page: %v", err)
	}
	for _, v := range page.Value {
		// You could use page here. We use blank identifier for just demo purposes.
		_ = v
	}
	// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// page.OperationListResult = armstreamanalytics.OperationListResult{
	// 	Value: []*armstreamanalytics.Operation{
	// 		{
	// 			Name: to.Ptr("Microsoft.StreamAnalytics/locations/quotas/Read"),
	// 			Display: &armstreamanalytics.OperationDisplay{
	// 				Description: to.Ptr("Read Stream Analytics Subscription Quota"),
	// 				Operation: to.Ptr("Read Stream Analytics Subscription Quota"),
	// 				Provider: to.Ptr("Microsoft Azure Stream Analytics"),
	// 				Resource: to.Ptr("Stream Analytics Subscription Quota"),
	// 			},
	// 		},
	// 		{
	// 			Name: to.Ptr("Microsoft.StreamAnalytics/operations/Read"),
	// 			Display: &armstreamanalytics.OperationDisplay{
	// 				Description: to.Ptr("Read Stream Analytics Operations"),
	// 				Operation: to.Ptr("Read Stream Analytics Operations"),
	// 				Provider: to.Ptr("Microsoft Azure Stream Analytics"),
	// 				Resource: to.Ptr("Stream Analytics Operations"),
	// 			},
	// 		},
	// 		{
	// 			Name: to.Ptr("Microsoft.StreamAnalytics/Register/action"),
	// 			Display: &armstreamanalytics.OperationDisplay{
	// 				Description: to.Ptr("Register subscription with Stream Analytics Resource Provider"),
	// 				Operation: to.Ptr("Register subscription with Stream Analytics Resource Provider"),
	// 				Provider: to.Ptr("Microsoft Azure Stream Analytics"),
	// 				Resource: to.Ptr("Stream Analytics Resource Provider"),
	// 			},
	// 		},
	// 		{
	// 			Name: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/Delete"),
	// 			Display: &armstreamanalytics.OperationDisplay{
	// 				Description: to.Ptr("Delete Stream Analytics Job"),
	// 				Operation: to.Ptr("Delete Stream Analytics Job"),
	// 				Provider: to.Ptr("Microsoft Azure Stream Analytics"),
	// 				Resource: to.Ptr("Stream Analytics Job"),
	// 			},
	// 		},
	// 		{
	// 			Name: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/functions/Delete"),
	// 			Display: &armstreamanalytics.OperationDisplay{
	// 				Description: to.Ptr("Delete Stream Analytics Job Function"),
	// 				Operation: to.Ptr("Delete Stream Analytics Job Function"),
	// 				Provider: to.Ptr("Microsoft Azure Stream Analytics"),
	// 				Resource: to.Ptr("Stream Analytics Job Function"),
	// 			},
	// 		},
	// 		{
	// 			Name: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/functions/operationresults/Read"),
	// 			Display: &armstreamanalytics.OperationDisplay{
	// 				Description: to.Ptr("Read operation results for Stream Analytics Job Function"),
	// 				Operation: to.Ptr("Read operation results for Stream Analytics Job Function"),
	// 				Provider: to.Ptr("Microsoft Azure Stream Analytics"),
	// 				Resource: to.Ptr("Stream Analytics Job Function"),
	// 			},
	// 		},
	// 		{
	// 			Name: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/functions/Read"),
	// 			Display: &armstreamanalytics.OperationDisplay{
	// 				Description: to.Ptr("Read Stream Analytics Job Function"),
	// 				Operation: to.Ptr("Read Stream Analytics Job Function"),
	// 				Provider: to.Ptr("Microsoft Azure Stream Analytics"),
	// 				Resource: to.Ptr("Stream Analytics Job Function"),
	// 			},
	// 		},
	// 		{
	// 			Name: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/functions/RetrieveDefaultDefinition/action"),
	// 			Display: &armstreamanalytics.OperationDisplay{
	// 				Description: to.Ptr("Retrieve Default Definition of a Stream Analytics Job Function"),
	// 				Operation: to.Ptr("Retrieve Default Definition of a Stream Analytics Job Function"),
	// 				Provider: to.Ptr("Microsoft Azure Stream Analytics"),
	// 				Resource: to.Ptr("Stream Analytics Job Function"),
	// 			},
	// 		},
	// 		{
	// 			Name: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/functions/Test/action"),
	// 			Display: &armstreamanalytics.OperationDisplay{
	// 				Description: to.Ptr("Test Stream Analytics Job Function"),
	// 				Operation: to.Ptr("Test Stream Analytics Job Function"),
	// 				Provider: to.Ptr("Microsoft Azure Stream Analytics"),
	// 				Resource: to.Ptr("Stream Analytics Job Function"),
	// 			},
	// 		},
	// 		{
	// 			Name: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/functions/Write"),
	// 			Display: &armstreamanalytics.OperationDisplay{
	// 				Description: to.Ptr("Write Stream Analytics Job Function"),
	// 				Operation: to.Ptr("Write Stream Analytics Job Function"),
	// 				Provider: to.Ptr("Microsoft Azure Stream Analytics"),
	// 				Resource: to.Ptr("Stream Analytics Job Function"),
	// 			},
	// 		},
	// 		{
	// 			Name: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/inputs/Delete"),
	// 			Display: &armstreamanalytics.OperationDisplay{
	// 				Description: to.Ptr("Delete Stream Analytics Job Input"),
	// 				Operation: to.Ptr("Delete Stream Analytics Job Input"),
	// 				Provider: to.Ptr("Microsoft Azure Stream Analytics"),
	// 				Resource: to.Ptr("Stream Analytics Job Input"),
	// 			},
	// 		},
	// 		{
	// 			Name: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/inputs/operationresults/Read"),
	// 			Display: &armstreamanalytics.OperationDisplay{
	// 				Description: to.Ptr("Read operation results for Stream Analytics Job Input"),
	// 				Operation: to.Ptr("Read operation results for Stream Analytics Job Input"),
	// 				Provider: to.Ptr("Microsoft Azure Stream Analytics"),
	// 				Resource: to.Ptr("Stream Analytics Job Input"),
	// 			},
	// 		},
	// 		{
	// 			Name: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/inputs/Read"),
	// 			Display: &armstreamanalytics.OperationDisplay{
	// 				Description: to.Ptr("Read Stream Analytics Job Input"),
	// 				Operation: to.Ptr("Read Stream Analytics Job Input"),
	// 				Provider: to.Ptr("Microsoft Azure Stream Analytics"),
	// 				Resource: to.Ptr("Stream Analytics Job Input"),
	// 			},
	// 		},
	// 		{
	// 			Name: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/inputs/Sample/action"),
	// 			Display: &armstreamanalytics.OperationDisplay{
	// 				Description: to.Ptr("Sample Stream Analytics Job Input"),
	// 				Operation: to.Ptr("Sample Stream Analytics Job Input"),
	// 				Provider: to.Ptr("Microsoft Azure Stream Analytics"),
	// 				Resource: to.Ptr("Stream Analytics Job Input"),
	// 			},
	// 		},
	// 		{
	// 			Name: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/inputs/Test/action"),
	// 			Display: &armstreamanalytics.OperationDisplay{
	// 				Description: to.Ptr("Test Stream Analytics Job Input"),
	// 				Operation: to.Ptr("Test Stream Analytics Job Input"),
	// 				Provider: to.Ptr("Microsoft Azure Stream Analytics"),
	// 				Resource: to.Ptr("Stream Analytics Job Input"),
	// 			},
	// 		},
	// 		{
	// 			Name: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/inputs/Write"),
	// 			Display: &armstreamanalytics.OperationDisplay{
	// 				Description: to.Ptr("Write Stream Analytics Job Input"),
	// 				Operation: to.Ptr("Write Stream Analytics Job Input"),
	// 				Provider: to.Ptr("Microsoft Azure Stream Analytics"),
	// 				Resource: to.Ptr("Stream Analytics Job Input"),
	// 			},
	// 		},
	// 		{
	// 			Name: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/metricdefinitions/Read"),
	// 			Display: &armstreamanalytics.OperationDisplay{
	// 				Description: to.Ptr("Read Metric Definitions"),
	// 				Operation: to.Ptr("Read Metric Definitions"),
	// 				Provider: to.Ptr("Microsoft Azure Stream Analytics"),
	// 				Resource: to.Ptr("Metric Definitions"),
	// 			},
	// 		},
	// 		{
	// 			Name: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/operationresults/Read"),
	// 			Display: &armstreamanalytics.OperationDisplay{
	// 				Description: to.Ptr("Read operation results for Stream Analytics Job"),
	// 				Operation: to.Ptr("Read operation results for Stream Analytics Job"),
	// 				Provider: to.Ptr("Microsoft Azure Stream Analytics"),
	// 				Resource: to.Ptr("Stream Analytics Job"),
	// 			},
	// 		},
	// 		{
	// 			Name: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/outputs/Delete"),
	// 			Display: &armstreamanalytics.OperationDisplay{
	// 				Description: to.Ptr("Delete Stream Analytics Job Output"),
	// 				Operation: to.Ptr("Delete Stream Analytics Job Output"),
	// 				Provider: to.Ptr("Microsoft Azure Stream Analytics"),
	// 				Resource: to.Ptr("Stream Analytics Job Output"),
	// 			},
	// 		},
	// 		{
	// 			Name: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/outputs/operationresults/Read"),
	// 			Display: &armstreamanalytics.OperationDisplay{
	// 				Description: to.Ptr("Read operation results for Stream Analytics Job Output"),
	// 				Operation: to.Ptr("Read operation results for Stream Analytics Job Output"),
	// 				Provider: to.Ptr("Microsoft Azure Stream Analytics"),
	// 				Resource: to.Ptr("Stream Analytics Job Output"),
	// 			},
	// 		},
	// 		{
	// 			Name: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/outputs/Read"),
	// 			Display: &armstreamanalytics.OperationDisplay{
	// 				Description: to.Ptr("Read Stream Analytics Job Output"),
	// 				Operation: to.Ptr("Read Stream Analytics Job Output"),
	// 				Provider: to.Ptr("Microsoft Azure Stream Analytics"),
	// 				Resource: to.Ptr("Stream Analytics Job Output"),
	// 			},
	// 		},
	// 		{
	// 			Name: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/outputs/Test/action"),
	// 			Display: &armstreamanalytics.OperationDisplay{
	// 				Description: to.Ptr("Test Stream Analytics Job Output"),
	// 				Operation: to.Ptr("Test Stream Analytics Job Output"),
	// 				Provider: to.Ptr("Microsoft Azure Stream Analytics"),
	// 				Resource: to.Ptr("Stream Analytics Job Output"),
	// 			},
	// 		},
	// 		{
	// 			Name: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/outputs/Write"),
	// 			Display: &armstreamanalytics.OperationDisplay{
	// 				Description: to.Ptr("Write Stream Analytics Job Output"),
	// 				Operation: to.Ptr("Write Stream Analytics Job Output"),
	// 				Provider: to.Ptr("Microsoft Azure Stream Analytics"),
	// 				Resource: to.Ptr("Stream Analytics Job Output"),
	// 			},
	// 		},
	// 		{
	// 			Name: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/providers/Microsoft.Insights/diagnosticSettings/read"),
	// 			Display: &armstreamanalytics.OperationDisplay{
	// 				Description: to.Ptr("Read diagnostic setting."),
	// 				Operation: to.Ptr("Read diagnostic setting."),
	// 				Provider: to.Ptr("Microsoft Azure Stream Analytics"),
	// 				Resource: to.Ptr("streamingjobs"),
	// 			},
	// 		},
	// 		{
	// 			Name: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/providers/Microsoft.Insights/diagnosticSettings/write"),
	// 			Display: &armstreamanalytics.OperationDisplay{
	// 				Description: to.Ptr("Write diagnostic setting."),
	// 				Operation: to.Ptr("Write diagnostic setting."),
	// 				Provider: to.Ptr("Microsoft Azure Stream Analytics"),
	// 				Resource: to.Ptr("streamingjobs"),
	// 			},
	// 		},
	// 		{
	// 			Name: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/PublishEdgePackage/action"),
	// 			Display: &armstreamanalytics.OperationDisplay{
	// 				Description: to.Ptr("Publish edge package for Stream Analytics Job"),
	// 				Operation: to.Ptr("Publish edge package for Stream Analytics Job"),
	// 				Provider: to.Ptr("Microsoft Azure Stream Analytics"),
	// 				Resource: to.Ptr("Stream Analytics Job"),
	// 			},
	// 		},
	// 		{
	// 			Name: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/Read"),
	// 			Display: &armstreamanalytics.OperationDisplay{
	// 				Description: to.Ptr("Read Stream Analytics Job"),
	// 				Operation: to.Ptr("Read Stream Analytics Job"),
	// 				Provider: to.Ptr("Microsoft Azure Stream Analytics"),
	// 				Resource: to.Ptr("Stream Analytics Job"),
	// 			},
	// 		},
	// 		{
	// 			Name: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/Scale/action"),
	// 			Display: &armstreamanalytics.OperationDisplay{
	// 				Description: to.Ptr("Scale Stream Analytics Job"),
	// 				Operation: to.Ptr("Scale Stream Analytics Job"),
	// 				Provider: to.Ptr("Microsoft Azure Stream Analytics"),
	// 				Resource: to.Ptr("Stream Analytics Job"),
	// 			},
	// 		},
	// 		{
	// 			Name: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/Start/action"),
	// 			Display: &armstreamanalytics.OperationDisplay{
	// 				Description: to.Ptr("Start Stream Analytics Job"),
	// 				Operation: to.Ptr("Start Stream Analytics Job"),
	// 				Provider: to.Ptr("Microsoft Azure Stream Analytics"),
	// 				Resource: to.Ptr("Stream Analytics Job"),
	// 			},
	// 		},
	// 		{
	// 			Name: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/Stop/action"),
	// 			Display: &armstreamanalytics.OperationDisplay{
	// 				Description: to.Ptr("Stop Stream Analytics Job"),
	// 				Operation: to.Ptr("Stop Stream Analytics Job"),
	// 				Provider: to.Ptr("Microsoft Azure Stream Analytics"),
	// 				Resource: to.Ptr("Stream Analytics Job"),
	// 			},
	// 		},
	// 		{
	// 			Name: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/transformations/Delete"),
	// 			Display: &armstreamanalytics.OperationDisplay{
	// 				Description: to.Ptr("Delete Stream Analytics Job Transformation"),
	// 				Operation: to.Ptr("Delete Stream Analytics Job Transformation"),
	// 				Provider: to.Ptr("Microsoft Azure Stream Analytics"),
	// 				Resource: to.Ptr("Stream Analytics Job Transformation"),
	// 			},
	// 		},
	// 		{
	// 			Name: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/transformations/Read"),
	// 			Display: &armstreamanalytics.OperationDisplay{
	// 				Description: to.Ptr("Read Stream Analytics Job Transformation"),
	// 				Operation: to.Ptr("Read Stream Analytics Job Transformation"),
	// 				Provider: to.Ptr("Microsoft Azure Stream Analytics"),
	// 				Resource: to.Ptr("Stream Analytics Job Transformation"),
	// 			},
	// 		},
	// 		{
	// 			Name: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/transformations/Write"),
	// 			Display: &armstreamanalytics.OperationDisplay{
	// 				Description: to.Ptr("Write Stream Analytics Job Transformation"),
	// 				Operation: to.Ptr("Write Stream Analytics Job Transformation"),
	// 				Provider: to.Ptr("Microsoft Azure Stream Analytics"),
	// 				Resource: to.Ptr("Stream Analytics Job Transformation"),
	// 			},
	// 		},
	// 		{
	// 			Name: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/Write"),
	// 			Display: &armstreamanalytics.OperationDisplay{
	// 				Description: to.Ptr("Write Stream Analytics Job"),
	// 				Operation: to.Ptr("Write Stream Analytics Job"),
	// 				Provider: to.Ptr("Microsoft Azure Stream Analytics"),
	// 				Resource: to.Ptr("Stream Analytics Job"),
	// 			},
	// 	}},
	// }
}
Output:

type OperationsClientListOptions

type OperationsClientListOptions struct {
}

OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.

type OperationsClientListResponse

type OperationsClientListResponse struct {
	// Result of the request to list Stream Analytics operations. It contains a list of operations and a URL link to get the next
	// set of results.
	OperationListResult
}

OperationsClientListResponse contains the response from method OperationsClient.NewListPager.

type Output

type Output struct {
	// Resource name
	Name *string

	// The properties that are associated with an output. Required on PUT (CreateOrReplace) requests.
	Properties *OutputProperties

	// READ-ONLY; Resource Id
	ID *string

	// READ-ONLY; Resource type
	Type *string
}

Output - An output object, containing all information associated with the named output. All outputs are contained under a streaming job.

func (Output) MarshalJSON

func (o Output) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Output.

func (*Output) UnmarshalJSON

func (o *Output) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Output.

type OutputDataSource

type OutputDataSource struct {
	// REQUIRED; Indicates the type of data source output will be written to. Required on PUT (CreateOrReplace) requests.
	Type *string
}

OutputDataSource - Describes the data source that output will be written to.

func (*OutputDataSource) GetOutputDataSource

func (o *OutputDataSource) GetOutputDataSource() *OutputDataSource

GetOutputDataSource implements the OutputDataSourceClassification interface for type OutputDataSource.

func (OutputDataSource) MarshalJSON

func (o OutputDataSource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type OutputDataSource.

func (*OutputDataSource) UnmarshalJSON

func (o *OutputDataSource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type OutputDataSource.

type OutputDataSourceClassification

type OutputDataSourceClassification interface {
	// GetOutputDataSource returns the OutputDataSource content of the underlying type.
	GetOutputDataSource() *OutputDataSource
}

OutputDataSourceClassification provides polymorphic access to related types. Call the interface's GetOutputDataSource() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *AzureDataExplorerOutputDataSource, *AzureDataLakeStoreOutputDataSource, *AzureFunctionOutputDataSource, *AzureSQLDatabaseOutputDataSource, - *AzureSynapseOutputDataSource, *AzureTableOutputDataSource, *BlobOutputDataSource, *DocumentDbOutputDataSource, *EventHubOutputDataSource, - *EventHubV2OutputDataSource, *GatewayMessageBusOutputDataSource, *OutputDataSource, *PostgreSQLOutputDataSource, *PowerBIOutputDataSource, - *RawOutputDatasource, *ServiceBusQueueOutputDataSource, *ServiceBusTopicOutputDataSource

type OutputErrorPolicy

type OutputErrorPolicy string

OutputErrorPolicy - Indicates the policy to apply to events that arrive at the output and cannot be written to the external storage due to being malformed (missing column values, column values of wrong type or size).

const (
	OutputErrorPolicyDrop OutputErrorPolicy = "Drop"
	OutputErrorPolicyStop OutputErrorPolicy = "Stop"
)

func PossibleOutputErrorPolicyValues

func PossibleOutputErrorPolicyValues() []OutputErrorPolicy

PossibleOutputErrorPolicyValues returns the possible values for the OutputErrorPolicy const type.

type OutputListResult

type OutputListResult struct {
	// READ-ONLY; The link (url) to the next page of results.
	NextLink *string

	// READ-ONLY; A list of outputs under a streaming job. Populated by a 'List' operation.
	Value []*Output
}

OutputListResult - Object containing a list of outputs under a streaming job.

func (OutputListResult) MarshalJSON

func (o OutputListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type OutputListResult.

func (*OutputListResult) UnmarshalJSON

func (o *OutputListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type OutputListResult.

type OutputProperties

type OutputProperties struct {
	// Describes the data source that output will be written to. Required on PUT (CreateOrReplace) requests.
	Datasource OutputDataSourceClassification

	// Describes how data from an input is serialized or how data is serialized when written to an output. Required on PUT (CreateOrReplace)
	// requests.
	Serialization SerializationClassification

	// The size window to constrain a Stream Analytics output to.
	SizeWindow *int32

	// The time frame for filtering Stream Analytics job outputs.
	TimeWindow *string

	// Settings which determine whether to send watermarks to downstream.
	WatermarkSettings *OutputWatermarkProperties

	// READ-ONLY; Describes conditions applicable to the Input, Output, or the job overall, that warrant customer attention.
	Diagnostics *Diagnostics

	// READ-ONLY; The current entity tag for the output. This is an opaque string. You can use it to detect whether the resource
	// has changed between requests. You can also use it in the If-Match or If-None-Match
	// headers for write operations for optimistic concurrency.
	Etag *string

	// READ-ONLY; A list of the last output event times for each output partition. The index of the array corresponds to the partition
	// number.
	LastOutputEventTimestamps []*LastOutputEventTimestamp
}

OutputProperties - The properties that are associated with an output.

func (OutputProperties) MarshalJSON

func (o OutputProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type OutputProperties.

func (*OutputProperties) UnmarshalJSON

func (o *OutputProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type OutputProperties.

type OutputStartMode

type OutputStartMode string

OutputStartMode - Value may be JobStartTime, CustomTime, or LastOutputEventTime to indicate whether the starting point of the output event stream should start whenever the job is started, start at a custom user time stamp specified via the outputStartTime property, or start from the last event output time.

const (
	OutputStartModeCustomTime          OutputStartMode = "CustomTime"
	OutputStartModeJobStartTime        OutputStartMode = "JobStartTime"
	OutputStartModeLastOutputEventTime OutputStartMode = "LastOutputEventTime"
)

func PossibleOutputStartModeValues

func PossibleOutputStartModeValues() []OutputStartMode

PossibleOutputStartModeValues returns the possible values for the OutputStartMode const type.

type OutputWatermarkMode

type OutputWatermarkMode string

OutputWatermarkMode - The output watermark mode.

const (
	OutputWatermarkModeNone                                OutputWatermarkMode = "None"
	OutputWatermarkModeSendCurrentPartitionWatermark       OutputWatermarkMode = "SendCurrentPartitionWatermark"
	OutputWatermarkModeSendLowestWatermarkAcrossPartitions OutputWatermarkMode = "SendLowestWatermarkAcrossPartitions"
)

func PossibleOutputWatermarkModeValues

func PossibleOutputWatermarkModeValues() []OutputWatermarkMode

PossibleOutputWatermarkModeValues returns the possible values for the OutputWatermarkMode const type.

type OutputWatermarkProperties

type OutputWatermarkProperties struct {
	// Describes the maximal delta between the fastest and slowest partitions, so the out of order window that catches all necessary
	// events in downstream jobs is well defined.
	MaxWatermarkDifferenceAcrossPartitions *string

	// The output watermark mode.
	WatermarkMode *OutputWatermarkMode
}

OutputWatermarkProperties - Settings which determine whether to send watermarks to downstream.

func (OutputWatermarkProperties) MarshalJSON

func (o OutputWatermarkProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type OutputWatermarkProperties.

func (*OutputWatermarkProperties) UnmarshalJSON

func (o *OutputWatermarkProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type OutputWatermarkProperties.

type OutputsClient

type OutputsClient struct {
	// contains filtered or unexported fields
}

OutputsClient contains the methods for the Outputs group. Don't use this type directly, use NewOutputsClient() instead.

func NewOutputsClient

func NewOutputsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*OutputsClient, error)

NewOutputsClient creates a new instance of OutputsClient with the specified values.

  • subscriptionID - The ID of the target subscription.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*OutputsClient) BeginTest

func (client *OutputsClient) BeginTest(ctx context.Context, resourceGroupName string, jobName string, outputName string, options *OutputsClientBeginTestOptions) (*runtime.Poller[OutputsClientTestResponse], error)

BeginTest - Tests whether an output’s datasource is reachable and usable by the Azure Stream Analytics service. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-10-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • jobName - The name of the streaming job.
  • outputName - The name of the output.
  • options - OutputsClientBeginTestOptions contains the optional parameters for the OutputsClient.BeginTest method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Output_Test.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewOutputsClient().BeginTest(ctx, "sjrg2157", "sj6458", "output1755", &armstreamanalytics.OutputsClientBeginTestOptions{Output: nil})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
	log.Fatalf("failed to pull the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.ResourceTestStatus = armstreamanalytics.ResourceTestStatus{
// 	Status: to.Ptr("TestSucceeded"),
// }
Output:

func (*OutputsClient) CreateOrReplace

func (client *OutputsClient) CreateOrReplace(ctx context.Context, resourceGroupName string, jobName string, outputName string, output Output, options *OutputsClientCreateOrReplaceOptions) (OutputsClientCreateOrReplaceResponse, error)

CreateOrReplace - Creates an output or replaces an already existing output under an existing streaming job. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-10-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • jobName - The name of the streaming job.
  • outputName - The name of the output.
  • output - The definition of the output that will be used to create a new output or replace the existing one under the streaming job.
  • options - OutputsClientCreateOrReplaceOptions contains the optional parameters for the OutputsClient.CreateOrReplace method.
Example (CreateABlobOutputWithCsvSerialization)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Output_Create_Blob_CSV.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewOutputsClient().CreateOrReplace(ctx, "sjrg5023", "sj900", "output1623", armstreamanalytics.Output{
	Properties: &armstreamanalytics.OutputProperties{
		Datasource: &armstreamanalytics.BlobOutputDataSource{
			Type: to.Ptr("Microsoft.Storage/Blob"),
			Properties: &armstreamanalytics.BlobOutputDataSourceProperties{
				Container:   to.Ptr("state"),
				DateFormat:  to.Ptr("yyyy/MM/dd"),
				PathPattern: to.Ptr("{date}/{time}"),
				StorageAccounts: []*armstreamanalytics.StorageAccount{
					{
						AccountKey:  to.Ptr("accountKey=="),
						AccountName: to.Ptr("someAccountName"),
					}},
				TimeFormat:     to.Ptr("HH"),
				BlobPathPrefix: to.Ptr("my/path"),
				BlobWriteMode:  to.Ptr(armstreamanalytics.BlobWriteModeOnce),
			},
		},
		Serialization: &armstreamanalytics.CSVSerialization{
			Type: to.Ptr(armstreamanalytics.EventSerializationTypeCSV),
			Properties: &armstreamanalytics.CSVSerializationProperties{
				Encoding:       to.Ptr(armstreamanalytics.EncodingUTF8),
				FieldDelimiter: to.Ptr(","),
			},
		},
	},
}, &armstreamanalytics.OutputsClientCreateOrReplaceOptions{IfMatch: nil,
	IfNoneMatch: nil,
})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Output = armstreamanalytics.Output{
// 	Name: to.Ptr("output1623"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/outputs"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg5023/providers/Microsoft.StreamAnalytics/streamingjobs/sj900/outputs/output1623"),
// 	Properties: &armstreamanalytics.OutputProperties{
// 		Datasource: &armstreamanalytics.BlobOutputDataSource{
// 			Type: to.Ptr("Microsoft.Storage/Blob"),
// 			Properties: &armstreamanalytics.BlobOutputDataSourceProperties{
// 				Container: to.Ptr("state"),
// 				DateFormat: to.Ptr("yyyy/MM/dd"),
// 				PathPattern: to.Ptr("{date}/{time}"),
// 				StorageAccounts: []*armstreamanalytics.StorageAccount{
// 					{
// 						AccountName: to.Ptr("someAccountName"),
// 				}},
// 				TimeFormat: to.Ptr("HH"),
// 			},
// 		},
// 		Serialization: &armstreamanalytics.CSVSerialization{
// 			Type: to.Ptr(armstreamanalytics.EventSerializationTypeCSV),
// 			Properties: &armstreamanalytics.CSVSerializationProperties{
// 				Encoding: to.Ptr(armstreamanalytics.EncodingUTF8),
// 				FieldDelimiter: to.Ptr(","),
// 			},
// 		},
// 	},
// }
Output:

Example (CreateADeltaLakeOutput)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Output_Create_DeltaLake.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewOutputsClient().CreateOrReplace(ctx, "sjrg", "sjName", "output1221", armstreamanalytics.Output{
	Properties: &armstreamanalytics.OutputProperties{
		Datasource: &armstreamanalytics.BlobOutputDataSource{
			Type: to.Ptr("Microsoft.Storage/Blob"),
			Properties: &armstreamanalytics.BlobOutputDataSourceProperties{
				Container: to.Ptr("deltaoutput"),
				StorageAccounts: []*armstreamanalytics.StorageAccount{
					{
						AccountKey:  to.Ptr("accountKey=="),
						AccountName: to.Ptr("someAccountName"),
					}},
			},
		},
		Serialization: &armstreamanalytics.DeltaSerialization{
			Type: to.Ptr(armstreamanalytics.EventSerializationTypeDelta),
			Properties: &armstreamanalytics.DeltaSerializationProperties{
				DeltaTablePath: to.Ptr("/folder1/table1"),
				PartitionColumns: []*string{
					to.Ptr("column1")},
			},
		},
	},
}, &armstreamanalytics.OutputsClientCreateOrReplaceOptions{IfMatch: nil,
	IfNoneMatch: nil,
})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Output = armstreamanalytics.Output{
// 	Name: to.Ptr("output1221"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/outputs"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg/providers/Microsoft.StreamAnalytics/streamingjobs/sjName/outputs/output1221"),
// 	Properties: &armstreamanalytics.OutputProperties{
// 		Datasource: &armstreamanalytics.BlobOutputDataSource{
// 			Type: to.Ptr("Microsoft.Storage/Blob"),
// 			Properties: &armstreamanalytics.BlobOutputDataSourceProperties{
// 				Container: to.Ptr("deltaoutput"),
// 				StorageAccounts: []*armstreamanalytics.StorageAccount{
// 					{
// 						AccountName: to.Ptr("someAccountName"),
// 				}},
// 			},
// 		},
// 		Serialization: &armstreamanalytics.DeltaSerialization{
// 			Type: to.Ptr(armstreamanalytics.EventSerializationTypeDelta),
// 			Properties: &armstreamanalytics.DeltaSerializationProperties{
// 				DeltaTablePath: to.Ptr("/folder1/table1"),
// 				PartitionColumns: []*string{
// 					to.Ptr("column1")},
// 				},
// 			},
// 		},
// 	}
Output:

Example (CreateADocumentDbOutput)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Output_Create_DocumentDB.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewOutputsClient().CreateOrReplace(ctx, "sjrg7983", "sj2331", "output3022", armstreamanalytics.Output{
	Properties: &armstreamanalytics.OutputProperties{
		Datasource: &armstreamanalytics.DocumentDbOutputDataSource{
			Type: to.Ptr("Microsoft.Storage/DocumentDB"),
			Properties: &armstreamanalytics.DocumentDbOutputDataSourceProperties{
				AccountID:             to.Ptr("someAccountId"),
				AccountKey:            to.Ptr("accountKey=="),
				AuthenticationMode:    to.Ptr(armstreamanalytics.AuthenticationModeMsi),
				CollectionNamePattern: to.Ptr("collection"),
				Database:              to.Ptr("db01"),
				DocumentID:            to.Ptr("documentId"),
				PartitionKey:          to.Ptr("key"),
			},
		},
	},
}, &armstreamanalytics.OutputsClientCreateOrReplaceOptions{IfMatch: nil,
	IfNoneMatch: nil,
})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Output = armstreamanalytics.Output{
// 	Name: to.Ptr("output3022"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/outputs"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg7983/providers/Microsoft.StreamAnalytics/streamingjobs/sj2331/outputs/output3022"),
// 	Properties: &armstreamanalytics.OutputProperties{
// 		Datasource: &armstreamanalytics.DocumentDbOutputDataSource{
// 			Type: to.Ptr("Microsoft.Storage/DocumentDB"),
// 			Properties: &armstreamanalytics.DocumentDbOutputDataSourceProperties{
// 				AccountID: to.Ptr("someAccountId"),
// 				CollectionNamePattern: to.Ptr("collection"),
// 				Database: to.Ptr("db01"),
// 				DocumentID: to.Ptr("documentId"),
// 				PartitionKey: to.Ptr("key"),
// 			},
// 		},
// 	},
// }
Output:

Example (CreateAGatewayMessageBusOutput)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Output_Create_GatewayMessageBus.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewOutputsClient().CreateOrReplace(ctx, "sjrg7983", "sj2331", "output3022", armstreamanalytics.Output{
	Properties: &armstreamanalytics.OutputProperties{
		Datasource: &armstreamanalytics.GatewayMessageBusOutputDataSource{
			Type: to.Ptr("GatewayMessageBus"),
			Properties: &armstreamanalytics.GatewayMessageBusOutputDataSourceProperties{
				Topic: to.Ptr("EdgeTopic1"),
			},
		},
	},
}, &armstreamanalytics.OutputsClientCreateOrReplaceOptions{IfMatch: nil,
	IfNoneMatch: nil,
})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Output = armstreamanalytics.Output{
// 	Name: to.Ptr("output3022"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/outputs"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg7983/providers/Microsoft.StreamAnalytics/streamingjobs/sj2331/outputs/output3022"),
// 	Properties: &armstreamanalytics.OutputProperties{
// 		Datasource: &armstreamanalytics.GatewayMessageBusOutputDataSource{
// 			Type: to.Ptr("GatewayMessageBus"),
// 			Properties: &armstreamanalytics.GatewayMessageBusOutputDataSourceProperties{
// 				Topic: to.Ptr("EdgeTopic1"),
// 			},
// 		},
// 	},
// }
Output:

Example (CreateAPostgreSqlOutput)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Output_Create_PostgreSQL.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewOutputsClient().CreateOrReplace(ctx, "sjrg7983", "sj2331", "output3022", armstreamanalytics.Output{
	Properties: &armstreamanalytics.OutputProperties{
		Datasource: &armstreamanalytics.PostgreSQLOutputDataSource{
			Type: to.Ptr("Microsoft.DBForPostgreSQL/servers/databases"),
			Properties: &armstreamanalytics.PostgreSQLOutputDataSourceProperties{
				AuthenticationMode: to.Ptr(armstreamanalytics.AuthenticationModeMsi),
				Database:           to.Ptr("someDatabase"),
				MaxWriterCount:     to.Ptr[float32](1),
				Password:           to.Ptr("somePassword"),
				Server:             to.Ptr("someServer"),
				Table:              to.Ptr("someTable"),
				User:               to.Ptr("user"),
			},
		},
	},
}, &armstreamanalytics.OutputsClientCreateOrReplaceOptions{IfMatch: nil,
	IfNoneMatch: nil,
})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Output = armstreamanalytics.Output{
// 	Name: to.Ptr("output3022"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/outputs"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg7983/providers/Microsoft.StreamAnalytics/streamingjobs/sj2331/outputs/output3022"),
// 	Properties: &armstreamanalytics.OutputProperties{
// 		Datasource: &armstreamanalytics.PostgreSQLOutputDataSource{
// 			Type: to.Ptr("Microsoft.DBForPostgreSQL/servers/databases"),
// 			Properties: &armstreamanalytics.PostgreSQLOutputDataSourceProperties{
// 				AuthenticationMode: to.Ptr(armstreamanalytics.AuthenticationModeMsi),
// 				Database: to.Ptr("someDatabase"),
// 				MaxWriterCount: to.Ptr[float32](1),
// 				Server: to.Ptr("someServer"),
// 				Table: to.Ptr("someTable"),
// 				User: to.Ptr("user"),
// 			},
// 		},
// 	},
// }
Output:

Example (CreateAPowerBiOutput)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Output_Create_PowerBI.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewOutputsClient().CreateOrReplace(ctx, "sjrg7983", "sj2331", "output3022", armstreamanalytics.Output{
	Properties: &armstreamanalytics.OutputProperties{
		Datasource: &armstreamanalytics.PowerBIOutputDataSource{
			Type: to.Ptr("PowerBI"),
			Properties: &armstreamanalytics.PowerBIOutputDataSourceProperties{
				RefreshToken:           to.Ptr("someRefreshToken=="),
				TokenUserDisplayName:   to.Ptr("Bob Smith"),
				TokenUserPrincipalName: to.Ptr("bobsmith@contoso.com"),
				Dataset:                to.Ptr("someDataset"),
				GroupID:                to.Ptr("ac40305e-3e8d-43ac-8161-c33799f43e95"),
				GroupName:              to.Ptr("MyPowerBIGroup"),
				Table:                  to.Ptr("someTable"),
			},
		},
	},
}, &armstreamanalytics.OutputsClientCreateOrReplaceOptions{IfMatch: nil,
	IfNoneMatch: nil,
})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Output = armstreamanalytics.Output{
// 	Name: to.Ptr("output3022"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/outputs"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg7983/providers/Microsoft.StreamAnalytics/streamingjobs/sj2331/outputs/output3022"),
// 	Properties: &armstreamanalytics.OutputProperties{
// 		Datasource: &armstreamanalytics.PowerBIOutputDataSource{
// 			Type: to.Ptr("PowerBI"),
// 			Properties: &armstreamanalytics.PowerBIOutputDataSourceProperties{
// 				TokenUserDisplayName: to.Ptr("Bob Smith"),
// 				TokenUserPrincipalName: to.Ptr("bobsmith@contoso.com"),
// 				Dataset: to.Ptr("someDataset"),
// 				GroupID: to.Ptr("ac40305e-3e8d-43ac-8161-c33799f43e95"),
// 				GroupName: to.Ptr("MyPowerBIGroup"),
// 				Table: to.Ptr("someTable"),
// 			},
// 		},
// 	},
// }
Output:

Example (CreateAServiceBusQueueOutputWithAvroSerialization)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Output_Create_ServiceBusQueue_Avro.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewOutputsClient().CreateOrReplace(ctx, "sjrg3410", "sj5095", "output3456", armstreamanalytics.Output{
	Properties: &armstreamanalytics.OutputProperties{
		Datasource: &armstreamanalytics.ServiceBusQueueOutputDataSource{
			Type: to.Ptr("Microsoft.ServiceBus/Queue"),
			Properties: &armstreamanalytics.ServiceBusQueueOutputDataSourceProperties{
				ServiceBusNamespace:    to.Ptr("sdktest"),
				SharedAccessPolicyKey:  to.Ptr("sharedAccessPolicyKey="),
				SharedAccessPolicyName: to.Ptr("RootManageSharedAccessKey"),
				PropertyColumns: []*string{
					to.Ptr("column1"),
					to.Ptr("column2")},
				QueueName: to.Ptr("sdkqueue"),
				SystemPropertyColumns: map[string]any{
					"MessageId":    "col3",
					"PartitionKey": "col4",
				},
			},
		},
		Serialization: &armstreamanalytics.AvroSerialization{
			Type: to.Ptr(armstreamanalytics.EventSerializationTypeAvro),
		},
	},
}, &armstreamanalytics.OutputsClientCreateOrReplaceOptions{IfMatch: nil,
	IfNoneMatch: nil,
})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Output = armstreamanalytics.Output{
// 	Name: to.Ptr("output3456"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/outputs"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg3410/providers/Microsoft.StreamAnalytics/streamingjobs/sj5095/outputs/output3456"),
// 	Properties: &armstreamanalytics.OutputProperties{
// 		Datasource: &armstreamanalytics.ServiceBusQueueOutputDataSource{
// 			Type: to.Ptr("Microsoft.ServiceBus/Queue"),
// 			Properties: &armstreamanalytics.ServiceBusQueueOutputDataSourceProperties{
// 				ServiceBusNamespace: to.Ptr("sdktest"),
// 				SharedAccessPolicyName: to.Ptr("RootManageSharedAccessKey"),
// 				PropertyColumns: []*string{
// 					to.Ptr("column1"),
// 					to.Ptr("column2")},
// 					QueueName: to.Ptr("sdkqueue"),
// 				},
// 			},
// 			Serialization: &armstreamanalytics.AvroSerialization{
// 				Type: to.Ptr(armstreamanalytics.EventSerializationTypeAvro),
// 				Properties: map[string]any{
// 				},
// 			},
// 		},
// 	}
Output:

Example (CreateAServiceBusTopicOutputWithCsvSerialization)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Output_Create_ServiceBusTopic_CSV.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewOutputsClient().CreateOrReplace(ctx, "sjrg6450", "sj7094", "output7886", armstreamanalytics.Output{
	Properties: &armstreamanalytics.OutputProperties{
		Datasource: &armstreamanalytics.ServiceBusTopicOutputDataSource{
			Type: to.Ptr("Microsoft.ServiceBus/Topic"),
			Properties: &armstreamanalytics.ServiceBusTopicOutputDataSourceProperties{
				ServiceBusNamespace:    to.Ptr("sdktest"),
				SharedAccessPolicyKey:  to.Ptr("sharedAccessPolicyKey="),
				SharedAccessPolicyName: to.Ptr("RootManageSharedAccessKey"),
				PropertyColumns: []*string{
					to.Ptr("column1"),
					to.Ptr("column2")},
				TopicName: to.Ptr("sdktopic"),
			},
		},
		Serialization: &armstreamanalytics.CSVSerialization{
			Type: to.Ptr(armstreamanalytics.EventSerializationTypeCSV),
			Properties: &armstreamanalytics.CSVSerializationProperties{
				Encoding:       to.Ptr(armstreamanalytics.EncodingUTF8),
				FieldDelimiter: to.Ptr(","),
			},
		},
	},
}, &armstreamanalytics.OutputsClientCreateOrReplaceOptions{IfMatch: nil,
	IfNoneMatch: nil,
})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Output = armstreamanalytics.Output{
// 	Name: to.Ptr("output7886"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/outputs"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg6450/providers/Microsoft.StreamAnalytics/streamingjobs/sj7094/outputs/output7886"),
// 	Properties: &armstreamanalytics.OutputProperties{
// 		Datasource: &armstreamanalytics.ServiceBusTopicOutputDataSource{
// 			Type: to.Ptr("Microsoft.ServiceBus/Topic"),
// 			Properties: &armstreamanalytics.ServiceBusTopicOutputDataSourceProperties{
// 				ServiceBusNamespace: to.Ptr("sdktest"),
// 				SharedAccessPolicyName: to.Ptr("RootManageSharedAccessKey"),
// 				PropertyColumns: []*string{
// 					to.Ptr("column1"),
// 					to.Ptr("column2")},
// 					TopicName: to.Ptr("sdktopic"),
// 				},
// 			},
// 			Serialization: &armstreamanalytics.CSVSerialization{
// 				Type: to.Ptr(armstreamanalytics.EventSerializationTypeCSV),
// 				Properties: &armstreamanalytics.CSVSerializationProperties{
// 					Encoding: to.Ptr(armstreamanalytics.EncodingUTF8),
// 					FieldDelimiter: to.Ptr(","),
// 				},
// 			},
// 		},
// 	}
Output:

Example (CreateAnAzureDataExplorerOutput)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Output_Create_AzureDataExplorer.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewOutputsClient().CreateOrReplace(ctx, "sjrg", "sjName", "adxOutput", armstreamanalytics.Output{
	Properties: &armstreamanalytics.OutputProperties{
		Datasource: &armstreamanalytics.AzureDataExplorerOutputDataSource{
			Type: to.Ptr("Microsoft.Kusto/clusters/databases"),
			Properties: &armstreamanalytics.AzureDataExplorerOutputDataSourceProperties{
				AuthenticationMode: to.Ptr(armstreamanalytics.AuthenticationModeMsi),
				Cluster:            to.Ptr("https://asakustotest.eastus.kusto.windows.net"),
				Database:           to.Ptr("dbname"),
				Table:              to.Ptr("mytable"),
			},
		},
	},
}, &armstreamanalytics.OutputsClientCreateOrReplaceOptions{IfMatch: nil,
	IfNoneMatch: nil,
})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Output = armstreamanalytics.Output{
// 	Name: to.Ptr("adxOutput"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/outputs"),
// 	ID: to.Ptr("/subscriptions/7f31cba8-b597-4129-b158-8f21a7395bd0/resourceGroups/sjrg/providers/Microsoft.StreamAnalytics/streamingjobs/sjName/outputs/adxOutput"),
// 	Properties: &armstreamanalytics.OutputProperties{
// 		Datasource: &armstreamanalytics.AzureDataExplorerOutputDataSource{
// 			Type: to.Ptr("Microsoft.Kusto/clusters/databases"),
// 			Properties: &armstreamanalytics.AzureDataExplorerOutputDataSourceProperties{
// 				AuthenticationMode: to.Ptr(armstreamanalytics.AuthenticationModeMsi),
// 				Cluster: to.Ptr("https://asakustotest.eastus.kusto.windows.net"),
// 				Database: to.Ptr("dbname"),
// 				Table: to.Ptr("mytable"),
// 			},
// 		},
// 		Etag: to.Ptr("7b912929-346d-432e-9495-6972dbd63179"),
// 	},
// }
Output:

Example (CreateAnAzureDataLakeStoreOutputWithJsonSerialization)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Output_Create_AzureDataLakeStore_JSON.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewOutputsClient().CreateOrReplace(ctx, "sjrg6912", "sj3310", "output5195", armstreamanalytics.Output{
	Properties: &armstreamanalytics.OutputProperties{
		Datasource: &armstreamanalytics.AzureDataLakeStoreOutputDataSource{
			Type: to.Ptr("Microsoft.DataLake/Accounts"),
			Properties: &armstreamanalytics.AzureDataLakeStoreOutputDataSourceProperties{
				RefreshToken:           to.Ptr("someRefreshToken=="),
				TokenUserDisplayName:   to.Ptr("Bob Smith"),
				TokenUserPrincipalName: to.Ptr("bobsmith@contoso.com"),
				AccountName:            to.Ptr("someaccount"),
				DateFormat:             to.Ptr("yyyy/MM/dd"),
				FilePathPrefix:         to.Ptr("{date}/{time}"),
				TenantID:               to.Ptr("cea4e98b-c798-49e7-8c40-4a2b3beb47dd"),
				TimeFormat:             to.Ptr("HH"),
			},
		},
		Serialization: &armstreamanalytics.JSONSerialization{
			Type: to.Ptr(armstreamanalytics.EventSerializationTypeJSON),
			Properties: &armstreamanalytics.JSONSerializationProperties{
				Format:   to.Ptr(armstreamanalytics.JSONOutputSerializationFormatArray),
				Encoding: to.Ptr(armstreamanalytics.EncodingUTF8),
			},
		},
	},
}, &armstreamanalytics.OutputsClientCreateOrReplaceOptions{IfMatch: nil,
	IfNoneMatch: nil,
})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Output = armstreamanalytics.Output{
// 	Name: to.Ptr("output5195"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/outputs"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg6912/providers/Microsoft.StreamAnalytics/streamingjobs/sj3310/outputs/output5195"),
// 	Properties: &armstreamanalytics.OutputProperties{
// 		Datasource: &armstreamanalytics.AzureDataLakeStoreOutputDataSource{
// 			Type: to.Ptr("Microsoft.DataLake/Accounts"),
// 			Properties: &armstreamanalytics.AzureDataLakeStoreOutputDataSourceProperties{
// 				TokenUserDisplayName: to.Ptr("Bob Smith"),
// 				TokenUserPrincipalName: to.Ptr("bobsmith@contoso.com"),
// 				AccountName: to.Ptr("someaccount"),
// 				DateFormat: to.Ptr("yyyy/MM/dd"),
// 				FilePathPrefix: to.Ptr("{date}/{time}"),
// 				TenantID: to.Ptr("cea4e98b-c798-49e7-8c40-4a2b3beb47dd"),
// 				TimeFormat: to.Ptr("HH"),
// 			},
// 		},
// 		Serialization: &armstreamanalytics.JSONSerialization{
// 			Type: to.Ptr(armstreamanalytics.EventSerializationTypeJSON),
// 			Properties: &armstreamanalytics.JSONSerializationProperties{
// 				Format: to.Ptr(armstreamanalytics.JSONOutputSerializationFormatArray),
// 				Encoding: to.Ptr(armstreamanalytics.EncodingUTF8),
// 			},
// 		},
// 	},
// }
Output:

Example (CreateAnAzureDataWarehouseOutput)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Output_Create_DataWarehouse.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewOutputsClient().CreateOrReplace(ctx, "sjrg", "sjName", "dwOutput", armstreamanalytics.Output{
	Properties: &armstreamanalytics.OutputProperties{
		Datasource: &armstreamanalytics.AzureSynapseOutputDataSource{
			Type: to.Ptr("Microsoft.Sql/Server/DataWarehouse"),
			Properties: &armstreamanalytics.AzureSynapseOutputDataSourceProperties{
				AuthenticationMode: to.Ptr(armstreamanalytics.AuthenticationModeMsi),
				Database:           to.Ptr("zhayaSQLpool"),
				Password:           to.Ptr("password123"),
				Server:             to.Ptr("asatestserver"),
				Table:              to.Ptr("test2"),
				User:               to.Ptr("tolladmin"),
			},
		},
	},
}, &armstreamanalytics.OutputsClientCreateOrReplaceOptions{IfMatch: nil,
	IfNoneMatch: nil,
})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Output = armstreamanalytics.Output{
// 	Name: to.Ptr("dwOutput"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/outputs"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg/providers/Microsoft.StreamAnalytics/streamingjobs/sjName/outputs/dwOutput"),
// 	Properties: &armstreamanalytics.OutputProperties{
// 		Datasource: &armstreamanalytics.AzureSynapseOutputDataSource{
// 			Type: to.Ptr("Microsoft.Sql/Server/DataWarehouse"),
// 			Properties: &armstreamanalytics.AzureSynapseOutputDataSourceProperties{
// 				Database: to.Ptr("zhayaSQLpool"),
// 				Server: to.Ptr("asatestserver"),
// 				Table: to.Ptr("test2"),
// 				User: to.Ptr("tolladmin"),
// 			},
// 		},
// 	},
// }
Output:

Example (CreateAnAzureFunctionOutput)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Output_Create_AzureFunction.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewOutputsClient().CreateOrReplace(ctx, "sjrg", "sjName", "azureFunction1", armstreamanalytics.Output{
	Properties: &armstreamanalytics.OutputProperties{
		Datasource: &armstreamanalytics.AzureFunctionOutputDataSource{
			Type: to.Ptr("Microsoft.AzureFunction"),
			Properties: &armstreamanalytics.AzureFunctionOutputDataSourceProperties{
				FunctionAppName: to.Ptr("functionappforasaautomation"),
				FunctionName:    to.Ptr("HttpTrigger2"),
				MaxBatchCount:   to.Ptr[float32](100),
				MaxBatchSize:    to.Ptr[float32](256),
			},
		},
	},
}, &armstreamanalytics.OutputsClientCreateOrReplaceOptions{IfMatch: nil,
	IfNoneMatch: nil,
})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Output = armstreamanalytics.Output{
// 	Name: to.Ptr("azureFunction1"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/outputs"),
// 	ID: to.Ptr("/subscriptions/7f31cba8-b597-4129-b158-8f21a7395bd0/resourceGroups/sjrg/providers/Microsoft.StreamAnalytics/streamingjobs/sjName/outputs/azureFunction1"),
// 	Properties: &armstreamanalytics.OutputProperties{
// 		Datasource: &armstreamanalytics.AzureFunctionOutputDataSource{
// 			Type: to.Ptr("Microsoft.AzureFunction"),
// 			Properties: &armstreamanalytics.AzureFunctionOutputDataSourceProperties{
// 				FunctionAppName: to.Ptr("functionappforasaautomation"),
// 				FunctionName: to.Ptr("HttpTrigger2"),
// 				MaxBatchCount: to.Ptr[float32](100),
// 				MaxBatchSize: to.Ptr[float32](256),
// 			},
// 		},
// 		Etag: to.Ptr("7b912929-346d-432e-9495-6972dbd63179"),
// 	},
// }
Output:

Example (CreateAnAzureSqlDatabaseOutput)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Output_Create_AzureSQL.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewOutputsClient().CreateOrReplace(ctx, "sjrg2157", "sj6458", "output1755", armstreamanalytics.Output{
	Properties: &armstreamanalytics.OutputProperties{
		Datasource: &armstreamanalytics.AzureSQLDatabaseOutputDataSource{
			Type: to.Ptr("Microsoft.Sql/Server/Database"),
			Properties: &armstreamanalytics.AzureSQLDatabaseOutputDataSourceProperties{
				Database: to.Ptr("someDatabase"),
				Password: to.Ptr("somePassword"),
				Server:   to.Ptr("someServer"),
				Table:    to.Ptr("someTable"),
				User:     to.Ptr("<user>"),
			},
		},
	},
}, &armstreamanalytics.OutputsClientCreateOrReplaceOptions{IfMatch: nil,
	IfNoneMatch: nil,
})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Output = armstreamanalytics.Output{
// 	Name: to.Ptr("output1755"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/outputs"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg2157/providers/Microsoft.StreamAnalytics/streamingjobs/sj6458/outputs/output1755"),
// 	Properties: &armstreamanalytics.OutputProperties{
// 		Datasource: &armstreamanalytics.AzureSQLDatabaseOutputDataSource{
// 			Type: to.Ptr("Microsoft.Sql/Server/Database"),
// 			Properties: &armstreamanalytics.AzureSQLDatabaseOutputDataSourceProperties{
// 				Database: to.Ptr("someDatabase"),
// 				Server: to.Ptr("someServer"),
// 				Table: to.Ptr("someTable"),
// 				User: to.Ptr("someUser"),
// 			},
// 		},
// 	},
// }
Output:

Example (CreateAnAzureTableOutput)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Output_Create_AzureTable.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewOutputsClient().CreateOrReplace(ctx, "sjrg5176", "sj2790", "output958", armstreamanalytics.Output{
	Properties: &armstreamanalytics.OutputProperties{
		Datasource: &armstreamanalytics.AzureTableOutputDataSource{
			Type: to.Ptr("Microsoft.Storage/Table"),
			Properties: &armstreamanalytics.AzureTableOutputDataSourceProperties{
				AccountKey:  to.Ptr("accountKey=="),
				AccountName: to.Ptr("someAccountName"),
				BatchSize:   to.Ptr[int32](25),
				ColumnsToRemove: []*string{
					to.Ptr("column1"),
					to.Ptr("column2")},
				PartitionKey: to.Ptr("partitionKey"),
				RowKey:       to.Ptr("rowKey"),
				Table:        to.Ptr("samples"),
			},
		},
	},
}, &armstreamanalytics.OutputsClientCreateOrReplaceOptions{IfMatch: nil,
	IfNoneMatch: nil,
})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Output = armstreamanalytics.Output{
// 	Name: to.Ptr("output958"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/outputs"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg5176/providers/Microsoft.StreamAnalytics/streamingjobs/sj2790/outputs/output958"),
// 	Properties: &armstreamanalytics.OutputProperties{
// 		Datasource: &armstreamanalytics.AzureTableOutputDataSource{
// 			Type: to.Ptr("Microsoft.Storage/Table"),
// 			Properties: &armstreamanalytics.AzureTableOutputDataSourceProperties{
// 				AccountName: to.Ptr("someAccountName"),
// 				BatchSize: to.Ptr[int32](25),
// 				ColumnsToRemove: []*string{
// 					to.Ptr("column1"),
// 					to.Ptr("column2")},
// 					PartitionKey: to.Ptr("partitionKey"),
// 					RowKey: to.Ptr("rowKey"),
// 					Table: to.Ptr("samples"),
// 				},
// 			},
// 		},
// 	}
Output:

Example (CreateAnEventHubOutputWithJsonSerialization)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Output_Create_EventHub_JSON.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewOutputsClient().CreateOrReplace(ctx, "sjrg6912", "sj3310", "output5195", armstreamanalytics.Output{
	Properties: &armstreamanalytics.OutputProperties{
		Datasource: &armstreamanalytics.EventHubOutputDataSource{
			Type: to.Ptr("Microsoft.ServiceBus/EventHub"),
			Properties: &armstreamanalytics.EventHubOutputDataSourceProperties{
				ServiceBusNamespace:    to.Ptr("sdktest"),
				SharedAccessPolicyKey:  to.Ptr("sharedAccessPolicyKey="),
				SharedAccessPolicyName: to.Ptr("RootManageSharedAccessKey"),
				EventHubName:           to.Ptr("sdkeventhub"),
				PartitionKey:           to.Ptr("partitionKey"),
			},
		},
		Serialization: &armstreamanalytics.JSONSerialization{
			Type: to.Ptr(armstreamanalytics.EventSerializationTypeJSON),
			Properties: &armstreamanalytics.JSONSerializationProperties{
				Format:   to.Ptr(armstreamanalytics.JSONOutputSerializationFormatArray),
				Encoding: to.Ptr(armstreamanalytics.EncodingUTF8),
			},
		},
		WatermarkSettings: &armstreamanalytics.OutputWatermarkProperties{
			MaxWatermarkDifferenceAcrossPartitions: to.Ptr("16:14:30"),
			WatermarkMode:                          to.Ptr(armstreamanalytics.OutputWatermarkModeSendCurrentPartitionWatermark),
		},
	},
}, &armstreamanalytics.OutputsClientCreateOrReplaceOptions{IfMatch: nil,
	IfNoneMatch: nil,
})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Output = armstreamanalytics.Output{
// 	Name: to.Ptr("output5195"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/outputs"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg6912/providers/Microsoft.StreamAnalytics/streamingjobs/sj3310/outputs/output5195"),
// 	Properties: &armstreamanalytics.OutputProperties{
// 		Datasource: &armstreamanalytics.EventHubOutputDataSource{
// 			Type: to.Ptr("Microsoft.ServiceBus/EventHub"),
// 			Properties: &armstreamanalytics.EventHubOutputDataSourceProperties{
// 				ServiceBusNamespace: to.Ptr("sdktest"),
// 				SharedAccessPolicyName: to.Ptr("RootManageSharedAccessKey"),
// 				EventHubName: to.Ptr("sdkeventhub"),
// 				PartitionKey: to.Ptr("partitionKey"),
// 			},
// 		},
// 		Serialization: &armstreamanalytics.JSONSerialization{
// 			Type: to.Ptr(armstreamanalytics.EventSerializationTypeJSON),
// 			Properties: &armstreamanalytics.JSONSerializationProperties{
// 				Format: to.Ptr(armstreamanalytics.JSONOutputSerializationFormatArray),
// 				Encoding: to.Ptr(armstreamanalytics.EncodingUTF8),
// 			},
// 		},
// 	},
// }
Output:

func (*OutputsClient) Delete

func (client *OutputsClient) Delete(ctx context.Context, resourceGroupName string, jobName string, outputName string, options *OutputsClientDeleteOptions) (OutputsClientDeleteResponse, error)

Delete - Deletes an output from the streaming job. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-10-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • jobName - The name of the streaming job.
  • outputName - The name of the output.
  • options - OutputsClientDeleteOptions contains the optional parameters for the OutputsClient.Delete method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Output_Delete.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
_, err = clientFactory.NewOutputsClient().Delete(ctx, "sjrg2157", "sj6458", "output1755", nil)
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
Output:

func (*OutputsClient) Get

func (client *OutputsClient) Get(ctx context.Context, resourceGroupName string, jobName string, outputName string, options *OutputsClientGetOptions) (OutputsClientGetResponse, error)

Get - Gets details about the specified output. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-10-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • jobName - The name of the streaming job.
  • outputName - The name of the output.
  • options - OutputsClientGetOptions contains the optional parameters for the OutputsClient.Get method.
Example (GetABlobOutputWithCsvSerialization)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Output_Get_Blob_CSV.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewOutputsClient().Get(ctx, "sjrg5023", "sj900", "output1623", nil)
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Output = armstreamanalytics.Output{
// 	Name: to.Ptr("output1623"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/outputs"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg5023/providers/Microsoft.StreamAnalytics/streamingjobs/sj900/outputs/output1623"),
// 	Properties: &armstreamanalytics.OutputProperties{
// 		Datasource: &armstreamanalytics.BlobOutputDataSource{
// 			Type: to.Ptr("Microsoft.Storage/Blob"),
// 			Properties: &armstreamanalytics.BlobOutputDataSourceProperties{
// 				Container: to.Ptr("state"),
// 				DateFormat: to.Ptr("yyyy/MM/dd"),
// 				PathPattern: to.Ptr("{date}/{time}"),
// 				StorageAccounts: []*armstreamanalytics.StorageAccount{
// 					{
// 						AccountName: to.Ptr("someAccountName"),
// 				}},
// 				TimeFormat: to.Ptr("HH"),
// 			},
// 		},
// 		Serialization: &armstreamanalytics.CSVSerialization{
// 			Type: to.Ptr(armstreamanalytics.EventSerializationTypeCSV),
// 			Properties: &armstreamanalytics.CSVSerializationProperties{
// 				Encoding: to.Ptr(armstreamanalytics.EncodingUTF8),
// 				FieldDelimiter: to.Ptr(","),
// 			},
// 		},
// 	},
// }
Output:

Example (GetADeltaLakeOutput)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Output_Get_DeltaLake.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewOutputsClient().Get(ctx, "sjrg", "sjName", "output1221", nil)
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Output = armstreamanalytics.Output{
// 	Name: to.Ptr("output1221"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/outputs"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg/providers/Microsoft.StreamAnalytics/streamingjobs/sjName/outputs/output1221"),
// 	Properties: &armstreamanalytics.OutputProperties{
// 		Datasource: &armstreamanalytics.BlobOutputDataSource{
// 			Type: to.Ptr("Microsoft.Storage/Blob"),
// 			Properties: &armstreamanalytics.BlobOutputDataSourceProperties{
// 				Container: to.Ptr("deltaoutput"),
// 				StorageAccounts: []*armstreamanalytics.StorageAccount{
// 					{
// 						AccountName: to.Ptr("someAccountName"),
// 				}},
// 			},
// 		},
// 		Serialization: &armstreamanalytics.DeltaSerialization{
// 			Type: to.Ptr(armstreamanalytics.EventSerializationTypeDelta),
// 			Properties: &armstreamanalytics.DeltaSerializationProperties{
// 				DeltaTablePath: to.Ptr("/folder1/table1"),
// 				PartitionColumns: []*string{
// 					to.Ptr("column1")},
// 				},
// 			},
// 		},
// 	}
Output:

Example (GetADocumentDbOutput)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Output_Get_DocumentDB.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewOutputsClient().Get(ctx, "sjrg7983", "sj2331", "output3022", nil)
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Output = armstreamanalytics.Output{
// 	Name: to.Ptr("output3022"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/outputs"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg7983/providers/Microsoft.StreamAnalytics/streamingjobs/sj2331/outputs/output3022"),
// 	Properties: &armstreamanalytics.OutputProperties{
// 		Datasource: &armstreamanalytics.DocumentDbOutputDataSource{
// 			Type: to.Ptr("Microsoft.Storage/DocumentDB"),
// 			Properties: &armstreamanalytics.DocumentDbOutputDataSourceProperties{
// 				AccountID: to.Ptr("someAccountId"),
// 				CollectionNamePattern: to.Ptr("collection"),
// 				Database: to.Ptr("db01"),
// 				DocumentID: to.Ptr("documentId"),
// 				PartitionKey: to.Ptr("key"),
// 			},
// 		},
// 	},
// }
Output:

Example (GetAPowerBiOutput)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Output_Get_PowerBI.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewOutputsClient().Get(ctx, "sjrg7983", "sj2331", "output3022", nil)
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Output = armstreamanalytics.Output{
// 	Name: to.Ptr("output3022"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/outputs"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg7983/providers/Microsoft.StreamAnalytics/streamingjobs/sj2331/outputs/output3022"),
// 	Properties: &armstreamanalytics.OutputProperties{
// 		Datasource: &armstreamanalytics.PowerBIOutputDataSource{
// 			Type: to.Ptr("PowerBI"),
// 			Properties: &armstreamanalytics.PowerBIOutputDataSourceProperties{
// 				TokenUserDisplayName: to.Ptr("Bob Smith"),
// 				TokenUserPrincipalName: to.Ptr("bobsmith@contoso.com"),
// 				Dataset: to.Ptr("someDataset"),
// 				GroupID: to.Ptr("ac40305e-3e8d-43ac-8161-c33799f43e95"),
// 				GroupName: to.Ptr("MyPowerBIGroup"),
// 				Table: to.Ptr("someTable"),
// 			},
// 		},
// 	},
// }
Output:

Example (GetAServiceBusQueueOutputWithAvroSerialization)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Output_Get_ServiceBusQueue_Avro.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewOutputsClient().Get(ctx, "sjrg3410", "sj5095", "output3456", nil)
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Output = armstreamanalytics.Output{
// 	Name: to.Ptr("output3456"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/outputs"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg3410/providers/Microsoft.StreamAnalytics/streamingjobs/sj5095/outputs/output3456"),
// 	Properties: &armstreamanalytics.OutputProperties{
// 		Datasource: &armstreamanalytics.ServiceBusQueueOutputDataSource{
// 			Type: to.Ptr("Microsoft.ServiceBus/Queue"),
// 			Properties: &armstreamanalytics.ServiceBusQueueOutputDataSourceProperties{
// 				ServiceBusNamespace: to.Ptr("sdktest"),
// 				SharedAccessPolicyName: to.Ptr("RootManageSharedAccessKey"),
// 				PropertyColumns: []*string{
// 					to.Ptr("column1"),
// 					to.Ptr("column2")},
// 					QueueName: to.Ptr("sdkqueue"),
// 				},
// 			},
// 			Serialization: &armstreamanalytics.AvroSerialization{
// 				Type: to.Ptr(armstreamanalytics.EventSerializationTypeAvro),
// 				Properties: map[string]any{
// 				},
// 			},
// 		},
// 	}
Output:

Example (GetAServiceBusTopicOutputWithCsvSerialization)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Output_Get_ServiceBusTopic_CSV.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewOutputsClient().Get(ctx, "sjrg6450", "sj7094", "output7886", nil)
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Output = armstreamanalytics.Output{
// 	Name: to.Ptr("output7886"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/outputs"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg6450/providers/Microsoft.StreamAnalytics/streamingjobs/sj7094/outputs/output7886"),
// 	Properties: &armstreamanalytics.OutputProperties{
// 		Datasource: &armstreamanalytics.ServiceBusTopicOutputDataSource{
// 			Type: to.Ptr("Microsoft.ServiceBus/Topic"),
// 			Properties: &armstreamanalytics.ServiceBusTopicOutputDataSourceProperties{
// 				ServiceBusNamespace: to.Ptr("sdktest"),
// 				SharedAccessPolicyName: to.Ptr("RootManageSharedAccessKey"),
// 				PropertyColumns: []*string{
// 					to.Ptr("column1"),
// 					to.Ptr("column2")},
// 					TopicName: to.Ptr("sdktopic"),
// 				},
// 			},
// 			Serialization: &armstreamanalytics.CSVSerialization{
// 				Type: to.Ptr(armstreamanalytics.EventSerializationTypeCSV),
// 				Properties: &armstreamanalytics.CSVSerializationProperties{
// 					Encoding: to.Ptr(armstreamanalytics.EncodingUTF8),
// 					FieldDelimiter: to.Ptr(","),
// 				},
// 			},
// 		},
// 	}
Output:

Example (GetAnAzureDataLakeStoreOutputWithJsonSerialization)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Output_Get_AzureDataLakeStore_JSON.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewOutputsClient().Get(ctx, "sjrg6912", "sj3310", "output5195", nil)
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Output = armstreamanalytics.Output{
// 	Name: to.Ptr("output5195"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/outputs"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg6912/providers/Microsoft.StreamAnalytics/streamingjobs/sj3310/outputs/output5195"),
// 	Properties: &armstreamanalytics.OutputProperties{
// 		Datasource: &armstreamanalytics.AzureDataLakeStoreOutputDataSource{
// 			Type: to.Ptr("Microsoft.DataLake/Accounts"),
// 			Properties: &armstreamanalytics.AzureDataLakeStoreOutputDataSourceProperties{
// 				TokenUserDisplayName: to.Ptr("Bob Smith"),
// 				TokenUserPrincipalName: to.Ptr("bobsmith@contoso.com"),
// 				AccountName: to.Ptr("someaccount"),
// 				DateFormat: to.Ptr("yyyy/MM/dd"),
// 				FilePathPrefix: to.Ptr("{date}/{time}"),
// 				TenantID: to.Ptr("cea4e98b-c798-49e7-8c40-4a2b3beb47dd"),
// 				TimeFormat: to.Ptr("HH"),
// 			},
// 		},
// 		Serialization: &armstreamanalytics.JSONSerialization{
// 			Type: to.Ptr(armstreamanalytics.EventSerializationTypeJSON),
// 			Properties: &armstreamanalytics.JSONSerializationProperties{
// 				Format: to.Ptr(armstreamanalytics.JSONOutputSerializationFormatArray),
// 				Encoding: to.Ptr(armstreamanalytics.EncodingUTF8),
// 			},
// 		},
// 	},
// }
Output:

Example (GetAnAzureDataWarehouseOutput)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Output_Get_DataWarehouse.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewOutputsClient().Get(ctx, "sjrg", "sjName", "dwOutput", nil)
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Output = armstreamanalytics.Output{
// 	Name: to.Ptr("dwOutput"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/outputs"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg/providers/Microsoft.StreamAnalytics/streamingjobs/sjName/outputs/dwOutput"),
// 	Properties: &armstreamanalytics.OutputProperties{
// 		Datasource: &armstreamanalytics.AzureSynapseOutputDataSource{
// 			Type: to.Ptr("Microsoft.Sql/Server/DataWarehouse"),
// 			Properties: &armstreamanalytics.AzureSynapseOutputDataSourceProperties{
// 				Database: to.Ptr("zhayaSQLpool"),
// 				Server: to.Ptr("asatestserver"),
// 				Table: to.Ptr("test2"),
// 				User: to.Ptr("tolladmin"),
// 			},
// 		},
// 		Etag: to.Ptr("ce3fb956-0487-4168-af20-1133a59bdc6e"),
// 	},
// }
Output:

Example (GetAnAzureFunctionOutput)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Output_Get_AzureFunction.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewOutputsClient().Get(ctx, "sjrg", "sjName", "azureFunction1", nil)
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Output = armstreamanalytics.Output{
// 	Name: to.Ptr("azureFunction1"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/outputs"),
// 	ID: to.Ptr("/subscriptions/7f31cba8-b597-4129-b158-8f21a7395bd0/resourceGroups/sjrg/providers/Microsoft.StreamAnalytics/streamingjobs/sjName/outputs/azureFunction1"),
// 	Properties: &armstreamanalytics.OutputProperties{
// 		Datasource: &armstreamanalytics.AzureFunctionOutputDataSource{
// 			Type: to.Ptr("Microsoft.AzureFunction"),
// 			Properties: &armstreamanalytics.AzureFunctionOutputDataSourceProperties{
// 				FunctionAppName: to.Ptr("functionappforasaautomation"),
// 				FunctionName: to.Ptr("HttpTrigger2"),
// 				MaxBatchCount: to.Ptr[float32](100),
// 				MaxBatchSize: to.Ptr[float32](256),
// 			},
// 		},
// 		Etag: to.Ptr("7b912929-346d-432e-9495-6972dbd63179"),
// 	},
// }
Output:

Example (GetAnAzureSqlDatabaseOutput)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Output_Get_AzureSQL.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewOutputsClient().Get(ctx, "sjrg2157", "sj6458", "output1755", nil)
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Output = armstreamanalytics.Output{
// 	Name: to.Ptr("output1755"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/outputs"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg2157/providers/Microsoft.StreamAnalytics/streamingjobs/sj6458/outputs/output1755"),
// 	Properties: &armstreamanalytics.OutputProperties{
// 		Datasource: &armstreamanalytics.AzureSQLDatabaseOutputDataSource{
// 			Type: to.Ptr("Microsoft.Sql/Server/Database"),
// 			Properties: &armstreamanalytics.AzureSQLDatabaseOutputDataSourceProperties{
// 				Database: to.Ptr("someDatabase"),
// 				Server: to.Ptr("someServer"),
// 				Table: to.Ptr("someTable"),
// 				User: to.Ptr("someUser"),
// 			},
// 		},
// 	},
// }
Output:

Example (GetAnAzureTableOutput)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Output_Get_AzureTable.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewOutputsClient().Get(ctx, "sjrg5176", "sj2790", "output958", nil)
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Output = armstreamanalytics.Output{
// 	Name: to.Ptr("output958"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/outputs"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg5176/providers/Microsoft.StreamAnalytics/streamingjobs/sj2790/outputs/output958"),
// 	Properties: &armstreamanalytics.OutputProperties{
// 		Datasource: &armstreamanalytics.AzureTableOutputDataSource{
// 			Type: to.Ptr("Microsoft.Storage/Table"),
// 			Properties: &armstreamanalytics.AzureTableOutputDataSourceProperties{
// 				AccountName: to.Ptr("someAccountName"),
// 				BatchSize: to.Ptr[int32](25),
// 				ColumnsToRemove: []*string{
// 					to.Ptr("column1"),
// 					to.Ptr("column2")},
// 					PartitionKey: to.Ptr("partitionKey"),
// 					RowKey: to.Ptr("rowKey"),
// 					Table: to.Ptr("samples"),
// 				},
// 			},
// 		},
// 	}
Output:

Example (GetAnEventHubOutputWithJsonSerialization)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Output_Get_EventHub_JSON.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewOutputsClient().Get(ctx, "sjrg6912", "sj3310", "output5195", nil)
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Output = armstreamanalytics.Output{
// 	Name: to.Ptr("output5195"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/outputs"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg6912/providers/Microsoft.StreamAnalytics/streamingjobs/sj3310/outputs/output5195"),
// 	Properties: &armstreamanalytics.OutputProperties{
// 		Datasource: &armstreamanalytics.EventHubOutputDataSource{
// 			Type: to.Ptr("Microsoft.ServiceBus/EventHub"),
// 			Properties: &armstreamanalytics.EventHubOutputDataSourceProperties{
// 				ServiceBusNamespace: to.Ptr("sdktest"),
// 				SharedAccessPolicyName: to.Ptr("RootManageSharedAccessKey"),
// 				EventHubName: to.Ptr("sdkeventhub"),
// 				PartitionKey: to.Ptr("partitionKey"),
// 			},
// 		},
// 		LastOutputEventTimestamps: []*armstreamanalytics.LastOutputEventTimestamp{
// 			{
// 				LastOutputEventTime: to.Ptr("2009-06-15T13:45:30"),
// 				LastUpdateTime: to.Ptr("2009-06-15T13:45:30"),
// 			},
// 			{
// 				LastOutputEventTime: to.Ptr("2009-07-15T13:45:30"),
// 				LastUpdateTime: to.Ptr("2009-06-15T13:45:30"),
// 		}},
// 		Serialization: &armstreamanalytics.JSONSerialization{
// 			Type: to.Ptr(armstreamanalytics.EventSerializationTypeJSON),
// 			Properties: &armstreamanalytics.JSONSerializationProperties{
// 				Format: to.Ptr(armstreamanalytics.JSONOutputSerializationFormatArray),
// 				Encoding: to.Ptr(armstreamanalytics.EncodingUTF8),
// 			},
// 		},
// 	},
// }
Output:

func (*OutputsClient) NewListByStreamingJobPager

func (client *OutputsClient) NewListByStreamingJobPager(resourceGroupName string, jobName string, options *OutputsClientListByStreamingJobOptions) *runtime.Pager[OutputsClientListByStreamingJobResponse]

NewListByStreamingJobPager - Lists all of the outputs under the specified streaming job.

Generated from API version 2021-10-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • jobName - The name of the streaming job.
  • options - OutputsClientListByStreamingJobOptions contains the optional parameters for the OutputsClient.NewListByStreamingJobPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Output_ListByStreamingJob.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewOutputsClient().NewListByStreamingJobPager("sjrg2157", "sj6458", &armstreamanalytics.OutputsClientListByStreamingJobOptions{Select: nil})
for pager.More() {
	page, err := pager.NextPage(ctx)
	if err != nil {
		log.Fatalf("failed to advance page: %v", err)
	}
	for _, v := range page.Value {
		// You could use page here. We use blank identifier for just demo purposes.
		_ = v
	}
	// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// page.OutputListResult = armstreamanalytics.OutputListResult{
	// 	Value: []*armstreamanalytics.Output{
	// 		{
	// 			Name: to.Ptr("output1755"),
	// 			Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/outputs"),
	// 			ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg2157/providers/Microsoft.StreamAnalytics/streamingjobs/sj6458/outputs/output1755"),
	// 			Properties: &armstreamanalytics.OutputProperties{
	// 				Datasource: &armstreamanalytics.AzureSQLDatabaseOutputDataSource{
	// 					Type: to.Ptr("Microsoft.Sql/Server/Database"),
	// 					Properties: &armstreamanalytics.AzureSQLDatabaseOutputDataSourceProperties{
	// 						Database: to.Ptr("someDatabase"),
	// 						Server: to.Ptr("someServer"),
	// 						Table: to.Ptr("differentTable"),
	// 						User: to.Ptr("someUser"),
	// 					},
	// 				},
	// 				Etag: to.Ptr("f489d6f3-fcd5-4bcb-b642-81e987ee16d6"),
	// 			},
	// 		},
	// 		{
	// 			Name: to.Ptr("output958"),
	// 			Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/outputs"),
	// 			ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg2157/providers/Microsoft.StreamAnalytics/streamingjobs/sj6458/outputs/output958"),
	// 			Properties: &armstreamanalytics.OutputProperties{
	// 				Datasource: &armstreamanalytics.AzureTableOutputDataSource{
	// 					Type: to.Ptr("Microsoft.Storage/Table"),
	// 					Properties: &armstreamanalytics.AzureTableOutputDataSourceProperties{
	// 						AccountName: to.Ptr("someAccountName"),
	// 						BatchSize: to.Ptr[int32](25),
	// 						ColumnsToRemove: []*string{
	// 							to.Ptr("column1"),
	// 							to.Ptr("column2")},
	// 							PartitionKey: to.Ptr("differentPartitionKey"),
	// 							RowKey: to.Ptr("rowKey"),
	// 							Table: to.Ptr("samples"),
	// 						},
	// 					},
	// 					Etag: to.Ptr("ea1d20bf-6cb3-40bc-bc7b-ec3a7fd5977e"),
	// 				},
	// 			},
	// 			{
	// 				Name: to.Ptr("output1623"),
	// 				Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/outputs"),
	// 				ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg2157/providers/Microsoft.StreamAnalytics/streamingjobs/sj6458/outputs/output1623"),
	// 				Properties: &armstreamanalytics.OutputProperties{
	// 					Datasource: &armstreamanalytics.BlobOutputDataSource{
	// 						Type: to.Ptr("Microsoft.Storage/Blob"),
	// 						Properties: &armstreamanalytics.BlobOutputDataSourceProperties{
	// 							Container: to.Ptr("differentContainer"),
	// 							DateFormat: to.Ptr("yyyy/MM/dd"),
	// 							PathPattern: to.Ptr("{date}/{time}"),
	// 							StorageAccounts: []*armstreamanalytics.StorageAccount{
	// 								{
	// 									AccountName: to.Ptr("someAccountName"),
	// 							}},
	// 							TimeFormat: to.Ptr("HH"),
	// 						},
	// 					},
	// 					Etag: to.Ptr("3a1b2023-79a9-4b33-93e8-f49fc3e573fe"),
	// 					Serialization: &armstreamanalytics.CSVSerialization{
	// 						Type: to.Ptr(armstreamanalytics.EventSerializationTypeCSV),
	// 						Properties: &armstreamanalytics.CSVSerializationProperties{
	// 							Encoding: to.Ptr(armstreamanalytics.EncodingUTF8),
	// 							FieldDelimiter: to.Ptr("|"),
	// 						},
	// 					},
	// 				},
	// 			},
	// 			{
	// 				Name: to.Ptr("output3022"),
	// 				Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/outputs"),
	// 				ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg2157/providers/Microsoft.StreamAnalytics/streamingjobs/sj6458/outputs/output3022"),
	// 				Properties: &armstreamanalytics.OutputProperties{
	// 					Datasource: &armstreamanalytics.DocumentDbOutputDataSource{
	// 						Type: to.Ptr("Microsoft.Storage/DocumentDB"),
	// 						Properties: &armstreamanalytics.DocumentDbOutputDataSourceProperties{
	// 							AccountID: to.Ptr("someAccountId"),
	// 							CollectionNamePattern: to.Ptr("collection"),
	// 							Database: to.Ptr("db01"),
	// 							DocumentID: to.Ptr("documentId"),
	// 							PartitionKey: to.Ptr("differentPartitionKey"),
	// 						},
	// 					},
	// 					Etag: to.Ptr("7849c132-e995-4631-91c3-931606eec432"),
	// 				},
	// 			},
	// 			{
	// 				Name: to.Ptr("output5195"),
	// 				Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/outputs"),
	// 				ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg2157/providers/Microsoft.StreamAnalytics/streamingjobs/sj6458/outputs/output5195"),
	// 				Properties: &armstreamanalytics.OutputProperties{
	// 					Datasource: &armstreamanalytics.EventHubOutputDataSource{
	// 						Type: to.Ptr("Microsoft.ServiceBus/EventHub"),
	// 						Properties: &armstreamanalytics.EventHubOutputDataSourceProperties{
	// 							ServiceBusNamespace: to.Ptr("sdktest"),
	// 							SharedAccessPolicyName: to.Ptr("RootManageSharedAccessKey"),
	// 							EventHubName: to.Ptr("sdkeventhub"),
	// 							PartitionKey: to.Ptr("differentPartitionKey"),
	// 						},
	// 					},
	// 					Etag: to.Ptr("5020de6b-5bb3-4b88-8606-f11fb3c46185"),
	// 					Serialization: &armstreamanalytics.JSONSerialization{
	// 						Type: to.Ptr(armstreamanalytics.EventSerializationTypeJSON),
	// 						Properties: &armstreamanalytics.JSONSerializationProperties{
	// 							Format: to.Ptr(armstreamanalytics.JSONOutputSerializationFormatLineSeparated),
	// 							Encoding: to.Ptr(armstreamanalytics.EncodingUTF8),
	// 						},
	// 					},
	// 				},
	// 			},
	// 			{
	// 				Name: to.Ptr("output3456"),
	// 				Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/outputs"),
	// 				ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg2157/providers/Microsoft.StreamAnalytics/streamingjobs/sj6458/outputs/output3456"),
	// 				Properties: &armstreamanalytics.OutputProperties{
	// 					Datasource: &armstreamanalytics.ServiceBusQueueOutputDataSource{
	// 						Type: to.Ptr("Microsoft.ServiceBus/Queue"),
	// 						Properties: &armstreamanalytics.ServiceBusQueueOutputDataSourceProperties{
	// 							ServiceBusNamespace: to.Ptr("sdktest"),
	// 							SharedAccessPolicyName: to.Ptr("RootManageSharedAccessKey"),
	// 							PropertyColumns: []*string{
	// 								to.Ptr("column1"),
	// 								to.Ptr("column2")},
	// 								QueueName: to.Ptr("differentQueueName"),
	// 							},
	// 						},
	// 						Etag: to.Ptr("429adaec-a777-4750-8a39-8d0c931d801c"),
	// 						Serialization: &armstreamanalytics.JSONSerialization{
	// 							Type: to.Ptr(armstreamanalytics.EventSerializationTypeJSON),
	// 							Properties: &armstreamanalytics.JSONSerializationProperties{
	// 								Format: to.Ptr(armstreamanalytics.JSONOutputSerializationFormatLineSeparated),
	// 								Encoding: to.Ptr(armstreamanalytics.EncodingUTF8),
	// 							},
	// 						},
	// 					},
	// 				},
	// 				{
	// 					Name: to.Ptr("output7886"),
	// 					Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/outputs"),
	// 					ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg2157/providers/Microsoft.StreamAnalytics/streamingjobs/sj6458/outputs/output7886"),
	// 					Properties: &armstreamanalytics.OutputProperties{
	// 						Datasource: &armstreamanalytics.ServiceBusTopicOutputDataSource{
	// 							Type: to.Ptr("Microsoft.ServiceBus/Topic"),
	// 							Properties: &armstreamanalytics.ServiceBusTopicOutputDataSourceProperties{
	// 								ServiceBusNamespace: to.Ptr("sdktest"),
	// 								SharedAccessPolicyName: to.Ptr("RootManageSharedAccessKey"),
	// 								PropertyColumns: []*string{
	// 									to.Ptr("column1"),
	// 									to.Ptr("column2")},
	// 									TopicName: to.Ptr("differentTopicName"),
	// 								},
	// 							},
	// 							Etag: to.Ptr("c1c2007f-45b2-419a-ae7d-4d2148998460"),
	// 							Serialization: &armstreamanalytics.CSVSerialization{
	// 								Type: to.Ptr(armstreamanalytics.EventSerializationTypeCSV),
	// 								Properties: &armstreamanalytics.CSVSerializationProperties{
	// 									Encoding: to.Ptr(armstreamanalytics.EncodingUTF8),
	// 									FieldDelimiter: to.Ptr("|"),
	// 								},
	// 							},
	// 						},
	// 					},
	// 					{
	// 						Name: to.Ptr("output3021"),
	// 						Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/outputs"),
	// 						ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg2157/providers/Microsoft.StreamAnalytics/streamingjobs/sj6458/outputs/output3021"),
	// 						Properties: &armstreamanalytics.OutputProperties{
	// 							Datasource: &armstreamanalytics.PowerBIOutputDataSource{
	// 								Type: to.Ptr("PowerBI"),
	// 								Properties: &armstreamanalytics.PowerBIOutputDataSourceProperties{
	// 									TokenUserDisplayName: to.Ptr("Bob Smith"),
	// 									TokenUserPrincipalName: to.Ptr("bobsmith@contoso.com"),
	// 									Dataset: to.Ptr("differentDataset"),
	// 									GroupID: to.Ptr("ac40305e-3e8d-43ac-8161-c33799f43e95"),
	// 									GroupName: to.Ptr("MyPowerBIGroup"),
	// 									Table: to.Ptr("someTable"),
	// 								},
	// 							},
	// 							Etag: to.Ptr("4a492191-9672-4178-be10-043b9dbd4b9f"),
	// 						},
	// 					},
	// 					{
	// 						Name: to.Ptr("output5196"),
	// 						Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/outputs"),
	// 						ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg2157/providers/Microsoft.StreamAnalytics/streamingjobs/sj6458/outputs/output5196"),
	// 						Properties: &armstreamanalytics.OutputProperties{
	// 							Datasource: &armstreamanalytics.AzureDataLakeStoreOutputDataSource{
	// 								Type: to.Ptr("Microsoft.DataLake/Accounts"),
	// 								Properties: &armstreamanalytics.AzureDataLakeStoreOutputDataSourceProperties{
	// 									TokenUserDisplayName: to.Ptr("Bob Smith"),
	// 									TokenUserPrincipalName: to.Ptr("bobsmith@contoso.com"),
	// 									AccountName: to.Ptr("differentaccount"),
	// 									DateFormat: to.Ptr("yyyy/MM/dd"),
	// 									FilePathPrefix: to.Ptr("{date}/{time}"),
	// 									TenantID: to.Ptr("cea4e98b-c798-49e7-8c40-4a2b3beb47dd"),
	// 									TimeFormat: to.Ptr("HH"),
	// 								},
	// 							},
	// 							Etag: to.Ptr("39ab7642-8c1e-48ed-85eb-949068d68002"),
	// 							Serialization: &armstreamanalytics.JSONSerialization{
	// 								Type: to.Ptr(armstreamanalytics.EventSerializationTypeJSON),
	// 								Properties: &armstreamanalytics.JSONSerializationProperties{
	// 									Format: to.Ptr(armstreamanalytics.JSONOutputSerializationFormatLineSeparated),
	// 									Encoding: to.Ptr(armstreamanalytics.EncodingUTF8),
	// 								},
	// 							},
	// 						},
	// 				}},
	// 			}
}
Output:

func (*OutputsClient) Update

func (client *OutputsClient) Update(ctx context.Context, resourceGroupName string, jobName string, outputName string, output Output, options *OutputsClientUpdateOptions) (OutputsClientUpdateResponse, error)

Update - Updates an existing output under an existing streaming job. This can be used to partially update (ie. update one or two properties) an output without affecting the rest the job or output definition. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-10-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • jobName - The name of the streaming job.
  • outputName - The name of the output.
  • output - An Output object. The properties specified here will overwrite the corresponding properties in the existing output (ie. Those properties will be updated). Any properties that are set to null here will mean that the corresponding property in the existing output will remain the same and not change as a result of this PATCH operation.
  • options - OutputsClientUpdateOptions contains the optional parameters for the OutputsClient.Update method.
Example (UpdateABlobOutputWithCsvSerialization)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Output_Update_Blob.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewOutputsClient().Update(ctx, "sjrg5023", "sj900", "output1623", armstreamanalytics.Output{
	Properties: &armstreamanalytics.OutputProperties{
		Datasource: &armstreamanalytics.BlobOutputDataSource{
			Type: to.Ptr("Microsoft.Storage/Blob"),
			Properties: &armstreamanalytics.BlobOutputDataSourceProperties{
				Container: to.Ptr("differentContainer"),
			},
		},
		Serialization: &armstreamanalytics.CSVSerialization{
			Type: to.Ptr(armstreamanalytics.EventSerializationTypeCSV),
			Properties: &armstreamanalytics.CSVSerializationProperties{
				Encoding:       to.Ptr(armstreamanalytics.EncodingUTF8),
				FieldDelimiter: to.Ptr("|"),
			},
		},
	},
}, &armstreamanalytics.OutputsClientUpdateOptions{IfMatch: nil})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Output = armstreamanalytics.Output{
// 	Name: to.Ptr("output1623"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/outputs"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg5023/providers/Microsoft.StreamAnalytics/streamingjobs/sj900/outputs/output1623"),
// 	Properties: &armstreamanalytics.OutputProperties{
// 		Datasource: &armstreamanalytics.BlobOutputDataSource{
// 			Type: to.Ptr("Microsoft.Storage/Blob"),
// 			Properties: &armstreamanalytics.BlobOutputDataSourceProperties{
// 				Container: to.Ptr("differentContainer"),
// 				DateFormat: to.Ptr("yyyy/MM/dd"),
// 				PathPattern: to.Ptr("{date}/{time}"),
// 				StorageAccounts: []*armstreamanalytics.StorageAccount{
// 					{
// 						AccountName: to.Ptr("someAccountName"),
// 				}},
// 				TimeFormat: to.Ptr("HH"),
// 			},
// 		},
// 		Serialization: &armstreamanalytics.CSVSerialization{
// 			Type: to.Ptr(armstreamanalytics.EventSerializationTypeCSV),
// 			Properties: &armstreamanalytics.CSVSerializationProperties{
// 				Encoding: to.Ptr(armstreamanalytics.EncodingUTF8),
// 				FieldDelimiter: to.Ptr("|"),
// 			},
// 		},
// 	},
// }
Output:

Example (UpdateADeltaLakeOutput)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Output_Update_DeltaLake.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewOutputsClient().Update(ctx, "sjrg", "sjName", "output1221", armstreamanalytics.Output{
	Properties: &armstreamanalytics.OutputProperties{
		Datasource: &armstreamanalytics.BlobOutputDataSource{
			Type: to.Ptr("Microsoft.Storage/Blob"),
			Properties: &armstreamanalytics.BlobOutputDataSourceProperties{
				Container: to.Ptr("deltaoutput2"),
			},
		},
		Serialization: &armstreamanalytics.DeltaSerialization{
			Type: to.Ptr(armstreamanalytics.EventSerializationTypeDelta),
			Properties: &armstreamanalytics.DeltaSerializationProperties{
				DeltaTablePath: to.Ptr("/folder1/table2"),
				PartitionColumns: []*string{
					to.Ptr("column2")},
			},
		},
	},
}, &armstreamanalytics.OutputsClientUpdateOptions{IfMatch: nil})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Output = armstreamanalytics.Output{
// 	Name: to.Ptr("output1221"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/outputs"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg/providers/Microsoft.StreamAnalytics/streamingjobs/sjName/outputs/output1221"),
// 	Properties: &armstreamanalytics.OutputProperties{
// 		Datasource: &armstreamanalytics.BlobOutputDataSource{
// 			Type: to.Ptr("Microsoft.Storage/Blob"),
// 			Properties: &armstreamanalytics.BlobOutputDataSourceProperties{
// 				Container: to.Ptr("deltaoutput2"),
// 				StorageAccounts: []*armstreamanalytics.StorageAccount{
// 					{
// 						AccountName: to.Ptr("someAccountName"),
// 				}},
// 			},
// 		},
// 		Serialization: &armstreamanalytics.DeltaSerialization{
// 			Type: to.Ptr(armstreamanalytics.EventSerializationTypeDelta),
// 			Properties: &armstreamanalytics.DeltaSerializationProperties{
// 				DeltaTablePath: to.Ptr("/folder1/table2"),
// 				PartitionColumns: []*string{
// 					to.Ptr("column2")},
// 				},
// 			},
// 		},
// 	}
Output:

Example (UpdateADocumentDbOutput)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Output_Update_DocumentDB.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewOutputsClient().Update(ctx, "sjrg7983", "sj2331", "output3022", armstreamanalytics.Output{
	Properties: &armstreamanalytics.OutputProperties{
		Datasource: &armstreamanalytics.DocumentDbOutputDataSource{
			Type: to.Ptr("Microsoft.Storage/DocumentDB"),
			Properties: &armstreamanalytics.DocumentDbOutputDataSourceProperties{
				PartitionKey: to.Ptr("differentPartitionKey"),
			},
		},
	},
}, &armstreamanalytics.OutputsClientUpdateOptions{IfMatch: nil})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Output = armstreamanalytics.Output{
// 	Name: to.Ptr("output3022"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/outputs"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg7983/providers/Microsoft.StreamAnalytics/streamingjobs/sj2331/outputs/output3022"),
// 	Properties: &armstreamanalytics.OutputProperties{
// 		Datasource: &armstreamanalytics.DocumentDbOutputDataSource{
// 			Type: to.Ptr("Microsoft.Storage/DocumentDB"),
// 			Properties: &armstreamanalytics.DocumentDbOutputDataSourceProperties{
// 				AccountID: to.Ptr("someAccountId"),
// 				CollectionNamePattern: to.Ptr("collection"),
// 				Database: to.Ptr("db01"),
// 				DocumentID: to.Ptr("documentId"),
// 				PartitionKey: to.Ptr("differentPartitionKey"),
// 			},
// 		},
// 	},
// }
Output:

Example (UpdateAPowerBiOutput)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Output_Update_PowerBI.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewOutputsClient().Update(ctx, "sjrg7983", "sj2331", "output3022", armstreamanalytics.Output{
	Properties: &armstreamanalytics.OutputProperties{
		Datasource: &armstreamanalytics.PowerBIOutputDataSource{
			Type: to.Ptr("PowerBI"),
			Properties: &armstreamanalytics.PowerBIOutputDataSourceProperties{
				Dataset: to.Ptr("differentDataset"),
			},
		},
	},
}, &armstreamanalytics.OutputsClientUpdateOptions{IfMatch: nil})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Output = armstreamanalytics.Output{
// 	Name: to.Ptr("output3022"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/outputs"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg7983/providers/Microsoft.StreamAnalytics/streamingjobs/sj2331/outputs/output3022"),
// 	Properties: &armstreamanalytics.OutputProperties{
// 		Datasource: &armstreamanalytics.PowerBIOutputDataSource{
// 			Type: to.Ptr("PowerBI"),
// 			Properties: &armstreamanalytics.PowerBIOutputDataSourceProperties{
// 				TokenUserDisplayName: to.Ptr("Bob Smith"),
// 				TokenUserPrincipalName: to.Ptr("bobsmith@contoso.com"),
// 				Dataset: to.Ptr("differentDataset"),
// 				GroupID: to.Ptr("ac40305e-3e8d-43ac-8161-c33799f43e95"),
// 				GroupName: to.Ptr("MyPowerBIGroup"),
// 				Table: to.Ptr("someTable"),
// 			},
// 		},
// 	},
// }
Output:

Example (UpdateAServiceBusQueueOutputWithAvroSerialization)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Output_Update_ServiceBusQueue.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewOutputsClient().Update(ctx, "sjrg3410", "sj5095", "output3456", armstreamanalytics.Output{
	Properties: &armstreamanalytics.OutputProperties{
		Datasource: &armstreamanalytics.ServiceBusQueueOutputDataSource{
			Type: to.Ptr("Microsoft.ServiceBus/Queue"),
			Properties: &armstreamanalytics.ServiceBusQueueOutputDataSourceProperties{
				QueueName: to.Ptr("differentQueueName"),
			},
		},
		Serialization: &armstreamanalytics.JSONSerialization{
			Type: to.Ptr(armstreamanalytics.EventSerializationTypeJSON),
			Properties: &armstreamanalytics.JSONSerializationProperties{
				Format:   to.Ptr(armstreamanalytics.JSONOutputSerializationFormatLineSeparated),
				Encoding: to.Ptr(armstreamanalytics.EncodingUTF8),
			},
		},
	},
}, &armstreamanalytics.OutputsClientUpdateOptions{IfMatch: nil})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Output = armstreamanalytics.Output{
// 	Name: to.Ptr("output3456"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/outputs"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg3410/providers/Microsoft.StreamAnalytics/streamingjobs/sj5095/outputs/output3456"),
// 	Properties: &armstreamanalytics.OutputProperties{
// 		Datasource: &armstreamanalytics.ServiceBusQueueOutputDataSource{
// 			Type: to.Ptr("Microsoft.ServiceBus/Queue"),
// 			Properties: &armstreamanalytics.ServiceBusQueueOutputDataSourceProperties{
// 				ServiceBusNamespace: to.Ptr("sdktest"),
// 				SharedAccessPolicyName: to.Ptr("RootManageSharedAccessKey"),
// 				PropertyColumns: []*string{
// 					to.Ptr("column1"),
// 					to.Ptr("column2")},
// 					QueueName: to.Ptr("differentQueueName"),
// 				},
// 			},
// 			Serialization: &armstreamanalytics.JSONSerialization{
// 				Type: to.Ptr(armstreamanalytics.EventSerializationTypeJSON),
// 				Properties: &armstreamanalytics.JSONSerializationProperties{
// 					Format: to.Ptr(armstreamanalytics.JSONOutputSerializationFormatLineSeparated),
// 					Encoding: to.Ptr(armstreamanalytics.EncodingUTF8),
// 				},
// 			},
// 		},
// 	}
Output:

Example (UpdateAServiceBusTopicOutputWithCsvSerialization)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Output_Update_ServiceBusTopic.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewOutputsClient().Update(ctx, "sjrg6450", "sj7094", "output7886", armstreamanalytics.Output{
	Properties: &armstreamanalytics.OutputProperties{
		Datasource: &armstreamanalytics.ServiceBusTopicOutputDataSource{
			Type: to.Ptr("Microsoft.ServiceBus/Topic"),
			Properties: &armstreamanalytics.ServiceBusTopicOutputDataSourceProperties{
				TopicName: to.Ptr("differentTopicName"),
			},
		},
		Serialization: &armstreamanalytics.CSVSerialization{
			Type: to.Ptr(armstreamanalytics.EventSerializationTypeCSV),
			Properties: &armstreamanalytics.CSVSerializationProperties{
				Encoding:       to.Ptr(armstreamanalytics.EncodingUTF8),
				FieldDelimiter: to.Ptr("|"),
			},
		},
	},
}, &armstreamanalytics.OutputsClientUpdateOptions{IfMatch: nil})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Output = armstreamanalytics.Output{
// 	Name: to.Ptr("output7886"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/outputs"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg6450/providers/Microsoft.StreamAnalytics/streamingjobs/sj7094/outputs/output7886"),
// 	Properties: &armstreamanalytics.OutputProperties{
// 		Datasource: &armstreamanalytics.ServiceBusTopicOutputDataSource{
// 			Type: to.Ptr("Microsoft.ServiceBus/Topic"),
// 			Properties: &armstreamanalytics.ServiceBusTopicOutputDataSourceProperties{
// 				ServiceBusNamespace: to.Ptr("sdktest"),
// 				SharedAccessPolicyName: to.Ptr("RootManageSharedAccessKey"),
// 				PropertyColumns: []*string{
// 					to.Ptr("column1"),
// 					to.Ptr("column2")},
// 					TopicName: to.Ptr("differentTopicName"),
// 				},
// 			},
// 			Serialization: &armstreamanalytics.CSVSerialization{
// 				Type: to.Ptr(armstreamanalytics.EventSerializationTypeCSV),
// 				Properties: &armstreamanalytics.CSVSerializationProperties{
// 					Encoding: to.Ptr(armstreamanalytics.EncodingUTF8),
// 					FieldDelimiter: to.Ptr("|"),
// 				},
// 			},
// 		},
// 	}
Output:

Example (UpdateAnAzureDataLakeStoreOutputWithJsonSerialization)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Output_Update_AzureDataLakeStore.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewOutputsClient().Update(ctx, "sjrg6912", "sj3310", "output5195", armstreamanalytics.Output{
	Properties: &armstreamanalytics.OutputProperties{
		Datasource: &armstreamanalytics.AzureDataLakeStoreOutputDataSource{
			Type: to.Ptr("Microsoft.DataLake/Accounts"),
			Properties: &armstreamanalytics.AzureDataLakeStoreOutputDataSourceProperties{
				AccountName: to.Ptr("differentaccount"),
			},
		},
		Serialization: &armstreamanalytics.JSONSerialization{
			Type: to.Ptr(armstreamanalytics.EventSerializationTypeJSON),
			Properties: &armstreamanalytics.JSONSerializationProperties{
				Format:   to.Ptr(armstreamanalytics.JSONOutputSerializationFormatLineSeparated),
				Encoding: to.Ptr(armstreamanalytics.EncodingUTF8),
			},
		},
	},
}, &armstreamanalytics.OutputsClientUpdateOptions{IfMatch: nil})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Output = armstreamanalytics.Output{
// 	Name: to.Ptr("output5195"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/outputs"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg6912/providers/Microsoft.StreamAnalytics/streamingjobs/sj3310/outputs/output5195"),
// 	Properties: &armstreamanalytics.OutputProperties{
// 		Datasource: &armstreamanalytics.AzureDataLakeStoreOutputDataSource{
// 			Type: to.Ptr("Microsoft.DataLake/Accounts"),
// 			Properties: &armstreamanalytics.AzureDataLakeStoreOutputDataSourceProperties{
// 				TokenUserDisplayName: to.Ptr("Bob Smith"),
// 				TokenUserPrincipalName: to.Ptr("bobsmith@contoso.com"),
// 				AccountName: to.Ptr("differentaccount"),
// 				DateFormat: to.Ptr("yyyy/MM/dd"),
// 				FilePathPrefix: to.Ptr("{date}/{time}"),
// 				TenantID: to.Ptr("cea4e98b-c798-49e7-8c40-4a2b3beb47dd"),
// 				TimeFormat: to.Ptr("HH"),
// 			},
// 		},
// 		Serialization: &armstreamanalytics.JSONSerialization{
// 			Type: to.Ptr(armstreamanalytics.EventSerializationTypeJSON),
// 			Properties: &armstreamanalytics.JSONSerializationProperties{
// 				Format: to.Ptr(armstreamanalytics.JSONOutputSerializationFormatLineSeparated),
// 				Encoding: to.Ptr(armstreamanalytics.EncodingUTF8),
// 			},
// 		},
// 	},
// }
Output:

Example (UpdateAnAzureDataWarehouseOutput)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Output_Update_DataWarehouse.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewOutputsClient().Update(ctx, "sjrg", "sjName", "dwOutput", armstreamanalytics.Output{
	Properties: &armstreamanalytics.OutputProperties{
		Datasource: &armstreamanalytics.AzureSQLDatabaseOutputDataSource{
			Type: to.Ptr("Microsoft.Sql/Server/Database"),
			Properties: &armstreamanalytics.AzureSQLDatabaseOutputDataSourceProperties{
				Table: to.Ptr("differentTable"),
			},
		},
	},
}, &armstreamanalytics.OutputsClientUpdateOptions{IfMatch: nil})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Output = armstreamanalytics.Output{
// 	Name: to.Ptr("dwOutput"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/outputs"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg/providers/Microsoft.StreamAnalytics/streamingjobs/sjName/outputs/dwOutput"),
// 	Properties: &armstreamanalytics.OutputProperties{
// 		Datasource: &armstreamanalytics.AzureSynapseOutputDataSource{
// 			Type: to.Ptr("Microsoft.Sql/Server/DataWarehouse"),
// 			Properties: &armstreamanalytics.AzureSynapseOutputDataSourceProperties{
// 				Database: to.Ptr("zhayaSQLpool"),
// 				Server: to.Ptr("asatestserver"),
// 				Table: to.Ptr("differentTable"),
// 				User: to.Ptr("tolladmin"),
// 			},
// 		},
// 	},
// }
Output:

Example (UpdateAnAzureFunctionOutput)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Output_Update_AzureFunction.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewOutputsClient().Update(ctx, "sjrg", "sjName", "azureFunction1", armstreamanalytics.Output{
	Properties: &armstreamanalytics.OutputProperties{
		Datasource: &armstreamanalytics.AzureFunctionOutputDataSource{
			Type: to.Ptr("Microsoft.AzureFunction"),
			Properties: &armstreamanalytics.AzureFunctionOutputDataSourceProperties{
				FunctionName: to.Ptr("differentFunctionName"),
			},
		},
	},
}, &armstreamanalytics.OutputsClientUpdateOptions{IfMatch: nil})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Output = armstreamanalytics.Output{
// 	Name: to.Ptr("azureFunction1"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/outputs"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg/providers/Microsoft.StreamAnalytics/streamingjobs/sjName/outputs/azureFunction1"),
// 	Properties: &armstreamanalytics.OutputProperties{
// 		Datasource: &armstreamanalytics.AzureFunctionOutputDataSource{
// 			Type: to.Ptr("Microsoft.AzureFunction"),
// 			Properties: &armstreamanalytics.AzureFunctionOutputDataSourceProperties{
// 				FunctionAppName: to.Ptr("functionappforasaautomation"),
// 				FunctionName: to.Ptr("differentFunctionName"),
// 				MaxBatchCount: to.Ptr[float32](100),
// 				MaxBatchSize: to.Ptr[float32](256),
// 			},
// 		},
// 	},
// }
Output:

Example (UpdateAnAzureSqlDatabaseOutput)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Output_Update_AzureSQL.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewOutputsClient().Update(ctx, "sjrg2157", "sj6458", "output1755", armstreamanalytics.Output{
	Properties: &armstreamanalytics.OutputProperties{
		Datasource: &armstreamanalytics.AzureSQLDatabaseOutputDataSource{
			Type: to.Ptr("Microsoft.Sql/Server/Database"),
			Properties: &armstreamanalytics.AzureSQLDatabaseOutputDataSourceProperties{
				Table: to.Ptr("differentTable"),
			},
		},
	},
}, &armstreamanalytics.OutputsClientUpdateOptions{IfMatch: nil})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Output = armstreamanalytics.Output{
// 	Name: to.Ptr("output1755"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/outputs"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg2157/providers/Microsoft.StreamAnalytics/streamingjobs/sj6458/outputs/output1755"),
// 	Properties: &armstreamanalytics.OutputProperties{
// 		Datasource: &armstreamanalytics.AzureSQLDatabaseOutputDataSource{
// 			Type: to.Ptr("Microsoft.Sql/Server/Database"),
// 			Properties: &armstreamanalytics.AzureSQLDatabaseOutputDataSourceProperties{
// 				Database: to.Ptr("someDatabase"),
// 				Server: to.Ptr("someServer"),
// 				Table: to.Ptr("differentTable"),
// 				User: to.Ptr("someUser"),
// 			},
// 		},
// 	},
// }
Output:

Example (UpdateAnAzureTableOutput)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Output_Update_AzureTable.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewOutputsClient().Update(ctx, "sjrg5176", "sj2790", "output958", armstreamanalytics.Output{
	Properties: &armstreamanalytics.OutputProperties{
		Datasource: &armstreamanalytics.AzureTableOutputDataSource{
			Type: to.Ptr("Microsoft.Storage/Table"),
			Properties: &armstreamanalytics.AzureTableOutputDataSourceProperties{
				PartitionKey: to.Ptr("differentPartitionKey"),
			},
		},
	},
}, &armstreamanalytics.OutputsClientUpdateOptions{IfMatch: nil})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Output = armstreamanalytics.Output{
// 	Name: to.Ptr("output958"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/outputs"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg5176/providers/Microsoft.StreamAnalytics/streamingjobs/sj2790/outputs/output958"),
// 	Properties: &armstreamanalytics.OutputProperties{
// 		Datasource: &armstreamanalytics.AzureTableOutputDataSource{
// 			Type: to.Ptr("Microsoft.Storage/Table"),
// 			Properties: &armstreamanalytics.AzureTableOutputDataSourceProperties{
// 				AccountName: to.Ptr("someAccountName"),
// 				BatchSize: to.Ptr[int32](25),
// 				ColumnsToRemove: []*string{
// 					to.Ptr("column1"),
// 					to.Ptr("column2")},
// 					PartitionKey: to.Ptr("differentPartitionKey"),
// 					RowKey: to.Ptr("rowKey"),
// 					Table: to.Ptr("samples"),
// 				},
// 			},
// 		},
// 	}
Output:

Example (UpdateAnEventHubOutputWithJsonSerialization)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Output_Update_EventHub.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewOutputsClient().Update(ctx, "sjrg6912", "sj3310", "output5195", armstreamanalytics.Output{
	Properties: &armstreamanalytics.OutputProperties{
		Datasource: &armstreamanalytics.EventHubOutputDataSource{
			Type: to.Ptr("Microsoft.ServiceBus/EventHub"),
			Properties: &armstreamanalytics.EventHubOutputDataSourceProperties{
				PartitionKey: to.Ptr("differentPartitionKey"),
			},
		},
		Serialization: &armstreamanalytics.JSONSerialization{
			Type: to.Ptr(armstreamanalytics.EventSerializationTypeJSON),
			Properties: &armstreamanalytics.JSONSerializationProperties{
				Format:   to.Ptr(armstreamanalytics.JSONOutputSerializationFormatLineSeparated),
				Encoding: to.Ptr(armstreamanalytics.EncodingUTF8),
			},
		},
	},
}, &armstreamanalytics.OutputsClientUpdateOptions{IfMatch: nil})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Output = armstreamanalytics.Output{
// 	Name: to.Ptr("output5195"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/outputs"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg6912/providers/Microsoft.StreamAnalytics/streamingjobs/sj3310/outputs/output5195"),
// 	Properties: &armstreamanalytics.OutputProperties{
// 		Datasource: &armstreamanalytics.EventHubOutputDataSource{
// 			Type: to.Ptr("Microsoft.ServiceBus/EventHub"),
// 			Properties: &armstreamanalytics.EventHubOutputDataSourceProperties{
// 				ServiceBusNamespace: to.Ptr("sdktest"),
// 				SharedAccessPolicyName: to.Ptr("RootManageSharedAccessKey"),
// 				EventHubName: to.Ptr("sdkeventhub"),
// 				PartitionKey: to.Ptr("differentPartitionKey"),
// 			},
// 		},
// 		Serialization: &armstreamanalytics.JSONSerialization{
// 			Type: to.Ptr(armstreamanalytics.EventSerializationTypeJSON),
// 			Properties: &armstreamanalytics.JSONSerializationProperties{
// 				Format: to.Ptr(armstreamanalytics.JSONOutputSerializationFormatLineSeparated),
// 				Encoding: to.Ptr(armstreamanalytics.EncodingUTF8),
// 			},
// 		},
// 	},
// }
Output:

type OutputsClientBeginTestOptions

type OutputsClientBeginTestOptions struct {
	// If the output specified does not already exist, this parameter must contain the full output definition intended to be tested.
	// If the output specified already exists, this parameter can be left null to
	// test the existing output as is or if specified, the properties specified will overwrite the corresponding properties in
	// the existing output (exactly like a PATCH operation) and the resulting output
	// will be tested.
	Output *Output

	// Resumes the LRO from the provided token.
	ResumeToken string
}

OutputsClientBeginTestOptions contains the optional parameters for the OutputsClient.BeginTest method.

type OutputsClientCreateOrReplaceOptions

type OutputsClientCreateOrReplaceOptions struct {
	// The ETag of the output. Omit this value to always overwrite the current output. Specify the last-seen ETag value to prevent
	// accidentally overwriting concurrent changes.
	IfMatch *string

	// Set to '*' to allow a new output to be created, but to prevent updating an existing output. Other values will result in
	// a 412 Pre-condition Failed response.
	IfNoneMatch *string
}

OutputsClientCreateOrReplaceOptions contains the optional parameters for the OutputsClient.CreateOrReplace method.

type OutputsClientCreateOrReplaceResponse

type OutputsClientCreateOrReplaceResponse struct {
	// An output object, containing all information associated with the named output. All outputs are contained under a streaming
	// job.
	Output

	// ETag contains the information returned from the ETag header response.
	ETag *string
}

OutputsClientCreateOrReplaceResponse contains the response from method OutputsClient.CreateOrReplace.

type OutputsClientDeleteOptions

type OutputsClientDeleteOptions struct {
}

OutputsClientDeleteOptions contains the optional parameters for the OutputsClient.Delete method.

type OutputsClientDeleteResponse

type OutputsClientDeleteResponse struct {
}

OutputsClientDeleteResponse contains the response from method OutputsClient.Delete.

type OutputsClientGetOptions

type OutputsClientGetOptions struct {
}

OutputsClientGetOptions contains the optional parameters for the OutputsClient.Get method.

type OutputsClientGetResponse

type OutputsClientGetResponse struct {
	// An output object, containing all information associated with the named output. All outputs are contained under a streaming
	// job.
	Output

	// ETag contains the information returned from the ETag header response.
	ETag *string
}

OutputsClientGetResponse contains the response from method OutputsClient.Get.

type OutputsClientListByStreamingJobOptions

type OutputsClientListByStreamingJobOptions struct {
	// The $select OData query parameter. This is a comma-separated list of structural properties to include in the response,
	// or "" to include all properties. By default, all properties are returned except
	// diagnostics. Currently only accepts ” as a valid value.
	Select *string
}

OutputsClientListByStreamingJobOptions contains the optional parameters for the OutputsClient.NewListByStreamingJobPager method.

type OutputsClientListByStreamingJobResponse

type OutputsClientListByStreamingJobResponse struct {
	// Object containing a list of outputs under a streaming job.
	OutputListResult
}

OutputsClientListByStreamingJobResponse contains the response from method OutputsClient.NewListByStreamingJobPager.

type OutputsClientTestResponse

type OutputsClientTestResponse struct {
	// Describes the status of the test operation along with error information, if applicable.
	ResourceTestStatus
}

OutputsClientTestResponse contains the response from method OutputsClient.BeginTest.

type OutputsClientUpdateOptions

type OutputsClientUpdateOptions struct {
	// The ETag of the output. Omit this value to always overwrite the current output. Specify the last-seen ETag value to prevent
	// accidentally overwriting concurrent changes.
	IfMatch *string
}

OutputsClientUpdateOptions contains the optional parameters for the OutputsClient.Update method.

type OutputsClientUpdateResponse

type OutputsClientUpdateResponse struct {
	// An output object, containing all information associated with the named output. All outputs are contained under a streaming
	// job.
	Output

	// ETag contains the information returned from the ETag header response.
	ETag *string
}

OutputsClientUpdateResponse contains the response from method OutputsClient.Update.

type ParquetSerialization

type ParquetSerialization struct {
	// REQUIRED; Indicates the type of serialization that the input or output uses. Required on PUT (CreateOrReplace) requests.
	Type *EventSerializationType

	// The properties that are associated with the Parquet serialization type. Required on PUT (CreateOrReplace) requests.
	Properties any
}

ParquetSerialization - Describes how data from an input is serialized or how data is serialized when written to an output in Parquet format.

func (*ParquetSerialization) GetSerialization

func (p *ParquetSerialization) GetSerialization() *Serialization

GetSerialization implements the SerializationClassification interface for type ParquetSerialization.

func (ParquetSerialization) MarshalJSON

func (p ParquetSerialization) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ParquetSerialization.

func (*ParquetSerialization) UnmarshalJSON

func (p *ParquetSerialization) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ParquetSerialization.

type PostgreSQLDataSourceProperties

type PostgreSQLDataSourceProperties struct {
	// Authentication Mode.
	AuthenticationMode *AuthenticationMode

	// The name of the Azure SQL database. Required on PUT (CreateOrReplace) requests.
	Database *string

	// Max Writer count, currently only 1(single writer) and 0(based on query partition) are available. Optional on PUT requests.
	MaxWriterCount *float32

	// The password that will be used to connect to the Azure SQL database. Required on PUT (CreateOrReplace) requests.
	Password *string

	// The name of the SQL server containing the Azure SQL database. Required on PUT (CreateOrReplace) requests.
	Server *string

	// The name of the table in the Azure SQL database. Required on PUT (CreateOrReplace) requests.
	Table *string

	// The user name that will be used to connect to the Azure SQL database. Required on PUT (CreateOrReplace) requests.
	User *string
}

PostgreSQLDataSourceProperties - The properties that are associated with an Azure SQL database data source.

func (PostgreSQLDataSourceProperties) MarshalJSON

func (p PostgreSQLDataSourceProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type PostgreSQLDataSourceProperties.

func (*PostgreSQLDataSourceProperties) UnmarshalJSON

func (p *PostgreSQLDataSourceProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type PostgreSQLDataSourceProperties.

type PostgreSQLOutputDataSource

type PostgreSQLOutputDataSource struct {
	// REQUIRED; Indicates the type of data source output will be written to. Required on PUT (CreateOrReplace) requests.
	Type *string

	// The properties that are associated with a PostgreSQL output data source. Required on PUT (CreateOrReplace) requests.
	Properties *PostgreSQLOutputDataSourceProperties
}

PostgreSQLOutputDataSource - Describes a PostgreSQL output data source.

func (*PostgreSQLOutputDataSource) GetOutputDataSource

func (p *PostgreSQLOutputDataSource) GetOutputDataSource() *OutputDataSource

GetOutputDataSource implements the OutputDataSourceClassification interface for type PostgreSQLOutputDataSource.

func (PostgreSQLOutputDataSource) MarshalJSON

func (p PostgreSQLOutputDataSource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type PostgreSQLOutputDataSource.

func (*PostgreSQLOutputDataSource) UnmarshalJSON

func (p *PostgreSQLOutputDataSource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type PostgreSQLOutputDataSource.

type PostgreSQLOutputDataSourceProperties

type PostgreSQLOutputDataSourceProperties struct {
	// Authentication Mode.
	AuthenticationMode *AuthenticationMode

	// The name of the Azure SQL database. Required on PUT (CreateOrReplace) requests.
	Database *string

	// Max Writer count, currently only 1(single writer) and 0(based on query partition) are available. Optional on PUT requests.
	MaxWriterCount *float32

	// The password that will be used to connect to the Azure SQL database. Required on PUT (CreateOrReplace) requests.
	Password *string

	// The name of the SQL server containing the Azure SQL database. Required on PUT (CreateOrReplace) requests.
	Server *string

	// The name of the table in the Azure SQL database. Required on PUT (CreateOrReplace) requests.
	Table *string

	// The user name that will be used to connect to the Azure SQL database. Required on PUT (CreateOrReplace) requests.
	User *string
}

PostgreSQLOutputDataSourceProperties - The properties that are associated with a PostgreSQL output.

func (PostgreSQLOutputDataSourceProperties) MarshalJSON

func (p PostgreSQLOutputDataSourceProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type PostgreSQLOutputDataSourceProperties.

func (*PostgreSQLOutputDataSourceProperties) UnmarshalJSON

func (p *PostgreSQLOutputDataSourceProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type PostgreSQLOutputDataSourceProperties.

type PowerBIOutputDataSource

type PowerBIOutputDataSource struct {
	// REQUIRED; Indicates the type of data source output will be written to. Required on PUT (CreateOrReplace) requests.
	Type *string

	// The properties that are associated with a Power BI output. Required on PUT (CreateOrReplace) requests.
	Properties *PowerBIOutputDataSourceProperties
}

PowerBIOutputDataSource - Describes a Power BI output data source.

func (*PowerBIOutputDataSource) GetOutputDataSource

func (p *PowerBIOutputDataSource) GetOutputDataSource() *OutputDataSource

GetOutputDataSource implements the OutputDataSourceClassification interface for type PowerBIOutputDataSource.

func (PowerBIOutputDataSource) MarshalJSON

func (p PowerBIOutputDataSource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type PowerBIOutputDataSource.

func (*PowerBIOutputDataSource) UnmarshalJSON

func (p *PowerBIOutputDataSource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type PowerBIOutputDataSource.

type PowerBIOutputDataSourceProperties

type PowerBIOutputDataSourceProperties struct {
	// Authentication Mode.
	AuthenticationMode *AuthenticationMode

	// The name of the Power BI dataset. Required on PUT (CreateOrReplace) requests.
	Dataset *string

	// The ID of the Power BI group.
	GroupID *string

	// The name of the Power BI group. Use this property to help remember which specific Power BI group id was used.
	GroupName *string

	// A refresh token that can be used to obtain a valid access token that can then be used to authenticate with the data source.
	// A valid refresh token is currently only obtainable via the Azure Portal. It
	// is recommended to put a dummy string value here when creating the data source and then going to the Azure Portal to authenticate
	// the data source which will update this property with a valid refresh
	// token. Required on PUT (CreateOrReplace) requests.
	RefreshToken *string

	// The name of the Power BI table under the specified dataset. Required on PUT (CreateOrReplace) requests.
	Table *string

	// The user display name of the user that was used to obtain the refresh token. Use this property to help remember which user
	// was used to obtain the refresh token.
	TokenUserDisplayName *string

	// The user principal name (UPN) of the user that was used to obtain the refresh token. Use this property to help remember
	// which user was used to obtain the refresh token.
	TokenUserPrincipalName *string
}

PowerBIOutputDataSourceProperties - The properties that are associated with a Power BI output.

func (PowerBIOutputDataSourceProperties) MarshalJSON

func (p PowerBIOutputDataSourceProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type PowerBIOutputDataSourceProperties.

func (*PowerBIOutputDataSourceProperties) UnmarshalJSON

func (p *PowerBIOutputDataSourceProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type PowerBIOutputDataSourceProperties.

type PrivateEndpoint

type PrivateEndpoint struct {
	// The properties associated with a private endpoint.
	Properties *PrivateEndpointProperties

	// READ-ONLY; Unique opaque string (generally a GUID) that represents the metadata state of the resource (private endpoint)
	// and changes whenever the resource is updated. Required on PUT (CreateOrUpdate) requests.
	Etag *string

	// READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
	Type *string
}

PrivateEndpoint - Complete information about the private endpoint.

func (PrivateEndpoint) MarshalJSON

func (p PrivateEndpoint) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type PrivateEndpoint.

func (*PrivateEndpoint) UnmarshalJSON

func (p *PrivateEndpoint) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type PrivateEndpoint.

type PrivateEndpointListResult

type PrivateEndpointListResult struct {
	// READ-ONLY; The URL to fetch the next set of private endpoints.
	NextLink *string

	// READ-ONLY; A list of private endpoints.
	Value []*PrivateEndpoint
}

PrivateEndpointListResult - A list of private endpoints.

func (PrivateEndpointListResult) MarshalJSON

func (p PrivateEndpointListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type PrivateEndpointListResult.

func (*PrivateEndpointListResult) UnmarshalJSON

func (p *PrivateEndpointListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type PrivateEndpointListResult.

type PrivateEndpointProperties

type PrivateEndpointProperties struct {
	// A list of connections to the remote resource. Immutable after it is set.
	ManualPrivateLinkServiceConnections []*PrivateLinkServiceConnection

	// READ-ONLY; The date when this private endpoint was created.
	CreatedDate *string
}

PrivateEndpointProperties - The properties associated with a private endpoint.

func (PrivateEndpointProperties) MarshalJSON

func (p PrivateEndpointProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type PrivateEndpointProperties.

func (*PrivateEndpointProperties) UnmarshalJSON

func (p *PrivateEndpointProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type PrivateEndpointProperties.

type PrivateEndpointsClient

type PrivateEndpointsClient struct {
	// contains filtered or unexported fields
}

PrivateEndpointsClient contains the methods for the PrivateEndpoints group. Don't use this type directly, use NewPrivateEndpointsClient() instead.

func NewPrivateEndpointsClient

func NewPrivateEndpointsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateEndpointsClient, error)

NewPrivateEndpointsClient creates a new instance of PrivateEndpointsClient with the specified values.

  • subscriptionID - The ID of the target subscription.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*PrivateEndpointsClient) BeginDelete

func (client *PrivateEndpointsClient) BeginDelete(ctx context.Context, resourceGroupName string, clusterName string, privateEndpointName string, options *PrivateEndpointsClientBeginDeleteOptions) (*runtime.Poller[PrivateEndpointsClientDeleteResponse], error)

BeginDelete - Delete the specified private endpoint. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2020-03-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • clusterName - The name of the cluster.
  • privateEndpointName - The name of the private endpoint.
  • options - PrivateEndpointsClientBeginDeleteOptions contains the optional parameters for the PrivateEndpointsClient.BeginDelete method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2020-03-01-preview/examples/PrivateEndpoint_Delete.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewPrivateEndpointsClient().BeginDelete(ctx, "sjrg", "testcluster", "testpe", nil)
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
_, err = poller.PollUntilDone(ctx, nil)
if err != nil {
	log.Fatalf("failed to pull the result: %v", err)
}
Output:

func (*PrivateEndpointsClient) CreateOrUpdate

func (client *PrivateEndpointsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, clusterName string, privateEndpointName string, privateEndpoint PrivateEndpoint, options *PrivateEndpointsClientCreateOrUpdateOptions) (PrivateEndpointsClientCreateOrUpdateResponse, error)

CreateOrUpdate - Creates a Stream Analytics Private Endpoint or replaces an already existing Private Endpoint. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2020-03-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • clusterName - The name of the cluster.
  • privateEndpointName - The name of the private endpoint.
  • privateEndpoint - The definition of the private endpoint that will be used to create a new cluster or replace the existing one.
  • options - PrivateEndpointsClientCreateOrUpdateOptions contains the optional parameters for the PrivateEndpointsClient.CreateOrUpdate method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2020-03-01-preview/examples/PrivateEndpoint_Create.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewPrivateEndpointsClient().CreateOrUpdate(ctx, "sjrg", "testcluster", "testpe", armstreamanalytics.PrivateEndpoint{
	Properties: &armstreamanalytics.PrivateEndpointProperties{
		ManualPrivateLinkServiceConnections: []*armstreamanalytics.PrivateLinkServiceConnection{
			{
				Properties: &armstreamanalytics.PrivateLinkServiceConnectionProperties{
					GroupIDs: []*string{
						to.Ptr("groupIdFromResource")},
					PrivateLinkServiceID: to.Ptr("/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateLinkServices/testPls"),
				},
			}},
	},
}, &armstreamanalytics.PrivateEndpointsClientCreateOrUpdateOptions{IfMatch: nil,
	IfNoneMatch: nil,
})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.PrivateEndpoint = armstreamanalytics.PrivateEndpoint{
// 	Name: to.Ptr("An Example Private Endpoint"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/clusters/privateEndpoints"),
// 	ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/sjrg/providers/Microsoft.StreamAnalytics/clusters/testcluster/privateEndpoints/AnExamplePrivateEndpoint"),
// 	Etag: to.Ptr("F86B9B70-D5B1-451D-AFC8-0B42D4729B8C"),
// 	Properties: &armstreamanalytics.PrivateEndpointProperties{
// 		CreatedDate: to.Ptr("2020-03-01T01:00Z"),
// 		ManualPrivateLinkServiceConnections: []*armstreamanalytics.PrivateLinkServiceConnection{
// 			{
// 				Properties: &armstreamanalytics.PrivateLinkServiceConnectionProperties{
// 					GroupIDs: []*string{
// 						to.Ptr("groupIdFromResource")},
// 						PrivateLinkServiceConnectionState: &armstreamanalytics.PrivateLinkConnectionState{
// 							Description: to.Ptr("Awaiting approval"),
// 							ActionsRequired: to.Ptr("None"),
// 							Status: to.Ptr("Pending"),
// 						},
// 						PrivateLinkServiceID: to.Ptr("/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateLinkServices/testPls"),
// 						RequestMessage: to.Ptr("Please approve my connection."),
// 					},
// 			}},
// 		},
// 	}
Output:

func (*PrivateEndpointsClient) Get

func (client *PrivateEndpointsClient) Get(ctx context.Context, resourceGroupName string, clusterName string, privateEndpointName string, options *PrivateEndpointsClientGetOptions) (PrivateEndpointsClientGetResponse, error)

Get - Gets information about the specified Private Endpoint. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2020-03-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • clusterName - The name of the cluster.
  • privateEndpointName - The name of the private endpoint.
  • options - PrivateEndpointsClientGetOptions contains the optional parameters for the PrivateEndpointsClient.Get method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2020-03-01-preview/examples/PrivateEndpoint_Get.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewPrivateEndpointsClient().Get(ctx, "sjrg", "testcluster", "testpe", nil)
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.PrivateEndpoint = armstreamanalytics.PrivateEndpoint{
// 	Name: to.Ptr("An Example Private Endpoint"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/clusters/privateEndpoints"),
// 	ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/sjrg/providers/Microsoft.StreamAnalytics/clusters/testcluster/privateEndpoints/AnExamplePrivateEndpoint"),
// 	Etag: to.Ptr("F86B9B70-D5B1-451D-AFC8-0B42D4729B8C"),
// 	Properties: &armstreamanalytics.PrivateEndpointProperties{
// 		CreatedDate: to.Ptr("2020-03-01T01:00Z"),
// 		ManualPrivateLinkServiceConnections: []*armstreamanalytics.PrivateLinkServiceConnection{
// 			{
// 				Properties: &armstreamanalytics.PrivateLinkServiceConnectionProperties{
// 					GroupIDs: []*string{
// 						to.Ptr("groupIdFromResource")},
// 						PrivateLinkServiceConnectionState: &armstreamanalytics.PrivateLinkConnectionState{
// 							Description: to.Ptr("Awaiting approval"),
// 							ActionsRequired: to.Ptr("None"),
// 							Status: to.Ptr("Pending"),
// 						},
// 						PrivateLinkServiceID: to.Ptr("/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateLinkServices/testPls"),
// 						RequestMessage: to.Ptr("This connection request originated from Azure Stream Analytics cluster named \"testcluster\". Please approve this request to allow any Stream Analytics job running on that cluster to access this resource."),
// 					},
// 			}},
// 		},
// 	}
Output:

func (*PrivateEndpointsClient) NewListByClusterPager

func (client *PrivateEndpointsClient) NewListByClusterPager(resourceGroupName string, clusterName string, options *PrivateEndpointsClientListByClusterOptions) *runtime.Pager[PrivateEndpointsClientListByClusterResponse]

NewListByClusterPager - Lists the private endpoints in the cluster.

Generated from API version 2020-03-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • clusterName - The name of the cluster.
  • options - PrivateEndpointsClientListByClusterOptions contains the optional parameters for the PrivateEndpointsClient.NewListByClusterPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2020-03-01-preview/examples/PrivateEndpoint_ListByCluster.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewPrivateEndpointsClient().NewListByClusterPager("sjrg", "testcluster", nil)
for pager.More() {
	page, err := pager.NextPage(ctx)
	if err != nil {
		log.Fatalf("failed to advance page: %v", err)
	}
	for _, v := range page.Value {
		// You could use page here. We use blank identifier for just demo purposes.
		_ = v
	}
	// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// page.PrivateEndpointListResult = armstreamanalytics.PrivateEndpointListResult{
	// 	Value: []*armstreamanalytics.PrivateEndpoint{
	// 		{
	// 			Name: to.Ptr("An Example Private Endpoint"),
	// 			Type: to.Ptr("Microsoft.StreamAnalytics/clusters/privateEndpoints"),
	// 			ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/sjrg/providers/Microsoft.StreamAnalytics/clusters/testcluster/privateEndpoints/AnExamplePrivateEndpoint"),
	// 			Etag: to.Ptr("F86B9B70-D5B1-451D-AFC8-0B42D4729B8C"),
	// 			Properties: &armstreamanalytics.PrivateEndpointProperties{
	// 				CreatedDate: to.Ptr("2020-03-01T01:00Z"),
	// 				ManualPrivateLinkServiceConnections: []*armstreamanalytics.PrivateLinkServiceConnection{
	// 					{
	// 						Properties: &armstreamanalytics.PrivateLinkServiceConnectionProperties{
	// 							GroupIDs: []*string{
	// 								to.Ptr("groupIdFromResource")},
	// 								PrivateLinkServiceConnectionState: &armstreamanalytics.PrivateLinkConnectionState{
	// 									Description: to.Ptr("Awaiting approval"),
	// 									ActionsRequired: to.Ptr("None"),
	// 									Status: to.Ptr("Pending"),
	// 								},
	// 								PrivateLinkServiceID: to.Ptr("/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateLinkServices/testPls"),
	// 								RequestMessage: to.Ptr("Please approve my connection."),
	// 							},
	// 					}},
	// 				},
	// 			},
	// 			{
	// 				Name: to.Ptr("A Different Private Endpoint"),
	// 				Type: to.Ptr("Microsoft.StreamAnalytics/clusters/privateEndpoints"),
	// 				ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/sjrg/providers/Microsoft.StreamAnalytics/clusters/testcluster/privateEndpoints/ADifferentPrivateEndpoint"),
	// 				Etag: to.Ptr("G97C0C81-D5B1-451D-AFC8-0B42D4729B8C"),
	// 				Properties: &armstreamanalytics.PrivateEndpointProperties{
	// 					CreatedDate: to.Ptr("2020-03-01T01:00Z"),
	// 					ManualPrivateLinkServiceConnections: []*armstreamanalytics.PrivateLinkServiceConnection{
	// 						{
	// 							Properties: &armstreamanalytics.PrivateLinkServiceConnectionProperties{
	// 								GroupIDs: []*string{
	// 									to.Ptr("groupIdFromResource")},
	// 									PrivateLinkServiceConnectionState: &armstreamanalytics.PrivateLinkConnectionState{
	// 										Description: to.Ptr("Awaiting approval"),
	// 										ActionsRequired: to.Ptr("None"),
	// 										Status: to.Ptr("Pending"),
	// 									},
	// 									PrivateLinkServiceID: to.Ptr("/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateLinkServices/testPls"),
	// 									RequestMessage: to.Ptr("Please approve my connection."),
	// 								},
	// 						}},
	// 					},
	// 			}},
	// 		}
}
Output:

type PrivateEndpointsClientBeginDeleteOptions

type PrivateEndpointsClientBeginDeleteOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

PrivateEndpointsClientBeginDeleteOptions contains the optional parameters for the PrivateEndpointsClient.BeginDelete method.

type PrivateEndpointsClientCreateOrUpdateOptions

type PrivateEndpointsClientCreateOrUpdateOptions struct {
	// The ETag of the resource. Omit this value to always overwrite the current record set. Specify the last-seen ETag value
	// to prevent accidentally overwriting concurrent changes.
	IfMatch *string

	// Set to '*' to allow a new resource to be created, but to prevent updating an existing record set. Other values will result
	// in a 412 Pre-condition Failed response.
	IfNoneMatch *string
}

PrivateEndpointsClientCreateOrUpdateOptions contains the optional parameters for the PrivateEndpointsClient.CreateOrUpdate method.

type PrivateEndpointsClientCreateOrUpdateResponse

type PrivateEndpointsClientCreateOrUpdateResponse struct {
	// Complete information about the private endpoint.
	PrivateEndpoint
}

PrivateEndpointsClientCreateOrUpdateResponse contains the response from method PrivateEndpointsClient.CreateOrUpdate.

type PrivateEndpointsClientDeleteResponse

type PrivateEndpointsClientDeleteResponse struct {
}

PrivateEndpointsClientDeleteResponse contains the response from method PrivateEndpointsClient.BeginDelete.

type PrivateEndpointsClientGetOptions

type PrivateEndpointsClientGetOptions struct {
}

PrivateEndpointsClientGetOptions contains the optional parameters for the PrivateEndpointsClient.Get method.

type PrivateEndpointsClientGetResponse

type PrivateEndpointsClientGetResponse struct {
	// Complete information about the private endpoint.
	PrivateEndpoint
}

PrivateEndpointsClientGetResponse contains the response from method PrivateEndpointsClient.Get.

type PrivateEndpointsClientListByClusterOptions

type PrivateEndpointsClientListByClusterOptions struct {
}

PrivateEndpointsClientListByClusterOptions contains the optional parameters for the PrivateEndpointsClient.NewListByClusterPager method.

type PrivateEndpointsClientListByClusterResponse

type PrivateEndpointsClientListByClusterResponse struct {
	// A list of private endpoints.
	PrivateEndpointListResult
}

PrivateEndpointsClientListByClusterResponse contains the response from method PrivateEndpointsClient.NewListByClusterPager.

type PrivateLinkConnectionState

type PrivateLinkConnectionState struct {
	// READ-ONLY; A message indicating if changes on the service provider require any updates on the consumer.
	ActionsRequired *string

	// READ-ONLY; The reason for approval/rejection of the connection.
	Description *string

	// READ-ONLY; Indicates whether the connection has been Approved/Rejected/Removed by the owner of the remote resource/service.
	Status *string
}

PrivateLinkConnectionState - A collection of read-only information about the state of the connection to the private remote resource.

func (PrivateLinkConnectionState) MarshalJSON

func (p PrivateLinkConnectionState) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type PrivateLinkConnectionState.

func (*PrivateLinkConnectionState) UnmarshalJSON

func (p *PrivateLinkConnectionState) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkConnectionState.

type PrivateLinkServiceConnection

type PrivateLinkServiceConnection struct {
	// Bag of properties defining a privatelinkServiceConnection.
	Properties *PrivateLinkServiceConnectionProperties
}

PrivateLinkServiceConnection - A grouping of information about the connection to the remote resource.

func (PrivateLinkServiceConnection) MarshalJSON

func (p PrivateLinkServiceConnection) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type PrivateLinkServiceConnection.

func (*PrivateLinkServiceConnection) UnmarshalJSON

func (p *PrivateLinkServiceConnection) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkServiceConnection.

type PrivateLinkServiceConnectionProperties

type PrivateLinkServiceConnectionProperties struct {
	// The ID(s) of the group(s) obtained from the remote resource that this private endpoint should connect to. Required on PUT
	// (CreateOrUpdate) requests.
	GroupIDs []*string

	// A collection of read-only information about the state of the connection to the private remote resource.
	PrivateLinkServiceConnectionState *PrivateLinkConnectionState

	// The resource id of the private link service. Required on PUT (CreateOrUpdate) requests.
	PrivateLinkServiceID *string

	// READ-ONLY; A message passed to the owner of the remote resource with this connection request. Restricted to 140 chars.
	RequestMessage *string
}

PrivateLinkServiceConnectionProperties - Bag of properties defining a privatelinkServiceConnection.

func (PrivateLinkServiceConnectionProperties) MarshalJSON

func (p PrivateLinkServiceConnectionProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type PrivateLinkServiceConnectionProperties.

func (*PrivateLinkServiceConnectionProperties) UnmarshalJSON

func (p *PrivateLinkServiceConnectionProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkServiceConnectionProperties.

type ProxyResource

type ProxyResource struct {
	// READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
	Type *string
}

ProxyResource - The resource model definition for a ARM proxy resource. It will have everything other than required location and tags

func (ProxyResource) MarshalJSON

func (p ProxyResource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ProxyResource.

func (*ProxyResource) UnmarshalJSON

func (p *ProxyResource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ProxyResource.

type QueryCompilationError

type QueryCompilationError struct {
	// READ-ONLY; Describes the error location in the original query. Not set if isGlobal is true.
	EndColumn *int32

	// READ-ONLY; Describes the error location in the original query. Not set if isGlobal is true.
	EndLine *int32

	// READ-ONLY; Whether the error is not for a specific part but for the entire query.
	IsGlobal *bool

	// READ-ONLY; The content of the error message.
	Message *string

	// READ-ONLY; Describes the error location in the original query. Not set if isGlobal is true.
	StartColumn *int32

	// READ-ONLY; Describes the error location in the original query. Not set if isGlobal is true.
	StartLine *int32
}

QueryCompilationError - An error produced by the compiler.

func (QueryCompilationError) MarshalJSON

func (q QueryCompilationError) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type QueryCompilationError.

func (*QueryCompilationError) UnmarshalJSON

func (q *QueryCompilationError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type QueryCompilationError.

type QueryCompilationResult

type QueryCompilationResult struct {
	// READ-ONLY; Error messages produced by the compiler.
	Errors []*QueryCompilationError

	// READ-ONLY; All function names used by the query.
	Functions []*string

	// READ-ONLY; All input names used by the query.
	Inputs []*string

	// READ-ONLY; All output names used by the query.
	Outputs []*string

	// READ-ONLY; Warning messages produced by the compiler.
	Warnings []*string
}

QueryCompilationResult - The result of the query compilation request.

func (QueryCompilationResult) MarshalJSON

func (q QueryCompilationResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type QueryCompilationResult.

func (*QueryCompilationResult) UnmarshalJSON

func (q *QueryCompilationResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type QueryCompilationResult.

type QueryFunction

type QueryFunction struct {
	// REQUIRED; The type of the function binding.
	BindingType *string

	// REQUIRED; The inputs for the function.
	Inputs []*FunctionInput

	// REQUIRED; The name of the function.
	Name *string

	// REQUIRED; An output for the function.
	Output *FunctionOutput

	// REQUIRED; The type of the function.
	Type *string
}

QueryFunction - A function for the query compilation.

func (QueryFunction) MarshalJSON

func (q QueryFunction) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type QueryFunction.

func (*QueryFunction) UnmarshalJSON

func (q *QueryFunction) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type QueryFunction.

type QueryInput

type QueryInput struct {
	// REQUIRED; The name of the input.
	Name *string

	// REQUIRED; The type of the input, can be Stream or Reference.
	Type *string
}

QueryInput - An input for the query compilation.

func (QueryInput) MarshalJSON

func (q QueryInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type QueryInput.

func (*QueryInput) UnmarshalJSON

func (q *QueryInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type QueryInput.

type QueryTestingResult

type QueryTestingResult struct {
	// Error definition properties.
	Error *ErrorError

	// READ-ONLY; The SAS URL to the outputs payload.
	OutputURI *string

	// READ-ONLY; The status of the query testing request.
	Status *QueryTestingResultStatus
}

QueryTestingResult - The result of the query testing request.

func (QueryTestingResult) MarshalJSON

func (q QueryTestingResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type QueryTestingResult.

func (*QueryTestingResult) UnmarshalJSON

func (q *QueryTestingResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type QueryTestingResult.

type QueryTestingResultStatus

type QueryTestingResultStatus string

QueryTestingResultStatus - The status of the query testing request.

const (
	// QueryTestingResultStatusCompilerError - The query testing operation failed due to a compiler error.
	QueryTestingResultStatusCompilerError QueryTestingResultStatus = "CompilerError"
	// QueryTestingResultStatusRuntimeError - The query testing operation failed due to a runtime error.
	QueryTestingResultStatusRuntimeError QueryTestingResultStatus = "RuntimeError"
	// QueryTestingResultStatusStarted - The query testing operation was initiated.
	QueryTestingResultStatusStarted QueryTestingResultStatus = "Started"
	// QueryTestingResultStatusSuccess - The query testing operation succeeded.
	QueryTestingResultStatusSuccess QueryTestingResultStatus = "Success"
	// QueryTestingResultStatusTimeout - The query testing operation failed due to a timeout.
	QueryTestingResultStatusTimeout QueryTestingResultStatus = "Timeout"
	// QueryTestingResultStatusUnknownError - The query testing operation failed due to an unknown error .
	QueryTestingResultStatusUnknownError QueryTestingResultStatus = "UnknownError"
)

func PossibleQueryTestingResultStatusValues

func PossibleQueryTestingResultStatusValues() []QueryTestingResultStatus

PossibleQueryTestingResultStatusValues returns the possible values for the QueryTestingResultStatus const type.

type RawInputDatasourceProperties

type RawInputDatasourceProperties struct {
	// The JSON serialized content of the input data. Either payload or payloadUri must be set, but not both.
	Payload *string

	// The SAS URL to a blob containing the JSON serialized content of the input data. Either payload or payloadUri must be set,
	// but not both.
	PayloadURI *string
}

RawInputDatasourceProperties - The properties that are associated with a raw input.

func (RawInputDatasourceProperties) MarshalJSON

func (r RawInputDatasourceProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RawInputDatasourceProperties.

func (*RawInputDatasourceProperties) UnmarshalJSON

func (r *RawInputDatasourceProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RawInputDatasourceProperties.

type RawOutputDatasource

type RawOutputDatasource struct {
	// REQUIRED; Indicates the type of data source output will be written to. Required on PUT (CreateOrReplace) requests.
	Type *string

	// The properties that are associated with a raw output. Required on PUT (CreateOrReplace) requests.
	Properties *RawOutputDatasourceProperties
}

RawOutputDatasource - Describes a raw output data source. This data source type is only applicable/usable when using the query testing API. You cannot create a job with this data source type or add an output of this data source type to an existing job.

func (*RawOutputDatasource) GetOutputDataSource

func (r *RawOutputDatasource) GetOutputDataSource() *OutputDataSource

GetOutputDataSource implements the OutputDataSourceClassification interface for type RawOutputDatasource.

func (RawOutputDatasource) MarshalJSON

func (r RawOutputDatasource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RawOutputDatasource.

func (*RawOutputDatasource) UnmarshalJSON

func (r *RawOutputDatasource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RawOutputDatasource.

type RawOutputDatasourceProperties

type RawOutputDatasourceProperties struct {
	// The SAS URL to a blob where the output should be written. If this property is not set, output data will be written into
	// a temporary storage, and a SAS URL to that temporary storage will be included in
	// the result.
	PayloadURI *string
}

RawOutputDatasourceProperties - The properties that are associated with a raw output.

func (RawOutputDatasourceProperties) MarshalJSON

func (r RawOutputDatasourceProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RawOutputDatasourceProperties.

func (*RawOutputDatasourceProperties) UnmarshalJSON

func (r *RawOutputDatasourceProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RawOutputDatasourceProperties.

type RawReferenceInputDataSource

type RawReferenceInputDataSource struct {
	// REQUIRED; Indicates the type of input data source containing reference data. Required on PUT (CreateOrReplace) requests.
	Type *string

	// The properties that are associated with a raw input containing reference data. Required on PUT (CreateOrReplace) requests.
	Properties *RawInputDatasourceProperties
}

RawReferenceInputDataSource - Describes a raw input data source that contains reference data. This data source type is only applicable/usable when using the query testing API. You cannot create a job with this data source type or add an input of this data source type to an existing job.

func (*RawReferenceInputDataSource) GetReferenceInputDataSource

func (r *RawReferenceInputDataSource) GetReferenceInputDataSource() *ReferenceInputDataSource

GetReferenceInputDataSource implements the ReferenceInputDataSourceClassification interface for type RawReferenceInputDataSource.

func (RawReferenceInputDataSource) MarshalJSON

func (r RawReferenceInputDataSource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RawReferenceInputDataSource.

func (*RawReferenceInputDataSource) UnmarshalJSON

func (r *RawReferenceInputDataSource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RawReferenceInputDataSource.

type RawStreamInputDataSource

type RawStreamInputDataSource struct {
	// REQUIRED; Indicates the type of input data source containing stream data. Required on PUT (CreateOrReplace) requests.
	Type *string

	// The properties that are associated with a raw input. Required on PUT (CreateOrReplace) requests.
	Properties *RawInputDatasourceProperties
}

RawStreamInputDataSource - Describes a raw input data source that contains stream data. This data source type is only applicable/usable when using the query testing API. You cannot create a job with this data source type or add an input of this data source type to an existing job.

func (*RawStreamInputDataSource) GetStreamInputDataSource

func (r *RawStreamInputDataSource) GetStreamInputDataSource() *StreamInputDataSource

GetStreamInputDataSource implements the StreamInputDataSourceClassification interface for type RawStreamInputDataSource.

func (RawStreamInputDataSource) MarshalJSON

func (r RawStreamInputDataSource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RawStreamInputDataSource.

func (*RawStreamInputDataSource) UnmarshalJSON

func (r *RawStreamInputDataSource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RawStreamInputDataSource.

type ReferenceInputDataSource

type ReferenceInputDataSource struct {
	// REQUIRED; Indicates the type of input data source containing reference data. Required on PUT (CreateOrReplace) requests.
	Type *string
}

ReferenceInputDataSource - Describes an input data source that contains reference data.

func (*ReferenceInputDataSource) GetReferenceInputDataSource

func (r *ReferenceInputDataSource) GetReferenceInputDataSource() *ReferenceInputDataSource

GetReferenceInputDataSource implements the ReferenceInputDataSourceClassification interface for type ReferenceInputDataSource.

func (ReferenceInputDataSource) MarshalJSON

func (r ReferenceInputDataSource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ReferenceInputDataSource.

func (*ReferenceInputDataSource) UnmarshalJSON

func (r *ReferenceInputDataSource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ReferenceInputDataSource.

type ReferenceInputDataSourceClassification

type ReferenceInputDataSourceClassification interface {
	// GetReferenceInputDataSource returns the ReferenceInputDataSource content of the underlying type.
	GetReferenceInputDataSource() *ReferenceInputDataSource
}

ReferenceInputDataSourceClassification provides polymorphic access to related types. Call the interface's GetReferenceInputDataSource() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *AzureSQLReferenceInputDataSource, *BlobReferenceInputDataSource, *FileReferenceInputDataSource, *RawReferenceInputDataSource, - *ReferenceInputDataSource

type ReferenceInputProperties

type ReferenceInputProperties struct {
	// REQUIRED; Indicates whether the input is a source of reference data or stream data. Required on PUT (CreateOrReplace) requests.
	Type *string

	// Describes how input data is compressed
	Compression *Compression

	// Describes an input data source that contains reference data. Required on PUT (CreateOrReplace) requests.
	Datasource ReferenceInputDataSourceClassification

	// partitionKey Describes a key in the input data which is used for partitioning the input data
	PartitionKey *string

	// Describes how data from an input is serialized or how data is serialized when written to an output. Required on PUT (CreateOrReplace)
	// requests.
	Serialization SerializationClassification

	// Settings which determine whether to read watermark events.
	WatermarkSettings *InputWatermarkProperties

	// READ-ONLY; Describes conditions applicable to the Input, Output, or the job overall, that warrant customer attention.
	Diagnostics *Diagnostics

	// READ-ONLY; The current entity tag for the input. This is an opaque string. You can use it to detect whether the resource
	// has changed between requests. You can also use it in the If-Match or If-None-Match headers
	// for write operations for optimistic concurrency.
	Etag *string
}

ReferenceInputProperties - The properties that are associated with an input containing reference data.

func (*ReferenceInputProperties) GetInputProperties

func (r *ReferenceInputProperties) GetInputProperties() *InputProperties

GetInputProperties implements the InputPropertiesClassification interface for type ReferenceInputProperties.

func (ReferenceInputProperties) MarshalJSON

func (r ReferenceInputProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ReferenceInputProperties.

func (*ReferenceInputProperties) UnmarshalJSON

func (r *ReferenceInputProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ReferenceInputProperties.

type RefreshConfiguration

type RefreshConfiguration struct {
	// The date format. Wherever {date} appears in pathPattern, the value of this property is used as the date format instead.
	DateFormat *string

	// The blob path pattern. Not a regular expression. It represents a pattern against which blob names will be matched to determine
	// whether or not they should be included as input or output to the job. See
	// https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-input or https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-output
	// for a more detailed explanation
	// and example.
	PathPattern *string

	// The refresh interval.
	RefreshInterval *string

	// This property indicates which data refresh option to use, Blocking or Nonblocking.
	RefreshType *UpdatableUdfRefreshType

	// The time format. Wherever {time} appears in pathPattern, the value of this property is used as the time format instead.
	TimeFormat *string
}

RefreshConfiguration - The refresh parameters for any/all updatable user defined functions present in the job config.

func (RefreshConfiguration) MarshalJSON

func (r RefreshConfiguration) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RefreshConfiguration.

func (*RefreshConfiguration) UnmarshalJSON

func (r *RefreshConfiguration) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RefreshConfiguration.

type RefreshType

type RefreshType string

RefreshType - Indicates the type of data refresh option.

const (
	RefreshTypeRefreshPeriodicallyWithDelta RefreshType = "RefreshPeriodicallyWithDelta"
	RefreshTypeRefreshPeriodicallyWithFull  RefreshType = "RefreshPeriodicallyWithFull"
	RefreshTypeStatic                       RefreshType = "Static"
)

func PossibleRefreshTypeValues

func PossibleRefreshTypeValues() []RefreshType

PossibleRefreshTypeValues returns the possible values for the RefreshType const type.

type Resource

type Resource struct {
	// READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
	Type *string
}

Resource - The base resource definition

func (Resource) MarshalJSON

func (r Resource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Resource.

func (*Resource) UnmarshalJSON

func (r *Resource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Resource.

type ResourceTestStatus

type ResourceTestStatus struct {
	// READ-ONLY; Describes the error that occurred.
	Error *ErrorResponse

	// READ-ONLY; The status of the test operation.
	Status *string
}

ResourceTestStatus - Describes the status of the test operation along with error information, if applicable.

func (ResourceTestStatus) MarshalJSON

func (r ResourceTestStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ResourceTestStatus.

func (*ResourceTestStatus) UnmarshalJSON

func (r *ResourceTestStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ResourceTestStatus.

type ResourceType

type ResourceType string

ResourceType - The type of resource the SKU applies to.

const (
	ResourceTypeMicrosoftStreamAnalyticsStreamingjobs ResourceType = "Microsoft.StreamAnalytics/streamingjobs"
)

func PossibleResourceTypeValues

func PossibleResourceTypeValues() []ResourceType

PossibleResourceTypeValues returns the possible values for the ResourceType const type.

type SKU

type SKU struct {
	// The capacity of the SKU.
	Capacity *int32

	// The name of the SKU. Required on PUT (CreateOrReplace) requests.
	Name *SKUName
}

SKU - The properties that are associated with a SKU.

func (SKU) MarshalJSON

func (s SKU) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SKU.

func (*SKU) UnmarshalJSON

func (s *SKU) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SKU.

type SKUCapacity

type SKUCapacity struct {
	// READ-ONLY; Specifies the valid streaming units a streaming job can scale to.
	AllowedValues []*int32

	// READ-ONLY; Specifies the default streaming units that the streaming job can use.
	Default *int32

	// READ-ONLY; Specifies the maximum streaming units that the streaming job can use.
	Maximum *int32

	// READ-ONLY; Specifies the minimum streaming units that the streaming job can use.
	Minimum *int32

	// READ-ONLY; The scale type applicable to the SKU.
	ScaleType *SKUCapacityScaleType
}

SKUCapacity - Describes scaling information of a SKU.

func (SKUCapacity) MarshalJSON

func (s SKUCapacity) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SKUCapacity.

func (*SKUCapacity) UnmarshalJSON

func (s *SKUCapacity) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SKUCapacity.

type SKUCapacityScaleType

type SKUCapacityScaleType string

SKUCapacityScaleType - The scale type applicable to the SKU.

const (
	// SKUCapacityScaleTypeAutomatic - Supported scale type automatic.
	SKUCapacityScaleTypeAutomatic SKUCapacityScaleType = "automatic"
	// SKUCapacityScaleTypeManual - Supported scale type manual.
	SKUCapacityScaleTypeManual SKUCapacityScaleType = "manual"
	// SKUCapacityScaleTypeNone - Scaling not supported.
	SKUCapacityScaleTypeNone SKUCapacityScaleType = "none"
)

func PossibleSKUCapacityScaleTypeValues

func PossibleSKUCapacityScaleTypeValues() []SKUCapacityScaleType

PossibleSKUCapacityScaleTypeValues returns the possible values for the SKUCapacityScaleType const type.

type SKUClient

type SKUClient struct {
	// contains filtered or unexported fields
}

SKUClient contains the methods for the SKU group. Don't use this type directly, use NewSKUClient() instead.

func NewSKUClient

func NewSKUClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SKUClient, error)

NewSKUClient creates a new instance of SKUClient with the specified values.

  • subscriptionID - The ID of the target subscription.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*SKUClient) NewListPager

func (client *SKUClient) NewListPager(resourceGroupName string, jobName string, options *SKUClientListOptions) *runtime.Pager[SKUClientListResponse]

NewListPager - Gets a list of available SKUs about the specified streaming job.

Generated from API version 2021-10-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • jobName - The name of the streaming job.
  • options - SKUClientListOptions contains the optional parameters for the SKUClient.NewListPager method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/StreamingJob_GetSkus.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewSKUClient().NewListPager("sjrg3276", "sj7804", nil)
for pager.More() {
	page, err := pager.NextPage(ctx)
	if err != nil {
		log.Fatalf("failed to advance page: %v", err)
	}
	for _, v := range page.Value {
		// You could use page here. We use blank identifier for just demo purposes.
		_ = v
	}
	// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// page.GetStreamingJobSKUResults = armstreamanalytics.GetStreamingJobSKUResults{
	// 	Value: []*armstreamanalytics.GetStreamingJobSKUResult{
	// 		{
	// 			Capacity: &armstreamanalytics.SKUCapacity{
	// 				Default: to.Ptr[int32](3),
	// 				AllowedValues: []*int32{
	// 					to.Ptr[int32](1),
	// 					to.Ptr[int32](3),
	// 					to.Ptr[int32](6),
	// 					to.Ptr[int32](12),
	// 					to.Ptr[int32](18),
	// 					to.Ptr[int32](24)},
	// 					Maximum: to.Ptr[int32](192),
	// 					Minimum: to.Ptr[int32](1),
	// 					ScaleType: to.Ptr(armstreamanalytics.SKUCapacityScaleTypeAutomatic),
	// 				},
	// 				ResourceType: to.Ptr(armstreamanalytics.ResourceTypeMicrosoftStreamAnalyticsStreamingjobs),
	// 				SKU: &armstreamanalytics.GetStreamingJobSKUResultSKU{
	// 					Name: to.Ptr(armstreamanalytics.SKUNameStandard),
	// 				},
	// 		}},
	// 	}
}
Output:

type SKUClientListOptions

type SKUClientListOptions struct {
}

SKUClientListOptions contains the optional parameters for the SKUClient.NewListPager method.

type SKUClientListResponse

type SKUClientListResponse struct {
	// Result of the request to get streaming job SKUs.
	GetStreamingJobSKUResults
}

SKUClientListResponse contains the response from method SKUClient.NewListPager.

type SKUName

type SKUName string

SKUName - The name of the SKU. Required on PUT (CreateOrReplace) requests.

const (
	SKUNameStandard SKUName = "Standard"
)

func PossibleSKUNameValues

func PossibleSKUNameValues() []SKUName

PossibleSKUNameValues returns the possible values for the SKUName const type.

type SampleInput

type SampleInput struct {
	// Defaults to the default ASA job compatibility level. Today it is 1.2
	CompatibilityLevel *string

	// Defaults to en-US.
	DataLocale *string

	// The SAS URI of the storage blob for service to write the sampled events to. If this parameter is not provided, service
	// will write events to he system account and share a temporary SAS URI to it.
	EventsURI *string

	// The stream analytics input to sample.
	Input *Input
}

SampleInput - The stream analytics input to sample.

func (SampleInput) MarshalJSON

func (s SampleInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SampleInput.

func (*SampleInput) UnmarshalJSON

func (s *SampleInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SampleInput.

type SampleInputResult

type SampleInputResult struct {
	// Error definition properties.
	Error *ErrorError

	// READ-ONLY; Diagnostics messages. E.g. message indicating some partitions from the input have no data.
	Diagnostics []*string

	// READ-ONLY; A SAS URL to download the sampled input data.
	EventsDownloadURL *string

	// READ-ONLY; The timestamp for the last event in the data. It is in DateTime format.
	LastArrivalTime *string

	// READ-ONLY; The status of the sample input request.
	Status *SampleInputResultStatus
}

SampleInputResult - The result of the sample input request.

func (SampleInputResult) MarshalJSON

func (s SampleInputResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SampleInputResult.

func (*SampleInputResult) UnmarshalJSON

func (s *SampleInputResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SampleInputResult.

type SampleInputResultStatus

type SampleInputResultStatus string

SampleInputResultStatus - The status of the sample input request.

const (
	// SampleInputResultStatusErrorConnectingToInput - The sample input operation failed to connect to the input.
	SampleInputResultStatusErrorConnectingToInput SampleInputResultStatus = "ErrorConnectingToInput"
	// SampleInputResultStatusNoEventsFoundInRange - The sample input operation found no events in the range.
	SampleInputResultStatusNoEventsFoundInRange SampleInputResultStatus = "NoEventsFoundInRange"
	// SampleInputResultStatusReadAllEventsInRange - The sample input operation successfully read all the events in the range.
	SampleInputResultStatusReadAllEventsInRange SampleInputResultStatus = "ReadAllEventsInRange"
)

func PossibleSampleInputResultStatusValues

func PossibleSampleInputResultStatusValues() []SampleInputResultStatus

PossibleSampleInputResultStatusValues returns the possible values for the SampleInputResultStatus const type.

type ScalarFunctionProperties

type ScalarFunctionProperties struct {
	// REQUIRED; Indicates the type of function.
	Type       *string
	Properties *FunctionConfiguration

	// READ-ONLY; The current entity tag for the function. This is an opaque string. You can use it to detect whether the resource
	// has changed between requests. You can also use it in the If-Match or If-None-Match
	// headers for write operations for optimistic concurrency.
	Etag *string
}

ScalarFunctionProperties - The properties that are associated with a scalar function.

func (*ScalarFunctionProperties) GetFunctionProperties

func (s *ScalarFunctionProperties) GetFunctionProperties() *FunctionProperties

GetFunctionProperties implements the FunctionPropertiesClassification interface for type ScalarFunctionProperties.

func (ScalarFunctionProperties) MarshalJSON

func (s ScalarFunctionProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ScalarFunctionProperties.

func (*ScalarFunctionProperties) UnmarshalJSON

func (s *ScalarFunctionProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ScalarFunctionProperties.

type ScaleStreamingJobParameters

type ScaleStreamingJobParameters struct {
	// Specifies the number of streaming units that the streaming job will scale to.
	StreamingUnits *int32
}

ScaleStreamingJobParameters - Parameters supplied to the Scale Streaming Job operation.

func (ScaleStreamingJobParameters) MarshalJSON

func (s ScaleStreamingJobParameters) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ScaleStreamingJobParameters.

func (*ScaleStreamingJobParameters) UnmarshalJSON

func (s *ScaleStreamingJobParameters) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ScaleStreamingJobParameters.

type Serialization

type Serialization struct {
	// REQUIRED; Indicates the type of serialization that the input or output uses. Required on PUT (CreateOrReplace) requests.
	Type *EventSerializationType
}

Serialization - Describes how data from an input is serialized or how data is serialized when written to an output.

func (*Serialization) GetSerialization

func (s *Serialization) GetSerialization() *Serialization

GetSerialization implements the SerializationClassification interface for type Serialization.

func (Serialization) MarshalJSON

func (s Serialization) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Serialization.

func (*Serialization) UnmarshalJSON

func (s *Serialization) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Serialization.

type SerializationClassification

type SerializationClassification interface {
	// GetSerialization returns the Serialization content of the underlying type.
	GetSerialization() *Serialization
}

SerializationClassification provides polymorphic access to related types. Call the interface's GetSerialization() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *AvroSerialization, *CSVSerialization, *CustomClrSerialization, *DeltaSerialization, *JSONSerialization, *ParquetSerialization, - *Serialization

type ServiceBusDataSourceProperties

type ServiceBusDataSourceProperties struct {
	// Authentication Mode.
	AuthenticationMode *AuthenticationMode

	// The namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus Topic, etc. Required on PUT
	// (CreateOrReplace) requests.
	ServiceBusNamespace *string

	// The shared access policy key for the specified shared access policy. Required on PUT (CreateOrReplace) requests.
	SharedAccessPolicyKey *string

	// The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc. Required on PUT (CreateOrReplace)
	// requests.
	SharedAccessPolicyName *string
}

ServiceBusDataSourceProperties - The common properties that are associated with Service Bus data sources (Queues, Topics, Event Hubs, etc.).

func (ServiceBusDataSourceProperties) MarshalJSON

func (s ServiceBusDataSourceProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ServiceBusDataSourceProperties.

func (*ServiceBusDataSourceProperties) UnmarshalJSON

func (s *ServiceBusDataSourceProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ServiceBusDataSourceProperties.

type ServiceBusQueueOutputDataSource

type ServiceBusQueueOutputDataSource struct {
	// REQUIRED; Indicates the type of data source output will be written to. Required on PUT (CreateOrReplace) requests.
	Type *string

	// The properties that are associated with a Service Bus Queue output. Required on PUT (CreateOrReplace) requests.
	Properties *ServiceBusQueueOutputDataSourceProperties
}

ServiceBusQueueOutputDataSource - Describes a Service Bus Queue output data source.

func (*ServiceBusQueueOutputDataSource) GetOutputDataSource

func (s *ServiceBusQueueOutputDataSource) GetOutputDataSource() *OutputDataSource

GetOutputDataSource implements the OutputDataSourceClassification interface for type ServiceBusQueueOutputDataSource.

func (ServiceBusQueueOutputDataSource) MarshalJSON

func (s ServiceBusQueueOutputDataSource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ServiceBusQueueOutputDataSource.

func (*ServiceBusQueueOutputDataSource) UnmarshalJSON

func (s *ServiceBusQueueOutputDataSource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ServiceBusQueueOutputDataSource.

type ServiceBusQueueOutputDataSourceProperties

type ServiceBusQueueOutputDataSourceProperties struct {
	// Authentication Mode.
	AuthenticationMode *AuthenticationMode

	// A string array of the names of output columns to be attached to Service Bus messages as custom properties.
	PropertyColumns []*string

	// The name of the Service Bus Queue. Required on PUT (CreateOrReplace) requests.
	QueueName *string

	// The namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus Topic, etc. Required on PUT
	// (CreateOrReplace) requests.
	ServiceBusNamespace *string

	// The shared access policy key for the specified shared access policy. Required on PUT (CreateOrReplace) requests.
	SharedAccessPolicyKey *string

	// The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc. Required on PUT (CreateOrReplace)
	// requests.
	SharedAccessPolicyName *string

	// The system properties associated with the Service Bus Queue. The following system properties are supported: ReplyToSessionId,
	// ContentType, To, Subject, CorrelationId, TimeToLive, PartitionKey,
	// SessionId, ScheduledEnqueueTime, MessageId, ReplyTo, Label, ScheduledEnqueueTimeUtc.
	SystemPropertyColumns any
}

ServiceBusQueueOutputDataSourceProperties - The properties that are associated with a Service Bus Queue output.

func (ServiceBusQueueOutputDataSourceProperties) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type ServiceBusQueueOutputDataSourceProperties.

func (*ServiceBusQueueOutputDataSourceProperties) UnmarshalJSON

func (s *ServiceBusQueueOutputDataSourceProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ServiceBusQueueOutputDataSourceProperties.

type ServiceBusTopicOutputDataSource

type ServiceBusTopicOutputDataSource struct {
	// REQUIRED; Indicates the type of data source output will be written to. Required on PUT (CreateOrReplace) requests.
	Type *string

	// The properties that are associated with a Service Bus Topic output. Required on PUT (CreateOrReplace) requests.
	Properties *ServiceBusTopicOutputDataSourceProperties
}

ServiceBusTopicOutputDataSource - Describes a Service Bus Topic output data source.

func (*ServiceBusTopicOutputDataSource) GetOutputDataSource

func (s *ServiceBusTopicOutputDataSource) GetOutputDataSource() *OutputDataSource

GetOutputDataSource implements the OutputDataSourceClassification interface for type ServiceBusTopicOutputDataSource.

func (ServiceBusTopicOutputDataSource) MarshalJSON

func (s ServiceBusTopicOutputDataSource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ServiceBusTopicOutputDataSource.

func (*ServiceBusTopicOutputDataSource) UnmarshalJSON

func (s *ServiceBusTopicOutputDataSource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ServiceBusTopicOutputDataSource.

type ServiceBusTopicOutputDataSourceProperties

type ServiceBusTopicOutputDataSourceProperties struct {
	// Authentication Mode.
	AuthenticationMode *AuthenticationMode

	// A string array of the names of output columns to be attached to Service Bus messages as custom properties.
	PropertyColumns []*string

	// The namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus Topic, etc. Required on PUT
	// (CreateOrReplace) requests.
	ServiceBusNamespace *string

	// The shared access policy key for the specified shared access policy. Required on PUT (CreateOrReplace) requests.
	SharedAccessPolicyKey *string

	// The shared access policy name for the Event Hub, Service Bus Queue, Service Bus Topic, etc. Required on PUT (CreateOrReplace)
	// requests.
	SharedAccessPolicyName *string

	// The system properties associated with the Service Bus Topic Output. The following system properties are supported: ReplyToSessionId,
	// ContentType, To, Subject, CorrelationId, TimeToLive, PartitionKey,
	// SessionId, ScheduledEnqueueTime, MessageId, ReplyTo, Label, ScheduledEnqueueTimeUtc.
	SystemPropertyColumns map[string]*string

	// The name of the Service Bus Topic. Required on PUT (CreateOrReplace) requests.
	TopicName *string
}

ServiceBusTopicOutputDataSourceProperties - The properties that are associated with a Service Bus Topic output.

func (ServiceBusTopicOutputDataSourceProperties) MarshalJSON

MarshalJSON implements the json.Marshaller interface for type ServiceBusTopicOutputDataSourceProperties.

func (*ServiceBusTopicOutputDataSourceProperties) UnmarshalJSON

func (s *ServiceBusTopicOutputDataSourceProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ServiceBusTopicOutputDataSourceProperties.

type StartStreamingJobParameters

type StartStreamingJobParameters struct {
	// Value may be JobStartTime, CustomTime, or LastOutputEventTime to indicate whether the starting point of the output event
	// stream should start whenever the job is started, start at a custom user time
	// stamp specified via the outputStartTime property, or start from the last event output time.
	OutputStartMode *OutputStartMode

	// Value is either an ISO-8601 formatted time stamp that indicates the starting point of the output event stream, or null
	// to indicate that the output event stream will start whenever the streaming job is
	// started. This property must have a value if outputStartMode is set to CustomTime.
	OutputStartTime *time.Time
}

StartStreamingJobParameters - Parameters supplied to the Start Streaming Job operation.

func (StartStreamingJobParameters) MarshalJSON

func (s StartStreamingJobParameters) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type StartStreamingJobParameters.

func (*StartStreamingJobParameters) UnmarshalJSON

func (s *StartStreamingJobParameters) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type StartStreamingJobParameters.

type StorageAccount

type StorageAccount struct {
	// The account key for the Azure Storage account. Required on PUT (CreateOrReplace) requests.
	AccountKey *string

	// The name of the Azure Storage account. Required on PUT (CreateOrReplace) requests.
	AccountName *string

	// Authentication Mode.
	AuthenticationMode *AuthenticationMode
}

StorageAccount - The properties that are associated with an Azure Storage account

func (StorageAccount) MarshalJSON

func (s StorageAccount) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type StorageAccount.

func (*StorageAccount) UnmarshalJSON

func (s *StorageAccount) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type StorageAccount.

type StreamInputDataSource

type StreamInputDataSource struct {
	// REQUIRED; Indicates the type of input data source containing stream data. Required on PUT (CreateOrReplace) requests.
	Type *string
}

StreamInputDataSource - Describes an input data source that contains stream data.

func (*StreamInputDataSource) GetStreamInputDataSource

func (s *StreamInputDataSource) GetStreamInputDataSource() *StreamInputDataSource

GetStreamInputDataSource implements the StreamInputDataSourceClassification interface for type StreamInputDataSource.

func (StreamInputDataSource) MarshalJSON

func (s StreamInputDataSource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type StreamInputDataSource.

func (*StreamInputDataSource) UnmarshalJSON

func (s *StreamInputDataSource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type StreamInputDataSource.

type StreamInputDataSourceClassification

type StreamInputDataSourceClassification interface {
	// GetStreamInputDataSource returns the StreamInputDataSource content of the underlying type.
	GetStreamInputDataSource() *StreamInputDataSource
}

StreamInputDataSourceClassification provides polymorphic access to related types. Call the interface's GetStreamInputDataSource() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *BlobStreamInputDataSource, *EventGridStreamInputDataSource, *EventHubStreamInputDataSource, *EventHubV2StreamInputDataSource, - *GatewayMessageBusStreamInputDataSource, *IoTHubStreamInputDataSource, *RawStreamInputDataSource, *StreamInputDataSource

type StreamInputProperties

type StreamInputProperties struct {
	// REQUIRED; Indicates whether the input is a source of reference data or stream data. Required on PUT (CreateOrReplace) requests.
	Type *string

	// Describes how input data is compressed
	Compression *Compression

	// Describes an input data source that contains stream data. Required on PUT (CreateOrReplace) requests.
	Datasource StreamInputDataSourceClassification

	// partitionKey Describes a key in the input data which is used for partitioning the input data
	PartitionKey *string

	// Describes how data from an input is serialized or how data is serialized when written to an output. Required on PUT (CreateOrReplace)
	// requests.
	Serialization SerializationClassification

	// Settings which determine whether to read watermark events.
	WatermarkSettings *InputWatermarkProperties

	// READ-ONLY; Describes conditions applicable to the Input, Output, or the job overall, that warrant customer attention.
	Diagnostics *Diagnostics

	// READ-ONLY; The current entity tag for the input. This is an opaque string. You can use it to detect whether the resource
	// has changed between requests. You can also use it in the If-Match or If-None-Match headers
	// for write operations for optimistic concurrency.
	Etag *string
}

StreamInputProperties - The properties that are associated with an input containing stream data.

func (*StreamInputProperties) GetInputProperties

func (s *StreamInputProperties) GetInputProperties() *InputProperties

GetInputProperties implements the InputPropertiesClassification interface for type StreamInputProperties.

func (StreamInputProperties) MarshalJSON

func (s StreamInputProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type StreamInputProperties.

func (*StreamInputProperties) UnmarshalJSON

func (s *StreamInputProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type StreamInputProperties.

type StreamingJob

type StreamingJob struct {
	// Describes the managed identity assigned to this job that can be used to authenticate with inputs and outputs.
	Identity *Identity

	// The geo-location where the resource lives
	Location *string

	// The properties that are associated with a streaming job. Required on PUT (CreateOrReplace) requests.
	Properties *StreamingJobProperties

	// Describes the SKU of the streaming job. Required on PUT (CreateOrReplace) requests.
	SKU *SKU

	// Resource tags.
	Tags map[string]*string

	// READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
	Type *string
}

StreamingJob - A streaming job object, containing all information associated with the named streaming job.

func (StreamingJob) MarshalJSON

func (s StreamingJob) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type StreamingJob.

func (*StreamingJob) UnmarshalJSON

func (s *StreamingJob) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type StreamingJob.

type StreamingJobListResult

type StreamingJobListResult struct {
	// READ-ONLY; The link (url) to the next page of results.
	NextLink *string

	// READ-ONLY; A list of streaming jobs. Populated by a 'List' operation.
	Value []*StreamingJob
}

StreamingJobListResult - Object containing a list of streaming jobs.

func (StreamingJobListResult) MarshalJSON

func (s StreamingJobListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type StreamingJobListResult.

func (*StreamingJobListResult) UnmarshalJSON

func (s *StreamingJobListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type StreamingJobListResult.

type StreamingJobProperties

type StreamingJobProperties struct {
	// The cluster which streaming jobs will run on.
	Cluster *ClusterInfo

	// Controls certain runtime behaviors of the streaming job.
	CompatibilityLevel *CompatibilityLevel

	// Valid values are JobStorageAccount and SystemAccount. If set to JobStorageAccount, this requires the user to also specify
	// jobStorageAccount property. .
	ContentStoragePolicy *ContentStoragePolicy

	// The data locale of the stream analytics job. Value should be the name of a supported .NET Culture from the set
	// https://msdn.microsoft.com/en-us/library/system.globalization.culturetypes(v=vs.110).aspx. Defaults to 'en-US' if none
	// specified.
	DataLocale *string

	// The maximum tolerable delay in seconds where events arriving late could be included. Supported range is -1 to 1814399 (20.23:59:59
	// days) and -1 is used to specify wait indefinitely. If the property is
	// absent, it is interpreted to have a value of -1.
	EventsLateArrivalMaxDelayInSeconds *int32

	// The maximum tolerable delay in seconds where out-of-order events can be adjusted to be back in order.
	EventsOutOfOrderMaxDelayInSeconds *int32

	// Indicates the policy to apply to events that arrive out of order in the input event stream.
	EventsOutOfOrderPolicy *EventsOutOfOrderPolicy

	// The storage account where the custom code artifacts are located.
	Externals *External

	// A list of one or more functions for the streaming job. The name property for each function is required when specifying
	// this property in a PUT request. This property cannot be modify via a PATCH
	// operation. You must use the PATCH API available for the individual transformation.
	Functions []*Function

	// A list of one or more inputs to the streaming job. The name property for each input is required when specifying this property
	// in a PUT request. This property cannot be modify via a PATCH operation.
	// You must use the PATCH API available for the individual input.
	Inputs []*Input

	// The properties that are associated with an Azure Storage account with MSI
	JobStorageAccount *JobStorageAccount

	// Describes the type of the job. Valid modes are Cloud and 'Edge'.
	JobType *JobType

	// Indicates the policy to apply to events that arrive at the output and cannot be written to the external storage due to
	// being malformed (missing column values, column values of wrong type or size).
	OutputErrorPolicy *OutputErrorPolicy

	// This property should only be utilized when it is desired that the job be started immediately upon creation. Value may be
	// JobStartTime, CustomTime, or LastOutputEventTime to indicate whether the
	// starting point of the output event stream should start whenever the job is started, start at a custom user time stamp specified
	// via the outputStartTime property, or start from the last event output
	// time.
	OutputStartMode *OutputStartMode

	// Value is either an ISO-8601 formatted time stamp that indicates the starting point of the output event stream, or null
	// to indicate that the output event stream will start whenever the streaming job is
	// started. This property must have a value if outputStartMode is set to CustomTime.
	OutputStartTime *time.Time

	// A list of one or more outputs for the streaming job. The name property for each output is required when specifying this
	// property in a PUT request. This property cannot be modify via a PATCH operation.
	// You must use the PATCH API available for the individual output.
	Outputs []*Output

	// Describes the SKU of the streaming job. Required on PUT (CreateOrReplace) requests.
	SKU *SKU

	// Indicates the query and the number of streaming units to use for the streaming job. The name property of the transformation
	// is required when specifying this property in a PUT request. This property
	// cannot be modify via a PATCH operation. You must use the PATCH API available for the individual transformation.
	Transformation *Transformation

	// READ-ONLY; Value is an ISO-8601 formatted UTC timestamp indicating when the streaming job was created.
	CreatedDate *time.Time

	// READ-ONLY; The current entity tag for the streaming job. This is an opaque string. You can use it to detect whether the
	// resource has changed between requests. You can also use it in the If-Match or If-None-Match
	// headers for write operations for optimistic concurrency.
	Etag *string

	// READ-ONLY; A GUID uniquely identifying the streaming job. This GUID is generated upon creation of the streaming job.
	JobID *string

	// READ-ONLY; Describes the state of the streaming job.
	JobState *string

	// READ-ONLY; Value is either an ISO-8601 formatted timestamp indicating the last output event time of the streaming job or
	// null indicating that output has not yet been produced. In case of multiple outputs or
	// multiple streams, this shows the latest value in that set.
	LastOutputEventTime *time.Time

	// READ-ONLY; Describes the provisioning status of the streaming job.
	ProvisioningState *string
}

StreamingJobProperties - The properties that are associated with a streaming job.

func (StreamingJobProperties) MarshalJSON

func (s StreamingJobProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type StreamingJobProperties.

func (*StreamingJobProperties) UnmarshalJSON

func (s *StreamingJobProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type StreamingJobProperties.

type StreamingJobsClient

type StreamingJobsClient struct {
	// contains filtered or unexported fields
}

StreamingJobsClient contains the methods for the StreamingJobs group. Don't use this type directly, use NewStreamingJobsClient() instead.

func NewStreamingJobsClient

func NewStreamingJobsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*StreamingJobsClient, error)

NewStreamingJobsClient creates a new instance of StreamingJobsClient with the specified values.

  • subscriptionID - The ID of the target subscription.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*StreamingJobsClient) BeginCreateOrReplace

func (client *StreamingJobsClient) BeginCreateOrReplace(ctx context.Context, resourceGroupName string, jobName string, streamingJob StreamingJob, options *StreamingJobsClientBeginCreateOrReplaceOptions) (*runtime.Poller[StreamingJobsClientCreateOrReplaceResponse], error)

BeginCreateOrReplace - Creates a streaming job or replaces an already existing streaming job. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-10-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • jobName - The name of the streaming job.
  • streamingJob - The definition of the streaming job that will be used to create a new streaming job or replace the existing one.
  • options - StreamingJobsClientBeginCreateOrReplaceOptions contains the optional parameters for the StreamingJobsClient.BeginCreateOrReplace method.
Example (CreateACompleteStreamingJobAStreamingJobWithATransformationAtLeast1InputAndAtLeast1Output)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/StreamingJob_Create_CompleteJob.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewStreamingJobsClient().BeginCreateOrReplace(ctx, "sjrg3276", "sj7804", armstreamanalytics.StreamingJob{
	Location: to.Ptr("West US"),
	Tags: map[string]*string{
		"key1":      to.Ptr("value1"),
		"key3":      to.Ptr("value3"),
		"randomKey": to.Ptr("randomValue"),
	},
	Properties: &armstreamanalytics.StreamingJobProperties{
		CompatibilityLevel:                 to.Ptr(armstreamanalytics.CompatibilityLevelOne0),
		DataLocale:                         to.Ptr("en-US"),
		EventsLateArrivalMaxDelayInSeconds: to.Ptr[int32](5),
		EventsOutOfOrderMaxDelayInSeconds:  to.Ptr[int32](0),
		EventsOutOfOrderPolicy:             to.Ptr(armstreamanalytics.EventsOutOfOrderPolicyDrop),
		Externals: &armstreamanalytics.External{
			Path:      to.Ptr("UserCustomCode.zip"),
			Container: to.Ptr("mycontainer"),
			RefreshConfiguration: &armstreamanalytics.RefreshConfiguration{
				DateFormat:      to.Ptr("yyyy-dd-MM"),
				PathPattern:     to.Ptr("{date}\\\\{time}"),
				RefreshInterval: to.Ptr("00:01:00"),
				RefreshType:     to.Ptr(armstreamanalytics.UpdatableUdfRefreshTypeNonblocking),
				TimeFormat:      to.Ptr("HH"),
			},
			StorageAccount: &armstreamanalytics.StorageAccount{
				AccountKey:  to.Ptr("mykey"),
				AccountName: to.Ptr("mystorageaccount"),
			},
		},
		Functions: []*armstreamanalytics.Function{},
		Inputs: []*armstreamanalytics.Input{
			{
				Name: to.Ptr("inputtest"),
				Properties: &armstreamanalytics.StreamInputProperties{
					Type: to.Ptr("Stream"),
					Serialization: &armstreamanalytics.JSONSerialization{
						Type: to.Ptr(armstreamanalytics.EventSerializationTypeJSON),
						Properties: &armstreamanalytics.JSONSerializationProperties{
							Encoding: to.Ptr(armstreamanalytics.EncodingUTF8),
						},
					},
					Datasource: &armstreamanalytics.BlobStreamInputDataSource{
						Type: to.Ptr("Microsoft.Storage/Blob"),
						Properties: &armstreamanalytics.BlobStreamInputDataSourceProperties{
							Container:   to.Ptr("containerName"),
							PathPattern: to.Ptr(""),
							StorageAccounts: []*armstreamanalytics.StorageAccount{
								{
									AccountKey:  to.Ptr("yourAccountKey=="),
									AccountName: to.Ptr("yourAccountName"),
								}},
						},
					},
				},
			}},
		OutputErrorPolicy: to.Ptr(armstreamanalytics.OutputErrorPolicyDrop),
		Outputs: []*armstreamanalytics.Output{
			{
				Name: to.Ptr("outputtest"),
				Properties: &armstreamanalytics.OutputProperties{
					Datasource: &armstreamanalytics.AzureSQLDatabaseOutputDataSource{
						Type: to.Ptr("Microsoft.Sql/Server/Database"),
						Properties: &armstreamanalytics.AzureSQLDatabaseOutputDataSourceProperties{
							Database: to.Ptr("databaseName"),
							Password: to.Ptr("userPassword"),
							Server:   to.Ptr("serverName"),
							Table:    to.Ptr("tableName"),
							User:     to.Ptr("<user>"),
						},
					},
				},
			}},
		SKU: &armstreamanalytics.SKU{
			Name: to.Ptr(armstreamanalytics.SKUNameStandard),
		},
		Transformation: &armstreamanalytics.Transformation{
			Name: to.Ptr("transformationtest"),
			Properties: &armstreamanalytics.TransformationProperties{
				Query:          to.Ptr("Select Id, Name from inputtest"),
				StreamingUnits: to.Ptr[int32](1),
			},
		},
	},
}, &armstreamanalytics.StreamingJobsClientBeginCreateOrReplaceOptions{IfMatch: nil,
	IfNoneMatch: nil,
})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
	log.Fatalf("failed to pull the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.StreamingJob = armstreamanalytics.StreamingJob{
// 	Name: to.Ptr("sj7804"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg3276/providers/Microsoft.StreamAnalytics/streamingjobs/sj7804"),
// 	Location: to.Ptr("West US"),
// 	Tags: map[string]*string{
// 		"key1": to.Ptr("value1"),
// 		"key3": to.Ptr("value3"),
// 		"randomKey": to.Ptr("randomValue"),
// 	},
// 	Properties: &armstreamanalytics.StreamingJobProperties{
// 		CompatibilityLevel: to.Ptr(armstreamanalytics.CompatibilityLevelOne0),
// 		CreatedDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-05-11T04:37:11.540Z"); return t}()),
// 		DataLocale: to.Ptr("en-US"),
// 		EventsLateArrivalMaxDelayInSeconds: to.Ptr[int32](5),
// 		EventsOutOfOrderMaxDelayInSeconds: to.Ptr[int32](0),
// 		EventsOutOfOrderPolicy: to.Ptr(armstreamanalytics.EventsOutOfOrderPolicyDrop),
// 		Functions: []*armstreamanalytics.Function{
// 		},
// 		Inputs: []*armstreamanalytics.Input{
// 			{
// 				Name: to.Ptr("inputtest"),
// 				Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/inputs"),
// 				ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg3276/providers/Microsoft.StreamAnalytics/streamingjobs/sj7804/inputs/inputtest"),
// 				Properties: &armstreamanalytics.StreamInputProperties{
// 					Type: to.Ptr("Stream"),
// 					Etag: to.Ptr("ca88f8fa-605b-4c7f-8695-46f5faa60cd0"),
// 					Serialization: &armstreamanalytics.JSONSerialization{
// 						Type: to.Ptr(armstreamanalytics.EventSerializationTypeJSON),
// 						Properties: &armstreamanalytics.JSONSerializationProperties{
// 							Encoding: to.Ptr(armstreamanalytics.EncodingUTF8),
// 						},
// 					},
// 					Datasource: &armstreamanalytics.BlobStreamInputDataSource{
// 						Type: to.Ptr("Microsoft.Storage/Blob"),
// 						Properties: &armstreamanalytics.BlobStreamInputDataSourceProperties{
// 							Container: to.Ptr("containerName"),
// 							PathPattern: to.Ptr(""),
// 							StorageAccounts: []*armstreamanalytics.StorageAccount{
// 								{
// 									AccountName: to.Ptr("accountName"),
// 							}},
// 						},
// 					},
// 				},
// 		}},
// 		JobID: to.Ptr("732e4b1d-94a7-43ae-8297-3ad04f1540b9"),
// 		JobState: to.Ptr("Created"),
// 		OutputErrorPolicy: to.Ptr(armstreamanalytics.OutputErrorPolicyDrop),
// 		Outputs: []*armstreamanalytics.Output{
// 			{
// 				Name: to.Ptr("outputtest"),
// 				Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/outputs"),
// 				ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg3276/providers/Microsoft.StreamAnalytics/streamingjobs/sj7804/outputs/outputtest"),
// 				Properties: &armstreamanalytics.OutputProperties{
// 					Datasource: &armstreamanalytics.AzureSQLDatabaseOutputDataSource{
// 						Type: to.Ptr("Microsoft.Sql/Server/Database"),
// 						Properties: &armstreamanalytics.AzureSQLDatabaseOutputDataSourceProperties{
// 							Database: to.Ptr("databaseName"),
// 							Server: to.Ptr("serverName"),
// 							Table: to.Ptr("tableName"),
// 							User: to.Ptr("userName"),
// 						},
// 					},
// 					Etag: to.Ptr("62097c3c-b503-41ff-a56f-196a9598ab90"),
// 				},
// 		}},
// 		ProvisioningState: to.Ptr("Succeeded"),
// 		SKU: &armstreamanalytics.SKU{
// 			Name: to.Ptr(armstreamanalytics.SKUNameStandard),
// 		},
// 		Transformation: &armstreamanalytics.Transformation{
// 			Name: to.Ptr("transformationtest"),
// 			Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/transformations"),
// 			ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg3276/providers/Microsoft.StreamAnalytics/streamingjobs/sj7804/transformations/transformationtest"),
// 			Properties: &armstreamanalytics.TransformationProperties{
// 				Etag: to.Ptr("91d8fcbe-60b3-49c3-9f21-9942b95602b8"),
// 				Query: to.Ptr("Select Id, Name from inputtest"),
// 				StreamingUnits: to.Ptr[int32](1),
// 			},
// 		},
// 	},
// }
Output:

Example (CreateAStreamingJobShellAStreamingJobWithNoInputsOutputsTransformationOrFunctions)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/StreamingJob_Create_JobShell.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewStreamingJobsClient().BeginCreateOrReplace(ctx, "sjrg6936", "sj59", armstreamanalytics.StreamingJob{
	Location: to.Ptr("West US"),
	Tags: map[string]*string{
		"key1":      to.Ptr("value1"),
		"key3":      to.Ptr("value3"),
		"randomKey": to.Ptr("randomValue"),
	},
	Properties: &armstreamanalytics.StreamingJobProperties{
		CompatibilityLevel:                 to.Ptr(armstreamanalytics.CompatibilityLevelOne0),
		DataLocale:                         to.Ptr("en-US"),
		EventsLateArrivalMaxDelayInSeconds: to.Ptr[int32](16),
		EventsOutOfOrderMaxDelayInSeconds:  to.Ptr[int32](5),
		EventsOutOfOrderPolicy:             to.Ptr(armstreamanalytics.EventsOutOfOrderPolicyDrop),
		Functions:                          []*armstreamanalytics.Function{},
		Inputs:                             []*armstreamanalytics.Input{},
		OutputErrorPolicy:                  to.Ptr(armstreamanalytics.OutputErrorPolicyDrop),
		Outputs:                            []*armstreamanalytics.Output{},
		SKU: &armstreamanalytics.SKU{
			Name: to.Ptr(armstreamanalytics.SKUNameStandard),
		},
	},
}, &armstreamanalytics.StreamingJobsClientBeginCreateOrReplaceOptions{IfMatch: nil,
	IfNoneMatch: nil,
})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
	log.Fatalf("failed to pull the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.StreamingJob = armstreamanalytics.StreamingJob{
// 	Name: to.Ptr("sj59"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg6936/providers/Microsoft.StreamAnalytics/streamingjobs/sj59"),
// 	Location: to.Ptr("West US"),
// 	Tags: map[string]*string{
// 		"key1": to.Ptr("value1"),
// 		"key3": to.Ptr("value3"),
// 		"randomKey": to.Ptr("randomValue"),
// 	},
// 	Properties: &armstreamanalytics.StreamingJobProperties{
// 		CompatibilityLevel: to.Ptr(armstreamanalytics.CompatibilityLevelOne0),
// 		CreatedDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-05-11T04:37:04.697Z"); return t}()),
// 		DataLocale: to.Ptr("en-US"),
// 		EventsLateArrivalMaxDelayInSeconds: to.Ptr[int32](16),
// 		EventsOutOfOrderMaxDelayInSeconds: to.Ptr[int32](5),
// 		EventsOutOfOrderPolicy: to.Ptr(armstreamanalytics.EventsOutOfOrderPolicyDrop),
// 		Functions: []*armstreamanalytics.Function{
// 		},
// 		Inputs: []*armstreamanalytics.Input{
// 		},
// 		JobID: to.Ptr("d53ecc3c-fcb0-485d-9caf-25e20fcb2061"),
// 		JobState: to.Ptr("Created"),
// 		OutputErrorPolicy: to.Ptr(armstreamanalytics.OutputErrorPolicyDrop),
// 		Outputs: []*armstreamanalytics.Output{
// 		},
// 		ProvisioningState: to.Ptr("Succeeded"),
// 		SKU: &armstreamanalytics.SKU{
// 			Name: to.Ptr(armstreamanalytics.SKUNameStandard),
// 		},
// 	},
// }
Output:

Example (CreateAStreamingJobShellAStreamingJobWithNoInputsOutputsTransformationOrFunctionsWithUserAssignedIdentity)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/StreamingJob_Create_UserAssignedIdentity.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewStreamingJobsClient().BeginCreateOrReplace(ctx, "sjrg", "sjName", armstreamanalytics.StreamingJob{
	Location: to.Ptr("West US"),
	Tags: map[string]*string{
		"key1":      to.Ptr("value1"),
		"key3":      to.Ptr("value3"),
		"randomKey": to.Ptr("randomValue"),
	},
	Identity: &armstreamanalytics.Identity{
		Type: to.Ptr("UserAssigned"),
		UserAssignedIdentities: map[string]any{
			"/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/akvenkat/providers/Microsoft.ManagedIdentity/userAssignedIdentities/sdkIdentity": map[string]any{},
		},
	},
	Properties: &armstreamanalytics.StreamingJobProperties{
		CompatibilityLevel:                 to.Ptr(armstreamanalytics.CompatibilityLevelOne0),
		DataLocale:                         to.Ptr("en-US"),
		EventsLateArrivalMaxDelayInSeconds: to.Ptr[int32](16),
		EventsOutOfOrderMaxDelayInSeconds:  to.Ptr[int32](5),
		EventsOutOfOrderPolicy:             to.Ptr(armstreamanalytics.EventsOutOfOrderPolicyDrop),
		Functions:                          []*armstreamanalytics.Function{},
		Inputs:                             []*armstreamanalytics.Input{},
		OutputErrorPolicy:                  to.Ptr(armstreamanalytics.OutputErrorPolicyDrop),
		Outputs:                            []*armstreamanalytics.Output{},
		SKU: &armstreamanalytics.SKU{
			Name: to.Ptr(armstreamanalytics.SKUNameStandard),
		},
	},
}, &armstreamanalytics.StreamingJobsClientBeginCreateOrReplaceOptions{IfMatch: nil,
	IfNoneMatch: nil,
})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
	log.Fatalf("failed to pull the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.StreamingJob = armstreamanalytics.StreamingJob{
// 	Name: to.Ptr("sjName"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg/providers/Microsoft.StreamAnalytics/streamingjobs/sjName"),
// 	Location: to.Ptr("West US"),
// 	Tags: map[string]*string{
// 		"key1": to.Ptr("value1"),
// 		"key3": to.Ptr("value3"),
// 		"randomKey": to.Ptr("randomValue"),
// 	},
// 	Identity: &armstreamanalytics.Identity{
// 		Type: to.Ptr("UserAssigned"),
// 		PrincipalID: to.Ptr("c10a9ec7-7136-441f-9e90-d17cd1a51b94"),
// 		TenantID: to.Ptr("72f988bf-86f1-41af-91ab-2d7cd011db47"),
// 		UserAssignedIdentities: map[string]any{
// 			"/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/akvenkat/providers/Microsoft.ManagedIdentity/userAssignedIdentities/sdkIdentity": map[string]any{
// 			},
// 		},
// 	},
// 	Properties: &armstreamanalytics.StreamingJobProperties{
// 		CompatibilityLevel: to.Ptr(armstreamanalytics.CompatibilityLevelOne0),
// 		CreatedDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-05-11T04:37:04.697Z"); return t}()),
// 		DataLocale: to.Ptr("en-US"),
// 		EventsLateArrivalMaxDelayInSeconds: to.Ptr[int32](16),
// 		EventsOutOfOrderMaxDelayInSeconds: to.Ptr[int32](5),
// 		EventsOutOfOrderPolicy: to.Ptr(armstreamanalytics.EventsOutOfOrderPolicyDrop),
// 		Functions: []*armstreamanalytics.Function{
// 		},
// 		Inputs: []*armstreamanalytics.Input{
// 		},
// 		JobID: to.Ptr("d53ecc3c-fcb0-485d-9caf-25e20fcb2061"),
// 		JobState: to.Ptr("Created"),
// 		OutputErrorPolicy: to.Ptr(armstreamanalytics.OutputErrorPolicyDrop),
// 		Outputs: []*armstreamanalytics.Output{
// 		},
// 		ProvisioningState: to.Ptr("Succeeded"),
// 		SKU: &armstreamanalytics.SKU{
// 			Name: to.Ptr(armstreamanalytics.SKUNameStandard),
// 		},
// 	},
// }
Output:

func (*StreamingJobsClient) BeginDelete

BeginDelete - Deletes a streaming job. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-10-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • jobName - The name of the streaming job.
  • options - StreamingJobsClientBeginDeleteOptions contains the optional parameters for the StreamingJobsClient.BeginDelete method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/StreamingJob_Delete.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewStreamingJobsClient().BeginDelete(ctx, "sjrg6936", "sj59", nil)
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
_, err = poller.PollUntilDone(ctx, nil)
if err != nil {
	log.Fatalf("failed to pull the result: %v", err)
}
Output:

func (*StreamingJobsClient) BeginScale

BeginScale - Scales a streaming job when the job is running. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-10-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • jobName - The name of the streaming job.
  • options - StreamingJobsClientBeginScaleOptions contains the optional parameters for the StreamingJobsClient.BeginScale method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/StreamingJob_Scale.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewStreamingJobsClient().BeginScale(ctx, "sjrg", "sjName", &armstreamanalytics.StreamingJobsClientBeginScaleOptions{ScaleJobParameters: &armstreamanalytics.ScaleStreamingJobParameters{
	StreamingUnits: to.Ptr[int32](36),
},
})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
_, err = poller.PollUntilDone(ctx, nil)
if err != nil {
	log.Fatalf("failed to pull the result: %v", err)
}
Output:

func (*StreamingJobsClient) BeginStart

BeginStart - Starts a streaming job. Once a job is started it will start processing input events and produce output. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-10-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • jobName - The name of the streaming job.
  • options - StreamingJobsClientBeginStartOptions contains the optional parameters for the StreamingJobsClient.BeginStart method.
Example (StartAStreamingJobWithCustomTimeOutputStartMode)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/StreamingJob_Start_CustomTime.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewStreamingJobsClient().BeginStart(ctx, "sjrg6936", "sj59", &armstreamanalytics.StreamingJobsClientBeginStartOptions{StartJobParameters: &armstreamanalytics.StartStreamingJobParameters{
	OutputStartMode: to.Ptr(armstreamanalytics.OutputStartModeCustomTime),
	OutputStartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2012-12-12T12:12:12.000Z"); return t }()),
},
})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
_, err = poller.PollUntilDone(ctx, nil)
if err != nil {
	log.Fatalf("failed to pull the result: %v", err)
}
Output:

Example (StartAStreamingJobWithJobStartTimeOutputStartMode)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/StreamingJob_Start_JobStartTime.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewStreamingJobsClient().BeginStart(ctx, "sjrg6936", "sj59", &armstreamanalytics.StreamingJobsClientBeginStartOptions{StartJobParameters: &armstreamanalytics.StartStreamingJobParameters{
	OutputStartMode: to.Ptr(armstreamanalytics.OutputStartModeJobStartTime),
},
})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
_, err = poller.PollUntilDone(ctx, nil)
if err != nil {
	log.Fatalf("failed to pull the result: %v", err)
}
Output:

Example (StartAStreamingJobWithLastOutputEventTimeOutputStartMode)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/StreamingJob_Start_LastOutputEventTime.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewStreamingJobsClient().BeginStart(ctx, "sjrg6936", "sj59", &armstreamanalytics.StreamingJobsClientBeginStartOptions{StartJobParameters: &armstreamanalytics.StartStreamingJobParameters{
	OutputStartMode: to.Ptr(armstreamanalytics.OutputStartModeLastOutputEventTime),
},
})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
_, err = poller.PollUntilDone(ctx, nil)
if err != nil {
	log.Fatalf("failed to pull the result: %v", err)
}
Output:

func (*StreamingJobsClient) BeginStop

BeginStop - Stops a running streaming job. This will cause a running streaming job to stop processing input events and producing output. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-10-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • jobName - The name of the streaming job.
  • options - StreamingJobsClientBeginStopOptions contains the optional parameters for the StreamingJobsClient.BeginStop method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/StreamingJob_Stop.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewStreamingJobsClient().BeginStop(ctx, "sjrg6936", "sj59", nil)
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
_, err = poller.PollUntilDone(ctx, nil)
if err != nil {
	log.Fatalf("failed to pull the result: %v", err)
}
Output:

func (*StreamingJobsClient) Get

func (client *StreamingJobsClient) Get(ctx context.Context, resourceGroupName string, jobName string, options *StreamingJobsClientGetOptions) (StreamingJobsClientGetResponse, error)

Get - Gets details about the specified streaming job. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-10-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • jobName - The name of the streaming job.
  • options - StreamingJobsClientGetOptions contains the optional parameters for the StreamingJobsClient.Get method.
Example (GetAStreamingJobAndDoNotUseTheExpandODataQueryParameter)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/StreamingJob_Get_NoExpand.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewStreamingJobsClient().Get(ctx, "sjrg6936", "sj59", &armstreamanalytics.StreamingJobsClientGetOptions{Expand: nil})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.StreamingJob = armstreamanalytics.StreamingJob{
// 	Name: to.Ptr("sj59"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg6936/providers/Microsoft.StreamAnalytics/streamingjobs/sj59"),
// 	Location: to.Ptr("West US"),
// 	Tags: map[string]*string{
// 		"key1": to.Ptr("value1"),
// 		"key3": to.Ptr("value3"),
// 		"randomKey": to.Ptr("randomValue"),
// 	},
// 	Properties: &armstreamanalytics.StreamingJobProperties{
// 		CompatibilityLevel: to.Ptr(armstreamanalytics.CompatibilityLevelOne0),
// 		CreatedDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-05-11T04:37:04.697Z"); return t}()),
// 		DataLocale: to.Ptr("en-US"),
// 		EventsLateArrivalMaxDelayInSeconds: to.Ptr[int32](16),
// 		EventsOutOfOrderMaxDelayInSeconds: to.Ptr[int32](5),
// 		EventsOutOfOrderPolicy: to.Ptr(armstreamanalytics.EventsOutOfOrderPolicyDrop),
// 		JobID: to.Ptr("d53ecc3c-fcb0-485d-9caf-25e20fcb2061"),
// 		JobState: to.Ptr("Created"),
// 		OutputErrorPolicy: to.Ptr(armstreamanalytics.OutputErrorPolicyDrop),
// 		ProvisioningState: to.Ptr("Succeeded"),
// 		SKU: &armstreamanalytics.SKU{
// 			Name: to.Ptr(armstreamanalytics.SKUNameStandard),
// 		},
// 	},
// 	SKU: &armstreamanalytics.SKU{
// 		Name: to.Ptr(armstreamanalytics.SKUNameStandard),
// 		Capacity: to.Ptr[int32](36),
// 	},
// }
Output:

Example (GetAStreamingJobAndUseTheExpandODataQueryParameterToExpandInputsOutputsTransformationAndFunctions)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/StreamingJob_Get_Expand.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewStreamingJobsClient().Get(ctx, "sjrg3276", "sj7804", &armstreamanalytics.StreamingJobsClientGetOptions{Expand: to.Ptr("inputs,outputs,transformation,functions")})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.StreamingJob = armstreamanalytics.StreamingJob{
// 	Name: to.Ptr("sj7804"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg3276/providers/Microsoft.StreamAnalytics/streamingjobs/sj7804"),
// 	Location: to.Ptr("West US"),
// 	Tags: map[string]*string{
// 		"key1": to.Ptr("value1"),
// 		"key3": to.Ptr("value3"),
// 		"randomKey": to.Ptr("randomValue"),
// 	},
// 	Properties: &armstreamanalytics.StreamingJobProperties{
// 		CompatibilityLevel: to.Ptr(armstreamanalytics.CompatibilityLevelOne0),
// 		CreatedDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-05-11T04:37:11.540Z"); return t}()),
// 		DataLocale: to.Ptr("en-US"),
// 		EventsLateArrivalMaxDelayInSeconds: to.Ptr[int32](5),
// 		EventsOutOfOrderMaxDelayInSeconds: to.Ptr[int32](0),
// 		EventsOutOfOrderPolicy: to.Ptr(armstreamanalytics.EventsOutOfOrderPolicyDrop),
// 		Functions: []*armstreamanalytics.Function{
// 		},
// 		Inputs: []*armstreamanalytics.Input{
// 			{
// 				Name: to.Ptr("inputtest"),
// 				Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/inputs"),
// 				ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg3276/providers/Microsoft.StreamAnalytics/streamingjobs/sj7804/inputs/inputtest"),
// 				Properties: &armstreamanalytics.StreamInputProperties{
// 					Type: to.Ptr("Stream"),
// 					Etag: to.Ptr("ca88f8fa-605b-4c7f-8695-46f5faa60cd0"),
// 					Serialization: &armstreamanalytics.JSONSerialization{
// 						Type: to.Ptr(armstreamanalytics.EventSerializationTypeJSON),
// 						Properties: &armstreamanalytics.JSONSerializationProperties{
// 							Encoding: to.Ptr(armstreamanalytics.EncodingUTF8),
// 						},
// 					},
// 					Datasource: &armstreamanalytics.BlobStreamInputDataSource{
// 						Type: to.Ptr("Microsoft.Storage/Blob"),
// 						Properties: &armstreamanalytics.BlobStreamInputDataSourceProperties{
// 							Container: to.Ptr("containerName"),
// 							PathPattern: to.Ptr(""),
// 							StorageAccounts: []*armstreamanalytics.StorageAccount{
// 								{
// 									AccountName: to.Ptr("accountName"),
// 							}},
// 						},
// 					},
// 				},
// 		}},
// 		JobID: to.Ptr("732e4b1d-94a7-43ae-8297-3ad04f1540b9"),
// 		JobState: to.Ptr("Created"),
// 		OutputErrorPolicy: to.Ptr(armstreamanalytics.OutputErrorPolicyDrop),
// 		Outputs: []*armstreamanalytics.Output{
// 			{
// 				Name: to.Ptr("outputtest"),
// 				Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/outputs"),
// 				ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg3276/providers/Microsoft.StreamAnalytics/streamingjobs/sj7804/outputs/outputtest"),
// 				Properties: &armstreamanalytics.OutputProperties{
// 					Datasource: &armstreamanalytics.AzureSQLDatabaseOutputDataSource{
// 						Type: to.Ptr("Microsoft.Sql/Server/Database"),
// 						Properties: &armstreamanalytics.AzureSQLDatabaseOutputDataSourceProperties{
// 							Database: to.Ptr("databaseName"),
// 							Server: to.Ptr("serverName"),
// 							Table: to.Ptr("tableName"),
// 							User: to.Ptr("userName"),
// 						},
// 					},
// 					Etag: to.Ptr("62097c3c-b503-41ff-a56f-196a9598ab90"),
// 				},
// 		}},
// 		ProvisioningState: to.Ptr("Succeeded"),
// 		SKU: &armstreamanalytics.SKU{
// 			Name: to.Ptr(armstreamanalytics.SKUNameStandard),
// 		},
// 		Transformation: &armstreamanalytics.Transformation{
// 			Name: to.Ptr("transformationtest"),
// 			Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/transformations"),
// 			ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg3276/providers/Microsoft.StreamAnalytics/streamingjobs/sj7804/transformations/transformationtest"),
// 			Properties: &armstreamanalytics.TransformationProperties{
// 				Etag: to.Ptr("91d8fcbe-60b3-49c3-9f21-9942b95602b8"),
// 				Query: to.Ptr("Select Id, Name from inputtest"),
// 				StreamingUnits: to.Ptr[int32](1),
// 			},
// 		},
// 	},
// 	SKU: &armstreamanalytics.SKU{
// 		Name: to.Ptr(armstreamanalytics.SKUNameStandard),
// 		Capacity: to.Ptr[int32](36),
// 	},
// }
Output:

func (*StreamingJobsClient) NewListByResourceGroupPager

NewListByResourceGroupPager - Lists all of the streaming jobs in the specified resource group.

Generated from API version 2021-10-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • options - StreamingJobsClientListByResourceGroupOptions contains the optional parameters for the StreamingJobsClient.NewListByResourceGroupPager method.
Example (ListAllStreamingJobsInAResourceGroupAndDoNotUseTheExpandODataQueryParameter)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/StreamingJob_List_ByResourceGroup_NoExpand.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewStreamingJobsClient().NewListByResourceGroupPager("sjrg6936", &armstreamanalytics.StreamingJobsClientListByResourceGroupOptions{Expand: nil})
for pager.More() {
	page, err := pager.NextPage(ctx)
	if err != nil {
		log.Fatalf("failed to advance page: %v", err)
	}
	for _, v := range page.Value {
		// You could use page here. We use blank identifier for just demo purposes.
		_ = v
	}
	// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// page.StreamingJobListResult = armstreamanalytics.StreamingJobListResult{
	// 	Value: []*armstreamanalytics.StreamingJob{
	// 		{
	// 			Name: to.Ptr("sj59"),
	// 			Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs"),
	// 			ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg6936/providers/Microsoft.StreamAnalytics/streamingjobs/sj59"),
	// 			Location: to.Ptr("West US"),
	// 			Tags: map[string]*string{
	// 				"key1": to.Ptr("value1"),
	// 				"key3": to.Ptr("value3"),
	// 				"randomKey": to.Ptr("randomValue"),
	// 			},
	// 			Properties: &armstreamanalytics.StreamingJobProperties{
	// 				CompatibilityLevel: to.Ptr(armstreamanalytics.CompatibilityLevelOne0),
	// 				CreatedDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-05-11T04:37:04.697Z"); return t}()),
	// 				DataLocale: to.Ptr("en-US"),
	// 				Etag: to.Ptr("3e6872bc-c9d0-45b6-91b6-da66f1773056"),
	// 				EventsLateArrivalMaxDelayInSeconds: to.Ptr[int32](13),
	// 				EventsOutOfOrderMaxDelayInSeconds: to.Ptr[int32](21),
	// 				EventsOutOfOrderPolicy: to.Ptr(armstreamanalytics.EventsOutOfOrderPolicyDrop),
	// 				JobID: to.Ptr("d53ecc3c-fcb0-485d-9caf-25e20fcb2061"),
	// 				JobState: to.Ptr("Created"),
	// 				OutputErrorPolicy: to.Ptr(armstreamanalytics.OutputErrorPolicyDrop),
	// 				ProvisioningState: to.Ptr("Succeeded"),
	// 				SKU: &armstreamanalytics.SKU{
	// 					Name: to.Ptr(armstreamanalytics.SKUNameStandard),
	// 				},
	// 			},
	// 			SKU: &armstreamanalytics.SKU{
	// 				Name: to.Ptr(armstreamanalytics.SKUNameStandard),
	// 				Capacity: to.Ptr[int32](36),
	// 			},
	// 		},
	// 		{
	// 			Name: to.Ptr("sj69"),
	// 			Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs"),
	// 			ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg6936/providers/Microsoft.StreamAnalytics/streamingjobs/sj69"),
	// 			Location: to.Ptr("West US"),
	// 			Tags: map[string]*string{
	// 				"key1": to.Ptr("value1"),
	// 				"key3": to.Ptr("value3"),
	// 				"randomKey": to.Ptr("randomValue"),
	// 			},
	// 			Properties: &armstreamanalytics.StreamingJobProperties{
	// 				CompatibilityLevel: to.Ptr(armstreamanalytics.CompatibilityLevelOne0),
	// 				CreatedDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-05-11T04:38:04.697Z"); return t}()),
	// 				DataLocale: to.Ptr("en-US"),
	// 				Etag: to.Ptr("99538949-a164-4e2f-a991-40303e86024f"),
	// 				EventsLateArrivalMaxDelayInSeconds: to.Ptr[int32](6),
	// 				EventsOutOfOrderMaxDelayInSeconds: to.Ptr[int32](5),
	// 				EventsOutOfOrderPolicy: to.Ptr(armstreamanalytics.EventsOutOfOrderPolicyDrop),
	// 				JobID: to.Ptr("817b36cf-a161-4a9e-86f2-eb00b3566d88"),
	// 				JobState: to.Ptr("Created"),
	// 				OutputErrorPolicy: to.Ptr(armstreamanalytics.OutputErrorPolicyDrop),
	// 				ProvisioningState: to.Ptr("Succeeded"),
	// 				SKU: &armstreamanalytics.SKU{
	// 					Name: to.Ptr(armstreamanalytics.SKUNameStandard),
	// 				},
	// 			},
	// 			SKU: &armstreamanalytics.SKU{
	// 				Name: to.Ptr(armstreamanalytics.SKUNameStandard),
	// 				Capacity: to.Ptr[int32](36),
	// 			},
	// 	}},
	// }
}
Output:

Example (ListAllStreamingJobsInAResourceGroupAndUseTheExpandODataQueryParameterToExpandInputsOutputsTransformationAndFunctions)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/StreamingJob_List_ByResourceGroup_Expand.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewStreamingJobsClient().NewListByResourceGroupPager("sjrg3276", &armstreamanalytics.StreamingJobsClientListByResourceGroupOptions{Expand: to.Ptr("inputs,outputs,transformation,functions")})
for pager.More() {
	page, err := pager.NextPage(ctx)
	if err != nil {
		log.Fatalf("failed to advance page: %v", err)
	}
	for _, v := range page.Value {
		// You could use page here. We use blank identifier for just demo purposes.
		_ = v
	}
	// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// page.StreamingJobListResult = armstreamanalytics.StreamingJobListResult{
	// 	Value: []*armstreamanalytics.StreamingJob{
	// 		{
	// 			Name: to.Ptr("sj7804"),
	// 			Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs"),
	// 			ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg3276/providers/Microsoft.StreamAnalytics/streamingjobs/sj7804"),
	// 			Location: to.Ptr("West US"),
	// 			Tags: map[string]*string{
	// 				"key1": to.Ptr("value1"),
	// 				"key3": to.Ptr("value3"),
	// 				"randomKey": to.Ptr("randomValue"),
	// 			},
	// 			Properties: &armstreamanalytics.StreamingJobProperties{
	// 				CompatibilityLevel: to.Ptr(armstreamanalytics.CompatibilityLevelOne0),
	// 				CreatedDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-05-11T04:37:11.540Z"); return t}()),
	// 				DataLocale: to.Ptr("en-US"),
	// 				Etag: to.Ptr("8081b2a3-dfe6-457f-8740-1a22d209bf8a"),
	// 				EventsLateArrivalMaxDelayInSeconds: to.Ptr[int32](5),
	// 				EventsOutOfOrderMaxDelayInSeconds: to.Ptr[int32](0),
	// 				EventsOutOfOrderPolicy: to.Ptr(armstreamanalytics.EventsOutOfOrderPolicyAdjust),
	// 				Functions: []*armstreamanalytics.Function{
	// 				},
	// 				Inputs: []*armstreamanalytics.Input{
	// 					{
	// 						Name: to.Ptr("inputtest"),
	// 						Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/inputs"),
	// 						ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg3276/providers/Microsoft.StreamAnalytics/streamingjobs/sj7804/inputs/inputtest"),
	// 						Properties: &armstreamanalytics.StreamInputProperties{
	// 							Type: to.Ptr("Stream"),
	// 							Etag: to.Ptr("ca88f8fa-605b-4c7f-8695-46f5faa60cd0"),
	// 							Serialization: &armstreamanalytics.JSONSerialization{
	// 								Type: to.Ptr(armstreamanalytics.EventSerializationTypeJSON),
	// 								Properties: &armstreamanalytics.JSONSerializationProperties{
	// 									Encoding: to.Ptr(armstreamanalytics.EncodingUTF8),
	// 								},
	// 							},
	// 							Datasource: &armstreamanalytics.BlobStreamInputDataSource{
	// 								Type: to.Ptr("Microsoft.Storage/Blob"),
	// 								Properties: &armstreamanalytics.BlobStreamInputDataSourceProperties{
	// 									Container: to.Ptr("containerName"),
	// 									PathPattern: to.Ptr(""),
	// 									StorageAccounts: []*armstreamanalytics.StorageAccount{
	// 										{
	// 											AccountName: to.Ptr("accountName"),
	// 									}},
	// 								},
	// 							},
	// 						},
	// 				}},
	// 				JobID: to.Ptr("732e4b1d-94a7-43ae-8297-3ad04f1540b9"),
	// 				JobState: to.Ptr("Created"),
	// 				OutputErrorPolicy: to.Ptr(armstreamanalytics.OutputErrorPolicyStop),
	// 				Outputs: []*armstreamanalytics.Output{
	// 					{
	// 						Name: to.Ptr("outputtest"),
	// 						Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/outputs"),
	// 						ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg3276/providers/Microsoft.StreamAnalytics/streamingjobs/sj7804/outputs/outputtest"),
	// 						Properties: &armstreamanalytics.OutputProperties{
	// 							Datasource: &armstreamanalytics.AzureSQLDatabaseOutputDataSource{
	// 								Type: to.Ptr("Microsoft.Sql/Server/Database"),
	// 								Properties: &armstreamanalytics.AzureSQLDatabaseOutputDataSourceProperties{
	// 									Database: to.Ptr("databaseName"),
	// 									Server: to.Ptr("serverName"),
	// 									Table: to.Ptr("tableName"),
	// 									User: to.Ptr("userName"),
	// 								},
	// 							},
	// 							Etag: to.Ptr("62097c3c-b503-41ff-a56f-196a9598ab90"),
	// 						},
	// 				}},
	// 				ProvisioningState: to.Ptr("Succeeded"),
	// 				SKU: &armstreamanalytics.SKU{
	// 					Name: to.Ptr(armstreamanalytics.SKUNameStandard),
	// 				},
	// 				Transformation: &armstreamanalytics.Transformation{
	// 					Name: to.Ptr("transformationtest"),
	// 					Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/transformations"),
	// 					ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg3276/providers/Microsoft.StreamAnalytics/streamingjobs/sj7804/transformations/transformationtest"),
	// 					Properties: &armstreamanalytics.TransformationProperties{
	// 						Etag: to.Ptr("91d8fcbe-60b3-49c3-9f21-9942b95602b8"),
	// 						Query: to.Ptr("Select Id, Name from inputtest"),
	// 						StreamingUnits: to.Ptr[int32](1),
	// 					},
	// 				},
	// 			},
	// 			SKU: &armstreamanalytics.SKU{
	// 				Name: to.Ptr(armstreamanalytics.SKUNameStandard),
	// 				Capacity: to.Ptr[int32](36),
	// 			},
	// 		},
	// 		{
	// 			Name: to.Ptr("sj7805"),
	// 			Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs"),
	// 			ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg3276/providers/Microsoft.StreamAnalytics/streamingjobs/sj7805"),
	// 			Location: to.Ptr("West US"),
	// 			Tags: map[string]*string{
	// 				"key1": to.Ptr("value1"),
	// 				"key3": to.Ptr("value3"),
	// 				"randomKey": to.Ptr("randomValue"),
	// 			},
	// 			Properties: &armstreamanalytics.StreamingJobProperties{
	// 				CompatibilityLevel: to.Ptr(armstreamanalytics.CompatibilityLevelOne0),
	// 				CreatedDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-05-11T04:38:11.540Z"); return t}()),
	// 				DataLocale: to.Ptr("en-US"),
	// 				Etag: to.Ptr("5420059f-e5d7-47d4-be44-40816a4dca7e"),
	// 				EventsLateArrivalMaxDelayInSeconds: to.Ptr[int32](5),
	// 				EventsOutOfOrderMaxDelayInSeconds: to.Ptr[int32](0),
	// 				EventsOutOfOrderPolicy: to.Ptr(armstreamanalytics.EventsOutOfOrderPolicyAdjust),
	// 				Functions: []*armstreamanalytics.Function{
	// 				},
	// 				Inputs: []*armstreamanalytics.Input{
	// 					{
	// 						Name: to.Ptr("inputtest"),
	// 						Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/inputs"),
	// 						ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg3276/providers/Microsoft.StreamAnalytics/streamingjobs/sj7804/inputs/inputtest"),
	// 						Properties: &armstreamanalytics.StreamInputProperties{
	// 							Type: to.Ptr("Stream"),
	// 							Etag: to.Ptr("45dcf40f-88bb-4776-b5ca-7b10a607cb59"),
	// 							Serialization: &armstreamanalytics.JSONSerialization{
	// 								Type: to.Ptr(armstreamanalytics.EventSerializationTypeJSON),
	// 								Properties: &armstreamanalytics.JSONSerializationProperties{
	// 									Encoding: to.Ptr(armstreamanalytics.EncodingUTF8),
	// 								},
	// 							},
	// 							Datasource: &armstreamanalytics.BlobStreamInputDataSource{
	// 								Type: to.Ptr("Microsoft.Storage/Blob"),
	// 								Properties: &armstreamanalytics.BlobStreamInputDataSourceProperties{
	// 									Container: to.Ptr("containerName"),
	// 									PathPattern: to.Ptr(""),
	// 									StorageAccounts: []*armstreamanalytics.StorageAccount{
	// 										{
	// 											AccountName: to.Ptr("accountName"),
	// 									}},
	// 								},
	// 							},
	// 						},
	// 				}},
	// 				JobID: to.Ptr("d8f4041a-0793-433e-a38d-5499d5332113"),
	// 				JobState: to.Ptr("Created"),
	// 				OutputErrorPolicy: to.Ptr(armstreamanalytics.OutputErrorPolicyStop),
	// 				Outputs: []*armstreamanalytics.Output{
	// 					{
	// 						Name: to.Ptr("outputtest"),
	// 						Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/outputs"),
	// 						ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg3276/providers/Microsoft.StreamAnalytics/streamingjobs/sj7804/outputs/outputtest"),
	// 						Properties: &armstreamanalytics.OutputProperties{
	// 							Datasource: &armstreamanalytics.AzureSQLDatabaseOutputDataSource{
	// 								Type: to.Ptr("Microsoft.Sql/Server/Database"),
	// 								Properties: &armstreamanalytics.AzureSQLDatabaseOutputDataSourceProperties{
	// 									Database: to.Ptr("databaseName"),
	// 									Server: to.Ptr("serverName"),
	// 									Table: to.Ptr("tableName"),
	// 									User: to.Ptr("userName"),
	// 								},
	// 							},
	// 							Etag: to.Ptr("b09606c8-1b0d-43c9-affb-fac0e18b9481"),
	// 						},
	// 				}},
	// 				ProvisioningState: to.Ptr("Succeeded"),
	// 				SKU: &armstreamanalytics.SKU{
	// 					Name: to.Ptr(armstreamanalytics.SKUNameStandard),
	// 				},
	// 				Transformation: &armstreamanalytics.Transformation{
	// 					Name: to.Ptr("transformationtest"),
	// 					Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/transformations"),
	// 					ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg3276/providers/Microsoft.StreamAnalytics/streamingjobs/sj7804/transformations/transformationtest"),
	// 					Properties: &armstreamanalytics.TransformationProperties{
	// 						Etag: to.Ptr("288d95c0-204b-4c54-828f-f57aa6896b2a"),
	// 						Query: to.Ptr("Select Id, Name from inputtest"),
	// 						StreamingUnits: to.Ptr[int32](1),
	// 					},
	// 				},
	// 			},
	// 			SKU: &armstreamanalytics.SKU{
	// 				Name: to.Ptr(armstreamanalytics.SKUNameStandard),
	// 				Capacity: to.Ptr[int32](36),
	// 			},
	// 	}},
	// }
}
Output:

func (*StreamingJobsClient) NewListPager

NewListPager - Lists all of the streaming jobs in the given subscription.

Generated from API version 2021-10-01-preview

  • options - StreamingJobsClientListOptions contains the optional parameters for the StreamingJobsClient.NewListPager method.
Example (ListAllStreamingJobsInASubscriptionAndDoNotUseTheExpandODataQueryParameter)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/StreamingJob_List_BySubscription_NoExpand.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewStreamingJobsClient().NewListPager(&armstreamanalytics.StreamingJobsClientListOptions{Expand: nil})
for pager.More() {
	page, err := pager.NextPage(ctx)
	if err != nil {
		log.Fatalf("failed to advance page: %v", err)
	}
	for _, v := range page.Value {
		// You could use page here. We use blank identifier for just demo purposes.
		_ = v
	}
	// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// page.StreamingJobListResult = armstreamanalytics.StreamingJobListResult{
	// 	Value: []*armstreamanalytics.StreamingJob{
	// 		{
	// 			Name: to.Ptr("sj59"),
	// 			Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs"),
	// 			ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg6936/providers/Microsoft.StreamAnalytics/streamingjobs/sj59"),
	// 			Location: to.Ptr("West US"),
	// 			Tags: map[string]*string{
	// 				"key1": to.Ptr("value1"),
	// 				"key3": to.Ptr("value3"),
	// 				"randomKey": to.Ptr("randomValue"),
	// 			},
	// 			Properties: &armstreamanalytics.StreamingJobProperties{
	// 				CompatibilityLevel: to.Ptr(armstreamanalytics.CompatibilityLevelOne0),
	// 				CreatedDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-05-11T04:37:04.697Z"); return t}()),
	// 				DataLocale: to.Ptr("en-US"),
	// 				Etag: to.Ptr("3e6872bc-c9d0-45b6-91b6-da66f1773056"),
	// 				EventsLateArrivalMaxDelayInSeconds: to.Ptr[int32](13),
	// 				EventsOutOfOrderMaxDelayInSeconds: to.Ptr[int32](21),
	// 				EventsOutOfOrderPolicy: to.Ptr(armstreamanalytics.EventsOutOfOrderPolicyDrop),
	// 				JobID: to.Ptr("d53ecc3c-fcb0-485d-9caf-25e20fcb2061"),
	// 				JobState: to.Ptr("Created"),
	// 				OutputErrorPolicy: to.Ptr(armstreamanalytics.OutputErrorPolicyDrop),
	// 				ProvisioningState: to.Ptr("Succeeded"),
	// 				SKU: &armstreamanalytics.SKU{
	// 					Name: to.Ptr(armstreamanalytics.SKUNameStandard),
	// 				},
	// 			},
	// 			SKU: &armstreamanalytics.SKU{
	// 				Name: to.Ptr(armstreamanalytics.SKUNameStandard),
	// 				Capacity: to.Ptr[int32](36),
	// 			},
	// 		},
	// 		{
	// 			Name: to.Ptr("sj69"),
	// 			Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs"),
	// 			ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg6936/providers/Microsoft.StreamAnalytics/streamingjobs/sj69"),
	// 			Location: to.Ptr("West US"),
	// 			Tags: map[string]*string{
	// 				"key1": to.Ptr("value1"),
	// 				"key3": to.Ptr("value3"),
	// 				"randomKey": to.Ptr("randomValue"),
	// 			},
	// 			Properties: &armstreamanalytics.StreamingJobProperties{
	// 				CompatibilityLevel: to.Ptr(armstreamanalytics.CompatibilityLevelOne0),
	// 				CreatedDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-05-11T04:38:04.697Z"); return t}()),
	// 				DataLocale: to.Ptr("en-US"),
	// 				Etag: to.Ptr("99538949-a164-4e2f-a991-40303e86024f"),
	// 				EventsLateArrivalMaxDelayInSeconds: to.Ptr[int32](6),
	// 				EventsOutOfOrderMaxDelayInSeconds: to.Ptr[int32](5),
	// 				EventsOutOfOrderPolicy: to.Ptr(armstreamanalytics.EventsOutOfOrderPolicyDrop),
	// 				JobID: to.Ptr("817b36cf-a161-4a9e-86f2-eb00b3566d88"),
	// 				JobState: to.Ptr("Created"),
	// 				OutputErrorPolicy: to.Ptr(armstreamanalytics.OutputErrorPolicyDrop),
	// 				ProvisioningState: to.Ptr("Succeeded"),
	// 				SKU: &armstreamanalytics.SKU{
	// 					Name: to.Ptr(armstreamanalytics.SKUNameStandard),
	// 				},
	// 			},
	// 			SKU: &armstreamanalytics.SKU{
	// 				Name: to.Ptr(armstreamanalytics.SKUNameStandard),
	// 				Capacity: to.Ptr[int32](36),
	// 			},
	// 	}},
	// }
}
Output:

Example (ListAllStreamingJobsInASubscriptionAndUseTheExpandODataQueryParameterToExpandInputsOutputsTransformationAndFunctions)

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/StreamingJob_List_BySubscription_Expand.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewStreamingJobsClient().NewListPager(&armstreamanalytics.StreamingJobsClientListOptions{Expand: to.Ptr("inputs,outputs,transformation,functions")})
for pager.More() {
	page, err := pager.NextPage(ctx)
	if err != nil {
		log.Fatalf("failed to advance page: %v", err)
	}
	for _, v := range page.Value {
		// You could use page here. We use blank identifier for just demo purposes.
		_ = v
	}
	// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
	// page.StreamingJobListResult = armstreamanalytics.StreamingJobListResult{
	// 	Value: []*armstreamanalytics.StreamingJob{
	// 		{
	// 			Name: to.Ptr("sj7804"),
	// 			Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs"),
	// 			ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg3276/providers/Microsoft.StreamAnalytics/streamingjobs/sj7804"),
	// 			Location: to.Ptr("West US"),
	// 			Tags: map[string]*string{
	// 				"key1": to.Ptr("value1"),
	// 				"key3": to.Ptr("value3"),
	// 				"randomKey": to.Ptr("randomValue"),
	// 			},
	// 			Properties: &armstreamanalytics.StreamingJobProperties{
	// 				CompatibilityLevel: to.Ptr(armstreamanalytics.CompatibilityLevelOne0),
	// 				CreatedDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-05-11T04:37:11.540Z"); return t}()),
	// 				DataLocale: to.Ptr("en-US"),
	// 				Etag: to.Ptr("8081b2a3-dfe6-457f-8740-1a22d209bf8a"),
	// 				EventsLateArrivalMaxDelayInSeconds: to.Ptr[int32](5),
	// 				EventsOutOfOrderMaxDelayInSeconds: to.Ptr[int32](0),
	// 				EventsOutOfOrderPolicy: to.Ptr(armstreamanalytics.EventsOutOfOrderPolicyAdjust),
	// 				Functions: []*armstreamanalytics.Function{
	// 				},
	// 				Inputs: []*armstreamanalytics.Input{
	// 					{
	// 						Name: to.Ptr("inputtest"),
	// 						Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/inputs"),
	// 						ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg3276/providers/Microsoft.StreamAnalytics/streamingjobs/sj7804/inputs/inputtest"),
	// 						Properties: &armstreamanalytics.StreamInputProperties{
	// 							Type: to.Ptr("Stream"),
	// 							Etag: to.Ptr("ca88f8fa-605b-4c7f-8695-46f5faa60cd0"),
	// 							Serialization: &armstreamanalytics.JSONSerialization{
	// 								Type: to.Ptr(armstreamanalytics.EventSerializationTypeJSON),
	// 								Properties: &armstreamanalytics.JSONSerializationProperties{
	// 									Encoding: to.Ptr(armstreamanalytics.EncodingUTF8),
	// 								},
	// 							},
	// 							Datasource: &armstreamanalytics.BlobStreamInputDataSource{
	// 								Type: to.Ptr("Microsoft.Storage/Blob"),
	// 								Properties: &armstreamanalytics.BlobStreamInputDataSourceProperties{
	// 									Container: to.Ptr("containerName"),
	// 									PathPattern: to.Ptr(""),
	// 									StorageAccounts: []*armstreamanalytics.StorageAccount{
	// 										{
	// 											AccountName: to.Ptr("accountName"),
	// 									}},
	// 								},
	// 							},
	// 						},
	// 				}},
	// 				JobID: to.Ptr("732e4b1d-94a7-43ae-8297-3ad04f1540b9"),
	// 				JobState: to.Ptr("Created"),
	// 				OutputErrorPolicy: to.Ptr(armstreamanalytics.OutputErrorPolicyStop),
	// 				Outputs: []*armstreamanalytics.Output{
	// 					{
	// 						Name: to.Ptr("outputtest"),
	// 						Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/outputs"),
	// 						ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg3276/providers/Microsoft.StreamAnalytics/streamingjobs/sj7804/outputs/outputtest"),
	// 						Properties: &armstreamanalytics.OutputProperties{
	// 							Datasource: &armstreamanalytics.AzureSQLDatabaseOutputDataSource{
	// 								Type: to.Ptr("Microsoft.Sql/Server/Database"),
	// 								Properties: &armstreamanalytics.AzureSQLDatabaseOutputDataSourceProperties{
	// 									Database: to.Ptr("databaseName"),
	// 									Server: to.Ptr("serverName"),
	// 									Table: to.Ptr("tableName"),
	// 									User: to.Ptr("userName"),
	// 								},
	// 							},
	// 							Etag: to.Ptr("62097c3c-b503-41ff-a56f-196a9598ab90"),
	// 						},
	// 				}},
	// 				ProvisioningState: to.Ptr("Succeeded"),
	// 				SKU: &armstreamanalytics.SKU{
	// 					Name: to.Ptr(armstreamanalytics.SKUNameStandard),
	// 				},
	// 				Transformation: &armstreamanalytics.Transformation{
	// 					Name: to.Ptr("transformationtest"),
	// 					Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/transformations"),
	// 					ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg3276/providers/Microsoft.StreamAnalytics/streamingjobs/sj7804/transformations/transformationtest"),
	// 					Properties: &armstreamanalytics.TransformationProperties{
	// 						Etag: to.Ptr("91d8fcbe-60b3-49c3-9f21-9942b95602b8"),
	// 						Query: to.Ptr("Select Id, Name from inputtest"),
	// 						StreamingUnits: to.Ptr[int32](1),
	// 					},
	// 				},
	// 			},
	// 			SKU: &armstreamanalytics.SKU{
	// 				Name: to.Ptr(armstreamanalytics.SKUNameStandard),
	// 				Capacity: to.Ptr[int32](36),
	// 			},
	// 		},
	// 		{
	// 			Name: to.Ptr("sj7805"),
	// 			Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs"),
	// 			ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg3276/providers/Microsoft.StreamAnalytics/streamingjobs/sj7805"),
	// 			Location: to.Ptr("West US"),
	// 			Tags: map[string]*string{
	// 				"key1": to.Ptr("value1"),
	// 				"key3": to.Ptr("value3"),
	// 				"randomKey": to.Ptr("randomValue"),
	// 			},
	// 			Properties: &armstreamanalytics.StreamingJobProperties{
	// 				CompatibilityLevel: to.Ptr(armstreamanalytics.CompatibilityLevelOne0),
	// 				CreatedDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-05-11T04:38:11.540Z"); return t}()),
	// 				DataLocale: to.Ptr("en-US"),
	// 				Etag: to.Ptr("5420059f-e5d7-47d4-be44-40816a4dca7e"),
	// 				EventsLateArrivalMaxDelayInSeconds: to.Ptr[int32](5),
	// 				EventsOutOfOrderMaxDelayInSeconds: to.Ptr[int32](0),
	// 				EventsOutOfOrderPolicy: to.Ptr(armstreamanalytics.EventsOutOfOrderPolicyAdjust),
	// 				Functions: []*armstreamanalytics.Function{
	// 				},
	// 				Inputs: []*armstreamanalytics.Input{
	// 					{
	// 						Name: to.Ptr("inputtest"),
	// 						Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/inputs"),
	// 						ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg3276/providers/Microsoft.StreamAnalytics/streamingjobs/sj7805/inputs/inputtest"),
	// 						Properties: &armstreamanalytics.StreamInputProperties{
	// 							Type: to.Ptr("Stream"),
	// 							Etag: to.Ptr("45dcf40f-88bb-4776-b5ca-7b10a607cb59"),
	// 							Serialization: &armstreamanalytics.JSONSerialization{
	// 								Type: to.Ptr(armstreamanalytics.EventSerializationTypeJSON),
	// 								Properties: &armstreamanalytics.JSONSerializationProperties{
	// 									Encoding: to.Ptr(armstreamanalytics.EncodingUTF8),
	// 								},
	// 							},
	// 							Datasource: &armstreamanalytics.BlobStreamInputDataSource{
	// 								Type: to.Ptr("Microsoft.Storage/Blob"),
	// 								Properties: &armstreamanalytics.BlobStreamInputDataSourceProperties{
	// 									Container: to.Ptr("containerName"),
	// 									PathPattern: to.Ptr(""),
	// 									StorageAccounts: []*armstreamanalytics.StorageAccount{
	// 										{
	// 											AccountName: to.Ptr("accountName"),
	// 									}},
	// 								},
	// 							},
	// 						},
	// 				}},
	// 				JobID: to.Ptr("d8f4041a-0793-433e-a38d-5499d5332113"),
	// 				JobState: to.Ptr("Created"),
	// 				OutputErrorPolicy: to.Ptr(armstreamanalytics.OutputErrorPolicyStop),
	// 				Outputs: []*armstreamanalytics.Output{
	// 					{
	// 						Name: to.Ptr("outputtest"),
	// 						Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/outputs"),
	// 						ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg3276/providers/Microsoft.StreamAnalytics/streamingjobs/sj7805/outputs/outputtest"),
	// 						Properties: &armstreamanalytics.OutputProperties{
	// 							Datasource: &armstreamanalytics.AzureSQLDatabaseOutputDataSource{
	// 								Type: to.Ptr("Microsoft.Sql/Server/Database"),
	// 								Properties: &armstreamanalytics.AzureSQLDatabaseOutputDataSourceProperties{
	// 									Database: to.Ptr("databaseName"),
	// 									Server: to.Ptr("serverName"),
	// 									Table: to.Ptr("tableName"),
	// 									User: to.Ptr("userName"),
	// 								},
	// 							},
	// 							Etag: to.Ptr("b09606c8-1b0d-43c9-affb-fac0e18b9481"),
	// 						},
	// 				}},
	// 				ProvisioningState: to.Ptr("Succeeded"),
	// 				SKU: &armstreamanalytics.SKU{
	// 					Name: to.Ptr(armstreamanalytics.SKUNameStandard),
	// 				},
	// 				Transformation: &armstreamanalytics.Transformation{
	// 					Name: to.Ptr("transformationtest"),
	// 					Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/transformations"),
	// 					ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg3276/providers/Microsoft.StreamAnalytics/streamingjobs/sj7805/transformations/transformationtest"),
	// 					Properties: &armstreamanalytics.TransformationProperties{
	// 						Etag: to.Ptr("288d95c0-204b-4c54-828f-f57aa6896b2a"),
	// 						Query: to.Ptr("Select Id, Name from inputtest"),
	// 						StreamingUnits: to.Ptr[int32](1),
	// 					},
	// 				},
	// 			},
	// 			SKU: &armstreamanalytics.SKU{
	// 				Name: to.Ptr(armstreamanalytics.SKUNameStandard),
	// 				Capacity: to.Ptr[int32](36),
	// 			},
	// 	}},
	// }
}
Output:

func (*StreamingJobsClient) Update

func (client *StreamingJobsClient) Update(ctx context.Context, resourceGroupName string, jobName string, streamingJob StreamingJob, options *StreamingJobsClientUpdateOptions) (StreamingJobsClientUpdateResponse, error)

Update - Updates an existing streaming job. This can be used to partially update (ie. update one or two properties) a streaming job without affecting the rest the job definition. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-10-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • jobName - The name of the streaming job.
  • streamingJob - A streaming job object. The properties specified here will overwrite the corresponding properties in the existing streaming job (ie. Those properties will be updated). Any properties that are set to null here will mean that the corresponding property in the existing input will remain the same and not change as a result of this PATCH operation.
  • options - StreamingJobsClientUpdateOptions contains the optional parameters for the StreamingJobsClient.Update method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/StreamingJob_Update.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewStreamingJobsClient().Update(ctx, "sjrg6936", "sj59", armstreamanalytics.StreamingJob{
	Properties: &armstreamanalytics.StreamingJobProperties{
		EventsLateArrivalMaxDelayInSeconds: to.Ptr[int32](13),
		EventsOutOfOrderMaxDelayInSeconds:  to.Ptr[int32](21),
	},
}, &armstreamanalytics.StreamingJobsClientUpdateOptions{IfMatch: nil})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.StreamingJob = armstreamanalytics.StreamingJob{
// 	Name: to.Ptr("sj59"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg6936/providers/Microsoft.StreamAnalytics/streamingjobs/sj59"),
// 	Location: to.Ptr("West US"),
// 	Tags: map[string]*string{
// 		"key1": to.Ptr("value1"),
// 		"key3": to.Ptr("value3"),
// 		"randomKey": to.Ptr("randomValue"),
// 	},
// 	Properties: &armstreamanalytics.StreamingJobProperties{
// 		CompatibilityLevel: to.Ptr(armstreamanalytics.CompatibilityLevelOne0),
// 		CreatedDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-05-11T04:37:04.697Z"); return t}()),
// 		DataLocale: to.Ptr("en-US"),
// 		EventsLateArrivalMaxDelayInSeconds: to.Ptr[int32](13),
// 		EventsOutOfOrderMaxDelayInSeconds: to.Ptr[int32](21),
// 		EventsOutOfOrderPolicy: to.Ptr(armstreamanalytics.EventsOutOfOrderPolicyDrop),
// 		JobID: to.Ptr("d53ecc3c-fcb0-485d-9caf-25e20fcb2061"),
// 		JobState: to.Ptr("Created"),
// 		OutputErrorPolicy: to.Ptr(armstreamanalytics.OutputErrorPolicyDrop),
// 		ProvisioningState: to.Ptr("Succeeded"),
// 		SKU: &armstreamanalytics.SKU{
// 			Name: to.Ptr(armstreamanalytics.SKUNameStandard),
// 		},
// 	},
// 	SKU: &armstreamanalytics.SKU{
// 		Name: to.Ptr(armstreamanalytics.SKUNameStandard),
// 		Capacity: to.Ptr[int32](36),
// 	},
// }
Output:

type StreamingJobsClientBeginCreateOrReplaceOptions

type StreamingJobsClientBeginCreateOrReplaceOptions struct {
	// The ETag of the streaming job. Omit this value to always overwrite the current record set. Specify the last-seen ETag value
	// to prevent accidentally overwriting concurrent changes.
	IfMatch *string

	// Set to '*' to allow a new streaming job to be created, but to prevent updating an existing record set. Other values will
	// result in a 412 Pre-condition Failed response.
	IfNoneMatch *string

	// Resumes the LRO from the provided token.
	ResumeToken string
}

StreamingJobsClientBeginCreateOrReplaceOptions contains the optional parameters for the StreamingJobsClient.BeginCreateOrReplace method.

type StreamingJobsClientBeginDeleteOptions

type StreamingJobsClientBeginDeleteOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

StreamingJobsClientBeginDeleteOptions contains the optional parameters for the StreamingJobsClient.BeginDelete method.

type StreamingJobsClientBeginScaleOptions

type StreamingJobsClientBeginScaleOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string

	// Parameters applicable to a scale streaming job operation.
	ScaleJobParameters *ScaleStreamingJobParameters
}

StreamingJobsClientBeginScaleOptions contains the optional parameters for the StreamingJobsClient.BeginScale method.

type StreamingJobsClientBeginStartOptions

type StreamingJobsClientBeginStartOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string

	// Parameters applicable to a start streaming job operation.
	StartJobParameters *StartStreamingJobParameters
}

StreamingJobsClientBeginStartOptions contains the optional parameters for the StreamingJobsClient.BeginStart method.

type StreamingJobsClientBeginStopOptions

type StreamingJobsClientBeginStopOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

StreamingJobsClientBeginStopOptions contains the optional parameters for the StreamingJobsClient.BeginStop method.

type StreamingJobsClientCreateOrReplaceResponse

type StreamingJobsClientCreateOrReplaceResponse struct {
	// A streaming job object, containing all information associated with the named streaming job.
	StreamingJob
}

StreamingJobsClientCreateOrReplaceResponse contains the response from method StreamingJobsClient.BeginCreateOrReplace.

type StreamingJobsClientDeleteResponse

type StreamingJobsClientDeleteResponse struct {
}

StreamingJobsClientDeleteResponse contains the response from method StreamingJobsClient.BeginDelete.

type StreamingJobsClientGetOptions

type StreamingJobsClientGetOptions struct {
	// The $expand OData query parameter. This is a comma-separated list of additional streaming job properties to include in
	// the response, beyond the default set returned when this parameter is absent. The
	// default set is all streaming job properties other than 'inputs', 'transformation', 'outputs', and 'functions'.
	Expand *string
}

StreamingJobsClientGetOptions contains the optional parameters for the StreamingJobsClient.Get method.

type StreamingJobsClientGetResponse

type StreamingJobsClientGetResponse struct {
	// A streaming job object, containing all information associated with the named streaming job.
	StreamingJob

	// ETag contains the information returned from the ETag header response.
	ETag *string
}

StreamingJobsClientGetResponse contains the response from method StreamingJobsClient.Get.

type StreamingJobsClientListByResourceGroupOptions

type StreamingJobsClientListByResourceGroupOptions struct {
	// The $expand OData query parameter. This is a comma-separated list of additional streaming job properties to include in
	// the response, beyond the default set returned when this parameter is absent. The
	// default set is all streaming job properties other than 'inputs', 'transformation', 'outputs', and 'functions'.
	Expand *string
}

StreamingJobsClientListByResourceGroupOptions contains the optional parameters for the StreamingJobsClient.NewListByResourceGroupPager method.

type StreamingJobsClientListByResourceGroupResponse

type StreamingJobsClientListByResourceGroupResponse struct {
	// Object containing a list of streaming jobs.
	StreamingJobListResult
}

StreamingJobsClientListByResourceGroupResponse contains the response from method StreamingJobsClient.NewListByResourceGroupPager.

type StreamingJobsClientListOptions

type StreamingJobsClientListOptions struct {
	// The $expand OData query parameter. This is a comma-separated list of additional streaming job properties to include in
	// the response, beyond the default set returned when this parameter is absent. The
	// default set is all streaming job properties other than 'inputs', 'transformation', 'outputs', and 'functions'.
	Expand *string
}

StreamingJobsClientListOptions contains the optional parameters for the StreamingJobsClient.NewListPager method.

type StreamingJobsClientListResponse

type StreamingJobsClientListResponse struct {
	// Object containing a list of streaming jobs.
	StreamingJobListResult
}

StreamingJobsClientListResponse contains the response from method StreamingJobsClient.NewListPager.

type StreamingJobsClientScaleResponse

type StreamingJobsClientScaleResponse struct {
}

StreamingJobsClientScaleResponse contains the response from method StreamingJobsClient.BeginScale.

type StreamingJobsClientStartResponse

type StreamingJobsClientStartResponse struct {
}

StreamingJobsClientStartResponse contains the response from method StreamingJobsClient.BeginStart.

type StreamingJobsClientStopResponse

type StreamingJobsClientStopResponse struct {
}

StreamingJobsClientStopResponse contains the response from method StreamingJobsClient.BeginStop.

type StreamingJobsClientUpdateOptions

type StreamingJobsClientUpdateOptions struct {
	// The ETag of the streaming job. Omit this value to always overwrite the current record set. Specify the last-seen ETag value
	// to prevent accidentally overwriting concurrent changes.
	IfMatch *string
}

StreamingJobsClientUpdateOptions contains the optional parameters for the StreamingJobsClient.Update method.

type StreamingJobsClientUpdateResponse

type StreamingJobsClientUpdateResponse struct {
	// A streaming job object, containing all information associated with the named streaming job.
	StreamingJob

	// ETag contains the information returned from the ETag header response.
	ETag *string
}

StreamingJobsClientUpdateResponse contains the response from method StreamingJobsClient.Update.

type SubResource

type SubResource struct {
	// Resource name
	Name *string

	// READ-ONLY; Resource Id
	ID *string

	// READ-ONLY; Resource type
	Type *string
}

SubResource - The base sub-resource model definition.

func (SubResource) MarshalJSON

func (s SubResource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SubResource.

func (*SubResource) UnmarshalJSON

func (s *SubResource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SubResource.

type SubscriptionQuota

type SubscriptionQuota struct {
	// Resource name
	Name *string

	// READ-ONLY; Resource Id
	ID *string

	// READ-ONLY; Describes the properties of the quota.
	Properties *SubscriptionQuotaProperties

	// READ-ONLY; Resource type
	Type *string
}

SubscriptionQuota - Describes the current quota for the subscription.

func (SubscriptionQuota) MarshalJSON

func (s SubscriptionQuota) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SubscriptionQuota.

func (*SubscriptionQuota) UnmarshalJSON

func (s *SubscriptionQuota) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SubscriptionQuota.

type SubscriptionQuotaProperties

type SubscriptionQuotaProperties struct {
	// READ-ONLY; The current usage of this resource.
	CurrentCount *int32

	// READ-ONLY; The max permitted usage of this resource.
	MaxCount *int32
}

SubscriptionQuotaProperties - Describes the properties of the quota.

func (SubscriptionQuotaProperties) MarshalJSON

func (s SubscriptionQuotaProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SubscriptionQuotaProperties.

func (*SubscriptionQuotaProperties) UnmarshalJSON

func (s *SubscriptionQuotaProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SubscriptionQuotaProperties.

type SubscriptionQuotasListResult

type SubscriptionQuotasListResult struct {
	// READ-ONLY; List of quotas for the subscription in a particular region.
	Value []*SubscriptionQuota
}

SubscriptionQuotasListResult - Result of the GetQuotas operation. It contains a list of quotas for the subscription in a particular region.

func (SubscriptionQuotasListResult) MarshalJSON

func (s SubscriptionQuotasListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type SubscriptionQuotasListResult.

func (*SubscriptionQuotasListResult) UnmarshalJSON

func (s *SubscriptionQuotasListResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type SubscriptionQuotasListResult.

type SubscriptionsClient

type SubscriptionsClient struct {
	// contains filtered or unexported fields
}

SubscriptionsClient contains the methods for the Subscriptions group. Don't use this type directly, use NewSubscriptionsClient() instead.

func NewSubscriptionsClient

func NewSubscriptionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SubscriptionsClient, error)

NewSubscriptionsClient creates a new instance of SubscriptionsClient with the specified values.

  • subscriptionID - The ID of the target subscription.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*SubscriptionsClient) BeginSampleInput

BeginSampleInput - Sample the Stream Analytics input data. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-10-01-preview

  • location - The region to which the request is sent. You can find out which regions Azure Stream Analytics is supported in here: https://azure.microsoft.com/en-us/regions/
  • sampleInput - Defines the necessary parameters for sampling the Stream Analytics input data.
  • options - SubscriptionsClientBeginSampleInputOptions contains the optional parameters for the SubscriptionsClient.BeginSampleInput method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Subscription_SampleInput.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewSubscriptionsClient().BeginSampleInput(ctx, "West US", armstreamanalytics.SampleInput{
	CompatibilityLevel: to.Ptr("1.2"),
	DataLocale:         to.Ptr("en-US"),
	EventsURI:          to.Ptr("http://myoutput.com"),
	Input: &armstreamanalytics.Input{
		Properties: &armstreamanalytics.StreamInputProperties{
			Type: to.Ptr("Stream"),
			Serialization: &armstreamanalytics.CSVSerialization{
				Type: to.Ptr(armstreamanalytics.EventSerializationTypeCSV),
				Properties: &armstreamanalytics.CSVSerializationProperties{
					Encoding:       to.Ptr(armstreamanalytics.EncodingUTF8),
					FieldDelimiter: to.Ptr(","),
				},
			},
			Datasource: &armstreamanalytics.BlobStreamInputDataSource{
				Type: to.Ptr("Microsoft.Storage/Blob"),
				Properties: &armstreamanalytics.BlobStreamInputDataSourceProperties{
					Container:   to.Ptr("state"),
					DateFormat:  to.Ptr("yyyy/MM/dd"),
					PathPattern: to.Ptr("{date}/{time}"),
					StorageAccounts: []*armstreamanalytics.StorageAccount{
						{
							AccountKey:  to.Ptr("someAccountKey=="),
							AccountName: to.Ptr("someAccountName"),
						}},
					TimeFormat:           to.Ptr("HH"),
					SourcePartitionCount: to.Ptr[int32](16),
				},
			},
		},
	},
}, nil)
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
_, err = poller.PollUntilDone(ctx, nil)
if err != nil {
	log.Fatalf("failed to pull the result: %v", err)
}
Output:

func (*SubscriptionsClient) BeginTestInput

BeginTestInput - Test the Stream Analytics input. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-10-01-preview

  • location - The region to which the request is sent. You can find out which regions Azure Stream Analytics is supported in here: https://azure.microsoft.com/en-us/regions/
  • testInput - Defines the necessary parameters for testing the Stream Analytics input.
  • options - SubscriptionsClientBeginTestInputOptions contains the optional parameters for the SubscriptionsClient.BeginTestInput method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Subscription_TestInput.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewSubscriptionsClient().BeginTestInput(ctx, "West US", armstreamanalytics.TestInput{
	Input: &armstreamanalytics.Input{
		Properties: &armstreamanalytics.StreamInputProperties{
			Type: to.Ptr("Stream"),
			Serialization: &armstreamanalytics.CSVSerialization{
				Type: to.Ptr(armstreamanalytics.EventSerializationTypeCSV),
				Properties: &armstreamanalytics.CSVSerializationProperties{
					Encoding:       to.Ptr(armstreamanalytics.EncodingUTF8),
					FieldDelimiter: to.Ptr(","),
				},
			},
			Datasource: &armstreamanalytics.BlobStreamInputDataSource{
				Type: to.Ptr("Microsoft.Storage/Blob"),
				Properties: &armstreamanalytics.BlobStreamInputDataSourceProperties{
					Container:   to.Ptr("state"),
					DateFormat:  to.Ptr("yyyy/MM/dd"),
					PathPattern: to.Ptr("{date}/{time}"),
					StorageAccounts: []*armstreamanalytics.StorageAccount{
						{
							AccountKey:  to.Ptr("someAccountKey=="),
							AccountName: to.Ptr("someAccountName"),
						}},
					TimeFormat:           to.Ptr("HH"),
					SourcePartitionCount: to.Ptr[int32](16),
				},
			},
		},
	},
}, nil)
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
_, err = poller.PollUntilDone(ctx, nil)
if err != nil {
	log.Fatalf("failed to pull the result: %v", err)
}
Output:

func (*SubscriptionsClient) BeginTestOutput

BeginTestOutput - Test the Stream Analytics output. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-10-01-preview

  • location - The region to which the request is sent. You can find out which regions Azure Stream Analytics is supported in here: https://azure.microsoft.com/en-us/regions/
  • testOutput - Defines the necessary parameters for testing the Stream Analytics output.
  • options - SubscriptionsClientBeginTestOutputOptions contains the optional parameters for the SubscriptionsClient.BeginTestOutput method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Subscription_TestOutput.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewSubscriptionsClient().BeginTestOutput(ctx, "West US", armstreamanalytics.TestOutput{
	Output: &armstreamanalytics.Output{
		Properties: &armstreamanalytics.OutputProperties{
			Datasource: &armstreamanalytics.BlobOutputDataSource{
				Type: to.Ptr("Microsoft.Storage/Blob"),
				Properties: &armstreamanalytics.BlobOutputDataSourceProperties{
					Container:   to.Ptr("state"),
					DateFormat:  to.Ptr("yyyy/MM/dd"),
					PathPattern: to.Ptr("{date}/{time}"),
					StorageAccounts: []*armstreamanalytics.StorageAccount{
						{
							AccountKey:  to.Ptr("accountKey=="),
							AccountName: to.Ptr("someAccountName"),
						}},
					TimeFormat: to.Ptr("HH"),
				},
			},
			Serialization: &armstreamanalytics.CSVSerialization{
				Type: to.Ptr(armstreamanalytics.EventSerializationTypeCSV),
				Properties: &armstreamanalytics.CSVSerializationProperties{
					Encoding:       to.Ptr(armstreamanalytics.EncodingUTF8),
					FieldDelimiter: to.Ptr(","),
				},
			},
		},
	},
}, nil)
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
_, err = poller.PollUntilDone(ctx, nil)
if err != nil {
	log.Fatalf("failed to pull the result: %v", err)
}
Output:

func (*SubscriptionsClient) BeginTestQuery

BeginTestQuery - Test the Stream Analytics query on a sample input. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-10-01-preview

  • location - The region to which the request is sent. You can find out which regions Azure Stream Analytics is supported in here: https://azure.microsoft.com/en-us/regions/
  • testQuery - The query testing object that defines the input, output, and transformation for the query testing.
  • options - SubscriptionsClientBeginTestQueryOptions contains the optional parameters for the SubscriptionsClient.BeginTestQuery method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Subscription_TestQuery.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewSubscriptionsClient().BeginTestQuery(ctx, "West US", armstreamanalytics.TestQuery{
	Diagnostics: &armstreamanalytics.TestQueryDiagnostics{
		Path:     to.Ptr("/pathto/subdirectory"),
		WriteURI: to.Ptr("http://myoutput.com"),
	},
	StreamingJob: &armstreamanalytics.StreamingJob{
		Location: to.Ptr("West US"),
		Tags: map[string]*string{
			"key1":      to.Ptr("value1"),
			"key3":      to.Ptr("value3"),
			"randomKey": to.Ptr("randomValue"),
		},
		Properties: &armstreamanalytics.StreamingJobProperties{
			CompatibilityLevel:                 to.Ptr(armstreamanalytics.CompatibilityLevelOne0),
			DataLocale:                         to.Ptr("en-US"),
			EventsLateArrivalMaxDelayInSeconds: to.Ptr[int32](5),
			EventsOutOfOrderMaxDelayInSeconds:  to.Ptr[int32](0),
			EventsOutOfOrderPolicy:             to.Ptr(armstreamanalytics.EventsOutOfOrderPolicyDrop),
			Functions:                          []*armstreamanalytics.Function{},
			Inputs: []*armstreamanalytics.Input{
				{
					Name: to.Ptr("inputtest"),
					Properties: &armstreamanalytics.StreamInputProperties{
						Type: to.Ptr("Stream"),
						Serialization: &armstreamanalytics.JSONSerialization{
							Type: to.Ptr(armstreamanalytics.EventSerializationTypeJSON),
							Properties: &armstreamanalytics.JSONSerializationProperties{
								Encoding: to.Ptr(armstreamanalytics.EncodingUTF8),
							},
						},
						Datasource: &armstreamanalytics.RawStreamInputDataSource{
							Type: to.Ptr("Raw"),
							Properties: &armstreamanalytics.RawInputDatasourceProperties{
								PayloadURI: to.Ptr("http://myinput.com"),
							},
						},
					},
				}},
			OutputErrorPolicy: to.Ptr(armstreamanalytics.OutputErrorPolicyDrop),
			Outputs: []*armstreamanalytics.Output{
				{
					Name: to.Ptr("outputtest"),
					Properties: &armstreamanalytics.OutputProperties{
						Datasource: &armstreamanalytics.RawOutputDatasource{
							Type: to.Ptr("Raw"),
							Properties: &armstreamanalytics.RawOutputDatasourceProperties{
								PayloadURI: to.Ptr("http://myoutput.com"),
							},
						},
						Serialization: &armstreamanalytics.JSONSerialization{
							Type: to.Ptr(armstreamanalytics.EventSerializationTypeJSON),
						},
					},
				}},
			SKU: &armstreamanalytics.SKU{
				Name: to.Ptr(armstreamanalytics.SKUNameStandard),
			},
			Transformation: &armstreamanalytics.Transformation{
				Name: to.Ptr("transformationtest"),
				Properties: &armstreamanalytics.TransformationProperties{
					Query:          to.Ptr("Select Id, Name from inputtest"),
					StreamingUnits: to.Ptr[int32](1),
				},
			},
		},
	},
}, nil)
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
res, err := poller.PollUntilDone(ctx, nil)
if err != nil {
	log.Fatalf("failed to pull the result: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.QueryTestingResult = armstreamanalytics.QueryTestingResult{
// 	OutputURI: to.Ptr("http://myoutput.com"),
// 	Status: to.Ptr(armstreamanalytics.QueryTestingResultStatusSuccess),
// }
Output:

func (*SubscriptionsClient) CompileQuery

CompileQuery - Compile the Stream Analytics query. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-10-01-preview

  • location - The region to which the request is sent. You can find out which regions Azure Stream Analytics is supported in here: https://azure.microsoft.com/en-us/regions/
  • compileQuery - The query compilation object which defines the input, output, and transformation for the query compilation.
  • options - SubscriptionsClientCompileQueryOptions contains the optional parameters for the SubscriptionsClient.CompileQuery method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Subscription_CompileQuery.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewSubscriptionsClient().CompileQuery(ctx, "West US", armstreamanalytics.CompileQuery{
	CompatibilityLevel: to.Ptr(armstreamanalytics.CompatibilityLevelOne2),
	Functions: []*armstreamanalytics.QueryFunction{
		{
			Name:        to.Ptr("function1"),
			Type:        to.Ptr("Scalar"),
			BindingType: to.Ptr("Microsoft.StreamAnalytics/JavascriptUdf"),
			Inputs: []*armstreamanalytics.FunctionInput{
				{
					DataType: to.Ptr("any"),
				}},
			Output: &armstreamanalytics.FunctionOutput{
				DataType: to.Ptr("bigint"),
			},
		}},
	Inputs: []*armstreamanalytics.QueryInput{
		{
			Name: to.Ptr("input1"),
			Type: to.Ptr("Stream"),
		}},
	JobType: to.Ptr(armstreamanalytics.JobTypeCloud),
	Query:   to.Ptr("SELECT\r\n    *\r\nINTO\r\n    [output1]\r\nFROM\r\n    [input1]"),
}, nil)
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.QueryCompilationResult = armstreamanalytics.QueryCompilationResult{
// 	Errors: []*armstreamanalytics.QueryCompilationError{
// 		{
// 			IsGlobal: to.Ptr(true),
// 			Message: to.Ptr("Query failed to compile."),
// 	}},
// 	Functions: []*string{
// 		to.Ptr("transformationtest")},
// 		Inputs: []*string{
// 			to.Ptr("inputtest")},
// 			Outputs: []*string{
// 				to.Ptr("outputtest")},
// 			}
Output:

func (*SubscriptionsClient) ListQuotas

ListQuotas - Retrieves the subscription's current quota information in a particular region. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-10-01-preview

  • location - The region to which the request is sent. You can find out which regions Azure Stream Analytics is supported in here: https://azure.microsoft.com/en-us/regions/
  • options - SubscriptionsClientListQuotasOptions contains the optional parameters for the SubscriptionsClient.ListQuotas method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Subscription_ListQuotas.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewSubscriptionsClient().ListQuotas(ctx, "West US", nil)
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.SubscriptionQuotasListResult = armstreamanalytics.SubscriptionQuotasListResult{
// 	Value: []*armstreamanalytics.SubscriptionQuota{
// 		{
// 			Name: to.Ptr("StreamingUnits"),
// 			Type: to.Ptr("Microsoft.StreamAnalytics/quotas"),
// 			ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/providers/Microsoft.StreamAnalytics/locations/West US/quotas/StreamingUnits"),
// 			Properties: &armstreamanalytics.SubscriptionQuotaProperties{
// 				CurrentCount: to.Ptr[int32](0),
// 				MaxCount: to.Ptr[int32](200),
// 			},
// 	}},
// }
Output:

type SubscriptionsClientBeginSampleInputOptions

type SubscriptionsClientBeginSampleInputOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

SubscriptionsClientBeginSampleInputOptions contains the optional parameters for the SubscriptionsClient.BeginSampleInput method.

type SubscriptionsClientBeginTestInputOptions

type SubscriptionsClientBeginTestInputOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

SubscriptionsClientBeginTestInputOptions contains the optional parameters for the SubscriptionsClient.BeginTestInput method.

type SubscriptionsClientBeginTestOutputOptions

type SubscriptionsClientBeginTestOutputOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

SubscriptionsClientBeginTestOutputOptions contains the optional parameters for the SubscriptionsClient.BeginTestOutput method.

type SubscriptionsClientBeginTestQueryOptions

type SubscriptionsClientBeginTestQueryOptions struct {
	// Resumes the LRO from the provided token.
	ResumeToken string
}

SubscriptionsClientBeginTestQueryOptions contains the optional parameters for the SubscriptionsClient.BeginTestQuery method.

type SubscriptionsClientCompileQueryOptions

type SubscriptionsClientCompileQueryOptions struct {
}

SubscriptionsClientCompileQueryOptions contains the optional parameters for the SubscriptionsClient.CompileQuery method.

type SubscriptionsClientCompileQueryResponse

type SubscriptionsClientCompileQueryResponse struct {
	// The result of the query compilation request.
	QueryCompilationResult
}

SubscriptionsClientCompileQueryResponse contains the response from method SubscriptionsClient.CompileQuery.

type SubscriptionsClientListQuotasOptions

type SubscriptionsClientListQuotasOptions struct {
}

SubscriptionsClientListQuotasOptions contains the optional parameters for the SubscriptionsClient.ListQuotas method.

type SubscriptionsClientListQuotasResponse

type SubscriptionsClientListQuotasResponse struct {
	// Result of the GetQuotas operation. It contains a list of quotas for the subscription in a particular region.
	SubscriptionQuotasListResult
}

SubscriptionsClientListQuotasResponse contains the response from method SubscriptionsClient.ListQuotas.

type SubscriptionsClientSampleInputResponse

type SubscriptionsClientSampleInputResponse struct {
	// The result of the sample input request.
	SampleInputResult
}

SubscriptionsClientSampleInputResponse contains the response from method SubscriptionsClient.BeginSampleInput.

type SubscriptionsClientTestInputResponse

type SubscriptionsClientTestInputResponse struct {
	// The result of the test input or output request.
	TestDatasourceResult
}

SubscriptionsClientTestInputResponse contains the response from method SubscriptionsClient.BeginTestInput.

type SubscriptionsClientTestOutputResponse

type SubscriptionsClientTestOutputResponse struct {
	// The result of the test input or output request.
	TestDatasourceResult
}

SubscriptionsClientTestOutputResponse contains the response from method SubscriptionsClient.BeginTestOutput.

type SubscriptionsClientTestQueryResponse

type SubscriptionsClientTestQueryResponse struct {
	// The result of the query testing request.
	QueryTestingResult
}

SubscriptionsClientTestQueryResponse contains the response from method SubscriptionsClient.BeginTestQuery.

type TestDatasourceResult

type TestDatasourceResult struct {
	// Error definition properties.
	Error *ErrorError

	// READ-ONLY; The status of the sample output request.
	Status *TestDatasourceResultStatus
}

TestDatasourceResult - The result of the test input or output request.

func (TestDatasourceResult) MarshalJSON

func (t TestDatasourceResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type TestDatasourceResult.

func (*TestDatasourceResult) UnmarshalJSON

func (t *TestDatasourceResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type TestDatasourceResult.

type TestDatasourceResultStatus

type TestDatasourceResultStatus string

TestDatasourceResultStatus - The status of the test input or output request.

const (
	// TestDatasourceResultStatusTestFailed - The test datasource operation failed.
	TestDatasourceResultStatusTestFailed TestDatasourceResultStatus = "TestFailed"
	// TestDatasourceResultStatusTestSucceeded - The test datasource operation succeeded.
	TestDatasourceResultStatusTestSucceeded TestDatasourceResultStatus = "TestSucceeded"
)

func PossibleTestDatasourceResultStatusValues

func PossibleTestDatasourceResultStatusValues() []TestDatasourceResultStatus

PossibleTestDatasourceResultStatusValues returns the possible values for the TestDatasourceResultStatus const type.

type TestInput

type TestInput struct {
	// REQUIRED; The stream analytics input to test.
	Input *Input
}

TestInput - A stream analytics input.

func (TestInput) MarshalJSON

func (t TestInput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type TestInput.

func (*TestInput) UnmarshalJSON

func (t *TestInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type TestInput.

type TestOutput

type TestOutput struct {
	// REQUIRED; The stream analytics output to test.
	Output *Output
}

TestOutput - A stream analytics output.

func (TestOutput) MarshalJSON

func (t TestOutput) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type TestOutput.

func (*TestOutput) UnmarshalJSON

func (t *TestOutput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type TestOutput.

type TestQuery

type TestQuery struct {
	// REQUIRED; Stream analytics job object which defines the input, output, and transformation for the query testing.
	StreamingJob *StreamingJob

	// Diagnostics information related to query testing.
	Diagnostics *TestQueryDiagnostics
}

TestQuery - The request object for query testing.

func (TestQuery) MarshalJSON

func (t TestQuery) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type TestQuery.

func (*TestQuery) UnmarshalJSON

func (t *TestQuery) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type TestQuery.

type TestQueryDiagnostics

type TestQueryDiagnostics struct {
	// REQUIRED; The SAS URI to the container or directory.
	WriteURI *string

	// The path to the subdirectory.
	Path *string
}

TestQueryDiagnostics - Diagnostics information related to query testing.

func (TestQueryDiagnostics) MarshalJSON

func (t TestQueryDiagnostics) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type TestQueryDiagnostics.

func (*TestQueryDiagnostics) UnmarshalJSON

func (t *TestQueryDiagnostics) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type TestQueryDiagnostics.

type TrackedResource

type TrackedResource struct {
	// The geo-location where the resource lives
	Location *string

	// Resource tags.
	Tags map[string]*string

	// READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string

	// READ-ONLY; The name of the resource
	Name *string

	// READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
	Type *string
}

TrackedResource - The resource model definition for a ARM tracked top level resource

func (TrackedResource) MarshalJSON

func (t TrackedResource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type TrackedResource.

func (*TrackedResource) UnmarshalJSON

func (t *TrackedResource) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type TrackedResource.

type Transformation

type Transformation struct {
	// Resource name
	Name *string

	// The properties that are associated with a transformation. Required on PUT (CreateOrReplace) requests.
	Properties *TransformationProperties

	// READ-ONLY; Resource Id
	ID *string

	// READ-ONLY; Resource type
	Type *string
}

Transformation - A transformation object, containing all information associated with the named transformation. All transformations are contained under a streaming job.

func (Transformation) MarshalJSON

func (t Transformation) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Transformation.

func (*Transformation) UnmarshalJSON

func (t *Transformation) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type Transformation.

type TransformationProperties

type TransformationProperties struct {
	// Specifies the query that will be run in the streaming job. You can learn more about the Stream Analytics Query Language
	// (SAQL) here: https://msdn.microsoft.com/library/azure/dn834998 . Required on PUT
	// (CreateOrReplace) requests.
	Query *string

	// Specifies the number of streaming units that the streaming job uses.
	StreamingUnits *int32

	// Specifies the valid streaming units a streaming job can scale to.
	ValidStreamingUnits []*int32

	// READ-ONLY; The current entity tag for the transformation. This is an opaque string. You can use it to detect whether the
	// resource has changed between requests. You can also use it in the If-Match or
	// If-None-Match headers for write operations for optimistic concurrency.
	Etag *string
}

TransformationProperties - The properties that are associated with a transformation.

func (TransformationProperties) MarshalJSON

func (t TransformationProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type TransformationProperties.

func (*TransformationProperties) UnmarshalJSON

func (t *TransformationProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type TransformationProperties.

type TransformationsClient

type TransformationsClient struct {
	// contains filtered or unexported fields
}

TransformationsClient contains the methods for the Transformations group. Don't use this type directly, use NewTransformationsClient() instead.

func NewTransformationsClient

func NewTransformationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*TransformationsClient, error)

NewTransformationsClient creates a new instance of TransformationsClient with the specified values.

  • subscriptionID - The ID of the target subscription.
  • credential - used to authorize requests. Usually a credential from azidentity.
  • options - pass nil to accept the default values.

func (*TransformationsClient) CreateOrReplace

func (client *TransformationsClient) CreateOrReplace(ctx context.Context, resourceGroupName string, jobName string, transformationName string, transformation Transformation, options *TransformationsClientCreateOrReplaceOptions) (TransformationsClientCreateOrReplaceResponse, error)

CreateOrReplace - Creates a transformation or replaces an already existing transformation under an existing streaming job. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-10-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • jobName - The name of the streaming job.
  • transformationName - The name of the transformation.
  • transformation - The definition of the transformation that will be used to create a new transformation or replace the existing one under the streaming job.
  • options - TransformationsClientCreateOrReplaceOptions contains the optional parameters for the TransformationsClient.CreateOrReplace method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Transformation_Create.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewTransformationsClient().CreateOrReplace(ctx, "sjrg4423", "sj8374", "transformation952", armstreamanalytics.Transformation{
	Properties: &armstreamanalytics.TransformationProperties{
		Query:          to.Ptr("Select Id, Name from inputtest"),
		StreamingUnits: to.Ptr[int32](6),
	},
}, &armstreamanalytics.TransformationsClientCreateOrReplaceOptions{IfMatch: nil,
	IfNoneMatch: nil,
})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Transformation = armstreamanalytics.Transformation{
// 	Name: to.Ptr("transformation952"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/transformations"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg4423/providers/Microsoft.StreamAnalytics/streamingjobs/sj8374/transformations/transformation952"),
// 	Properties: &armstreamanalytics.TransformationProperties{
// 		Query: to.Ptr("Select Id, Name from inputtest"),
// 		StreamingUnits: to.Ptr[int32](6),
// 	},
// }
Output:

func (*TransformationsClient) Get

func (client *TransformationsClient) Get(ctx context.Context, resourceGroupName string, jobName string, transformationName string, options *TransformationsClientGetOptions) (TransformationsClientGetResponse, error)

Get - Gets details about the specified transformation. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-10-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • jobName - The name of the streaming job.
  • transformationName - The name of the transformation.
  • options - TransformationsClientGetOptions contains the optional parameters for the TransformationsClient.Get method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Transformation_Get.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewTransformationsClient().Get(ctx, "sjrg4423", "sj8374", "transformation952", nil)
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Transformation = armstreamanalytics.Transformation{
// 	Name: to.Ptr("transformation952"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/transformations"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg4423/providers/Microsoft.StreamAnalytics/streamingjobs/sj8374/transformations/transformation952"),
// 	Properties: &armstreamanalytics.TransformationProperties{
// 		Query: to.Ptr("Select Id, Name from inputtest"),
// 		StreamingUnits: to.Ptr[int32](6),
// 	},
// }
Output:

func (*TransformationsClient) Update

func (client *TransformationsClient) Update(ctx context.Context, resourceGroupName string, jobName string, transformationName string, transformation Transformation, options *TransformationsClientUpdateOptions) (TransformationsClientUpdateResponse, error)

Update - Updates an existing transformation under an existing streaming job. This can be used to partially update (ie. update one or two properties) a transformation without affecting the rest the job or transformation definition. If the operation fails it returns an *azcore.ResponseError type.

Generated from API version 2021-10-01-preview

  • resourceGroupName - The name of the resource group. The name is case insensitive.
  • jobName - The name of the streaming job.
  • transformationName - The name of the transformation.
  • transformation - A Transformation object. The properties specified here will overwrite the corresponding properties in the existing transformation (ie. Those properties will be updated). Any properties that are set to null here will mean that the corresponding property in the existing transformation will remain the same and not change as a result of this PATCH operation.
  • options - TransformationsClientUpdateOptions contains the optional parameters for the TransformationsClient.Update method.
Example

Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/fa469a1157c33837a46c9bcd524527e94125189a/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/preview/2021-10-01-preview/examples/Transformation_Update.json

cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
	log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armstreamanalytics.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
	log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewTransformationsClient().Update(ctx, "sjrg4423", "sj8374", "transformation952", armstreamanalytics.Transformation{
	Properties: &armstreamanalytics.TransformationProperties{
		Query: to.Ptr("New query"),
	},
}, &armstreamanalytics.TransformationsClientUpdateOptions{IfMatch: nil})
if err != nil {
	log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.Transformation = armstreamanalytics.Transformation{
// 	Name: to.Ptr("transformation952"),
// 	Type: to.Ptr("Microsoft.StreamAnalytics/streamingjobs/transformations"),
// 	ID: to.Ptr("/subscriptions/56b5e0a9-b645-407d-99b0-c64f86013e3d/resourceGroups/sjrg4423/providers/Microsoft.StreamAnalytics/streamingjobs/sj8374/transformations/transformation952"),
// 	Properties: &armstreamanalytics.TransformationProperties{
// 		Query: to.Ptr("New query"),
// 		StreamingUnits: to.Ptr[int32](6),
// 	},
// }
Output:

type TransformationsClientCreateOrReplaceOptions

type TransformationsClientCreateOrReplaceOptions struct {
	// The ETag of the transformation. Omit this value to always overwrite the current transformation. Specify the last-seen ETag
	// value to prevent accidentally overwriting concurrent changes.
	IfMatch *string

	// Set to '*' to allow a new transformation to be created, but to prevent updating an existing transformation. Other values
	// will result in a 412 Pre-condition Failed response.
	IfNoneMatch *string
}

TransformationsClientCreateOrReplaceOptions contains the optional parameters for the TransformationsClient.CreateOrReplace method.

type TransformationsClientCreateOrReplaceResponse

type TransformationsClientCreateOrReplaceResponse struct {
	// A transformation object, containing all information associated with the named transformation. All transformations are contained
	// under a streaming job.
	Transformation

	// ETag contains the information returned from the ETag header response.
	ETag *string
}

TransformationsClientCreateOrReplaceResponse contains the response from method TransformationsClient.CreateOrReplace.

type TransformationsClientGetOptions

type TransformationsClientGetOptions struct {
}

TransformationsClientGetOptions contains the optional parameters for the TransformationsClient.Get method.

type TransformationsClientGetResponse

type TransformationsClientGetResponse struct {
	// A transformation object, containing all information associated with the named transformation. All transformations are contained
	// under a streaming job.
	Transformation

	// ETag contains the information returned from the ETag header response.
	ETag *string
}

TransformationsClientGetResponse contains the response from method TransformationsClient.Get.

type TransformationsClientUpdateOptions

type TransformationsClientUpdateOptions struct {
	// The ETag of the transformation. Omit this value to always overwrite the current transformation. Specify the last-seen ETag
	// value to prevent accidentally overwriting concurrent changes.
	IfMatch *string
}

TransformationsClientUpdateOptions contains the optional parameters for the TransformationsClient.Update method.

type TransformationsClientUpdateResponse

type TransformationsClientUpdateResponse struct {
	// A transformation object, containing all information associated with the named transformation. All transformations are contained
	// under a streaming job.
	Transformation

	// ETag contains the information returned from the ETag header response.
	ETag *string
}

TransformationsClientUpdateResponse contains the response from method TransformationsClient.Update.

type UpdatableUdfRefreshType

type UpdatableUdfRefreshType string

UpdatableUdfRefreshType - This property indicates which data refresh option to use, Blocking or Nonblocking.

const (
	UpdatableUdfRefreshTypeBlocking    UpdatableUdfRefreshType = "Blocking"
	UpdatableUdfRefreshTypeNonblocking UpdatableUdfRefreshType = "Nonblocking"
)

func PossibleUpdatableUdfRefreshTypeValues

func PossibleUpdatableUdfRefreshTypeValues() []UpdatableUdfRefreshType

PossibleUpdatableUdfRefreshTypeValues returns the possible values for the UpdatableUdfRefreshType const type.

type UpdateMode

type UpdateMode string

UpdateMode - Refresh modes for Stream Analytics functions.

const (
	UpdateModeRefreshable UpdateMode = "Refreshable"
	UpdateModeStatic      UpdateMode = "Static"
)

func PossibleUpdateModeValues

func PossibleUpdateModeValues() []UpdateMode

PossibleUpdateModeValues returns the possible values for the UpdateMode const type.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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