Skip to content
Merged
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
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"additional_stamps": [],
"apigentools_version": "0.8.0",
"codegen_version": "4.2.0",
"apigentools_version": "0.9.0",
"codegen_version": "4.2.2",
"info_version": "1",
"image": "apigentools/apigentools:0.8.0",
"spec_repo_commit": "4dc820c"
"image": null,
"spec_repo_commit": "51bbed6"
}
2 changes: 1 addition & 1 deletion .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.2.0
4.2.2
50 changes: 32 additions & 18 deletions docs/AwsIntegrationApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ Method | HTTP request | Description

## createAWSAccount

> AWSAccountCreateResponse createAWSAccount(awSAccount)

> AWSAccountCreateResponse createAWSAccount(awSAccount).execute();

Create an AWS Account

Expand Down Expand Up @@ -75,8 +76,9 @@ public class Example {

AwsIntegrationApi apiInstance = new AwsIntegrationApi(defaultClient);
AWSAccount awSAccount = new AWSAccount(); // AWSAccount | AWS request object
try {
AWSAccountCreateResponse result = apiInstance.createAWSAccount(awSAccount);
try {
AWSAccountCreateResponse result = api.createAWSAccount(awSAccount)
.execute();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AwsIntegrationApi#createAWSAccount");
Expand Down Expand Up @@ -118,7 +120,8 @@ Name | Type | Description | Notes

## deleteAWSAccount

> Object deleteAWSAccount(awSAccount)

> Object deleteAWSAccount(awSAccount).execute();

Delete an AWS Account

Expand Down Expand Up @@ -161,8 +164,9 @@ public class Example {

AwsIntegrationApi apiInstance = new AwsIntegrationApi(defaultClient);
AWSAccount awSAccount = new AWSAccount(); // AWSAccount | AWS request object
try {
Object result = apiInstance.deleteAWSAccount(awSAccount);
try {
Object result = api.deleteAWSAccount(awSAccount)
.execute();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AwsIntegrationApi#deleteAWSAccount");
Expand Down Expand Up @@ -204,7 +208,8 @@ Name | Type | Description | Notes

## getAllAWSAccounts

> AWSAccountListResponse getAllAWSAccounts(accountId, roleName, accessKeyId)

> AWSAccountListResponse getAllAWSAccounts().accountId(accountId).roleName(roleName).accessKeyId(accessKeyId).execute();

Get Installed AWS Accounts

Expand Down Expand Up @@ -252,8 +257,12 @@ public class Example {
String accountId = "accountId_example"; // String | Only return AWS accounts that matches this account_id.
String roleName = "roleName_example"; // String | Only return AWS accounts that matches this role_name.
String accessKeyId = "accessKeyId_example"; // String | Only return AWS accounts that matches this access_key_id.
try {
AWSAccountListResponse result = apiInstance.getAllAWSAccounts(accountId, roleName, accessKeyId);
try {
AWSAccountListResponse result = api.getAllAWSAccounts()
.accountId(accountId)
.roleName(roleName)
.accessKeyId(accessKeyId)
.execute();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AwsIntegrationApi#getAllAWSAccounts");
Expand Down Expand Up @@ -298,7 +307,8 @@ Name | Type | Description | Notes

## updateAWSAccount

> Object updateAWSAccount(awSAccount, accountId, roleName, accessKeyId)

> Object updateAWSAccount(awSAccount).accountId(accountId).roleName(roleName).accessKeyId(accessKeyId).execute();

Update an AWS Account

Expand Down Expand Up @@ -370,11 +380,15 @@ public class Example {

AwsIntegrationApi apiInstance = new AwsIntegrationApi(defaultClient);
AWSAccount awSAccount = new AWSAccount(); // AWSAccount | AWS request object
String accountId = "accountId_example"; // String |
String roleName = "roleName_example"; // String |
String accessKeyId = "accessKeyId_example"; // String |
try {
Object result = apiInstance.updateAWSAccount(awSAccount, accountId, roleName, accessKeyId);
String accountId = "accountId_example"; // String | Only return AWS accounts that matches this account_id.
String roleName = "roleName_example"; // String | Only return AWS accounts that matches this role_name. *It is required if account_id is specified.*
String accessKeyId = "accessKeyId_example"; // String | Only return AWS accounts that matches this access_key_id. *It required if none of the other two options are specified.*
try {
Object result = api.updateAWSAccount(awSAccount)
.accountId(accountId)
.roleName(roleName)
.accessKeyId(accessKeyId)
.execute();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AwsIntegrationApi#updateAWSAccount");
Expand All @@ -393,9 +407,9 @@ public class Example {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**awSAccount** | [**AWSAccount**](AWSAccount.md)| AWS request object |
**accountId** | **String**| | [optional]
**roleName** | **String**| | [optional]
**accessKeyId** | **String**| | [optional]
**accountId** | **String**| Only return AWS accounts that matches this account_id. | [optional]
**roleName** | **String**| Only return AWS accounts that matches this role_name. *It is required if account_id is specified.* | [optional]
**accessKeyId** | **String**| Only return AWS accounts that matches this access_key_id. *It required if none of the other two options are specified.* | [optional]

### Return type

Expand Down
57 changes: 35 additions & 22 deletions docs/DowntimesApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ Method | HTTP request | Description

## cancelDowntime

> cancelDowntime(downtimeId)

> cancelDowntime(downtimeId).execute();

Cancel a downtime

Expand Down Expand Up @@ -51,8 +52,10 @@ public class Example {

DowntimesApi apiInstance = new DowntimesApi(defaultClient);
Long downtimeId = 123456; // Long | ID of the downtime to cancel
try {
apiInstance.cancelDowntime(downtimeId);
try {
api.cancelDowntime(downtimeId)
.execute();

} catch (ApiException e) {
System.err.println("Exception when calling DowntimesApi#cancelDowntime");
System.err.println("Status code: " + e.getCode());
Expand Down Expand Up @@ -93,7 +96,8 @@ null (empty response body)

## cancelDowntimesByScope

> CanceledDowntimesIds cancelDowntimesByScope(cancelDowntimesByScopeRequest)

> CanceledDowntimesIds cancelDowntimesByScope(cancelDowntimesByScopeRequest).execute();

Cancel downtimes by scope

Expand Down Expand Up @@ -133,8 +137,9 @@ public class Example {

DowntimesApi apiInstance = new DowntimesApi(defaultClient);
CancelDowntimesByScopeRequest cancelDowntimesByScopeRequest = new CancelDowntimesByScopeRequest(); // CancelDowntimesByScopeRequest | Scope to cancel downtimes for
try {
CanceledDowntimesIds result = apiInstance.cancelDowntimesByScope(cancelDowntimesByScopeRequest);
try {
CanceledDowntimesIds result = api.cancelDowntimesByScope(cancelDowntimesByScopeRequest)
.execute();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DowntimesApi#cancelDowntimesByScope");
Expand Down Expand Up @@ -177,7 +182,8 @@ Name | Type | Description | Notes

## createDowntime

> Downtime createDowntime(downtime)

> Downtime createDowntime(downtime).execute();

Schedule a downtime

Expand Down Expand Up @@ -253,8 +259,9 @@ public class Example {

DowntimesApi apiInstance = new DowntimesApi(defaultClient);
Downtime downtime = new Downtime(); // Downtime | Downtime request object
try {
Downtime result = apiInstance.createDowntime(downtime);
try {
Downtime result = api.createDowntime(downtime)
.execute();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DowntimesApi#createDowntime");
Expand Down Expand Up @@ -296,15 +303,15 @@ Name | Type | Description | Notes

## getAllDowntimes

> List<Downtime> getAllDowntimes(currentOnly)

> List<Downtime> getAllDowntimes().currentOnly(currentOnly).execute();

Get all downtimes

### Overview
Get All Scheduled Downtimes
### Arguments
* **`current_only`** [*optional*, *default* = **False**]: Only return downtimes
that are active when the request is made.'
* **`current_only`** [*optional*, *default* = **False**]: Only return downtimes that are active when the request is made.

### Example

Expand Down Expand Up @@ -335,9 +342,11 @@ public class Example {
//appKeyAuth.setApiKeyPrefix("Token");

DowntimesApi apiInstance = new DowntimesApi(defaultClient);
Boolean currentOnly = true; // Boolean |
try {
List<Downtime> result = apiInstance.getAllDowntimes(currentOnly);
Boolean currentOnly = true; // Boolean | Only return downtimes that are active when the request is made.
try {
List<Downtime> result = api.getAllDowntimes()
.currentOnly(currentOnly)
.execute();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DowntimesApi#getAllDowntimes");
Expand All @@ -355,7 +364,7 @@ public class Example {

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**currentOnly** | **Boolean**| | [optional]
**currentOnly** | **Boolean**| Only return downtimes that are active when the request is made. | [optional]

### Return type

Expand All @@ -379,7 +388,8 @@ Name | Type | Description | Notes

## getDowntime

> Downtime getDowntime(downtimeId)

> Downtime getDowntime(downtimeId).execute();

Get a downtime

Expand Down Expand Up @@ -418,8 +428,9 @@ public class Example {

DowntimesApi apiInstance = new DowntimesApi(defaultClient);
Long downtimeId = 123456; // Long | ID of the downtime to fetch
try {
Downtime result = apiInstance.getDowntime(downtimeId);
try {
Downtime result = api.getDowntime(downtimeId)
.execute();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DowntimesApi#getDowntime");
Expand Down Expand Up @@ -461,7 +472,8 @@ Name | Type | Description | Notes

## updateDowntime

> Downtime updateDowntime(downtimeId, downtime)

> Downtime updateDowntime(downtimeId, downtime).execute();

Update a downtime

Expand Down Expand Up @@ -543,8 +555,9 @@ public class Example {
DowntimesApi apiInstance = new DowntimesApi(defaultClient);
Long downtimeId = 123456; // Long | ID of the downtime to update
Downtime downtime = new Downtime(); // Downtime | Downtime request object
try {
Downtime result = apiInstance.updateDowntime(downtimeId, downtime);
try {
Downtime result = api.updateDowntime(downtimeId, downtime)
.execute();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DowntimesApi#updateDowntime");
Expand Down
Loading