internal static string ToSerializedValue(this SetDefaultStoreForResourceTypeParametersResourceType value) { switch (value) { case SetDefaultStoreForResourceTypeParametersResourceType.AssetCredential: return("AssetCredential"); case SetDefaultStoreForResourceTypeParametersResourceType.RobotCredential: return("RobotCredential"); case SetDefaultStoreForResourceTypeParametersResourceType.BucketCredential: return("BucketCredential"); case SetDefaultStoreForResourceTypeParametersResourceType.Secrets: return("Secrets"); } return(null); }
/// <summary> /// Initializes a new instance of the /// CredentialStoresSetDefaultStoreForResourceTypeParameters class. /// </summary> /// <param name="resourceType">This enum describes the type of /// resources that can be stored in the Credential Store. When /// a new resource type is added, the default needs to be initialized /// in 3 places: /// 1. Existing tenants: At migration time. /// 2. Default tenant: At seed time in DefaultTenantCreator.cs. /// 3. New tenants: In TenantService.cs. Possible values include: /// 'AssetCredential', 'RobotCredential', 'BucketCredential', /// 'Secrets'</param> public CredentialStoresSetDefaultStoreForResourceTypeParameters(SetDefaultStoreForResourceTypeParametersResourceType resourceType) { ResourceType = resourceType; CustomInit(); }