Documentation
¶
Index ¶
- type AggregateFunctionProperties
- type AuthenticationMode
- type AvroSerialization
- type AzureDataLakeStoreOutputDataSource
- type AzureDataLakeStoreOutputDataSourceProperties
- type AzureFunctionOutputDataSource
- type AzureFunctionOutputDataSourceProperties
- type AzureMachineLearningWebServiceFunctionBinding
- type AzureMachineLearningWebServiceFunctionBindingProperties
- type AzureMachineLearningWebServiceFunctionBindingRetrievalProperties
- type AzureMachineLearningWebServiceFunctionRetrieveDefaultDefinitionParameters
- func (a *AzureMachineLearningWebServiceFunctionRetrieveDefaultDefinitionParameters) GetFunctionRetrieveDefaultDefinitionParameters() *FunctionRetrieveDefaultDefinitionParameters
- func (a AzureMachineLearningWebServiceFunctionRetrieveDefaultDefinitionParameters) MarshalJSON() ([]byte, error)
- func (a *AzureMachineLearningWebServiceFunctionRetrieveDefaultDefinitionParameters) UnmarshalJSON(data []byte) error
- type AzureMachineLearningWebServiceInputColumn
- type AzureMachineLearningWebServiceInputs
- type AzureMachineLearningWebServiceOutputColumn
- type AzureSQLDatabaseDataSourceProperties
- type AzureSQLDatabaseOutputDataSource
- type AzureSQLDatabaseOutputDataSourceProperties
- type AzureSQLReferenceInputDataSource
- type AzureSQLReferenceInputDataSourceProperties
- type AzureSynapseDataSourceProperties
- type AzureSynapseOutputDataSource
- type AzureSynapseOutputDataSourceProperties
- type AzureTableOutputDataSource
- type AzureTableOutputDataSourceProperties
- type BlobDataSourceProperties
- type BlobOutputDataSource
- type BlobOutputDataSourceProperties
- type BlobReferenceInputDataSource
- type BlobReferenceInputDataSourceProperties
- type BlobStreamInputDataSource
- type BlobStreamInputDataSourceProperties
- type CSVSerialization
- type CSVSerializationProperties
- type ClientFactory
- func (c *ClientFactory) NewClustersClient() *ClustersClient
- func (c *ClientFactory) NewFunctionsClient() *FunctionsClient
- func (c *ClientFactory) NewInputsClient() *InputsClient
- func (c *ClientFactory) NewOperationsClient() *OperationsClient
- func (c *ClientFactory) NewOutputsClient() *OutputsClient
- func (c *ClientFactory) NewPrivateEndpointsClient() *PrivateEndpointsClient
- func (c *ClientFactory) NewStreamingJobsClient() *StreamingJobsClient
- func (c *ClientFactory) NewSubscriptionsClient() *SubscriptionsClient
- func (c *ClientFactory) NewTransformationsClient() *TransformationsClient
- type Cluster
- type ClusterInfo
- type ClusterJob
- type ClusterJobListResult
- type ClusterListResult
- type ClusterProperties
- type ClusterProvisioningState
- type ClusterSKU
- type ClusterSKUName
- type ClustersClient
- func (client *ClustersClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, clusterName string, ...) (*runtime.Poller[ClustersClientCreateOrUpdateResponse], error)
- func (client *ClustersClient) BeginDelete(ctx context.Context, resourceGroupName string, clusterName string, ...) (*runtime.Poller[ClustersClientDeleteResponse], error)
- func (client *ClustersClient) BeginUpdate(ctx context.Context, resourceGroupName string, clusterName string, ...) (*runtime.Poller[ClustersClientUpdateResponse], error)
- func (client *ClustersClient) Get(ctx context.Context, resourceGroupName string, clusterName string, ...) (ClustersClientGetResponse, error)
- func (client *ClustersClient) NewListByResourceGroupPager(resourceGroupName string, options *ClustersClientListByResourceGroupOptions) *runtime.Pager[ClustersClientListByResourceGroupResponse]
- func (client *ClustersClient) NewListBySubscriptionPager(options *ClustersClientListBySubscriptionOptions) *runtime.Pager[ClustersClientListBySubscriptionResponse]
- func (client *ClustersClient) NewListStreamingJobsPager(resourceGroupName string, clusterName string, ...) *runtime.Pager[ClustersClientListStreamingJobsResponse]
- type ClustersClientBeginCreateOrUpdateOptions
- type ClustersClientBeginDeleteOptions
- type ClustersClientBeginUpdateOptions
- type ClustersClientCreateOrUpdateResponse
- type ClustersClientDeleteResponse
- type ClustersClientGetOptions
- type ClustersClientGetResponse
- type ClustersClientListByResourceGroupOptions
- type ClustersClientListByResourceGroupResponse
- type ClustersClientListBySubscriptionOptions
- type ClustersClientListBySubscriptionResponse
- type ClustersClientListStreamingJobsOptions
- type ClustersClientListStreamingJobsResponse
- type ClustersClientUpdateResponse
- type CompatibilityLevel
- type Compression
- type CompressionType
- type ContentStoragePolicy
- type DiagnosticCondition
- type Diagnostics
- type DocumentDbOutputDataSource
- type DocumentDbOutputDataSourceProperties
- type Encoding
- type Error
- type ErrorDetails
- type ErrorError
- type ErrorResponse
- type EventHubDataSourceProperties
- type EventHubOutputDataSource
- type EventHubOutputDataSourceProperties
- type EventHubStreamInputDataSource
- type EventHubStreamInputDataSourceProperties
- type EventHubV2OutputDataSource
- type EventHubV2StreamInputDataSource
- type EventSerializationType
- type EventsOutOfOrderPolicy
- type Function
- type FunctionBinding
- type FunctionBindingClassification
- type FunctionConfiguration
- type FunctionInput
- type FunctionListResult
- type FunctionOutput
- type FunctionProperties
- type FunctionPropertiesClassification
- type FunctionRetrieveDefaultDefinitionParameters
- func (f *FunctionRetrieveDefaultDefinitionParameters) GetFunctionRetrieveDefaultDefinitionParameters() *FunctionRetrieveDefaultDefinitionParameters
- func (f FunctionRetrieveDefaultDefinitionParameters) MarshalJSON() ([]byte, error)
- func (f *FunctionRetrieveDefaultDefinitionParameters) UnmarshalJSON(data []byte) error
- type FunctionRetrieveDefaultDefinitionParametersClassification
- type FunctionsClient
- func (client *FunctionsClient) BeginTest(ctx context.Context, resourceGroupName string, jobName string, ...) (*runtime.Poller[FunctionsClientTestResponse], error)
- func (client *FunctionsClient) CreateOrReplace(ctx context.Context, resourceGroupName string, jobName string, ...) (FunctionsClientCreateOrReplaceResponse, error)
- func (client *FunctionsClient) Delete(ctx context.Context, resourceGroupName string, jobName string, ...) (FunctionsClientDeleteResponse, error)
- func (client *FunctionsClient) Get(ctx context.Context, resourceGroupName string, jobName string, ...) (FunctionsClientGetResponse, error)
- func (client *FunctionsClient) NewListByStreamingJobPager(resourceGroupName string, jobName string, ...) *runtime.Pager[FunctionsClientListByStreamingJobResponse]
- func (client *FunctionsClient) RetrieveDefaultDefinition(ctx context.Context, resourceGroupName string, jobName string, ...) (FunctionsClientRetrieveDefaultDefinitionResponse, error)
- func (client *FunctionsClient) Update(ctx context.Context, resourceGroupName string, jobName string, ...) (FunctionsClientUpdateResponse, error)
- type FunctionsClientBeginTestOptions
- type FunctionsClientCreateOrReplaceOptions
- type FunctionsClientCreateOrReplaceResponse
- type FunctionsClientDeleteOptions
- type FunctionsClientDeleteResponse
- type FunctionsClientGetOptions
- type FunctionsClientGetResponse
- type FunctionsClientListByStreamingJobOptions
- type FunctionsClientListByStreamingJobResponse
- type FunctionsClientRetrieveDefaultDefinitionOptions
- type FunctionsClientRetrieveDefaultDefinitionResponse
- type FunctionsClientTestResponse
- type FunctionsClientUpdateOptions
- type FunctionsClientUpdateResponse
- type Identity
- type Input
- type InputListResult
- type InputProperties
- type InputPropertiesClassification
- type InputsClient
- func (client *InputsClient) BeginTest(ctx context.Context, resourceGroupName string, jobName string, ...) (*runtime.Poller[InputsClientTestResponse], error)
- func (client *InputsClient) CreateOrReplace(ctx context.Context, resourceGroupName string, jobName string, ...) (InputsClientCreateOrReplaceResponse, error)
- func (client *InputsClient) Delete(ctx context.Context, resourceGroupName string, jobName string, ...) (InputsClientDeleteResponse, error)
- func (client *InputsClient) Get(ctx context.Context, resourceGroupName string, jobName string, ...) (InputsClientGetResponse, error)
- func (client *InputsClient) NewListByStreamingJobPager(resourceGroupName string, jobName string, ...) *runtime.Pager[InputsClientListByStreamingJobResponse]
- func (client *InputsClient) Update(ctx context.Context, resourceGroupName string, jobName string, ...) (InputsClientUpdateResponse, error)
- type InputsClientBeginTestOptions
- type InputsClientCreateOrReplaceOptions
- type InputsClientCreateOrReplaceResponse
- type InputsClientDeleteOptions
- type InputsClientDeleteResponse
- type InputsClientGetOptions
- type InputsClientGetResponse
- type InputsClientListByStreamingJobOptions
- type InputsClientListByStreamingJobResponse
- type InputsClientTestResponse
- type InputsClientUpdateOptions
- type InputsClientUpdateResponse
- type IoTHubStreamInputDataSource
- type IoTHubStreamInputDataSourceProperties
- type JSONOutputSerializationFormat
- type JSONSerialization
- type JSONSerializationProperties
- type JavaScriptFunctionBinding
- type JavaScriptFunctionBindingProperties
- type JavaScriptFunctionBindingRetrievalProperties
- type JavaScriptFunctionRetrieveDefaultDefinitionParameters
- func (j *JavaScriptFunctionRetrieveDefaultDefinitionParameters) GetFunctionRetrieveDefaultDefinitionParameters() *FunctionRetrieveDefaultDefinitionParameters
- func (j JavaScriptFunctionRetrieveDefaultDefinitionParameters) MarshalJSON() ([]byte, error)
- func (j *JavaScriptFunctionRetrieveDefaultDefinitionParameters) UnmarshalJSON(data []byte) error
- type JobState
- type JobStorageAccount
- type JobType
- type OAuthBasedDataSourceProperties
- type Operation
- type OperationDisplay
- type OperationListResult
- type OperationsClient
- type OperationsClientListOptions
- type OperationsClientListResponse
- type Output
- type OutputDataSource
- type OutputDataSourceClassification
- type OutputErrorPolicy
- type OutputListResult
- type OutputProperties
- type OutputStartMode
- type OutputsClient
- func (client *OutputsClient) BeginTest(ctx context.Context, resourceGroupName string, jobName string, ...) (*runtime.Poller[OutputsClientTestResponse], error)
- func (client *OutputsClient) CreateOrReplace(ctx context.Context, resourceGroupName string, jobName string, ...) (OutputsClientCreateOrReplaceResponse, error)
- func (client *OutputsClient) Delete(ctx context.Context, resourceGroupName string, jobName string, ...) (OutputsClientDeleteResponse, error)
- func (client *OutputsClient) Get(ctx context.Context, resourceGroupName string, jobName string, ...) (OutputsClientGetResponse, error)
- func (client *OutputsClient) NewListByStreamingJobPager(resourceGroupName string, jobName string, ...) *runtime.Pager[OutputsClientListByStreamingJobResponse]
- func (client *OutputsClient) Update(ctx context.Context, resourceGroupName string, jobName string, ...) (OutputsClientUpdateResponse, error)
- type OutputsClientBeginTestOptions
- type OutputsClientCreateOrReplaceOptions
- type OutputsClientCreateOrReplaceResponse
- type OutputsClientDeleteOptions
- type OutputsClientDeleteResponse
- type OutputsClientGetOptions
- type OutputsClientGetResponse
- type OutputsClientListByStreamingJobOptions
- type OutputsClientListByStreamingJobResponse
- type OutputsClientTestResponse
- type OutputsClientUpdateOptions
- type OutputsClientUpdateResponse
- type ParquetSerialization
- type PowerBIOutputDataSource
- type PowerBIOutputDataSourceProperties
- type PrivateEndpoint
- type PrivateEndpointListResult
- type PrivateEndpointProperties
- type PrivateEndpointsClient
- func (client *PrivateEndpointsClient) BeginDelete(ctx context.Context, resourceGroupName string, clusterName string, ...) (*runtime.Poller[PrivateEndpointsClientDeleteResponse], error)
- func (client *PrivateEndpointsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, clusterName string, ...) (PrivateEndpointsClientCreateOrUpdateResponse, error)
- func (client *PrivateEndpointsClient) Get(ctx context.Context, resourceGroupName string, clusterName string, ...) (PrivateEndpointsClientGetResponse, error)
- func (client *PrivateEndpointsClient) NewListByClusterPager(resourceGroupName string, clusterName string, ...) *runtime.Pager[PrivateEndpointsClientListByClusterResponse]
- type PrivateEndpointsClientBeginDeleteOptions
- type PrivateEndpointsClientCreateOrUpdateOptions
- type PrivateEndpointsClientCreateOrUpdateResponse
- type PrivateEndpointsClientDeleteResponse
- type PrivateEndpointsClientGetOptions
- type PrivateEndpointsClientGetResponse
- type PrivateEndpointsClientListByClusterOptions
- type PrivateEndpointsClientListByClusterResponse
- type PrivateLinkConnectionState
- type PrivateLinkServiceConnection
- type PrivateLinkServiceConnectionProperties
- type ProxyResource
- type ReferenceInputDataSource
- type ReferenceInputDataSourceClassification
- type ReferenceInputProperties
- type RefreshType
- type Resource
- type ResourceTestStatus
- type SKU
- type SKUName
- type ScalarFunctionProperties
- type ScaleStreamingJobParameters
- type Serialization
- type SerializationClassification
- type ServiceBusDataSourceProperties
- type ServiceBusQueueOutputDataSource
- type ServiceBusQueueOutputDataSourceProperties
- type ServiceBusTopicOutputDataSource
- type ServiceBusTopicOutputDataSourceProperties
- type StartStreamingJobParameters
- type StorageAccount
- type StreamInputDataSource
- type StreamInputDataSourceClassification
- type StreamInputProperties
- type StreamingJob
- type StreamingJobListResult
- type StreamingJobProperties
- type StreamingJobsClient
- func (client *StreamingJobsClient) BeginCreateOrReplace(ctx context.Context, resourceGroupName string, jobName string, ...) (*runtime.Poller[StreamingJobsClientCreateOrReplaceResponse], error)
- func (client *StreamingJobsClient) BeginDelete(ctx context.Context, resourceGroupName string, jobName string, ...) (*runtime.Poller[StreamingJobsClientDeleteResponse], error)
- func (client *StreamingJobsClient) BeginScale(ctx context.Context, resourceGroupName string, jobName string, ...) (*runtime.Poller[StreamingJobsClientScaleResponse], error)
- func (client *StreamingJobsClient) BeginStart(ctx context.Context, resourceGroupName string, jobName string, ...) (*runtime.Poller[StreamingJobsClientStartResponse], error)
- func (client *StreamingJobsClient) BeginStop(ctx context.Context, resourceGroupName string, jobName string, ...) (*runtime.Poller[StreamingJobsClientStopResponse], error)
- func (client *StreamingJobsClient) Get(ctx context.Context, resourceGroupName string, jobName string, ...) (StreamingJobsClientGetResponse, error)
- func (client *StreamingJobsClient) NewListByResourceGroupPager(resourceGroupName string, ...) *runtime.Pager[StreamingJobsClientListByResourceGroupResponse]
- func (client *StreamingJobsClient) NewListPager(options *StreamingJobsClientListOptions) *runtime.Pager[StreamingJobsClientListResponse]
- func (client *StreamingJobsClient) Update(ctx context.Context, resourceGroupName string, jobName string, ...) (StreamingJobsClientUpdateResponse, error)
- type StreamingJobsClientBeginCreateOrReplaceOptions
- type StreamingJobsClientBeginDeleteOptions
- type StreamingJobsClientBeginScaleOptions
- type StreamingJobsClientBeginStartOptions
- type StreamingJobsClientBeginStopOptions
- type StreamingJobsClientCreateOrReplaceResponse
- type StreamingJobsClientDeleteResponse
- type StreamingJobsClientGetOptions
- type StreamingJobsClientGetResponse
- type StreamingJobsClientListByResourceGroupOptions
- type StreamingJobsClientListByResourceGroupResponse
- type StreamingJobsClientListOptions
- type StreamingJobsClientListResponse
- type StreamingJobsClientScaleResponse
- type StreamingJobsClientStartResponse
- type StreamingJobsClientStopResponse
- type StreamingJobsClientUpdateOptions
- type StreamingJobsClientUpdateResponse
- type SubResource
- type SubscriptionQuota
- type SubscriptionQuotaProperties
- type SubscriptionQuotasListResult
- type SubscriptionsClient
- type SubscriptionsClientListQuotasOptions
- type SubscriptionsClientListQuotasResponse
- type TrackedResource
- type Transformation
- type TransformationProperties
- type TransformationsClient
- func (client *TransformationsClient) CreateOrReplace(ctx context.Context, resourceGroupName string, jobName string, ...) (TransformationsClientCreateOrReplaceResponse, error)
- func (client *TransformationsClient) Get(ctx context.Context, resourceGroupName string, jobName string, ...) (TransformationsClientGetResponse, error)
- func (client *TransformationsClient) Update(ctx context.Context, resourceGroupName string, jobName string, ...) (TransformationsClientUpdateResponse, error)
- type TransformationsClientCreateOrReplaceOptions
- type TransformationsClientCreateOrReplaceResponse
- type TransformationsClientGetOptions
- type TransformationsClientGetResponse
- type TransformationsClientUpdateOptions
- type TransformationsClientUpdateResponse
Examples ¶
- ClustersClient.BeginCreateOrUpdate
- ClustersClient.BeginDelete
- ClustersClient.BeginUpdate
- ClustersClient.Get
- ClustersClient.NewListByResourceGroupPager
- ClustersClient.NewListBySubscriptionPager
- ClustersClient.NewListStreamingJobsPager
- FunctionsClient.BeginTest (TestTheConnectionForAJavaScriptFunction)
- FunctionsClient.BeginTest (TestTheConnectionForAnAzureMlFunction)
- FunctionsClient.CreateOrReplace (CreateAJavaScriptFunction)
- FunctionsClient.CreateOrReplace (CreateAnAzureMlFunction)
- FunctionsClient.Delete
- FunctionsClient.Get (GetAJavaScriptFunction)
- FunctionsClient.Get (GetAnAzureMlFunction)
- FunctionsClient.NewListByStreamingJobPager
- FunctionsClient.RetrieveDefaultDefinition
- FunctionsClient.Update (UpdateAJavaScriptFunction)
- FunctionsClient.Update (UpdateAnAzureMlFunction)
- InputsClient.BeginTest
- InputsClient.CreateOrReplace (CreateAReferenceBlobInputWithCsvSerialization)
- InputsClient.CreateOrReplace (CreateAStreamBlobInputWithCsvSerialization)
- InputsClient.CreateOrReplace (CreateAStreamEventHubInputWithJsonSerialization)
- InputsClient.CreateOrReplace (CreateAStreamIoTHubInputWithAvroSerialization)
- InputsClient.Delete
- InputsClient.Get (GetAReferenceBlobInputWithCsvSerialization)
- InputsClient.Get (GetAStreamBlobInputWithCsvSerialization)
- InputsClient.Get (GetAStreamEventHubInputWithJsonSerialization)
- InputsClient.Get (GetAStreamIoTHubInputWithAvroSerialization)
- InputsClient.NewListByStreamingJobPager (ListAllInputsInAStreamingJob)
- InputsClient.NewListByStreamingJobPager (ListAllInputsInAStreamingJobAndIncludeDiagnosticInformationUsingTheSelectODataQueryParameter)
- InputsClient.Update (UpdateAReferenceBlobInput)
- InputsClient.Update (UpdateAStreamBlobInput)
- InputsClient.Update (UpdateAStreamEventHubInput)
- InputsClient.Update (UpdateAStreamIoTHubInput)
- OperationsClient.NewListPager
- OutputsClient.BeginTest
- OutputsClient.CreateOrReplace (CreateABlobOutputWithCsvSerialization)
- OutputsClient.CreateOrReplace (CreateADocumentDbOutput)
- OutputsClient.CreateOrReplace (CreateAPowerBiOutput)
- OutputsClient.CreateOrReplace (CreateAServiceBusQueueOutputWithAvroSerialization)
- OutputsClient.CreateOrReplace (CreateAServiceBusTopicOutputWithCsvSerialization)
- OutputsClient.CreateOrReplace (CreateAnAzureDataLakeStoreOutputWithJsonSerialization)
- OutputsClient.CreateOrReplace (CreateAnAzureDataWarehouseOutput)
- OutputsClient.CreateOrReplace (CreateAnAzureFunctionOutput)
- OutputsClient.CreateOrReplace (CreateAnAzureSqlDatabaseOutput)
- OutputsClient.CreateOrReplace (CreateAnAzureTableOutput)
- OutputsClient.CreateOrReplace (CreateAnEventHubOutputWithJsonSerialization)
- OutputsClient.Delete
- OutputsClient.Get (GetABlobOutputWithCsvSerialization)
- OutputsClient.Get (GetADocumentDbOutput)
- OutputsClient.Get (GetAPowerBiOutput)
- OutputsClient.Get (GetAServiceBusQueueOutputWithAvroSerialization)
- OutputsClient.Get (GetAServiceBusTopicOutputWithCsvSerialization)
- OutputsClient.Get (GetAnAzureDataLakeStoreOutputWithJsonSerialization)
- OutputsClient.Get (GetAnAzureDataWarehouseOutput)
- OutputsClient.Get (GetAnAzureFunctionOutput)
- OutputsClient.Get (GetAnAzureSqlDatabaseOutput)
- OutputsClient.Get (GetAnAzureTableOutput)
- OutputsClient.Get (GetAnEventHubOutputWithJsonSerialization)
- OutputsClient.NewListByStreamingJobPager
- OutputsClient.Update (UpdateABlobOutputWithCsvSerialization)
- OutputsClient.Update (UpdateADocumentDbOutput)
- OutputsClient.Update (UpdateAPowerBiOutput)
- OutputsClient.Update (UpdateAServiceBusQueueOutputWithAvroSerialization)
- OutputsClient.Update (UpdateAServiceBusTopicOutputWithCsvSerialization)
- OutputsClient.Update (UpdateAnAzureDataLakeStoreOutputWithJsonSerialization)
- OutputsClient.Update (UpdateAnAzureDataWarehouseOutput)
- OutputsClient.Update (UpdateAnAzureFunctionOutput)
- OutputsClient.Update (UpdateAnAzureSqlDatabaseOutput)
- OutputsClient.Update (UpdateAnAzureTableOutput)
- OutputsClient.Update (UpdateAnEventHubOutputWithJsonSerialization)
- PrivateEndpointsClient.BeginDelete
- PrivateEndpointsClient.CreateOrUpdate
- PrivateEndpointsClient.Get
- PrivateEndpointsClient.NewListByClusterPager
- StreamingJobsClient.BeginCreateOrReplace (CreateACompleteStreamingJobAStreamingJobWithATransformationAtLeast1InputAndAtLeast1Output)
- StreamingJobsClient.BeginCreateOrReplace (CreateAStreamingJobShellAStreamingJobWithNoInputsOutputsTransformationOrFunctions)
- StreamingJobsClient.BeginDelete
- StreamingJobsClient.BeginScale
- StreamingJobsClient.BeginStart (StartAStreamingJobWithCustomTimeOutputStartMode)
- StreamingJobsClient.BeginStart (StartAStreamingJobWithJobStartTimeOutputStartMode)
- StreamingJobsClient.BeginStart (StartAStreamingJobWithLastOutputEventTimeOutputStartMode)
- StreamingJobsClient.BeginStop
- StreamingJobsClient.Get (GetAStreamingJobAndDoNotUseTheExpandODataQueryParameter)
- StreamingJobsClient.Get (GetAStreamingJobAndUseTheExpandODataQueryParameterToExpandInputsOutputsTransformationAndFunctions)
- StreamingJobsClient.NewListByResourceGroupPager (ListAllStreamingJobsInAResourceGroupAndDoNotUseTheExpandODataQueryParameter)
- StreamingJobsClient.NewListByResourceGroupPager (ListAllStreamingJobsInAResourceGroupAndUseTheExpandODataQueryParameterToExpandInputsOutputsTransformationAndFunctions)
- StreamingJobsClient.NewListPager (ListAllStreamingJobsInASubscriptionAndDoNotUseTheExpandODataQueryParameter)
- StreamingJobsClient.NewListPager (ListAllStreamingJobsInASubscriptionAndUseTheExpandODataQueryParameterToExpandInputsOutputsTransformationAndFunctions)
- StreamingJobsClient.Update
- SubscriptionsClient.ListQuotas
- TransformationsClient.CreateOrReplace
- TransformationsClient.Get
- TransformationsClient.Update
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 ¶ added in v0.4.0
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 ¶ added in v0.4.0
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 ¶ added in v0.3.0
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 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 ¶ added in v0.3.0
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 ¶ added in v1.1.0
func (a AzureDataLakeStoreOutputDataSourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AzureDataLakeStoreOutputDataSourceProperties.
func (*AzureDataLakeStoreOutputDataSourceProperties) UnmarshalJSON ¶ added in v1.1.0
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 ¶ added in v0.4.0
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 ¶ added in v1.1.0
func (a AzureFunctionOutputDataSourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AzureFunctionOutputDataSourceProperties.
func (*AzureFunctionOutputDataSourceProperties) UnmarshalJSON ¶ added in v1.1.0
func (a *AzureFunctionOutputDataSourceProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AzureFunctionOutputDataSourceProperties.
type AzureMachineLearningWebServiceFunctionBinding ¶ added in v0.3.0
type AzureMachineLearningWebServiceFunctionBinding struct { // REQUIRED; Indicates the function binding type. Type *string // The binding properties associated with an Azure Machine learning web service. Properties *AzureMachineLearningWebServiceFunctionBindingProperties }
AzureMachineLearningWebServiceFunctionBinding - The binding to an Azure Machine Learning web service.
func (*AzureMachineLearningWebServiceFunctionBinding) GetFunctionBinding ¶ added in v0.3.0
func (a *AzureMachineLearningWebServiceFunctionBinding) GetFunctionBinding() *FunctionBinding
GetFunctionBinding implements the FunctionBindingClassification interface for type AzureMachineLearningWebServiceFunctionBinding.
func (AzureMachineLearningWebServiceFunctionBinding) MarshalJSON ¶ added in v0.3.0
func (a AzureMachineLearningWebServiceFunctionBinding) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AzureMachineLearningWebServiceFunctionBinding.
func (*AzureMachineLearningWebServiceFunctionBinding) UnmarshalJSON ¶ added in v0.3.0
func (a *AzureMachineLearningWebServiceFunctionBinding) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AzureMachineLearningWebServiceFunctionBinding.
type AzureMachineLearningWebServiceFunctionBindingProperties ¶ added in v0.3.0
type AzureMachineLearningWebServiceFunctionBindingProperties 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. 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 web service endpoint. Inputs *AzureMachineLearningWebServiceInputs // A list of outputs from the Azure Machine Learning web service endpoint execution. Outputs []*AzureMachineLearningWebServiceOutputColumn }
AzureMachineLearningWebServiceFunctionBindingProperties - The binding properties associated with an Azure Machine learning web service.
func (AzureMachineLearningWebServiceFunctionBindingProperties) MarshalJSON ¶ added in v0.3.0
func (a AzureMachineLearningWebServiceFunctionBindingProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AzureMachineLearningWebServiceFunctionBindingProperties.
func (*AzureMachineLearningWebServiceFunctionBindingProperties) UnmarshalJSON ¶ added in v1.1.0
func (a *AzureMachineLearningWebServiceFunctionBindingProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AzureMachineLearningWebServiceFunctionBindingProperties.
type AzureMachineLearningWebServiceFunctionBindingRetrievalProperties ¶ added in v0.3.0
type AzureMachineLearningWebServiceFunctionBindingRetrievalProperties struct { // The Request-Response execute endpoint of the Azure Machine Learning web service. 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 }
AzureMachineLearningWebServiceFunctionBindingRetrievalProperties - The binding retrieval properties associated with an Azure Machine learning web service.
func (AzureMachineLearningWebServiceFunctionBindingRetrievalProperties) MarshalJSON ¶ added in v1.1.0
func (a AzureMachineLearningWebServiceFunctionBindingRetrievalProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AzureMachineLearningWebServiceFunctionBindingRetrievalProperties.
func (*AzureMachineLearningWebServiceFunctionBindingRetrievalProperties) UnmarshalJSON ¶ added in v1.1.0
func (a *AzureMachineLearningWebServiceFunctionBindingRetrievalProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AzureMachineLearningWebServiceFunctionBindingRetrievalProperties.
type AzureMachineLearningWebServiceFunctionRetrieveDefaultDefinitionParameters ¶ added in v0.3.0
type AzureMachineLearningWebServiceFunctionRetrieveDefaultDefinitionParameters struct { // REQUIRED; Indicates the function binding type. BindingType *string // The binding retrieval properties associated with an Azure Machine learning web service. BindingRetrievalProperties *AzureMachineLearningWebServiceFunctionBindingRetrievalProperties }
AzureMachineLearningWebServiceFunctionRetrieveDefaultDefinitionParameters - The parameters needed to retrieve the default function definition for an Azure Machine Learning web service function.
func (*AzureMachineLearningWebServiceFunctionRetrieveDefaultDefinitionParameters) GetFunctionRetrieveDefaultDefinitionParameters ¶ added in v0.3.0
func (a *AzureMachineLearningWebServiceFunctionRetrieveDefaultDefinitionParameters) GetFunctionRetrieveDefaultDefinitionParameters() *FunctionRetrieveDefaultDefinitionParameters
GetFunctionRetrieveDefaultDefinitionParameters implements the FunctionRetrieveDefaultDefinitionParametersClassification interface for type AzureMachineLearningWebServiceFunctionRetrieveDefaultDefinitionParameters.
func (AzureMachineLearningWebServiceFunctionRetrieveDefaultDefinitionParameters) MarshalJSON ¶ added in v0.3.0
func (a AzureMachineLearningWebServiceFunctionRetrieveDefaultDefinitionParameters) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AzureMachineLearningWebServiceFunctionRetrieveDefaultDefinitionParameters.
func (*AzureMachineLearningWebServiceFunctionRetrieveDefaultDefinitionParameters) UnmarshalJSON ¶ added in v0.3.0
func (a *AzureMachineLearningWebServiceFunctionRetrieveDefaultDefinitionParameters) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AzureMachineLearningWebServiceFunctionRetrieveDefaultDefinitionParameters.
type AzureMachineLearningWebServiceInputColumn ¶ added in v0.3.0
type AzureMachineLearningWebServiceInputColumn 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 }
AzureMachineLearningWebServiceInputColumn - Describes an input column for the Azure Machine Learning web service endpoint.
func (AzureMachineLearningWebServiceInputColumn) MarshalJSON ¶ added in v1.1.0
func (a AzureMachineLearningWebServiceInputColumn) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AzureMachineLearningWebServiceInputColumn.
func (*AzureMachineLearningWebServiceInputColumn) UnmarshalJSON ¶ added in v1.1.0
func (a *AzureMachineLearningWebServiceInputColumn) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AzureMachineLearningWebServiceInputColumn.
type AzureMachineLearningWebServiceInputs ¶ added in v0.3.0
type AzureMachineLearningWebServiceInputs struct { // A list of input columns for the Azure Machine Learning web service endpoint. ColumnNames []*AzureMachineLearningWebServiceInputColumn // The name of the input. This is the name provided while authoring the endpoint. Name *string }
AzureMachineLearningWebServiceInputs - The inputs for the Azure Machine Learning web service endpoint.
func (AzureMachineLearningWebServiceInputs) MarshalJSON ¶ added in v0.3.0
func (a AzureMachineLearningWebServiceInputs) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AzureMachineLearningWebServiceInputs.
func (*AzureMachineLearningWebServiceInputs) UnmarshalJSON ¶ added in v1.1.0
func (a *AzureMachineLearningWebServiceInputs) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AzureMachineLearningWebServiceInputs.
type AzureMachineLearningWebServiceOutputColumn ¶ added in v0.3.0
type AzureMachineLearningWebServiceOutputColumn 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 }
AzureMachineLearningWebServiceOutputColumn - Describes an output column for the Azure Machine Learning web service endpoint.
func (AzureMachineLearningWebServiceOutputColumn) MarshalJSON ¶ added in v1.1.0
func (a AzureMachineLearningWebServiceOutputColumn) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AzureMachineLearningWebServiceOutputColumn.
func (*AzureMachineLearningWebServiceOutputColumn) UnmarshalJSON ¶ added in v1.1.0
func (a *AzureMachineLearningWebServiceOutputColumn) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AzureMachineLearningWebServiceOutputColumn.
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 ¶ added in v1.1.0
func (a AzureSQLDatabaseDataSourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AzureSQLDatabaseDataSourceProperties.
func (*AzureSQLDatabaseDataSourceProperties) UnmarshalJSON ¶ added in v1.1.0
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 ¶ added in v0.3.0
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 ¶ added in v1.1.0
func (a AzureSQLDatabaseOutputDataSourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AzureSQLDatabaseOutputDataSourceProperties.
func (*AzureSQLDatabaseOutputDataSourceProperties) UnmarshalJSON ¶ added in v1.1.0
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 ¶ added in v0.3.0
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 { // 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. The name of the table in the Azure SQL database.. Table *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 ¶ added in v1.1.0
func (a AzureSQLReferenceInputDataSourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AzureSQLReferenceInputDataSourceProperties.
func (*AzureSQLReferenceInputDataSourceProperties) UnmarshalJSON ¶ added in v1.1.0
func (a *AzureSQLReferenceInputDataSourceProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AzureSQLReferenceInputDataSourceProperties.
type AzureSynapseDataSourceProperties ¶
type AzureSynapseDataSourceProperties struct { // 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 ¶ added in v1.1.0
func (a AzureSynapseDataSourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AzureSynapseDataSourceProperties.
func (*AzureSynapseDataSourceProperties) UnmarshalJSON ¶ added in v1.1.0
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 ¶ added in v0.3.0
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 { // 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 ¶ added in v1.1.0
func (a AzureSynapseOutputDataSourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AzureSynapseOutputDataSourceProperties.
func (*AzureSynapseOutputDataSourceProperties) UnmarshalJSON ¶ added in v1.1.0
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 ¶ added in v0.3.0
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 ¶ added in v1.1.0
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 ¶ added in v1.1.0
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 ¶ added in v0.3.0
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 // 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 ¶ added in v1.1.0
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 ¶ added in v0.3.0
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 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 }
BlobReferenceInputDataSourceProperties - The properties that are associated with a blob input containing reference data.
func (BlobReferenceInputDataSourceProperties) MarshalJSON ¶ added in v0.3.0
func (b BlobReferenceInputDataSourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BlobReferenceInputDataSourceProperties.
func (*BlobReferenceInputDataSourceProperties) UnmarshalJSON ¶ added in v1.1.0
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 ¶ added in v0.3.0
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 ¶ added in v1.1.0
func (b *BlobStreamInputDataSourceProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BlobStreamInputDataSourceProperties.
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 ¶ added in v0.3.0
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 ¶ added in v1.1.0
func (c CSVSerializationProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CSVSerializationProperties.
func (*CSVSerializationProperties) UnmarshalJSON ¶ added in v1.1.0
func (c *CSVSerializationProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CSVSerializationProperties.
type ClientFactory ¶ added in v1.1.0
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 ¶ added in v1.1.0
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 ¶ added in v1.1.0
func (c *ClientFactory) NewClustersClient() *ClustersClient
NewClustersClient creates a new instance of ClustersClient.
func (*ClientFactory) NewFunctionsClient ¶ added in v1.1.0
func (c *ClientFactory) NewFunctionsClient() *FunctionsClient
NewFunctionsClient creates a new instance of FunctionsClient.
func (*ClientFactory) NewInputsClient ¶ added in v1.1.0
func (c *ClientFactory) NewInputsClient() *InputsClient
NewInputsClient creates a new instance of InputsClient.
func (*ClientFactory) NewOperationsClient ¶ added in v1.1.0
func (c *ClientFactory) NewOperationsClient() *OperationsClient
NewOperationsClient creates a new instance of OperationsClient.
func (*ClientFactory) NewOutputsClient ¶ added in v1.1.0
func (c *ClientFactory) NewOutputsClient() *OutputsClient
NewOutputsClient creates a new instance of OutputsClient.
func (*ClientFactory) NewPrivateEndpointsClient ¶ added in v1.1.0
func (c *ClientFactory) NewPrivateEndpointsClient() *PrivateEndpointsClient
NewPrivateEndpointsClient creates a new instance of PrivateEndpointsClient.
func (*ClientFactory) NewStreamingJobsClient ¶ added in v1.1.0
func (c *ClientFactory) NewStreamingJobsClient() *StreamingJobsClient
NewStreamingJobsClient creates a new instance of StreamingJobsClient.
func (*ClientFactory) NewSubscriptionsClient ¶ added in v1.1.0
func (c *ClientFactory) NewSubscriptionsClient() *SubscriptionsClient
NewSubscriptionsClient creates a new instance of SubscriptionsClient.
func (*ClientFactory) NewTransformationsClient ¶ added in v1.1.0
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 ¶
MarshalJSON implements the json.Marshaller interface for type Cluster.
func (*Cluster) UnmarshalJSON ¶ added in v1.1.0
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 ¶ added in v1.1.0
func (c ClusterInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ClusterInfo.
func (*ClusterInfo) UnmarshalJSON ¶ added in v1.1.0
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 ¶ added in v1.1.0
func (c ClusterJob) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ClusterJob.
func (*ClusterJob) UnmarshalJSON ¶ added in v1.1.0
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 ¶ added in v1.1.0
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 ¶ added in v1.1.0
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 ¶ added in v1.1.0
func (c ClusterSKU) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ClusterSKU.
func (*ClusterSKU) UnmarshalJSON ¶ added in v1.1.0
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
- 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Cluster_Create.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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
- 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Cluster_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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
- 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Cluster_Update.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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
- 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Cluster_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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 ¶ added in v0.5.0
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
- 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Cluster_ListByResourceGroup.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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 ¶ added in v0.5.0
func (client *ClustersClient) NewListBySubscriptionPager(options *ClustersClientListBySubscriptionOptions) *runtime.Pager[ClustersClientListBySubscriptionResponse]
NewListBySubscriptionPager - Lists all of the clusters in the given subscription.
Generated from API version 2020-03-01
- 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Cluster_ListBySubscription.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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 ¶ added in v0.5.0
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
- 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Cluster_ListStreamingJobs.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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 ¶ added in v0.3.0
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 ¶ added in v0.3.0
type ClustersClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ClustersClientBeginDeleteOptions contains the optional parameters for the ClustersClient.BeginDelete method.
type ClustersClientBeginUpdateOptions ¶ added in v0.3.0
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 ¶ added in v0.3.0
type ClustersClientCreateOrUpdateResponse struct { // A Stream Analytics Cluster object Cluster }
ClustersClientCreateOrUpdateResponse contains the response from method ClustersClient.BeginCreateOrUpdate.
type ClustersClientDeleteResponse ¶ added in v0.3.0
type ClustersClientDeleteResponse struct { }
ClustersClientDeleteResponse contains the response from method ClustersClient.BeginDelete.
type ClustersClientGetOptions ¶ added in v0.3.0
type ClustersClientGetOptions struct { }
ClustersClientGetOptions contains the optional parameters for the ClustersClient.Get method.
type ClustersClientGetResponse ¶ added in v0.3.0
type ClustersClientGetResponse struct { // A Stream Analytics Cluster object Cluster }
ClustersClientGetResponse contains the response from method ClustersClient.Get.
type ClustersClientListByResourceGroupOptions ¶ added in v0.3.0
type ClustersClientListByResourceGroupOptions struct { }
ClustersClientListByResourceGroupOptions contains the optional parameters for the ClustersClient.NewListByResourceGroupPager method.
type ClustersClientListByResourceGroupResponse ¶ added in v0.3.0
type ClustersClientListByResourceGroupResponse struct { // A list of clusters populated by a 'list' operation. ClusterListResult }
ClustersClientListByResourceGroupResponse contains the response from method ClustersClient.NewListByResourceGroupPager.
type ClustersClientListBySubscriptionOptions ¶ added in v0.3.0
type ClustersClientListBySubscriptionOptions struct { }
ClustersClientListBySubscriptionOptions contains the optional parameters for the ClustersClient.NewListBySubscriptionPager method.
type ClustersClientListBySubscriptionResponse ¶ added in v0.3.0
type ClustersClientListBySubscriptionResponse struct { // A list of clusters populated by a 'list' operation. ClusterListResult }
ClustersClientListBySubscriptionResponse contains the response from method ClustersClient.NewListBySubscriptionPager.
type ClustersClientListStreamingJobsOptions ¶ added in v0.3.0
type ClustersClientListStreamingJobsOptions struct { }
ClustersClientListStreamingJobsOptions contains the optional parameters for the ClustersClient.NewListStreamingJobsPager method.
type ClustersClientListStreamingJobsResponse ¶ added in v0.3.0
type ClustersClientListStreamingJobsResponse struct { // A list of streaming jobs. Populated by a List operation. ClusterJobListResult }
ClustersClientListStreamingJobsResponse contains the response from method ClustersClient.NewListStreamingJobsPager.
type ClustersClientUpdateResponse ¶ added in v0.3.0
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 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 ¶ added in v1.1.0
func (c Compression) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type Compression.
func (*Compression) UnmarshalJSON ¶ added in v1.1.0
func (c *Compression) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type Compression.
type CompressionType ¶ added in v0.3.0
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 ¶ added in v0.3.0
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 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 ¶ added in v1.1.0
func (d DiagnosticCondition) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DiagnosticCondition.
func (*DiagnosticCondition) UnmarshalJSON ¶ added in v1.1.0
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 ¶ added in v1.1.0
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 ¶ added in v0.3.0
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 // 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 ¶ added in v1.1.0
func (d DocumentDbOutputDataSourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DocumentDbOutputDataSourceProperties.
func (*DocumentDbOutputDataSourceProperties) UnmarshalJSON ¶ added in v1.1.0
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 ¶ added in v1.1.0
MarshalJSON implements the json.Marshaller interface for type Error.
func (*Error) UnmarshalJSON ¶ added in v1.1.0
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 ¶ added in v1.1.0
func (e ErrorDetails) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ErrorDetails.
func (*ErrorDetails) UnmarshalJSON ¶ added in v1.1.0
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 ¶ added in v1.1.0
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 ¶ added in v1.1.0
func (e ErrorResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ErrorResponse.
func (*ErrorResponse) UnmarshalJSON ¶ added in v1.1.0
func (e *ErrorResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ErrorResponse.
type EventHubDataSourceProperties ¶
type EventHubDataSourceProperties struct { // Authentication Mode. AuthenticationMode *AuthenticationMode // The name of the Event Hub. Required on PUT (CreateOrReplace) requests. EventHubName *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 SharedAccessPolicyKey *string // 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 ¶ added in v1.1.0
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 ¶ added in v0.3.0
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 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 SharedAccessPolicyKey *string // 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 ¶ added in v1.1.0
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 ¶ added in v0.3.0
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 namespace that is associated with the desired Event Hub, Service Bus Queue, Service Bus Topic, etc. Required on PUT // (CreateOrReplace) requests. ServiceBusNamespace *string SharedAccessPolicyKey *string // 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 ¶ added in v1.1.0
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 ¶ added in v0.3.0
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 ¶ added in v0.3.0
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" 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 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 ¶
MarshalJSON implements the json.Marshaller interface for type Function.
func (*Function) UnmarshalJSON ¶
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 ¶ added in v1.1.0
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: - *AzureMachineLearningWebServiceFunctionBinding, *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 ¶ added in v1.1.0
func (f FunctionInput) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type FunctionInput.
func (*FunctionInput) UnmarshalJSON ¶ added in v1.1.0
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 ¶ added in v1.1.0
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 ¶ added in v1.1.0
func (f FunctionOutput) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type FunctionOutput.
func (*FunctionOutput) UnmarshalJSON ¶ added in v1.1.0
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 ¶ added in v1.1.0
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 ¶ added in v1.1.0
func (f FunctionRetrieveDefaultDefinitionParameters) MarshalJSON() ([]byte, error)
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: - *AzureMachineLearningWebServiceFunctionRetrieveDefaultDefinitionParameters, *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 2020-03-01
- 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Function_Test_JavaScript.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Function_Test_AzureML.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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, "sjrg7", "sj9093", "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 2020-03-01
- 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 (CreateAJavaScriptFunction) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Function_Create_JavaScript.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Function_Create_AzureML.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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.AzureMachineLearningWebServiceFunctionBinding{ Type: to.Ptr("Microsoft.MachineLearning/WebService"), Properties: &armstreamanalytics.AzureMachineLearningWebServiceFunctionBindingProperties{ APIKey: to.Ptr("someApiKey=="), BatchSize: to.Ptr[int32](1000), Endpoint: to.Ptr("someAzureMLEndpointURL"), Inputs: &armstreamanalytics.AzureMachineLearningWebServiceInputs{ Name: to.Ptr("input1"), ColumnNames: []*armstreamanalytics.AzureMachineLearningWebServiceInputColumn{ { Name: to.Ptr("tweet"), DataType: to.Ptr("string"), MapTo: to.Ptr[int32](0), }}, }, Outputs: []*armstreamanalytics.AzureMachineLearningWebServiceOutputColumn{ { 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.AzureMachineLearningWebServiceFunctionBinding{ // Type: to.Ptr("Microsoft.MachineLearning/WebService"), // Properties: &armstreamanalytics.AzureMachineLearningWebServiceFunctionBindingProperties{ // BatchSize: to.Ptr[int32](1000), // Endpoint: to.Ptr("someAzureMLEndpointURL"), // Inputs: &armstreamanalytics.AzureMachineLearningWebServiceInputs{ // Name: to.Ptr("input1"), // ColumnNames: []*armstreamanalytics.AzureMachineLearningWebServiceInputColumn{ // { // Name: to.Ptr("tweet"), // DataType: to.Ptr("string"), // MapTo: to.Ptr[int32](0), // }}, // }, // Outputs: []*armstreamanalytics.AzureMachineLearningWebServiceOutputColumn{ // { // 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 2020-03-01
- 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Function_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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 2020-03-01
- 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Function_Get_JavaScript.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Function_Get_AzureML.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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.AzureMachineLearningWebServiceFunctionBinding{ // Type: to.Ptr("Microsoft.MachineLearning/WebService"), // Properties: &armstreamanalytics.AzureMachineLearningWebServiceFunctionBindingProperties{ // BatchSize: to.Ptr[int32](1000), // Endpoint: to.Ptr("someAzureMLEndpointURL"), // Inputs: &armstreamanalytics.AzureMachineLearningWebServiceInputs{ // Name: to.Ptr("input1"), // ColumnNames: []*armstreamanalytics.AzureMachineLearningWebServiceInputColumn{ // { // Name: to.Ptr("tweet"), // DataType: to.Ptr("string"), // MapTo: to.Ptr[int32](0), // }}, // }, // Outputs: []*armstreamanalytics.AzureMachineLearningWebServiceOutputColumn{ // { // Name: to.Ptr("Sentiment"), // DataType: to.Ptr("string"), // }}, // }, // }, // Inputs: []*armstreamanalytics.FunctionInput{ // { // DataType: to.Ptr("nvarchar(max)"), // }},
Output:
func (*FunctionsClient) NewListByStreamingJobPager ¶ added in v0.5.0
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 2020-03-01
- 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Function_ListByStreamingJob.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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.AzureMachineLearningWebServiceFunctionBinding{ // Type: to.Ptr("Microsoft.MachineLearning/WebService"), // Properties: &armstreamanalytics.AzureMachineLearningWebServiceFunctionBindingProperties{ // BatchSize: to.Ptr[int32](5000), // Endpoint: to.Ptr("someAzureMLEndpointURL"), // Inputs: &armstreamanalytics.AzureMachineLearningWebServiceInputs{ // Name: to.Ptr("input1"), // ColumnNames: []*armstreamanalytics.AzureMachineLearningWebServiceInputColumn{ // { // Name: to.Ptr("tweet"), // DataType: to.Ptr("string"), // MapTo: to.Ptr[int32](0), // }}, // }, // Outputs: []*armstreamanalytics.AzureMachineLearningWebServiceOutputColumn{ // { // 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 2020-03-01
- 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Function_RetrieveDefaultDefinition_AzureML.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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.AzureMachineLearningWebServiceFunctionRetrieveDefaultDefinitionParameters{ BindingType: to.Ptr("Microsoft.MachineLearning/WebService"), BindingRetrievalProperties: &armstreamanalytics.AzureMachineLearningWebServiceFunctionBindingRetrievalProperties{ 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.AzureMachineLearningWebServiceFunctionBinding{ // Type: to.Ptr("Microsoft.MachineLearning/WebService"), // Properties: &armstreamanalytics.AzureMachineLearningWebServiceFunctionBindingProperties{ // BatchSize: to.Ptr[int32](1000), // Endpoint: to.Ptr("someAzureMLExecuteEndpointUrl"), // Inputs: &armstreamanalytics.AzureMachineLearningWebServiceInputs{ // Name: to.Ptr("input1"), // ColumnNames: []*armstreamanalytics.AzureMachineLearningWebServiceInputColumn{ // { // Name: to.Ptr("tweet"), // DataType: to.Ptr("string"), // MapTo: to.Ptr[int32](0), // }}, // }, // Outputs: []*armstreamanalytics.AzureMachineLearningWebServiceOutputColumn{ // { // 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 2020-03-01
- 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Function_Update_JavaScript.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Function_Update_AzureML.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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.AzureMachineLearningWebServiceFunctionBinding{ Type: to.Ptr("Microsoft.MachineLearning/WebService"), Properties: &armstreamanalytics.AzureMachineLearningWebServiceFunctionBindingProperties{ 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.AzureMachineLearningWebServiceFunctionBinding{ // Type: to.Ptr("Microsoft.MachineLearning/WebService"), // Properties: &armstreamanalytics.AzureMachineLearningWebServiceFunctionBindingProperties{ // BatchSize: to.Ptr[int32](5000), // Endpoint: to.Ptr("someAzureMLEndpointURL"), // Inputs: &armstreamanalytics.AzureMachineLearningWebServiceInputs{ // Name: to.Ptr("input1"), // ColumnNames: []*armstreamanalytics.AzureMachineLearningWebServiceInputColumn{ // { // Name: to.Ptr("tweet"), // DataType: to.Ptr("string"), // MapTo: to.Ptr[int32](0), // }}, // }, // Outputs: []*armstreamanalytics.AzureMachineLearningWebServiceOutputColumn{ // { // Name: to.Ptr("Sentiment"), // DataType: to.Ptr("string"), // }}, // }, // }, // Inputs: []*armstreamanalytics.FunctionInput{ // { // DataType: to.Ptr("nvarchar(max)"), // }},
Output:
type FunctionsClientBeginTestOptions ¶ added in v0.3.0
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 ¶ added in v0.3.0
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 ¶ added in v0.3.0
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 ¶ added in v0.3.0
type FunctionsClientDeleteOptions struct { }
FunctionsClientDeleteOptions contains the optional parameters for the FunctionsClient.Delete method.
type FunctionsClientDeleteResponse ¶ added in v0.3.0
type FunctionsClientDeleteResponse struct { }
FunctionsClientDeleteResponse contains the response from method FunctionsClient.Delete.
type FunctionsClientGetOptions ¶ added in v0.3.0
type FunctionsClientGetOptions struct { }
FunctionsClientGetOptions contains the optional parameters for the FunctionsClient.Get method.
type FunctionsClientGetResponse ¶ added in v0.3.0
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 ¶ added in v0.3.0
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 ¶ added in v0.3.0
type FunctionsClientListByStreamingJobResponse struct { // Object containing a list of functions under a streaming job. FunctionListResult }
FunctionsClientListByStreamingJobResponse contains the response from method FunctionsClient.NewListByStreamingJobPager.
type FunctionsClientRetrieveDefaultDefinitionOptions ¶ added in v0.3.0
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 ¶ added in v0.3.0
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 ¶ added in v0.3.0
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 ¶ added in v0.3.0
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 ¶ added in v0.3.0
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 Identity ¶
type Identity struct { // The identity principal ID PrincipalID *string // The identity tenantId TenantID *string // The identity type Type *string }
Identity - Describes how identity is verified
func (Identity) MarshalJSON ¶ added in v1.1.0
MarshalJSON implements the json.Marshaller interface for type Identity.
func (*Identity) UnmarshalJSON ¶ added in v1.1.0
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 ¶
MarshalJSON implements the json.Marshaller interface for type Input.
func (*Input) UnmarshalJSON ¶
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 ¶ added in v1.1.0
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 // 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 ¶ added in v0.3.0
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 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 2020-03-01
- 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Input_Test.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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 2020-03-01
- 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 (CreateAReferenceBlobInputWithCsvSerialization) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Input_Create_Reference_Blob_CSV.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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"), }, }, }, }, &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 (CreateAStreamBlobInputWithCsvSerialization) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Input_Create_Stream_Blob_CSV.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Input_Create_Stream_EventHub_JSON.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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), }, }, 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Input_Create_Stream_IoTHub_Avro.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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:
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 2020-03-01
- 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Input_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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 2020-03-01
- 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Input_Get_Reference_Blob_CSV.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Input_Get_Stream_Blob_CSV.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Input_Get_Stream_EventHub_JSON.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Input_Get_Stream_IoTHub_Avro.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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 ¶ added in v0.5.0
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 2020-03-01
- 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Input_ListByStreamingJob.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Input_ListByStreamingJob_Diagnostics.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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 2020-03-01
- 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Input_Update_Reference_Blob.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Input_Update_Stream_Blob.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Input_Update_Stream_EventHub.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Input_Update_Stream_IoTHub.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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 ¶ added in v0.3.0
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 ¶ added in v0.3.0
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 ¶ added in v0.3.0
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 ¶ added in v0.3.0
type InputsClientDeleteOptions struct { }
InputsClientDeleteOptions contains the optional parameters for the InputsClient.Delete method.
type InputsClientDeleteResponse ¶ added in v0.3.0
type InputsClientDeleteResponse struct { }
InputsClientDeleteResponse contains the response from method InputsClient.Delete.
type InputsClientGetOptions ¶ added in v0.3.0
type InputsClientGetOptions struct { }
InputsClientGetOptions contains the optional parameters for the InputsClient.Get method.
type InputsClientGetResponse ¶ added in v0.3.0
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 ¶ added in v0.3.0
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 ¶ added in v0.3.0
type InputsClientListByStreamingJobResponse struct { // Object containing a list of inputs under a streaming job. InputListResult }
InputsClientListByStreamingJobResponse contains the response from method InputsClient.NewListByStreamingJobPager.
type InputsClientTestResponse ¶ added in v0.3.0
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 ¶ added in v0.3.0
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 ¶ added in v0.3.0
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 ¶ added in v0.3.0
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 SharedAccessPolicyKey *string // on PUT (CreateOrReplace) requests. SharedAccessPolicyName *string }
IoTHubStreamInputDataSourceProperties - The properties that are associated with a IoT Hub input containing stream data.
func (IoTHubStreamInputDataSourceProperties) MarshalJSON ¶ added in v1.1.0
func (i IoTHubStreamInputDataSourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type IoTHubStreamInputDataSourceProperties.
func (*IoTHubStreamInputDataSourceProperties) UnmarshalJSON ¶ added in v1.1.0
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 ¶ added in v0.3.0
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 ¶ added in v1.1.0
func (j JSONSerializationProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type JSONSerializationProperties.
func (*JSONSerializationProperties) UnmarshalJSON ¶ added in v1.1.0
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 ¶ added in v0.3.0
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 ¶ added in v1.1.0
func (j JavaScriptFunctionBindingProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type JavaScriptFunctionBindingProperties.
func (*JavaScriptFunctionBindingProperties) UnmarshalJSON ¶ added in v1.1.0
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 ¶ added in v1.1.0
func (j JavaScriptFunctionBindingRetrievalProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type JavaScriptFunctionBindingRetrievalProperties.
func (*JavaScriptFunctionBindingRetrievalProperties) UnmarshalJSON ¶ added in v1.1.0
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 ¶ added in v0.3.0
func (j *JavaScriptFunctionRetrieveDefaultDefinitionParameters) GetFunctionRetrieveDefaultDefinitionParameters() *FunctionRetrieveDefaultDefinitionParameters
GetFunctionRetrieveDefaultDefinitionParameters implements the FunctionRetrieveDefaultDefinitionParametersClassification interface for type JavaScriptFunctionRetrieveDefaultDefinitionParameters.
func (JavaScriptFunctionRetrieveDefaultDefinitionParameters) MarshalJSON ¶
func (j JavaScriptFunctionRetrieveDefaultDefinitionParameters) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type JavaScriptFunctionRetrieveDefaultDefinitionParameters.
func (*JavaScriptFunctionRetrieveDefaultDefinitionParameters) UnmarshalJSON ¶
func (j *JavaScriptFunctionRetrieveDefaultDefinitionParameters) UnmarshalJSON(data []byte) error
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 ¶ added in v1.1.0
func (j JobStorageAccount) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type JobStorageAccount.
func (*JobStorageAccount) UnmarshalJSON ¶ added in v1.1.0
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'.
func PossibleJobTypeValues ¶
func PossibleJobTypeValues() []JobType
PossibleJobTypeValues returns the possible values for the JobType const type.
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 ¶ added in v1.1.0
func (o OAuthBasedDataSourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OAuthBasedDataSourceProperties.
func (*OAuthBasedDataSourceProperties) UnmarshalJSON ¶ added in v1.1.0
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 ¶ added in v1.1.0
MarshalJSON implements the json.Marshaller interface for type Operation.
func (*Operation) UnmarshalJSON ¶ added in v1.1.0
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 ¶ added in v1.1.0
func (o OperationDisplay) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationDisplay.
func (*OperationDisplay) UnmarshalJSON ¶ added in v1.1.0
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 ¶ added in v1.1.0
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 ¶ added in v0.5.0
func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse]
NewListPager - Lists all of the available Stream Analytics related operations.
Generated from API version 2020-03-01
- 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Operation_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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 ¶ added in v0.3.0
type OperationsClientListOptions struct { }
OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.
type OperationsClientListResponse ¶ added in v0.3.0
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 ¶
MarshalJSON implements the json.Marshaller interface for type Output.
func (*Output) UnmarshalJSON ¶
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 ¶ added in v1.1.0
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: - *AzureDataLakeStoreOutputDataSource, *AzureFunctionOutputDataSource, *AzureSQLDatabaseOutputDataSource, *AzureSynapseOutputDataSource, - *AzureTableOutputDataSource, *BlobOutputDataSource, *DocumentDbOutputDataSource, *EventHubOutputDataSource, *EventHubV2OutputDataSource, - *OutputDataSource, *PowerBIOutputDataSource, *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 ¶ added in v1.1.0
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 *float32 // The time frame for filtering Stream Analytics job outputs. TimeWindow *string // 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 }
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 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 2020-03-01
- 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Output_Test.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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 2020-03-01
- 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Output_Create_Blob_CSV.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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"), }, }, 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 (CreateADocumentDbOutput) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Output_Create_DocumentDB.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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=="), 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 (CreateAPowerBiOutput) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Output_Create_PowerBI.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Output_Create_ServiceBusQueue_Avro.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Output_Create_ServiceBusTopic_CSV.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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 (CreateAnAzureDataLakeStoreOutputWithJsonSerialization) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Output_Create_AzureDataLakeStore_JSON.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Output_Create_DataWarehouse.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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{ 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Output_Create_AzureFunction.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Output_Create_AzureSQL.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Output_Create_AzureTable.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Output_Create_EventHub_JSON.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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), }, }, }, }, &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 2020-03-01
- 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Output_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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 2020-03-01
- 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Output_Get_Blob_CSV.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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 (GetADocumentDbOutput) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Output_Get_DocumentDB.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Output_Get_PowerBI.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Output_Get_ServiceBusQueue_Avro.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Output_Get_ServiceBusTopic_CSV.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Output_Get_AzureDataLakeStore_JSON.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Output_Get_DataWarehouse.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Output_Get_AzureFunction.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Output_Get_AzureSQL.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Output_Get_AzureTable.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Output_Get_EventHub_JSON.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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"), // }, // }, // 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 ¶ added in v0.5.0
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 2020-03-01
- 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Output_ListByStreamingJob.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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 2020-03-01
- 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Output_Update_Blob.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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 (UpdateADocumentDbOutput) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Output_Update_DocumentDB.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Output_Update_PowerBI.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Output_Update_ServiceBusQueue.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Output_Update_ServiceBusTopic.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Output_Update_AzureDataLakeStore.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Output_Update_DataWarehouse.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Output_Update_AzureFunction.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Output_Update_AzureSQL.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Output_Update_AzureTable.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Output_Update_EventHub.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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 ¶ added in v0.3.0
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 ¶ added in v0.3.0
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 ¶ added in v0.3.0
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 ¶ added in v0.3.0
type OutputsClientDeleteOptions struct { }
OutputsClientDeleteOptions contains the optional parameters for the OutputsClient.Delete method.
type OutputsClientDeleteResponse ¶ added in v0.3.0
type OutputsClientDeleteResponse struct { }
OutputsClientDeleteResponse contains the response from method OutputsClient.Delete.
type OutputsClientGetOptions ¶ added in v0.3.0
type OutputsClientGetOptions struct { }
OutputsClientGetOptions contains the optional parameters for the OutputsClient.Get method.
type OutputsClientGetResponse ¶ added in v0.3.0
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 ¶ added in v0.3.0
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 ¶ added in v0.3.0
type OutputsClientListByStreamingJobResponse struct { // Object containing a list of outputs under a streaming job. OutputListResult }
OutputsClientListByStreamingJobResponse contains the response from method OutputsClient.NewListByStreamingJobPager.
type OutputsClientTestResponse ¶ added in v0.3.0
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 ¶ added in v0.3.0
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 ¶ added in v0.3.0
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 ¶ added in v0.3.0
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 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 ¶ added in v0.3.0
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 ¶ added in v1.1.0
func (p PowerBIOutputDataSourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PowerBIOutputDataSourceProperties.
func (*PowerBIOutputDataSourceProperties) UnmarshalJSON ¶ added in v1.1.0
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 ¶ added in v1.1.0
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 ¶ added in v1.1.0
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 ¶ added in v1.1.0
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
- 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/PrivateEndpoint_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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
- 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/PrivateEndpoint_Create.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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
- 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/PrivateEndpoint_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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 ¶ added in v0.5.0
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
- 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/PrivateEndpoint_ListByCluster.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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 ¶ added in v0.3.0
type PrivateEndpointsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PrivateEndpointsClientBeginDeleteOptions contains the optional parameters for the PrivateEndpointsClient.BeginDelete method.
type PrivateEndpointsClientCreateOrUpdateOptions ¶ added in v0.3.0
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 ¶ added in v0.3.0
type PrivateEndpointsClientCreateOrUpdateResponse struct { // Complete information about the private endpoint. PrivateEndpoint }
PrivateEndpointsClientCreateOrUpdateResponse contains the response from method PrivateEndpointsClient.CreateOrUpdate.
type PrivateEndpointsClientDeleteResponse ¶ added in v0.3.0
type PrivateEndpointsClientDeleteResponse struct { }
PrivateEndpointsClientDeleteResponse contains the response from method PrivateEndpointsClient.BeginDelete.
type PrivateEndpointsClientGetOptions ¶ added in v0.3.0
type PrivateEndpointsClientGetOptions struct { }
PrivateEndpointsClientGetOptions contains the optional parameters for the PrivateEndpointsClient.Get method.
type PrivateEndpointsClientGetResponse ¶ added in v0.3.0
type PrivateEndpointsClientGetResponse struct { // Complete information about the private endpoint. PrivateEndpoint }
PrivateEndpointsClientGetResponse contains the response from method PrivateEndpointsClient.Get.
type PrivateEndpointsClientListByClusterOptions ¶ added in v0.3.0
type PrivateEndpointsClientListByClusterOptions struct { }
PrivateEndpointsClientListByClusterOptions contains the optional parameters for the PrivateEndpointsClient.NewListByClusterPager method.
type PrivateEndpointsClientListByClusterResponse ¶ added in v0.3.0
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 ¶ added in v1.1.0
func (p PrivateLinkConnectionState) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateLinkConnectionState.
func (*PrivateLinkConnectionState) UnmarshalJSON ¶ added in v1.1.0
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 ¶ added in v1.1.0
func (p PrivateLinkServiceConnection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrivateLinkServiceConnection.
func (*PrivateLinkServiceConnection) UnmarshalJSON ¶ added in v1.1.0
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 ¶ added in v1.1.0
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 ¶ added in v1.1.0
func (p ProxyResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ProxyResource.
func (*ProxyResource) UnmarshalJSON ¶ added in v1.1.0
func (p *ProxyResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ProxyResource.
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 ¶ added in v1.1.0
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, *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 // 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 ¶ added in v0.3.0
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 RefreshType ¶ added in v0.3.0
type RefreshType string
RefreshType - Indicates the type of data refresh option.
const ( RefreshTypeRefreshPeriodicallyWithDelta RefreshType = "RefreshPeriodicallyWithDelta" RefreshTypeRefreshPeriodicallyWithFull RefreshType = "RefreshPeriodicallyWithFull" RefreshTypeStatic RefreshType = "Static" )
func PossibleRefreshTypeValues ¶ added in v0.3.0
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 ¶
MarshalJSON implements the json.Marshaller interface for type Resource.
func (*Resource) UnmarshalJSON ¶ added in v1.1.0
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 ¶ added in v1.1.0
func (r ResourceTestStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ResourceTestStatus.
func (*ResourceTestStatus) UnmarshalJSON ¶ added in v1.1.0
func (r *ResourceTestStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ResourceTestStatus.
type SKU ¶ added in v0.3.0
type SKU struct { // The name of the SKU. Required on PUT (CreateOrReplace) requests. Name *SKUName }
SKU - The properties that are associated with a SKU.
func (SKU) MarshalJSON ¶ added in v1.1.0
MarshalJSON implements the json.Marshaller interface for type SKU.
func (*SKU) UnmarshalJSON ¶ added in v1.1.0
UnmarshalJSON implements the json.Unmarshaller interface for type SKU.
type SKUName ¶ added in v0.3.0
type SKUName string
SKUName - The name of the SKU. Required on PUT (CreateOrReplace) requests.
const (
SKUNameStandard SKUName = "Standard"
)
func PossibleSKUNameValues ¶ added in v0.3.0
func PossibleSKUNameValues() []SKUName
PossibleSKUNameValues returns the possible values for the SKUName 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 ¶ added in v0.3.0
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 ¶ added in v0.3.0
func (s *ScalarFunctionProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ScalarFunctionProperties.
type ScaleStreamingJobParameters ¶ added in v0.3.0
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 ¶ added in v1.1.0
func (s ScaleStreamingJobParameters) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ScaleStreamingJobParameters.
func (*ScaleStreamingJobParameters) UnmarshalJSON ¶ added in v1.1.0
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 ¶ added in v1.1.0
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, *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 SharedAccessPolicyKey *string // 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 ¶ added in v1.1.0
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 ¶ added in v0.3.0
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 SharedAccessPolicyKey *string // 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 ¶
func (s ServiceBusQueueOutputDataSourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServiceBusQueueOutputDataSourceProperties.
func (*ServiceBusQueueOutputDataSourceProperties) UnmarshalJSON ¶ added in v1.1.0
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 ¶ added in v0.3.0
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 SharedAccessPolicyKey *string // 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 ¶
func (s ServiceBusTopicOutputDataSourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ServiceBusTopicOutputDataSourceProperties.
func (*ServiceBusTopicOutputDataSourceProperties) UnmarshalJSON ¶ added in v1.1.0
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 }
StorageAccount - The properties that are associated with an Azure Storage account
func (StorageAccount) MarshalJSON ¶ added in v1.1.0
func (s StorageAccount) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StorageAccount.
func (*StorageAccount) UnmarshalJSON ¶ added in v1.1.0
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 ¶ added in v1.1.0
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, *EventHubStreamInputDataSource, *EventHubV2StreamInputDataSource, *IoTHubStreamInputDataSource, - *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 // 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 ¶ added in v0.3.0
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 system-assigned 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 // 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 ¶ added in v1.1.0
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 ¶ added in v1.1.0
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 // 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 2020-03-01
- 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/StreamingJob_Create_CompleteJob.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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), 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/StreamingJob_Create_JobShell.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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:
func (*StreamingJobsClient) BeginDelete ¶
func (client *StreamingJobsClient) BeginDelete(ctx context.Context, resourceGroupName string, jobName string, options *StreamingJobsClientBeginDeleteOptions) (*runtime.Poller[StreamingJobsClientDeleteResponse], error)
BeginDelete - Deletes a streaming job. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2020-03-01
- 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/StreamingJob_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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 ¶ added in v0.3.0
func (client *StreamingJobsClient) BeginScale(ctx context.Context, resourceGroupName string, jobName string, options *StreamingJobsClientBeginScaleOptions) (*runtime.Poller[StreamingJobsClientScaleResponse], error)
BeginScale - Scales a streaming job when the job is running. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2020-03-01
- 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/StreamingJob_Scale.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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, "sjrg6936", "sj59", &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 ¶
func (client *StreamingJobsClient) BeginStart(ctx context.Context, resourceGroupName string, jobName string, options *StreamingJobsClientBeginStartOptions) (*runtime.Poller[StreamingJobsClientStartResponse], error)
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 2020-03-01
- 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/StreamingJob_Start_CustomTime.json
package main import ( "context" "log" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/StreamingJob_Start_JobStartTime.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/StreamingJob_Start_LastOutputEventTime.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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 ¶
func (client *StreamingJobsClient) BeginStop(ctx context.Context, resourceGroupName string, jobName string, options *StreamingJobsClientBeginStopOptions) (*runtime.Poller[StreamingJobsClientStopResponse], error)
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 2020-03-01
- 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/StreamingJob_Stop.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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 2020-03-01
- 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/StreamingJob_Get_NoExpand.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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), // }, // }, // } }
Output:
Example (GetAStreamingJobAndUseTheExpandODataQueryParameterToExpandInputsOutputsTransformationAndFunctions) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/StreamingJob_Get_Expand.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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), // }, // }, // }, // } }
Output:
func (*StreamingJobsClient) NewListByResourceGroupPager ¶ added in v0.5.0
func (client *StreamingJobsClient) NewListByResourceGroupPager(resourceGroupName string, options *StreamingJobsClientListByResourceGroupOptions) *runtime.Pager[StreamingJobsClientListByResourceGroupResponse]
NewListByResourceGroupPager - Lists all of the streaming jobs in the specified resource group.
Generated from API version 2020-03-01
- 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/StreamingJob_List_ByResourceGroup_NoExpand.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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), // }, // }, // }, // { // 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), // }, // }, // }}, // } } }
Output:
Example (ListAllStreamingJobsInAResourceGroupAndUseTheExpandODataQueryParameterToExpandInputsOutputsTransformationAndFunctions) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/StreamingJob_List_ByResourceGroup_Expand.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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), // }, // }, // }, // }, // { // 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), // }, // }, // }, // }}, // } } }
Output:
func (*StreamingJobsClient) NewListPager ¶ added in v0.5.0
func (client *StreamingJobsClient) NewListPager(options *StreamingJobsClientListOptions) *runtime.Pager[StreamingJobsClientListResponse]
NewListPager - Lists all of the streaming jobs in the given subscription.
Generated from API version 2020-03-01
- 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/StreamingJob_List_BySubscription_NoExpand.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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), // }, // }, // }, // { // 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), // }, // }, // }}, // } } }
Output:
Example (ListAllStreamingJobsInASubscriptionAndUseTheExpandODataQueryParameterToExpandInputsOutputsTransformationAndFunctions) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/StreamingJob_List_BySubscription_Expand.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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), // }, // }, // }, // }, // { // 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), // }, // }, // }, // }}, // } } }
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 2020-03-01
- 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/StreamingJob_Update.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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), // }, // }, // } }
Output:
type StreamingJobsClientBeginCreateOrReplaceOptions ¶ added in v0.3.0
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 ¶ added in v0.3.0
type StreamingJobsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
StreamingJobsClientBeginDeleteOptions contains the optional parameters for the StreamingJobsClient.BeginDelete method.
type StreamingJobsClientBeginScaleOptions ¶ added in v0.3.0
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 ¶ added in v0.3.0
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 ¶ added in v0.3.0
type StreamingJobsClientBeginStopOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
StreamingJobsClientBeginStopOptions contains the optional parameters for the StreamingJobsClient.BeginStop method.
type StreamingJobsClientCreateOrReplaceResponse ¶ added in v0.3.0
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 ¶ added in v0.3.0
type StreamingJobsClientDeleteResponse struct { }
StreamingJobsClientDeleteResponse contains the response from method StreamingJobsClient.BeginDelete.
type StreamingJobsClientGetOptions ¶ added in v0.3.0
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 ¶ added in v0.3.0
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 ¶ added in v0.3.0
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 ¶ added in v0.3.0
type StreamingJobsClientListByResourceGroupResponse struct { // Object containing a list of streaming jobs. StreamingJobListResult }
StreamingJobsClientListByResourceGroupResponse contains the response from method StreamingJobsClient.NewListByResourceGroupPager.
type StreamingJobsClientListOptions ¶ added in v0.3.0
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 ¶ added in v0.3.0
type StreamingJobsClientListResponse struct { // Object containing a list of streaming jobs. StreamingJobListResult }
StreamingJobsClientListResponse contains the response from method StreamingJobsClient.NewListPager.
type StreamingJobsClientScaleResponse ¶ added in v0.3.0
type StreamingJobsClientScaleResponse struct { }
StreamingJobsClientScaleResponse contains the response from method StreamingJobsClient.BeginScale.
type StreamingJobsClientStartResponse ¶ added in v0.3.0
type StreamingJobsClientStartResponse struct { }
StreamingJobsClientStartResponse contains the response from method StreamingJobsClient.BeginStart.
type StreamingJobsClientStopResponse ¶ added in v0.3.0
type StreamingJobsClientStopResponse struct { }
StreamingJobsClientStopResponse contains the response from method StreamingJobsClient.BeginStop.
type StreamingJobsClientUpdateOptions ¶ added in v0.3.0
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 ¶ added in v0.3.0
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 ¶ added in v1.1.0
func (s SubscriptionQuotaProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SubscriptionQuotaProperties.
func (*SubscriptionQuotaProperties) UnmarshalJSON ¶ added in v1.1.0
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 ¶ added in v1.1.0
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) ListQuotas ¶
func (client *SubscriptionsClient) ListQuotas(ctx context.Context, location string, options *SubscriptionsClientListQuotasOptions) (SubscriptionsClientListQuotasResponse, error)
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 2020-03-01
- location - The region in which to retrieve the subscription's quota information. 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Subscription_ListQuotas.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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 SubscriptionsClientListQuotasOptions ¶ added in v0.3.0
type SubscriptionsClientListQuotasOptions struct { }
SubscriptionsClientListQuotasOptions contains the optional parameters for the SubscriptionsClient.ListQuotas method.
type SubscriptionsClientListQuotasResponse ¶ added in v0.3.0
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 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 ¶ added in v1.1.0
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 ¶ added in v0.3.0
func (t TransformationProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TransformationProperties.
func (*TransformationProperties) UnmarshalJSON ¶ added in v1.1.0
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 2020-03-01
- 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Transformation_Create.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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 2020-03-01
- 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Transformation_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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 2020-03-01
- 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/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/streamanalytics/resource-manager/Microsoft.StreamAnalytics/stable/2020-03-01/examples/Transformation_Update.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" ) func main() { 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 ¶ added in v0.3.0
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 ¶ added in v0.3.0
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 ¶ added in v0.3.0
type TransformationsClientGetOptions struct { }
TransformationsClientGetOptions contains the optional parameters for the TransformationsClient.Get method.
type TransformationsClientGetResponse ¶ added in v0.3.0
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 ¶ added in v0.3.0
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 ¶ added in v0.3.0
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.
Source Files
¶
- build.go
- client_factory.go
- clusters_client.go
- constants.go
- functions_client.go
- inputs_client.go
- interfaces.go
- models.go
- models_serde.go
- operations_client.go
- options.go
- outputs_client.go
- polymorphic_helpers.go
- privateendpoints_client.go
- response_types.go
- streamingjobs_client.go
- subscriptions_client.go
- time_rfc3339.go
- transformations_client.go