public static CMSVSTSServiceEndpointModel CreateAWSService(Guid id, string name, string accessKeyId, string secretAccessKey)
            {
                var serviceEndopint = new CMSVSTSServiceEndpointModel()
                {
                    Id            = id,
                    Name          = name,
                    Type          = "AWS",
                    IsReady       = true,
                    Authorization = new CMSVSTSServiceEndPointAuthorizationModel()
                    {
                        Scheme     = "UsernamePassword",
                        Parameters = new CMSVSTSServiceEndPointAuthorizationParameterAWSModel()
                        {
                            UserName        = accessKeyId,
                            Password        = secretAccessKey,
                            RoleSessionName = string.Empty,
                            AssumeRoleArn   = string.Empty,
                            ExternalId      = string.Empty
                        }
                    },
                    Owner = "Library",
                    Url   = "https://aws.amazon.com/"
                };

                return(serviceEndopint);
            }
            public static CMSVSTSServiceEndpointModel CreateAzureService(Guid id, string name, string subscriptionId, string subscriptionName, string servicePrincipalId, string servicePrincipalKey, string tenantId)
            {
                var serviceEndopint = new CMSVSTSServiceEndpointModel()
                {
                    Id            = id,
                    Name          = name,
                    Type          = "azurerm",
                    Authorization = new CMSVSTSServiceEndPointAuthorizationModel()
                    {
                        Parameters = new CMSVSTSServiceEndPointAuthorizationParameterAzureModel()
                        {
                            AuthenticationType  = "spnKey",
                            ServicePrincipalId  = servicePrincipalId,
                            ServicePrincipalKey = servicePrincipalKey,
                            TenantId            = tenantId
                        },
                        Scheme = "ServicePrincipal"
                    },
                    Url     = "https://management.azure.com/",
                    IsReady = true,
                    Data    = new
                    {
                        appObjectId              = "",
                        azureSpnPermissions      = "",
                        azureSpnRoleAssignmentId = "",
                        creationMode             = "Manual",
                        environment              = "AzureCloud",
                        scopeLevel       = "Subscription",
                        spnObjectId      = "",
                        subscriptionId   = subscriptionId,
                        subscriptionName = subscriptionName
                    }
                };

                return(serviceEndopint);
            }