/// <summary> /// Initializes a new instance of the AccountProperties class. /// </summary> /// <param name="provisioningState">Gets the status of the cognitive /// services account at the time the operation was called. Possible /// values include: 'Accepted', 'Creating', 'Deleting', 'Moving', /// 'Failed', 'Succeeded', 'ResolvingDNS'</param> /// <param name="endpoint">Endpoint of the created account.</param> /// <param name="internalId">The internal identifier (deprecated, do /// not use this property).</param> /// <param name="capabilities">Gets the capabilities of the cognitive /// services account. Each item indicates the capability of a specific /// feature. The values are read-only and for reference only.</param> /// <param name="isMigrated">If the resource is migrated from an /// existing key.</param> /// <param name="migrationToken">Resource migration token.</param> /// <param name="skuChangeInfo">Sku change info of account.</param> /// <param name="customSubDomainName">Optional subdomain name used for /// token-based authentication.</param> /// <param name="networkAcls">A collection of rules governing the /// accessibility from specific network locations.</param> /// <param name="encryption">The encryption properties for this /// resource.</param> /// <param name="userOwnedStorage">The storage accounts for this /// resource.</param> /// <param name="privateEndpointConnections">The private endpoint /// connection associated with the Cognitive Services account.</param> /// <param name="publicNetworkAccess">Whether or not public endpoint /// access is allowed for this account. Possible values include: /// 'Enabled', 'Disabled'</param> /// <param name="apiProperties">The api properties for special /// APIs.</param> /// <param name="dateCreated">Gets the date of cognitive services /// account creation.</param> /// <param name="dynamicThrottlingEnabled">The flag to enable dynamic /// throttling.</param> /// <param name="deletionDate">The deletion date, only available for /// deleted account.</param> /// <param name="scheduledPurgeDate">The scheduled purge date, only /// available for deleted account.</param> public AccountProperties(string provisioningState = default(string), string endpoint = default(string), string internalId = default(string), IList <SkuCapability> capabilities = default(IList <SkuCapability>), bool?isMigrated = default(bool?), string migrationToken = default(string), SkuChangeInfo skuChangeInfo = default(SkuChangeInfo), string customSubDomainName = default(string), NetworkRuleSet networkAcls = default(NetworkRuleSet), Encryption encryption = default(Encryption), IList <UserOwnedStorage> userOwnedStorage = default(IList <UserOwnedStorage>), IList <PrivateEndpointConnection> privateEndpointConnections = default(IList <PrivateEndpointConnection>), string publicNetworkAccess = default(string), ApiProperties apiProperties = default(ApiProperties), string dateCreated = default(string), CallRateLimit callRateLimit = default(CallRateLimit), bool?dynamicThrottlingEnabled = default(bool?), QuotaLimit quotaLimit = default(QuotaLimit), bool?restrictOutboundNetworkAccess = default(bool?), IList <string> allowedFqdnList = default(IList <string>), bool?disableLocalAuth = default(bool?), IDictionary <string, string> endpoints = default(IDictionary <string, string>), bool?restore = default(bool?), string deletionDate = default(string), string scheduledPurgeDate = default(string)) { ProvisioningState = provisioningState; Endpoint = endpoint; InternalId = internalId; Capabilities = capabilities; IsMigrated = isMigrated; MigrationToken = migrationToken; SkuChangeInfo = skuChangeInfo; CustomSubDomainName = customSubDomainName; NetworkAcls = networkAcls; Encryption = encryption; UserOwnedStorage = userOwnedStorage; PrivateEndpointConnections = privateEndpointConnections; PublicNetworkAccess = publicNetworkAccess; ApiProperties = apiProperties; DateCreated = dateCreated; CallRateLimit = callRateLimit; DynamicThrottlingEnabled = dynamicThrottlingEnabled; QuotaLimit = quotaLimit; RestrictOutboundNetworkAccess = restrictOutboundNetworkAccess; AllowedFqdnList = allowedFqdnList; DisableLocalAuth = disableLocalAuth; Endpoints = endpoints; Restore = restore; DeletionDate = deletionDate; ScheduledPurgeDate = scheduledPurgeDate; CustomInit(); }
/// <summary> /// Validate the object. /// </summary> /// <exception cref="Rest.ValidationException"> /// Thrown if validation fails /// </exception> public virtual void Validate() { if (PrivateEndpointConnections != null) { foreach (var element in PrivateEndpointConnections) { if (element != null) { element.Validate(); } } } if (ApiProperties != null) { ApiProperties.Validate(); } }
public static CognitiveServicesAccountApiProperties Parse(ApiProperties obj) { return(JsonConvert.DeserializeObject <CognitiveServicesAccountApiProperties>(JsonConvert.SerializeObject(obj))); }