Skip to content

Commit

Permalink
updates ame binding to add rules
Browse files Browse the repository at this point in the history
  • Loading branch information
souf committed Feb 10, 2023
1 parent 8db9bc3 commit bf7d37b
Show file tree
Hide file tree
Showing 13 changed files with 1,641 additions and 76 deletions.
8 changes: 8 additions & 0 deletions ame_binding/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,19 @@ api/openapi.yaml
api_default.go
client.go
configuration.go
docs/AMEBindingRuleBody.md
docs/DefaultApi.md
docs/ExchangeBinding.md
docs/ExchangeBindingRules.md
docs/ExchangeBindingWithRules.md
docs/ExchangeBindingWithRulesAllOf.md
git_push.sh
go.mod
go.sum
model_ame_binding_rule_body.go
model_exchange_binding.go
model_exchange_binding_rules.go
model_exchange_binding_with_rules.go
model_exchange_binding_with_rules_all_of.go
response.go
utils.go
12 changes: 9 additions & 3 deletions ame_binding/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,20 @@ All URIs are relative to *https://anypoint.mulesoft.com/mq/admin/api/v1*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*DefaultApi* | [**OrganizationsOrgIdEnvironmentsEnvIdRegionsRegionIdBindingsExchangesExchangeIdQueuesQueueIdDelete**](docs/DefaultApi.md#organizationsorgidenvironmentsenvidregionsregionidbindingsexchangesexchangeidqueuesqueueiddelete) | **Delete** /organizations/{orgId}/environments/{envId}/regions/{regionId}/bindings/exchanges/{exchangeId}/queues/{queueId} |
*DefaultApi* | [**OrganizationsOrgIdEnvironmentsEnvIdRegionsRegionIdBindingsExchangesExchangeIdQueuesQueueIdGet**](docs/DefaultApi.md#organizationsorgidenvironmentsenvidregionsregionidbindingsexchangesexchangeidqueuesqueueidget) | **Get** /organizations/{orgId}/environments/{envId}/regions/{regionId}/bindings/exchanges/{exchangeId}/queues/{queueId} |
*DefaultApi* | [**OrganizationsOrgIdEnvironmentsEnvIdRegionsRegionIdBindingsExchangesExchangeIdQueuesQueueIdPut**](docs/DefaultApi.md#organizationsorgidenvironmentsenvidregionsregionidbindingsexchangesexchangeidqueuesqueueidput) | **Put** /organizations/{orgId}/environments/{envId}/regions/{regionId}/bindings/exchanges/{exchangeId}/queues/{queueId} |
*DefaultApi* | [**CreateAMEBinding**](docs/DefaultApi.md#createamebinding) | **Put** /organizations/{orgId}/environments/{envId}/regions/{regionId}/bindings/exchanges/{exchangeId}/queues/{queueId} |
*DefaultApi* | [**CreateAMEBindingRule**](docs/DefaultApi.md#createamebindingrule) | **Put** /organizations/{orgId}/environments/{envId}/regions/{regionId}/bindings/exchanges/{exchangeId}/queues/{queueId}/rules/routing |
*DefaultApi* | [**DeleteAMEBinding**](docs/DefaultApi.md#deleteamebinding) | **Delete** /organizations/{orgId}/environments/{envId}/regions/{regionId}/bindings/exchanges/{exchangeId}/queues/{queueId} |
*DefaultApi* | [**DeleteAMEBindingRule**](docs/DefaultApi.md#deleteamebindingrule) | **Delete** /organizations/{orgId}/environments/{envId}/regions/{regionId}/bindings/exchanges/{exchangeId}/queues/{queueId}/rules/routing |
*DefaultApi* | [**GetAMEBinding**](docs/DefaultApi.md#getamebinding) | **Get** /organizations/{orgId}/environments/{envId}/regions/{regionId}/bindings/exchanges/{exchangeId}/queues/{queueId} |


## Documentation For Models

- [AMEBindingRuleBody](docs/AMEBindingRuleBody.md)
- [ExchangeBinding](docs/ExchangeBinding.md)
- [ExchangeBindingRules](docs/ExchangeBindingRules.md)
- [ExchangeBindingWithRules](docs/ExchangeBindingWithRules.md)
- [ExchangeBindingWithRulesAllOf](docs/ExchangeBindingWithRulesAllOf.md)


## Documentation For Authorization
Expand Down
207 changes: 205 additions & 2 deletions ame_binding/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}/bindings/exchanges/{exchangeId}/queues/{queueId}:
delete:
description: Delete an exchange queue binding
operationId: DeleteAMEBinding
parameters:
- description: The organization Id
explode: false
Expand Down Expand Up @@ -64,6 +65,7 @@ paths:
description: Success response
get:
description: Get details about a queue bound to an exchange
operationId: GetAMEBinding
parameters:
- description: The organization Id
explode: false
Expand Down Expand Up @@ -105,17 +107,29 @@ paths:
schema:
type: string
style: simple
- description: Defines what to fetch
explode: true
in: query
name: inclusion
required: false
schema:
enum:
- all
- minimal
type: string
style: form
responses:
"401":
description: Access token is missing or invalid
"200":
content:
application/json:
schema:
$ref: '#/components/schemas/exchangeBinding'
$ref: '#/components/schemas/exchangeBindingWithRules'
description: Success response
put:
description: Create exchange queue binding
operationId: CreateAMEBinding
parameters:
- description: The organization Id
explode: false
Expand Down Expand Up @@ -166,7 +180,134 @@ paths:
schema:
$ref: '#/components/schemas/exchangeBinding'
description: Successfully created exchange
/organizations/{orgId}/environments/{envId}/regions/{regionId}/bindings/exchanges/{exchangeId}/queues/{queueId}/rules/routing:
delete:
description: Delete an exchange queue binding Rule
operationId: DeleteAMEBindingRule
parameters:
- description: The organization Id
explode: false
in: path
name: orgId
required: true
schema:
type: string
style: simple
- description: The environment id
explode: false
in: path
name: envId
required: true
schema:
type: string
style: simple
- description: The region id
explode: false
in: path
name: regionId
required: true
schema:
type: string
style: simple
- description: The id of a specific exchange
explode: false
in: path
name: exchangeId
required: true
schema:
type: string
style: simple
- description: The id of a specific exchange queue binding
explode: false
in: path
name: queueId
required: true
schema:
type: string
style: simple
responses:
"401":
description: Access token is missing or invalid
"204":
description: Success response
put:
description: Create exchange queue binding rule
operationId: CreateAMEBindingRule
parameters:
- description: The organization Id
explode: false
in: path
name: orgId
required: true
schema:
type: string
style: simple
- description: The environment id
explode: false
in: path
name: envId
required: true
schema:
type: string
style: simple
- description: The region id
explode: false
in: path
name: regionId
required: true
schema:
type: string
style: simple
- description: The id of a specific exchange
explode: false
in: path
name: exchangeId
required: true
schema:
type: string
style: simple
- description: The id of a specific exchange queue binding
explode: false
in: path
name: queueId
required: true
schema:
type: string
style: simple
requestBody:
$ref: '#/components/requestBodies/AMEBindingRuleBody'
content:
application/json:
schema:
example:
routingRules:
- '{}'
- '{}'
properties:
routingRules:
items:
title: routingRule
type: object
title: routingRules
type: array
title: AMEBindingRuleBody
type: object
responses:
"401":
description: Access token is missing or invalid
"200":
content:
application/json:
schema:
$ref: '#/components/schemas/exchangeBindingRules'
description: Successfully created exchange binding rules
components:
requestBodies:
AMEBindingRuleBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AMEBindingRuleBody'
responses:
UnauthorizedError:
description: Access token is missing or invalid
Expand Down Expand Up @@ -204,7 +345,7 @@ components:
content:
application/json:
schema:
$ref: '#/components/schemas/exchangeBinding'
$ref: '#/components/schemas/exchangeBindingWithRules'
description: Success response
SuccessCreateExchangeBinding:
content:
Expand All @@ -214,6 +355,14 @@ components:
description: Successfully created exchange
SuccessDeleteExchangeBinding:
description: Success response
SuccessCreateExchangeBindingRules:
content:
application/json:
schema:
$ref: '#/components/schemas/exchangeBindingRules'
description: Successfully created exchange binding rules
SuccessDeleteExchangeBindingRules:
description: Success response
schemas:
exchangeBinding:
example:
Expand All @@ -228,6 +377,60 @@ components:
type: string
title: exchangeBinding
type: object
exchangeBindingWithRules:
allOf:
- $ref: '#/components/schemas/exchangeBinding'
- $ref: '#/components/schemas/exchangeBindingWithRules_allOf'
exchangeBindingRules:
example:
exchangeId: exchangeId
queueId: queueId
routingRules:
- '{}'
- '{}'
properties:
queueId:
title: queueId
type: string
exchangeId:
title: exchangeId
type: string
routingRules:
items:
title: routingRule
type: object
title: routingRules
type: array
title: exchangeBinding
type: object
routingRules:
items:
title: routingRule
type: object
title: routingRules
type: array
AMEBindingRuleBody:
example:
routingRules:
- '{}'
- '{}'
properties:
routingRules:
items:
title: routingRule
type: object
title: routingRules
type: array
title: AMEBindingRuleBody
type: object
exchangeBindingWithRules_allOf:
properties:
rules:
items:
title: routingRule
type: object
title: routingRules
type: array
securitySchemes:
bearerAuth:
bearerFormat: JWT
Expand Down
Loading

0 comments on commit bf7d37b

Please sign in to comment.