Skip to content

Commit

Permalink
Merge pull request #58 from mulesoft-consulting/dev
Browse files Browse the repository at this point in the history
Feature: Anypoint MQ queues, exchanges and bindings
  • Loading branch information
soufi authored Feb 10, 2023
2 parents 34b6df8 + bf7d37b commit 93ed51f
Show file tree
Hide file tree
Showing 27 changed files with 2,615 additions and 546 deletions.
8 changes: 4 additions & 4 deletions ame/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ All URIs are relative to *https://anypoint.mulesoft.com/mq/admin/api/v1*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*DefaultApi* | [**OrganizationsOrgIdEnvironmentsEnvIdRegionsRegionIdDestinationsExchangesExchangeIdDelete**](docs/DefaultApi.md#organizationsorgidenvironmentsenvidregionsregioniddestinationsexchangesexchangeiddelete) | **Delete** /organizations/{orgId}/environments/{envId}/regions/{regionId}/destinations/exchanges/{exchangeId} |
*DefaultApi* | [**OrganizationsOrgIdEnvironmentsEnvIdRegionsRegionIdDestinationsExchangesExchangeIdGet**](docs/DefaultApi.md#organizationsorgidenvironmentsenvidregionsregioniddestinationsexchangesexchangeidget) | **Get** /organizations/{orgId}/environments/{envId}/regions/{regionId}/destinations/exchanges/{exchangeId} |
*DefaultApi* | [**OrganizationsOrgIdEnvironmentsEnvIdRegionsRegionIdDestinationsExchangesExchangeIdPatch**](docs/DefaultApi.md#organizationsorgidenvironmentsenvidregionsregioniddestinationsexchangesexchangeidpatch) | **Patch** /organizations/{orgId}/environments/{envId}/regions/{regionId}/destinations/exchanges/{exchangeId} |
*DefaultApi* | [**OrganizationsOrgIdEnvironmentsEnvIdRegionsRegionIdDestinationsExchangesExchangeIdPut**](docs/DefaultApi.md#organizationsorgidenvironmentsenvidregionsregioniddestinationsexchangesexchangeidput) | **Put** /organizations/{orgId}/environments/{envId}/regions/{regionId}/destinations/exchanges/{exchangeId} |
*DefaultApi* | [**CreateAME**](docs/DefaultApi.md#createame) | **Put** /organizations/{orgId}/environments/{envId}/regions/{regionId}/destinations/exchanges/{exchangeId} |
*DefaultApi* | [**DeleteAME**](docs/DefaultApi.md#deleteame) | **Delete** /organizations/{orgId}/environments/{envId}/regions/{regionId}/destinations/exchanges/{exchangeId} |
*DefaultApi* | [**GetAME**](docs/DefaultApi.md#getame) | **Get** /organizations/{orgId}/environments/{envId}/regions/{regionId}/destinations/exchanges/{exchangeId} |
*DefaultApi* | [**UpdateAME**](docs/DefaultApi.md#updateame) | **Patch** /organizations/{orgId}/environments/{envId}/regions/{regionId}/destinations/exchanges/{exchangeId} |


## Documentation For Models
Expand Down
10 changes: 4 additions & 6 deletions ame/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ paths:
/organizations/{orgId}/environments/{envId}/regions/{regionId}/destinations/exchanges/{exchangeId}:
delete:
description: Delete an exchange
operationId: DeleteAME
parameters:
- description: The organization Id
explode: false
Expand Down Expand Up @@ -56,6 +57,7 @@ paths:
description: Success response
get:
description: Get details about an exchange
operationId: GetAME
parameters:
- description: The organization Id
explode: false
Expand Down Expand Up @@ -100,6 +102,7 @@ paths:
description: Success response
patch:
description: Modify an exchange's properties
operationId: UpdateAME
parameters:
- description: The organization Id
explode: false
Expand Down Expand Up @@ -155,6 +158,7 @@ paths:
description: Successfully created exchange
put:
description: Create exchange
operationId: CreateAME
parameters:
- description: The organization Id
explode: false
Expand Down Expand Up @@ -270,12 +274,6 @@ components:
encrypted:
title: encrypted
type: boolean
type:
title: type
type: string
exchangeId:
title: exchangeId
type: string
title: exchange
type: object
inline_response_404:
Expand Down
178 changes: 89 additions & 89 deletions ame/api_default.go

Large diffs are not rendered by default.

76 changes: 38 additions & 38 deletions ame/docs/DefaultApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ All URIs are relative to *https://anypoint.mulesoft.com/mq/admin/api/v1*

Method | HTTP request | Description
------------- | ------------- | -------------
[**OrganizationsOrgIdEnvironmentsEnvIdRegionsRegionIdDestinationsExchangesExchangeIdDelete**](DefaultApi.md#OrganizationsOrgIdEnvironmentsEnvIdRegionsRegionIdDestinationsExchangesExchangeIdDelete) | **Delete** /organizations/{orgId}/environments/{envId}/regions/{regionId}/destinations/exchanges/{exchangeId} |
[**OrganizationsOrgIdEnvironmentsEnvIdRegionsRegionIdDestinationsExchangesExchangeIdGet**](DefaultApi.md#OrganizationsOrgIdEnvironmentsEnvIdRegionsRegionIdDestinationsExchangesExchangeIdGet) | **Get** /organizations/{orgId}/environments/{envId}/regions/{regionId}/destinations/exchanges/{exchangeId} |
[**OrganizationsOrgIdEnvironmentsEnvIdRegionsRegionIdDestinationsExchangesExchangeIdPatch**](DefaultApi.md#OrganizationsOrgIdEnvironmentsEnvIdRegionsRegionIdDestinationsExchangesExchangeIdPatch) | **Patch** /organizations/{orgId}/environments/{envId}/regions/{regionId}/destinations/exchanges/{exchangeId} |
[**OrganizationsOrgIdEnvironmentsEnvIdRegionsRegionIdDestinationsExchangesExchangeIdPut**](DefaultApi.md#OrganizationsOrgIdEnvironmentsEnvIdRegionsRegionIdDestinationsExchangesExchangeIdPut) | **Put** /organizations/{orgId}/environments/{envId}/regions/{regionId}/destinations/exchanges/{exchangeId} |
[**CreateAME**](DefaultApi.md#CreateAME) | **Put** /organizations/{orgId}/environments/{envId}/regions/{regionId}/destinations/exchanges/{exchangeId} |
[**DeleteAME**](DefaultApi.md#DeleteAME) | **Delete** /organizations/{orgId}/environments/{envId}/regions/{regionId}/destinations/exchanges/{exchangeId} |
[**GetAME**](DefaultApi.md#GetAME) | **Get** /organizations/{orgId}/environments/{envId}/regions/{regionId}/destinations/exchanges/{exchangeId} |
[**UpdateAME**](DefaultApi.md#UpdateAME) | **Patch** /organizations/{orgId}/environments/{envId}/regions/{regionId}/destinations/exchanges/{exchangeId} |



## OrganizationsOrgIdEnvironmentsEnvIdRegionsRegionIdDestinationsExchangesExchangeIdDelete
## CreateAME

> OrganizationsOrgIdEnvironmentsEnvIdRegionsRegionIdDestinationsExchangesExchangeIdDelete(ctx, orgId, envId, regionId, exchangeId).Execute()
> Exchange CreateAME(ctx, orgId, envId, regionId, exchangeId).ExchangeBody(exchangeBody).Execute()


Expand All @@ -36,14 +36,17 @@ func main() {
envId := "envId_example" // string | The environment id
regionId := "regionId_example" // string | The region id
exchangeId := "exchangeId_example" // string | The id of a specific exchange
exchangeBody := *openapiclient.NewExchangeBody() // ExchangeBody | (optional)

configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.DefaultApi.OrganizationsOrgIdEnvironmentsEnvIdRegionsRegionIdDestinationsExchangesExchangeIdDelete(context.Background(), orgId, envId, regionId, exchangeId).Execute()
resp, r, err := api_client.DefaultApi.CreateAME(context.Background(), orgId, envId, regionId, exchangeId).ExchangeBody(exchangeBody).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.OrganizationsOrgIdEnvironmentsEnvIdRegionsRegionIdDestinationsExchangesExchangeIdDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.CreateAME``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateAME`: Exchange
fmt.Fprintf(os.Stdout, "Response from `DefaultApi.CreateAME`: %v\n", resp)
}
```

Expand All @@ -60,7 +63,7 @@ Name | Type | Description | Notes

### Other Parameters

Other parameters are passed through a pointer to a apiOrganizationsOrgIdEnvironmentsEnvIdRegionsRegionIdDestinationsExchangesExchangeIdDeleteRequest struct via the builder pattern
Other parameters are passed through a pointer to a apiCreateAMERequest struct via the builder pattern


Name | Type | Description | Notes
Expand All @@ -69,28 +72,29 @@ Name | Type | Description | Notes



**exchangeBody** | [**ExchangeBody**](ExchangeBody.md) | |

### Return type

(empty response body)
[**Exchange**](Exchange.md)

### Authorization

[bearerAuth](../README.md#bearerAuth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: Not defined
- **Content-Type**: application/json
- **Accept**: application/json

[[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)


## OrganizationsOrgIdEnvironmentsEnvIdRegionsRegionIdDestinationsExchangesExchangeIdGet
## DeleteAME

> Exchange OrganizationsOrgIdEnvironmentsEnvIdRegionsRegionIdDestinationsExchangesExchangeIdGet(ctx, orgId, envId, regionId, exchangeId).Execute()
> DeleteAME(ctx, orgId, envId, regionId, exchangeId).Execute()


Expand All @@ -116,13 +120,11 @@ func main() {

configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.DefaultApi.OrganizationsOrgIdEnvironmentsEnvIdRegionsRegionIdDestinationsExchangesExchangeIdGet(context.Background(), orgId, envId, regionId, exchangeId).Execute()
resp, r, err := api_client.DefaultApi.DeleteAME(context.Background(), orgId, envId, regionId, exchangeId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.OrganizationsOrgIdEnvironmentsEnvIdRegionsRegionIdDestinationsExchangesExchangeIdGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.DeleteAME``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `OrganizationsOrgIdEnvironmentsEnvIdRegionsRegionIdDestinationsExchangesExchangeIdGet`: Exchange
fmt.Fprintf(os.Stdout, "Response from `DefaultApi.OrganizationsOrgIdEnvironmentsEnvIdRegionsRegionIdDestinationsExchangesExchangeIdGet`: %v\n", resp)
}
```

Expand All @@ -139,7 +141,7 @@ Name | Type | Description | Notes

### Other Parameters

Other parameters are passed through a pointer to a apiOrganizationsOrgIdEnvironmentsEnvIdRegionsRegionIdDestinationsExchangesExchangeIdGetRequest struct via the builder pattern
Other parameters are passed through a pointer to a apiDeleteAMERequest struct via the builder pattern


Name | Type | Description | Notes
Expand All @@ -151,7 +153,7 @@ Name | Type | Description | Notes

### Return type

[**Exchange**](Exchange.md)
(empty response body)

### Authorization

Expand All @@ -160,16 +162,16 @@ Name | Type | Description | Notes
### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json
- **Accept**: Not defined

[[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)


## OrganizationsOrgIdEnvironmentsEnvIdRegionsRegionIdDestinationsExchangesExchangeIdPatch
## GetAME

> Exchange OrganizationsOrgIdEnvironmentsEnvIdRegionsRegionIdDestinationsExchangesExchangeIdPatch(ctx, orgId, envId, regionId, exchangeId).ExchangeBody(exchangeBody).Execute()
> Exchange GetAME(ctx, orgId, envId, regionId, exchangeId).Execute()


Expand All @@ -192,17 +194,16 @@ func main() {
envId := "envId_example" // string | The environment id
regionId := "regionId_example" // string | The region id
exchangeId := "exchangeId_example" // string | The id of a specific exchange
exchangeBody := *openapiclient.NewExchangeBody() // ExchangeBody | (optional)

configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.DefaultApi.OrganizationsOrgIdEnvironmentsEnvIdRegionsRegionIdDestinationsExchangesExchangeIdPatch(context.Background(), orgId, envId, regionId, exchangeId).ExchangeBody(exchangeBody).Execute()
resp, r, err := api_client.DefaultApi.GetAME(context.Background(), orgId, envId, regionId, exchangeId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.OrganizationsOrgIdEnvironmentsEnvIdRegionsRegionIdDestinationsExchangesExchangeIdPatch``: %v\n", err)
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.GetAME``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `OrganizationsOrgIdEnvironmentsEnvIdRegionsRegionIdDestinationsExchangesExchangeIdPatch`: Exchange
fmt.Fprintf(os.Stdout, "Response from `DefaultApi.OrganizationsOrgIdEnvironmentsEnvIdRegionsRegionIdDestinationsExchangesExchangeIdPatch`: %v\n", resp)
// response from `GetAME`: Exchange
fmt.Fprintf(os.Stdout, "Response from `DefaultApi.GetAME`: %v\n", resp)
}
```

Expand All @@ -219,7 +220,7 @@ Name | Type | Description | Notes

### Other Parameters

Other parameters are passed through a pointer to a apiOrganizationsOrgIdEnvironmentsEnvIdRegionsRegionIdDestinationsExchangesExchangeIdPatchRequest struct via the builder pattern
Other parameters are passed through a pointer to a apiGetAMERequest struct via the builder pattern


Name | Type | Description | Notes
Expand All @@ -228,7 +229,6 @@ Name | Type | Description | Notes



**exchangeBody** | [**ExchangeBody**](ExchangeBody.md) | |

### Return type

Expand All @@ -240,17 +240,17 @@ Name | Type | Description | Notes

### HTTP request headers

- **Content-Type**: application/json
- **Content-Type**: Not defined
- **Accept**: application/json

[[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)


## OrganizationsOrgIdEnvironmentsEnvIdRegionsRegionIdDestinationsExchangesExchangeIdPut
## UpdateAME

> Exchange OrganizationsOrgIdEnvironmentsEnvIdRegionsRegionIdDestinationsExchangesExchangeIdPut(ctx, orgId, envId, regionId, exchangeId).ExchangeBody(exchangeBody).Execute()
> Exchange UpdateAME(ctx, orgId, envId, regionId, exchangeId).ExchangeBody(exchangeBody).Execute()


Expand All @@ -277,13 +277,13 @@ func main() {

configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.DefaultApi.OrganizationsOrgIdEnvironmentsEnvIdRegionsRegionIdDestinationsExchangesExchangeIdPut(context.Background(), orgId, envId, regionId, exchangeId).ExchangeBody(exchangeBody).Execute()
resp, r, err := api_client.DefaultApi.UpdateAME(context.Background(), orgId, envId, regionId, exchangeId).ExchangeBody(exchangeBody).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.OrganizationsOrgIdEnvironmentsEnvIdRegionsRegionIdDestinationsExchangesExchangeIdPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.UpdateAME``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `OrganizationsOrgIdEnvironmentsEnvIdRegionsRegionIdDestinationsExchangesExchangeIdPut`: Exchange
fmt.Fprintf(os.Stdout, "Response from `DefaultApi.OrganizationsOrgIdEnvironmentsEnvIdRegionsRegionIdDestinationsExchangesExchangeIdPut`: %v\n", resp)
// response from `UpdateAME`: Exchange
fmt.Fprintf(os.Stdout, "Response from `DefaultApi.UpdateAME`: %v\n", resp)
}
```

Expand All @@ -300,7 +300,7 @@ Name | Type | Description | Notes

### Other Parameters

Other parameters are passed through a pointer to a apiOrganizationsOrgIdEnvironmentsEnvIdRegionsRegionIdDestinationsExchangesExchangeIdPutRequest struct via the builder pattern
Other parameters are passed through a pointer to a apiUpdateAMERequest struct via the builder pattern


Name | Type | Description | Notes
Expand Down
52 changes: 0 additions & 52 deletions ame/docs/ExchangeBody.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Encrypted** | Pointer to **bool** | | [optional]
**Type** | Pointer to **string** | | [optional]
**ExchangeId** | Pointer to **string** | | [optional]

## Methods

Expand Down Expand Up @@ -52,56 +50,6 @@ SetEncrypted sets Encrypted field to given value.

HasEncrypted returns a boolean if a field has been set.

### GetType

`func (o *ExchangeBody) GetType() string`

GetType returns the Type field if non-nil, zero value otherwise.

### GetTypeOk

`func (o *ExchangeBody) GetTypeOk() (*string, bool)`

GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetType

`func (o *ExchangeBody) SetType(v string)`

SetType sets Type field to given value.

### HasType

`func (o *ExchangeBody) HasType() bool`

HasType returns a boolean if a field has been set.

### GetExchangeId

`func (o *ExchangeBody) GetExchangeId() string`

GetExchangeId returns the ExchangeId field if non-nil, zero value otherwise.

### GetExchangeIdOk

`func (o *ExchangeBody) GetExchangeIdOk() (*string, bool)`

GetExchangeIdOk returns a tuple with the ExchangeId field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetExchangeId

`func (o *ExchangeBody) SetExchangeId(v string)`

SetExchangeId sets ExchangeId field to given value.

### HasExchangeId

`func (o *ExchangeBody) HasExchangeId() bool`

HasExchangeId returns a boolean if a field has been set.


[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
Loading

0 comments on commit 93ed51f

Please sign in to comment.