-
Notifications
You must be signed in to change notification settings - Fork 863
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introducing InvokeRestApi which allows users to invoke the Apache Air…
…flow REST API on the webserver with the specified inputs.
- Loading branch information
1 parent
0865de9
commit e33b2bd
Showing
26 changed files
with
1,956 additions
and
36 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
docgenerator/AWSSDKDocSamples/MWAA.GeneratedSamples.extra.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<docs> | ||
<doc> | ||
<members> | ||
<member name="M:Amazon.MWAA.IAmazonMWAA.InvokeRestApi(Amazon.MWAA.Model.InvokeRestApiRequest)" /> | ||
<member name="M:Amazon.MWAA.AmazonMWAAClient.InvokeRestApi(Amazon.MWAA.Model.InvokeRestApiRequest)" /> | ||
<member name="T:Amazon.MWAA.Model.InvokeRestApiRequest" /> | ||
<member name="T:Amazon.MWAA.Model.InvokeRestApiResponse" /> | ||
</members> | ||
<value> | ||
<example> | ||
<para> | ||
|
||
</para> | ||
<code | ||
title="Listing Airflow variables." | ||
source=".\AWSSDKDocSamples\MWAA\MWAA.GeneratedSamples.cs" | ||
region="example-1" /> | ||
</example> | ||
</value> | ||
</doc> | ||
</docs> |
41 changes: 41 additions & 0 deletions
41
docgenerator/AWSSDKDocSamples/MWAA/MWAA.GeneratedSamples.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
using Amazon.MWAA; | ||
using Amazon.MWAA.Model; | ||
|
||
namespace AWSSDKDocSamples.Amazon.MWAA.Generated | ||
{ | ||
class MWAASamples : ISample | ||
{ | ||
public void MWAAInvokeRestApi() | ||
{ | ||
#region example-1 | ||
|
||
var client = new AmazonMWAAClient(); | ||
var response = client.InvokeRestApi(new InvokeRestApiRequest | ||
{ | ||
Method = "GET", | ||
Name = "MyEnvironment", | ||
Path = "/variables" | ||
}); | ||
|
||
RestApiResponse restApiResponse = response.RestApiResponse; | ||
int restApiStatusCode = response.RestApiStatusCode; | ||
|
||
#endregion | ||
} | ||
|
||
|
||
# region ISample Members | ||
public virtual void Run() | ||
{ | ||
|
||
} | ||
# endregion | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
generator/ServiceModels/mwaa/mwaa-2020-07-01.examples.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,29 @@ | ||
{ | ||
"version": "1.0", | ||
"examples": { | ||
"InvokeRestApi": [ | ||
{ | ||
"input": { | ||
"Method": "GET", | ||
"Name": "MyEnvironment", | ||
"Path": "/variables" | ||
}, | ||
"output": { | ||
"RestApiResponse": { | ||
"total_entries": 1, | ||
"variables": [ | ||
{ | ||
"key": "test-variable", | ||
"value": "123", | ||
"description": "Example variable" | ||
} | ||
] | ||
}, | ||
"RestApiStatusCode": 200 | ||
}, | ||
"id": "example-1", | ||
"title": "Listing Airflow variables." | ||
} | ||
] | ||
} | ||
} |
Oops, something went wrong.