ArmCognitiveServicesModelFactory.OAuth2AuthTypeConnectionProperties Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The OAuth2AuthTypeConnectionProperties.
public static Azure.ResourceManager.CognitiveServices.Models.OAuth2AuthTypeConnectionProperties OAuth2AuthTypeConnectionProperties(Azure.ResourceManager.CognitiveServices.Models.CognitiveServicesConnectionCategory? category = default, Azure.Core.ResourceIdentifier createdByWorkspaceArmId = default, string error = default, DateTimeOffset? expiryOn = default, Azure.ResourceManager.CognitiveServices.Models.CognitiveServicesConnectionGroup? group = default, bool? isSharedToAll = default, System.Collections.Generic.IDictionary<string,string> metadata = default, Azure.ResourceManager.CognitiveServices.Models.ManagedPERequirement? peRequirement = default, Azure.ResourceManager.CognitiveServices.Models.ManagedPEStatus? peStatus = default, System.Collections.Generic.IEnumerable<string> sharedUserList = default, string target = default, bool? useWorkspaceManagedIdentity = default, Azure.ResourceManager.CognitiveServices.Models.CognitiveServicesConnectionOAuth2 credentials = default);
static member OAuth2AuthTypeConnectionProperties : Nullable<Azure.ResourceManager.CognitiveServices.Models.CognitiveServicesConnectionCategory> * Azure.Core.ResourceIdentifier * string * Nullable<DateTimeOffset> * Nullable<Azure.ResourceManager.CognitiveServices.Models.CognitiveServicesConnectionGroup> * Nullable<bool> * System.Collections.Generic.IDictionary<string, string> * Nullable<Azure.ResourceManager.CognitiveServices.Models.ManagedPERequirement> * Nullable<Azure.ResourceManager.CognitiveServices.Models.ManagedPEStatus> * seq<string> * string * Nullable<bool> * Azure.ResourceManager.CognitiveServices.Models.CognitiveServicesConnectionOAuth2 -> Azure.ResourceManager.CognitiveServices.Models.OAuth2AuthTypeConnectionProperties
Public Shared Function OAuth2AuthTypeConnectionProperties (Optional category As Nullable(Of CognitiveServicesConnectionCategory) = Nothing, Optional createdByWorkspaceArmId As ResourceIdentifier = Nothing, Optional error As String = Nothing, Optional expiryOn As Nullable(Of DateTimeOffset) = Nothing, Optional group As Nullable(Of CognitiveServicesConnectionGroup) = Nothing, Optional isSharedToAll As Nullable(Of Boolean) = Nothing, Optional metadata As IDictionary(Of String, String) = Nothing, Optional peRequirement As Nullable(Of ManagedPERequirement) = Nothing, Optional peStatus As Nullable(Of ManagedPEStatus) = Nothing, Optional sharedUserList As IEnumerable(Of String) = Nothing, Optional target As String = Nothing, Optional useWorkspaceManagedIdentity As Nullable(Of Boolean) = Nothing, Optional credentials As CognitiveServicesConnectionOAuth2 = Nothing) As OAuth2AuthTypeConnectionProperties
Parameters
- category
- Nullable<CognitiveServicesConnectionCategory>
Category of the connection.
- createdByWorkspaceArmId
- ResourceIdentifier
- error
- String
Provides the error message if the connection fails.
- expiryOn
- Nullable<DateTimeOffset>
Group based on connection category.
- metadata
- IDictionary<String,String>
Store user metadata for this connection.
- peRequirement
- Nullable<ManagedPERequirement>
Specifies how private endpoints are used with this connection: 'Required', 'NotRequired', or 'NotApplicable'.
- peStatus
- Nullable<ManagedPEStatus>
Specifies the status of private endpoints for this connection: 'Inactive', 'Active', or 'NotApplicable'.
- sharedUserList
- IEnumerable<String>
- target
- String
The connection URL to be used.
- credentials
- CognitiveServicesConnectionOAuth2
ClientId and ClientSecret are required. Other properties are optional depending on each OAuth2 provider's implementation.
Returns
A new OAuth2AuthTypeConnectionProperties instance for mocking.