Skip to content

Commit da793c2

Browse files
committed
Cleanup inline doc
1 parent 48dcbff commit da793c2

23 files changed

+292
-68
lines changed

.gitignore

+45-5
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,65 @@
55
/.paket/paket.exe
66
paket.lock
77
packages/
8-
98
#OS junk files
109
[Tt]humbs.db
1110
*.DS_Store
1211

1312
#Visual Studio files
1413
.vs/
15-
[Bb]in/
16-
[Oo]bj/
17-
[Dd]ebug/
18-
[Rr]elease/
14+
*.[Oo]bj
15+
*.user
16+
*.aps
17+
*.pch
18+
*.vspscc
19+
*.vssscc
20+
*_i.c
21+
*_p.c
22+
*.ncb
23+
*.suo
24+
*.tlb
25+
*.tlh
26+
*.bak
27+
*.[Cc]ache
28+
*.ilk
29+
*.log
30+
*.lib
31+
*.sbr
32+
*.sdf
33+
*.opensdf
34+
*.unsuccessfulbuild
35+
ipch/
36+
obj/
37+
[Bb]in
38+
[Oo]bj
39+
[Dd]ebug*/
40+
[Rr]elease*/
1941
*.DotSettings
2042

43+
# Roslyn IntelliSense Cache
44+
*.sln.ide/
45+
46+
# Visual Studio Profiling Output
47+
*.psess
48+
*.vsp
49+
*.vspx
50+
*.krn.ctl
51+
*.app.ctl
52+
2153
#Tooling
2254
_ReSharper*/
2355
*.resharper
56+
[Tt]est[Rr]esult*
2457

2558
# Office Temp Files
2659
~$*
2760

2861
#Git
2962
*.orig
63+
64+
65+
66+
# Sandcastle Per-User File
67+
.shfb/
68+
*.shfbproj_*
69+

samples/Rackspace.Samples/Program.cs

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
using System;
2+
using net.openstack.Core.Domain;
3+
using net.openstack.Providers.Rackspace;
4+
using Rackspace.CloudNetworks.v2;
5+
using Rackspace.Synchronous;
6+
7+
namespace Rackspace.Samples
8+
{
9+
class Program
10+
{
11+
static void Main()
12+
{
13+
Console.Write("User: ");
14+
string username = Console.ReadLine();
15+
16+
Console.Write("API Key: ");
17+
string apikey = Console.ReadLine();
18+
19+
Console.Write("Region: ");
20+
string region = Console.ReadLine();
21+
22+
// This is a example of how to authenticate and view your token, service catalog, etc.
23+
// It is not necessary to authenticate explicitly.
24+
Console.WriteLine("Explicitly Authenticating...");
25+
var identity = new CloudIdentity
26+
{
27+
Username = username,
28+
APIKey = apikey
29+
};
30+
var identityService = new CloudIdentityProvider(identity);
31+
UserAccess authResult = identityService.Authenticate();
32+
Console.WriteLine($"Welcome, {authResult.User.Name}!");
33+
34+
Console.WriteLine("Listing Networks...");
35+
var networkService = new CloudNetworkService(identityService, region);
36+
foreach (Network network in networkService.ListNetworks())
37+
{
38+
Console.WriteLine($"{network.Name}\t\t\t{network.IsShared}");
39+
}
40+
41+
Console.WriteLine("Press any key to exit...");
42+
Console.ReadLine();
43+
}
44+
}
45+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
using System.Reflection;
2+
using System.Runtime.CompilerServices;
3+
using System.Runtime.InteropServices;
4+
5+
// General Information about an assembly is controlled through the following
6+
// set of attributes. Change these attribute values to modify the information
7+
// associated with an assembly.
8+
[assembly: AssemblyTitle("Rackspace.Samples")]
9+
[assembly: AssemblyDescription("")]
10+
[assembly: AssemblyConfiguration("")]
11+
[assembly: AssemblyCompany("")]
12+
[assembly: AssemblyProduct("Rackspace.Samples")]
13+
[assembly: AssemblyCopyright("Copyright © 2015")]
14+
[assembly: AssemblyTrademark("")]
15+
[assembly: AssemblyCulture("")]
16+
17+
// Setting ComVisible to false makes the types in this assembly not visible
18+
// to COM components. If you need to access a type in this assembly from
19+
// COM, set the ComVisible attribute to true on that type.
20+
[assembly: ComVisible(false)]
21+
22+
// The following GUID is for the ID of the typelib if this project is exposed to COM
23+
[assembly: Guid("1e22cd29-1c76-4c5e-b6c5-45f8c12fe78a")]
24+
25+
// Version information for an assembly consists of the following four values:
26+
//
27+
// Major Version
28+
// Minor Version
29+
// Build Number
30+
// Revision
31+
//
32+
// You can specify all the values or you can default the Build and Revision Numbers
33+
// by using the '*' as shown below:
34+
// [assembly: AssemblyVersion("1.0.*")]
35+
[assembly: AssemblyVersion("1.0.0.0")]
36+
[assembly: AssemblyFileVersion("1.0.0.0")]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4+
<PropertyGroup>
5+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7+
<ProjectGuid>{1E22CD29-1C76-4C5E-B6C5-45F8C12FE78A}</ProjectGuid>
8+
<OutputType>Exe</OutputType>
9+
<AppDesignerFolder>Properties</AppDesignerFolder>
10+
<RootNamespace>Rackspace.Samples</RootNamespace>
11+
<AssemblyName>Rackspace.Samples</AssemblyName>
12+
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
13+
<FileAlignment>512</FileAlignment>
14+
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
15+
</PropertyGroup>
16+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
17+
<PlatformTarget>AnyCPU</PlatformTarget>
18+
<DebugSymbols>true</DebugSymbols>
19+
<DebugType>full</DebugType>
20+
<Optimize>false</Optimize>
21+
<OutputPath>bin\Debug\</OutputPath>
22+
<DefineConstants>DEBUG;TRACE</DefineConstants>
23+
<ErrorReport>prompt</ErrorReport>
24+
<WarningLevel>4</WarningLevel>
25+
</PropertyGroup>
26+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
27+
<PlatformTarget>AnyCPU</PlatformTarget>
28+
<DebugType>pdbonly</DebugType>
29+
<Optimize>true</Optimize>
30+
<OutputPath>bin\Release\</OutputPath>
31+
<DefineConstants>TRACE</DefineConstants>
32+
<ErrorReport>prompt</ErrorReport>
33+
<WarningLevel>4</WarningLevel>
34+
</PropertyGroup>
35+
<ItemGroup>
36+
<Reference Include="openstacknet, Version=1.5.0.0, Culture=neutral, PublicKeyToken=a7b9d24dda86d33e, processorArchitecture=MSIL">
37+
<HintPath>packages\openstack.net.1.5.0-beta-1\lib\net45\openstacknet.dll</HintPath>
38+
<Private>True</Private>
39+
</Reference>
40+
<Reference Include="Rackspace, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
41+
<HintPath>packages\Rackspace.0.1.0-beta1\lib\net45\Rackspace.dll</HintPath>
42+
<Private>True</Private>
43+
</Reference>
44+
<Reference Include="SimpleRESTServices, Version=1.3.0.0, Culture=neutral, PublicKeyToken=8965cea5c205d3a3, processorArchitecture=MSIL">
45+
<HintPath>packages\SimpleRESTServices.1.3.0.1\lib\net40\SimpleRESTServices.dll</HintPath>
46+
<Private>True</Private>
47+
</Reference>
48+
<Reference Include="System" />
49+
<Reference Include="System.Core" />
50+
<Reference Include="System.Xml.Linq" />
51+
<Reference Include="System.Data.DataSetExtensions" />
52+
<Reference Include="System.Data" />
53+
<Reference Include="System.Net.Http" />
54+
<Reference Include="System.Xml" />
55+
</ItemGroup>
56+
<ItemGroup>
57+
<Compile Include="Program.cs" />
58+
<Compile Include="Properties\AssemblyInfo.cs" />
59+
</ItemGroup>
60+
<ItemGroup>
61+
<None Include="App.config" />
62+
<None Include="packages.config" />
63+
</ItemGroup>
64+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
65+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
66+
Other similar extension points exist, see Microsoft.Common.targets.
67+
<Target Name="BeforeBuild">
68+
</Target>
69+
<Target Name="AfterBuild">
70+
</Target>
71+
-->
72+
</Project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 14
4+
VisualStudioVersion = 14.0.23107.0
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Rackspace.Samples", "Rackspace.Samples.csproj", "{1E22CD29-1C76-4C5E-B6C5-45F8C12FE78A}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{1E22CD29-1C76-4C5E-B6C5-45F8C12FE78A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{1E22CD29-1C76-4C5E-B6C5-45F8C12FE78A}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{1E22CD29-1C76-4C5E-B6C5-45F8C12FE78A}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{1E22CD29-1C76-4C5E-B6C5-45F8C12FE78A}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
EndGlobal
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
2+
<s:Boolean x:Key="/Default/CodeStyle/LiveTemplatesUseVar/PreferVar/@EntryValue">False</s:Boolean></wpf:ResourceDictionary>

samples/Rackspace.Samples/app.config

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<startup>
4+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
5+
</startup>
6+
<runtime>
7+
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
8+
<dependentAssembly>
9+
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
10+
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
11+
</dependentAssembly>
12+
</assemblyBinding>
13+
</runtime>
14+
</configuration>
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<packages>
3+
<package id="Flurl.Http.Signed" version="0.6.2.2015062601" targetFramework="net452" />
4+
<package id="Flurl.Signed" version="1.0.8" targetFramework="net452" />
5+
<package id="Marvin.JsonPatch.Signed" version="0.7.0" targetFramework="net452" />
6+
<package id="Newtonsoft.Json" version="6.0.4" targetFramework="net452" />
7+
<package id="openstack.net" version="1.5.0-beta-1" targetFramework="net452" />
8+
<package id="Rackspace" version="0.1.0-beta1" targetFramework="net452" />
9+
<package id="SimpleRESTServices" version="1.3.0.1" targetFramework="net452" />
10+
</packages>

src/Rackspace/CloudNetworks/NamespaceDoc.cs

-12
This file was deleted.

src/Rackspace/CloudNetworks/v2/CloudNetworkService.cs

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ namespace Rackspace.CloudNetworks.v2
1212
/// </summary>
1313
/// <seealso href="http://api.rackspace.com/api-ref-networks.html">Cloud Networks API v2 Reference</seealso>
1414
/// <seealso href="http://docs.rackspace.com/networks/api/v2/cn-gettingstarted/content/ch_preface.html">Cloud Networks Getting Started</seealso>
15+
/// <threadsafety static="true" instance="false"/>
1516
public class CloudNetworkService
1617
{
1718
private readonly NetworkingApiBuilder _networkingApiBuilder;

src/Rackspace/CloudNetworks/v2/CloudNetworkServiceExtensions.cs

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ namespace Rackspace.Synchronous
77
/// <summary>
88
/// Provides synchronous extention methods for an <see cref="CloudNetworkService"/> instance.
99
/// </summary>
10+
/// <threadsafety static="true" instance="false"/>
1011
public static class CloudNetworkServiceExtensions
1112
{
1213
#region Networks

src/Rackspace/CloudNetworks/v2/IPAddressAssociation.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using Newtonsoft.Json;
2-
using OpenStack.Networking.v2;
32

43
namespace Rackspace.CloudNetworks.v2
54
{
@@ -40,7 +39,7 @@ public IPAddressAssociation(Identifier subnetId, string ipAddress)
4039
public Identifier SubnetId { get; set; }
4140

4241
/// <summary>
43-
/// The subnet identifier.
42+
/// The associated IP address.
4443
/// </summary>
4544
[JsonProperty("ip_address")]
4645
public string IPAddress { get; set; }

src/Rackspace/CloudNetworks/v2/NamespaceDoc.cs

-13
This file was deleted.

src/Rackspace/CloudNetworks/v2/Network.cs

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ namespace Rackspace.CloudNetworks.v2
55
{
66
/// <summary>
77
/// Represents a network resource of the <see cref="CloudNetworkService"/>.
8+
/// <para/>
89
/// <para>
910
/// Isolated virtual Layer-2 domains; a network can also be regarded as a virtual (or logical) switch.
1011
/// </para>

src/Rackspace/CloudNetworks/v2/Port.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ namespace Rackspace.CloudNetworks.v2
44
{
55
/// <summary>
66
/// Represents a port resource of the <see cref="CloudNetworkService"/>.
7-
/// </summary>
7+
/// <para/>
88
/// <para>
99
/// Virtual (or logical) switch ports on a given network.
1010
/// </para>
11+
/// </summary>
1112
/// <threadsafety static="true" instance="false"/>
1213
public class Port : PortCreateDefinition
1314
{

src/Rackspace/CloudNetworks/v2/Serialization/NamespaceDoc.cs

-14
This file was deleted.

src/Rackspace/CloudNetworks/v2/Subnet.cs

+3-4
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@
44
namespace Rackspace.CloudNetworks.v2
55
{
66
/// <summary>
7-
/// Represents a subnet resource of the <see cref="CloudNetworkService"/>.
8-
/// <para>
9-
/// IPv4 or IPv6 address blocks from which IPs to be assigned to VMs on a given network are selected.
10-
/// </para>
7+
/// <para>Represents a subnet resource of the <see cref="CloudNetworkService"/>.</para>
8+
/// <para/>
9+
/// <para>IPv4 or IPv6 address blocks from which IPs to be assigned to VMs on a given network are selected.</para>
1110
/// </summary>
1211
/// <threadsafety static="true" instance="false"/>
1312
[JsonConverterWithConstructor(typeof(RootWrapperConverter), "subnet")]

src/Rackspace/CloudNetworks/v2/SubnetUpdateDefinition.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System.Collections.Generic;
2-
using System.ComponentModel;
32
using Newtonsoft.Json;
43
using OpenStack.Serialization;
54

0 commit comments

Comments
 (0)