Partager via


OAuthBasedDataSourceProperties Class

Definition

The properties that are associated with data sources that use OAuth as their authentication model.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.OAuthBasedDataSourcePropertiesTypeConverter))]
public class OAuthBasedDataSourceProperties : Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IOAuthBasedDataSourceProperties
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.OAuthBasedDataSourcePropertiesTypeConverter))>]
type OAuthBasedDataSourceProperties = class
    interface IOAuthBasedDataSourceProperties
    interface IJsonSerializable
Public Class OAuthBasedDataSourceProperties
Implements IOAuthBasedDataSourceProperties
Inheritance
OAuthBasedDataSourceProperties
Attributes
Implements

Constructors

OAuthBasedDataSourceProperties()

Creates an new OAuthBasedDataSourceProperties instance.

Properties

RefreshToken

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.

TokenUserDisplayName

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.

TokenUserPrincipalName

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.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of OAuthBasedDataSourceProperties.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of OAuthBasedDataSourceProperties.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IOAuthBasedDataSourceProperties.

FromJsonString(String)

Creates a new instance of OAuthBasedDataSourceProperties, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of OAuthBasedDataSourceProperties into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

Applies to