Skip to content

Commit

Permalink
Merge pull request #5 from mulesoft-consulting/dev
Browse files Browse the repository at this point in the history
VPC updated schemas
  • Loading branch information
soufi authored Mar 23, 2021
2 parents c8b41e7 + df8b5dd commit 44b2f20
Show file tree
Hide file tree
Showing 15 changed files with 1,004 additions and 101 deletions.
17 changes: 8 additions & 9 deletions vpc/.openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -1,30 +1,29 @@
.gitignore
.openapi-generator-ignore
.travis.yml
README.md
api/openapi.yaml
api_default.go
client.go
configuration.go
docs/DefaultApi.md
docs/FirewallRule.md
docs/InlineResponse200.md
docs/InlineResponse400.md
docs/InternalDnsSchema.md
docs/InternalDns.md
docs/Vpc.md
docs/VpcCore.md
docs/VpcCoreFirewallRules.md
docs/VpcIdSchema.md
docs/VpcRouteSchema.md
docs/VpcId.md
docs/VpcRoute.md
git_push.sh
go.mod
go.sum
model_firewall_rule.go
model_inline_response_200.go
model_inline_response_400.go
model_internal_dns_schema.go
model_internal_dns.go
model_vpc.go
model_vpc_core.go
model_vpc_core_firewall_rules.go
model_vpc_id_schema.go
model_vpc_route_schema.go
model_vpc_id.go
model_vpc_route.go
response.go
utils.go
8 changes: 4 additions & 4 deletions vpc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,14 @@ Class | Method | HTTP request | Description

## Documentation For Models

- [FirewallRule](docs/FirewallRule.md)
- [InlineResponse200](docs/InlineResponse200.md)
- [InlineResponse400](docs/InlineResponse400.md)
- [InternalDnsSchema](docs/InternalDnsSchema.md)
- [InternalDns](docs/InternalDns.md)
- [Vpc](docs/Vpc.md)
- [VpcCore](docs/VpcCore.md)
- [VpcCoreFirewallRules](docs/VpcCoreFirewallRules.md)
- [VpcIdSchema](docs/VpcIdSchema.md)
- [VpcRouteSchema](docs/VpcRouteSchema.md)
- [VpcId](docs/VpcId.md)
- [VpcRoute](docs/VpcRoute.md)


## Documentation For Authorization
Expand Down
57 changes: 29 additions & 28 deletions vpc/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -194,49 +194,49 @@ components:
schemas:
vpc:
allOf:
- $ref: '#/components/schemas/vpcId_schema'
- $ref: '#/components/schemas/vpcId'
- $ref: '#/components/schemas/vpcCore'
title: vpc schema
title: vpc
vpcCore:
properties:
isDefault:
default: false
title: isDefault schema
title: isDefault
type: boolean
name:
example: myAwesomeVPC
title: name schema
title: name
type: string
ownerId:
example: 0000-1111-2222-3333-4444
title: ownerId schema
title: ownerId
type: string
region:
example: us-east-1
title: The region schema
title: region
type: string
sharedWith:
default: []
example:
- 0000000-1111-2222-3333-44444444444
items:
type: string
title: sharedWith schema
title: sharedWith
type: array
associatedEnvironments:
default: []
example:
- eeeeb145-6f79-402d-85fc-8c90905d2490
items:
description: Environment Id.
title: associatedEnvironment schema
title: associatedEnvironment
type: string
title: associatedEnvironments schema
title: associatedEnvironments
type: array
cidrBlock:
default: 10.0.0.0/20
description: An explanation about the purpose of this instance.
title: cidrBlock schema
title: cidrBlock
type: string
firewallRules:
default: []
Expand All @@ -250,11 +250,11 @@ components:
fromPort: 8091
toPort: 8092
items:
$ref: '#/components/schemas/vpcCore_firewallRules'
title: firewallRules schema
$ref: '#/components/schemas/firewallRule'
title: firewallRules
type: array
internalDns:
$ref: '#/components/schemas/internalDns_schema'
$ref: '#/components/schemas/internalDns'
vpcRoutes:
default: []
example:
Expand All @@ -263,10 +263,10 @@ components:
- Next Hop: Internet Gateway
CIDR: 0.0.0.0/0
items:
$ref: '#/components/schemas/vpcRoute_schema'
title: vpcRoutes schema
$ref: '#/components/schemas/vpcRoute'
title: vpcRoutes
type: array
title: vpcCore schema
title: vpcCore
type: object
inline_response_200:
example:
Expand Down Expand Up @@ -295,18 +295,18 @@ components:
title: the error message
type: string
type: object
vpcId_schema:
vpcId:
properties:
id:
description: The vpc Id
example: vpc-0b111d1a1ace2a12f
title: id schema
title: id
type: string
required:
- id
title: vpcId schema
title: vpcId
type: object
vpcCore_firewallRules:
firewallRule:
properties:
cidrBlock:
default: ""
Expand All @@ -333,40 +333,41 @@ components:
- fromPort
- protocol
- toPort
title: firewallRule
type: object
internalDns_schema:
internalDns:
properties:
dnsServers:
default: []
items:
type: string
title: dnsServers schema
title: dnsServers
type: array
specialDomains:
default: []
items:
type: string
title: specialDomains schema
title: specialDomains
type: array
required:
- dnsServers
- specialDomains
title: internalDns schema
title: internalDns
type: object
vpcRoute_schema:
vpcRoute:
properties:
CIDR:
default: ""
title: The CIDR schema
title: CIDR
type: string
Next Hop:
default: ""
title: The Next Hop schema
title: NextHop
type: string
required:
- CIDR
- Next Hop
title: vpcRoute schema
title: vpcRoute
type: object
securitySchemes:
bearerAuth:
Expand Down
114 changes: 114 additions & 0 deletions vpc/docs/FirewallRule.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
# FirewallRule

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**CidrBlock** | **string** | An explanation about the purpose of this instance. | [default to ""]
**FromPort** | **int32** | An explanation about the purpose of this instance. | [default to 0]
**Protocol** | **string** | An explanation about the purpose of this instance. | [default to ""]
**ToPort** | **int32** | An explanation about the purpose of this instance. | [default to 0]

## Methods

### NewFirewallRule

`func NewFirewallRule(cidrBlock string, fromPort int32, protocol string, toPort int32, ) *FirewallRule`

NewFirewallRule instantiates a new FirewallRule object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed

### NewFirewallRuleWithDefaults

`func NewFirewallRuleWithDefaults() *FirewallRule`

NewFirewallRuleWithDefaults instantiates a new FirewallRule object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set

### GetCidrBlock

`func (o *FirewallRule) GetCidrBlock() string`

GetCidrBlock returns the CidrBlock field if non-nil, zero value otherwise.

### GetCidrBlockOk

`func (o *FirewallRule) GetCidrBlockOk() (*string, bool)`

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

### SetCidrBlock

`func (o *FirewallRule) SetCidrBlock(v string)`

SetCidrBlock sets CidrBlock field to given value.


### GetFromPort

`func (o *FirewallRule) GetFromPort() int32`

GetFromPort returns the FromPort field if non-nil, zero value otherwise.

### GetFromPortOk

`func (o *FirewallRule) GetFromPortOk() (*int32, bool)`

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

### SetFromPort

`func (o *FirewallRule) SetFromPort(v int32)`

SetFromPort sets FromPort field to given value.


### GetProtocol

`func (o *FirewallRule) GetProtocol() string`

GetProtocol returns the Protocol field if non-nil, zero value otherwise.

### GetProtocolOk

`func (o *FirewallRule) GetProtocolOk() (*string, bool)`

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

### SetProtocol

`func (o *FirewallRule) SetProtocol(v string)`

SetProtocol sets Protocol field to given value.


### GetToPort

`func (o *FirewallRule) GetToPort() int32`

GetToPort returns the ToPort field if non-nil, zero value otherwise.

### GetToPortOk

`func (o *FirewallRule) GetToPortOk() (*int32, bool)`

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

### SetToPort

`func (o *FirewallRule) SetToPort(v int32)`

SetToPort sets ToPort field to given value.



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


Loading

0 comments on commit 44b2f20

Please sign in to comment.