private AzureLinkedService(AzureServiceType azureServiceType, string name, string description) { _azureServiceType = azureServiceType; _name = name; // AzureKeyVault does not store the description in the same JSON // node as the other linked services do. // //if (_azureServiceType == AzureServiceType.AzureKeyVault) // _propertyDescription = description; //else // _linkedServiceDescription = description; _propertyDescription = description; }
public static ServiceDescription CreateAzure(string Name, AzureServiceType type, AzureSupportLevel supportLevel) { var serviceDesc = new ServiceDescription(); serviceDesc.CreatedAt = DateTime.Now; serviceDesc.UpdatedAt = DateTime.Now; serviceDesc.ServiceName = Name; serviceDesc.CloudProvider = ServiceProvider.Azure; AzureDetails details = new AzureDetails() { Supported = supportLevel, Type = type }; serviceDesc.Details = details; return(serviceDesc); }
public static IAzureLinkedService As(AzureServiceType type, string name, string description) => new AzureLinkedService(type, name, description);