Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
target
.idea
*.iml

secret-key-do-not-add*
bin
obj
26 changes: 26 additions & 0 deletions dotnet/Enstratius.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SampleClient", "SampleClient\SampleClient.csproj", "{D6DB1519-A475-42AB-A80F-D112F96A39A1}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UnitTests", "UnitTests\UnitTests.csproj", "{4F95AA99-8AE6-41BC-A3CC-312FDB3FB343}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{D6DB1519-A475-42AB-A80F-D112F96A39A1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D6DB1519-A475-42AB-A80F-D112F96A39A1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D6DB1519-A475-42AB-A80F-D112F96A39A1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D6DB1519-A475-42AB-A80F-D112F96A39A1}.Release|Any CPU.Build.0 = Release|Any CPU
{4F95AA99-8AE6-41BC-A3CC-312FDB3FB343}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4F95AA99-8AE6-41BC-A3CC-312FDB3FB343}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4F95AA99-8AE6-41BC-A3CC-312FDB3FB343}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4F95AA99-8AE6-41BC-A3CC-312FDB3FB343}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
Binary file added dotnet/Enstratius.v11.suo
Binary file not shown.
60 changes: 60 additions & 0 deletions dotnet/SampleClient/Account.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
// Copyright (c) 2013 Dell. All rights reserved. Written by Doron Grinstein [email protected]
using System.Collections.Generic;
using System.Runtime.Serialization;

namespace Dell.CTO.Enstratius
{
public class CloudSubscriptionId
{
public int cloudId { get; set; }
public string accountNumber { get; set; }
public int cloudSubscriptionId { get; set; }
public object storageAccountNumber { get; set; }
}

public class AlertConfiguration
{
public bool allowIndividualSmsAlerts { get; set; }
public int stopAlertsAfterMinutes { get; set; }
public int globalSmsThreshold { get; set; }
public int globalEmailThreshold { get; set; }
public bool allowIndividualEmailAlerts { get; set; }
public int alertIntervalInMinutes { get; set; }
}


[DataContract]
public class Account
{
[DataMember]
public int accountId { get; set; }
[DataMember]
public CloudSubscriptionId cloudSubscriptionId { get; set; }
[DataMember]
public bool configured { get; set; }
[DataMember]
public string status { get; set; }
[DataMember]
public bool provisioned { get; set; }
[DataMember]
public string name { get; set; }
[DataMember]
public AlertConfiguration alertConfiguration { get; set; }
[DataMember]
public int planId { get; set; }
[DataMember]
public Customer customer { get; set; }
[DataMember]
public string billingSystemId { get; set; }
[DataMember]
public bool subscribed { get; set; }
[DataMember]
public int defaultBudget { get; set; }
}

public class AccountList
{
public List<Account> accounts { get; set; }
}
}

22 changes: 22 additions & 0 deletions dotnet/SampleClient/BillingCode.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Dell.CTO.Enstratius
{
public class BillingCode
{
public string budgetState { get; set; }
public SoftQuota softQuota { get; set; }
public string financeCode { get; set; }
public string status { get; set; }
public string description { get; set; }
public HardQuota hardQuota { get; set; }
public string name { get; set; }
public int billingCodeId { get; set; }
public ProjectedUsage projectedUsage { get; set; }
public Customer customer { get; set; }
public CurrentUsage currentUsage { get; set; }
}
}
12 changes: 12 additions & 0 deletions dotnet/SampleClient/BillingCodeList.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Dell.CTO.Enstratius
{
public class BillingCodeList
{
public List<BillingCode> billingCodes { get; set; }
}
}
Loading