Skip to content
This repository was archived by the owner on Sep 3, 2021. It is now read-only.

Commit d72edc4

Browse files
committed
automaticly generated from cda8562
0 parents  commit d72edc4

24 files changed

+1855
-0
lines changed

.swagger-codegen-ignore

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Swagger Codegen Ignore
2+
# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen
3+
4+
# Use this file to prevent files from being overwritten by the generator.
5+
# The patterns follow closely to .gitignore or .dockerignore.
6+
7+
# As an example, the C# client generator defines ApiClient.cs.
8+
# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line:
9+
#ApiClient.cs
10+
11+
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
12+
#foo/*/qux
13+
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14+
15+
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16+
#foo/**/qux
17+
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18+
19+
# You can also negate patterns with an exclamation (!).
20+
# For example, you can ignore all files in a docs folder with the file extension .md:
21+
#docs/*.md
22+
# Then explicitly reverse the ignore rule for a single file:
23+
#!docs/README.md

.swagger-codegen/VERSION

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.2.3

README.md

+111
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
# IO.Swagger - the C# library for the LaunchDarkly REST API
2+
3+
Build custom integrations with the LaunchDarkly REST API
4+
5+
This C# SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
6+
7+
- API version: 2.0.0
8+
- SDK version: 1.0.0
9+
- Build date: 2017-09-08T14:59:53.133-07:00
10+
- Build package: io.swagger.codegen.languages.CsharpDotNet2ClientCodegen
11+
For more information, please visit [https://support.launchdarkly.com](https://support.launchdarkly.com)
12+
13+
<a name="frameworks-supported"></a>
14+
## Frameworks supported
15+
- .NET 2.0
16+
17+
<a name="dependencies"></a>
18+
## Dependencies
19+
- Mono compiler
20+
- Newtonsoft.Json.7.0.1
21+
- RestSharp.Net2.1.1.11
22+
23+
Note: NuGet is downloaded by the mono compilation script and packages are installed with it. No dependency DLLs are bundled with this generator
24+
25+
<a name="installation"></a>
26+
## Installation
27+
Run the following command to generate the DLL
28+
- [Mac/Linux] `/bin/sh compile-mono.sh`
29+
- [Windows] TODO
30+
31+
Then include the DLL (under the `bin` folder) in the C# project, and use the namespaces:
32+
```csharp
33+
using IO.Swagger.IO.Swagger.Api;
34+
using IO.Swagger.Client;
35+
using IO.Swagger.IO.Swagger.Model;
36+
```
37+
<a name="getting-started"></a>
38+
## Getting Started
39+
40+
```csharp
41+
using System;
42+
using System.Diagnostics;
43+
using IO.Swagger.Api;
44+
using IO.Swagger.Client;
45+
using IO.Swagger.Model;
46+
47+
namespace Example
48+
{
49+
public class Example
50+
{
51+
public void main()
52+
{
53+
54+
// Configure API key authorization: Token
55+
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
56+
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
57+
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
58+
59+
var apiInstance = new RootApi();
60+
61+
try
62+
{
63+
// Get the root resource
64+
Links result = apiInstance.GetRoot();
65+
Debug.WriteLine(result);
66+
}
67+
catch (Exception e)
68+
{
69+
Debug.Print("Exception when calling RootApi.GetRoot: " + e.Message );
70+
}
71+
}
72+
}
73+
}
74+
```
75+
76+
<a name="documentation-for-api-endpoints"></a>
77+
## Documentation for API Endpoints
78+
79+
All URIs are relative to *https://app.launchdarkly.com/api/v2*
80+
81+
Class | Method | HTTP request | Description
82+
------------ | ------------- | ------------- | -------------
83+
*RootApi* | [**GetRoot**](docs/RootApi.md#getroot) | **GET** / | Get the root resource
84+
*WebhooksApi* | [**DeleteWebhook**](docs/WebhooksApi.md#deletewebhook) | **DELETE** /webhooks/{webhookId} | Delete a webhook by ID
85+
*WebhooksApi* | [**GetWebhook**](docs/WebhooksApi.md#getwebhook) | **GET** /webhooks/{webhookId} | Get a webhook by ID
86+
*WebhooksApi* | [**GetWebhooks**](docs/WebhooksApi.md#getwebhooks) | **GET** /webhooks | Fetch a list of all webhooks
87+
*WebhooksApi* | [**PatchWebhook**](docs/WebhooksApi.md#patchwebhook) | **PATCH** /webhooks/{webhookId} | Modify a webhook by ID
88+
*WebhooksApi* | [**PostWebhook**](docs/WebhooksApi.md#postwebhook) | **POST** /webhooks | Create a webhook
89+
90+
91+
<a name="documentation-for-models"></a>
92+
## Documentation for Models
93+
94+
- [IO.Swagger.Model.Link](docs/Link.md)
95+
- [IO.Swagger.Model.Links](docs/Links.md)
96+
- [IO.Swagger.Model.PatchDelta](docs/PatchDelta.md)
97+
- [IO.Swagger.Model.Webhook](docs/Webhook.md)
98+
- [IO.Swagger.Model.WebhookPost](docs/WebhookPost.md)
99+
- [IO.Swagger.Model.Webhooks](docs/Webhooks.md)
100+
101+
102+
<a name="documentation-for-authorization"></a>
103+
## Documentation for Authorization
104+
105+
<a name="Token"></a>
106+
### Token
107+
108+
- **Type**: API key
109+
- **API key parameter name**: Authorization
110+
- **Location**: HTTP header
111+

compile-mono.sh

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
wget -nc https://dist.nuget.org/win-x86-commandline/latest/nuget.exe;
2+
mozroots --import --sync
3+
mono nuget.exe install vendor/packages.config -o vendor;
4+
mkdir -p bin;
5+
mcs -sdk:2 -r:vendor/Newtonsoft.Json.7.0.1/lib/net20/Newtonsoft.Json.dll,\
6+
vendor/RestSharp.Net2.1.1.11/lib/net20/RestSharp.Net2.dll,\
7+
System.Runtime.Serialization.dll \
8+
-target:library \
9+
-out:bin/IO.Swagger.dll \
10+
-recurse:'src/*.cs' \
11+
-doc:bin/IO.Swagger.xml \
12+
-platform:anycpu

docs/Link.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# IO.Swagger.Model.Link
2+
## Properties
3+
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**Href** | **string** | | [optional]
7+
**Type** | **string** | | [optional]
8+
9+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
10+

docs/Links.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# IO.Swagger.Model.Links
2+
## Properties
3+
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**Parent** | [**Link**](Link.md) | | [optional]
7+
**Self** | [**Link**](Link.md) | | [optional]
8+
9+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
10+

docs/PatchDelta.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# IO.Swagger.Model.PatchDelta
2+
## Properties
3+
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**Op** | **string** | |
7+
**Path** | **string** | |
8+
**Value** | **Object** | |
9+
10+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11+

docs/RootApi.md

+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# IO.Swagger..RootApi
2+
3+
All URIs are relative to *https://app.launchdarkly.com/api/v2*
4+
5+
Method | HTTP request | Description
6+
------------- | ------------- | -------------
7+
[**GetRoot**](RootApi.md#getroot) | **GET** / | Get the root resource
8+
9+
10+
<a name="getroot"></a>
11+
# **GetRoot**
12+
> Links GetRoot ()
13+
14+
Get the root resource
15+
16+
### Example
17+
```csharp
18+
using System;
19+
using System.Diagnostics;
20+
using IO.Swagger.Api;
21+
using IO.Swagger.Client;
22+
using IO.Swagger.Model;
23+
24+
namespace Example
25+
{
26+
public class GetRootExample
27+
{
28+
public void main()
29+
{
30+
31+
// Configure API key authorization: Token
32+
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
33+
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
34+
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
35+
36+
var apiInstance = new RootApi();
37+
38+
try
39+
{
40+
// Get the root resource
41+
Links result = apiInstance.GetRoot();
42+
Debug.WriteLine(result);
43+
}
44+
catch (Exception e)
45+
{
46+
Debug.Print("Exception when calling RootApi.GetRoot: " + e.Message );
47+
}
48+
}
49+
}
50+
}
51+
```
52+
53+
### Parameters
54+
This endpoint does not need any parameter.
55+
56+
### Return type
57+
58+
[**Links**](Links.md)
59+
60+
### Authorization
61+
62+
[Token](../README.md#Token)
63+
64+
### HTTP request headers
65+
66+
- **Content-Type**: application/json
67+
- **Accept**: application/json
68+
69+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
70+

docs/Webhook.md

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# IO.Swagger.Model.Webhook
2+
## Properties
3+
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**Links** | [**Links**](Links.md) | | [optional]
7+
**Id** | **string** | | [optional]
8+
**Url** | **string** | | [optional]
9+
**Secret** | **string** | | [optional]
10+
**On** | **bool?** | | [optional]
11+
**Tags** | **List&lt;string&gt;** | | [optional]
12+
13+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
14+

docs/WebhookPost.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# IO.Swagger.Model.WebhookPost
2+
## Properties
3+
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**Url** | **string** | |
7+
**Secret** | **string** | | [optional]
8+
**Sign** | **bool?** | |
9+
**On** | **bool?** | |
10+
11+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
12+

docs/Webhooks.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# IO.Swagger.Model.Webhooks
2+
## Properties
3+
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**Links** | [**Links**](Links.md) | | [optional]
7+
**Items** | [**List&lt;Webhook&gt;**](Webhook.md) | | [optional]
8+
9+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
10+

0 commit comments

Comments
 (0)