共用方式為


ArmApiManagementModelFactory.PortalConfigContractData Method

Definition

Initializes a new instance of PortalConfigContractData.

public static Azure.ResourceManager.ApiManagement.PortalConfigContractData PortalConfigContractData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, bool? enableBasicAuth = default, bool? require = default, Azure.ResourceManager.ApiManagement.Models.PortalConfigTermsOfServiceProperties signupTermsOfService = default, Azure.ResourceManager.ApiManagement.Models.PortalConfigDelegationProperties delegation = default, System.Collections.Generic.IEnumerable<string> corsAllowedOrigins = default, Azure.ResourceManager.ApiManagement.Models.PortalConfigCspProperties csp = default);
static member PortalConfigContractData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * Nullable<bool> * Nullable<bool> * Azure.ResourceManager.ApiManagement.Models.PortalConfigTermsOfServiceProperties * Azure.ResourceManager.ApiManagement.Models.PortalConfigDelegationProperties * seq<string> * Azure.ResourceManager.ApiManagement.Models.PortalConfigCspProperties -> Azure.ResourceManager.ApiManagement.PortalConfigContractData
Public Shared Function PortalConfigContractData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional enableBasicAuth As Nullable(Of Boolean) = Nothing, Optional require As Nullable(Of Boolean) = Nothing, Optional signupTermsOfService As PortalConfigTermsOfServiceProperties = Nothing, Optional delegation As PortalConfigDelegationProperties = Nothing, Optional corsAllowedOrigins As IEnumerable(Of String) = Nothing, Optional csp As PortalConfigCspProperties = Nothing) As PortalConfigContractData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

enableBasicAuth
Nullable<Boolean>

Enable or disable Basic authentication method.

require
Nullable<Boolean>
delegation
PortalConfigDelegationProperties

The developer portal delegation settings.

corsAllowedOrigins
IEnumerable<String>

The developer portal Cross-Origin Resource Sharing (CORS) settings.

csp
PortalConfigCspProperties

The developer portal Content Security Policy (CSP) settings.

Returns

A new PortalConfigContractData instance for mocking.

Applies to