Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Commit

Permalink
fix: Added IPAssignments type (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
codinja1188 committed Sep 28, 2023
1 parent c3f45d4 commit 0145602
Show file tree
Hide file tree
Showing 10 changed files with 240 additions and 22 deletions.
1 change: 1 addition & 0 deletions API.md
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,7 @@ Class | Method | HTTP request | Description
- [IPAssignmentList](docs/IPAssignmentList.md)
- [IPAssignmentMetro](docs/IPAssignmentMetro.md)
- [IPAssignmentState](docs/IPAssignmentState.md)
- [IPAssignmentType](docs/IPAssignmentType.md)
- [IPAssignmentUpdateInput](docs/IPAssignmentUpdateInput.md)
- [IPAvailabilitiesList](docs/IPAvailabilitiesList.md)
- [IPReservation](docs/IPReservation.md)
Expand Down
15 changes: 15 additions & 0 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15327,6 +15327,7 @@ components:
href: href
network: network
created_at: 2000-01-23T04:56:07.000+00:00
type: null
enabled: true
manageable: true
network: network
Expand All @@ -15351,6 +15352,7 @@ components:
href: href
network: network
created_at: 2000-01-23T04:56:07.000+00:00
type: null
enabled: true
manageable: true
network: network
Expand Down Expand Up @@ -16312,6 +16314,7 @@ components:
href: href
network: network
created_at: 2000-01-23T04:56:07.000+00:00
type: null
enabled: true
manageable: true
network: network
Expand All @@ -16336,6 +16339,7 @@ components:
href: href
network: network
created_at: 2000-01-23T04:56:07.000+00:00
type: null
enabled: true
manageable: true
network: network
Expand Down Expand Up @@ -16914,6 +16918,7 @@ components:
href: href
network: network
created_at: 2000-01-23T04:56:07.000+00:00
type: null
enabled: true
manageable: true
network: network
Expand All @@ -16938,6 +16943,7 @@ components:
href: href
network: network
created_at: 2000-01-23T04:56:07.000+00:00
type: null
enabled: true
manageable: true
network: network
Expand Down Expand Up @@ -18871,6 +18877,7 @@ components:
href: href
network: network
created_at: 2000-01-23T04:56:07.000+00:00
type: null
enabled: true
manageable: true
network: network
Expand Down Expand Up @@ -18934,6 +18941,8 @@ components:
The IP address within the Metal Gateway to which requests to the Elastic IP are forwarded.
format: ipv4
type: string
type:
$ref: '#/components/schemas/IPAssignment_type'
type: object
IPAssignmentInput:
example:
Expand All @@ -18957,6 +18966,7 @@ components:
href: href
network: network
created_at: 2000-01-23T04:56:07.000+00:00
type: null
enabled: true
manageable: true
network: network
Expand All @@ -18981,6 +18991,7 @@ components:
href: href
network: network
created_at: 2000-01-23T04:56:07.000+00:00
type: null
enabled: true
manageable: true
network: network
Expand Down Expand Up @@ -30531,6 +30542,10 @@ components:
- active
- deleting
type: string
IPAssignment_type:
enum:
- IPAssignment
type: string
IPReservation_facility:
allOf:
- $ref: '#/components/schemas/Facility'
Expand Down
42 changes: 21 additions & 21 deletions docs/FindIPAddressById200Response.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Name | Type | Description | Notes
**Public** | Pointer to **bool** | | [optional]
**State** | Pointer to **string** | | [optional]
**NextHop** | Pointer to **string** | Only set when this is a Metal Gateway Elastic IP Assignment. The IP address within the Metal Gateway to which requests to the Elastic IP are forwarded. | [optional]
**Type** | [**VrfIpReservationType**](VrfIpReservationType.md) | |
**Addon** | Pointer to **bool** | | [optional]
**Assignments** | Pointer to [**[]IPAssignment**](IPAssignment.md) | | [optional]
**Available** | Pointer to **string** | | [optional]
Expand All @@ -35,7 +36,6 @@ Name | Type | Description | Notes
**ProjectLite** | Pointer to [**Project**](Project.md) | | [optional]
**RequestedBy** | Pointer to [**Href**](Href.md) | | [optional]
**Tags** | Pointer to **[]string** | | [optional]
**Type** | [**VrfIpReservationType**](VrfIpReservationType.md) | |
**CreatedBy** | Pointer to [**Href**](Href.md) | | [optional]
**Vrf** | [**Vrf**](Vrf.md) | |

Expand Down Expand Up @@ -533,6 +533,26 @@ SetNextHop sets NextHop field to given value.

HasNextHop returns a boolean if a field has been set.

### GetType

`func (o *FindIPAddressById200Response) GetType() VrfIpReservationType`

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

### GetTypeOk

`func (o *FindIPAddressById200Response) GetTypeOk() (*VrfIpReservationType, 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 *FindIPAddressById200Response) SetType(v VrfIpReservationType)`

SetType sets Type field to given value.


### GetAddon

`func (o *FindIPAddressById200Response) GetAddon() bool`
Expand Down Expand Up @@ -833,26 +853,6 @@ SetTags sets Tags field to given value.

HasTags returns a boolean if a field has been set.

### GetType

`func (o *FindIPAddressById200Response) GetType() VrfIpReservationType`

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

### GetTypeOk

`func (o *FindIPAddressById200Response) GetTypeOk() (*VrfIpReservationType, 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 *FindIPAddressById200Response) SetType(v VrfIpReservationType)`

SetType sets Type field to given value.


### GetCreatedBy

`func (o *FindIPAddressById200Response) GetCreatedBy() Href`
Expand Down
26 changes: 26 additions & 0 deletions docs/IPAssignment.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Name | Type | Description | Notes
**Public** | Pointer to **bool** | | [optional]
**State** | Pointer to [**IPAssignmentState**](IPAssignmentState.md) | | [optional]
**NextHop** | Pointer to **string** | Only set when this is a Metal Gateway Elastic IP Assignment. The IP address within the Metal Gateway to which requests to the Elastic IP are forwarded. | [optional]
**Type** | Pointer to [**IPAssignmentType**](IPAssignmentType.md) | | [optional]

## Methods

Expand Down Expand Up @@ -518,6 +519,31 @@ SetNextHop sets NextHop field to given value.

HasNextHop returns a boolean if a field has been set.

### GetType

`func (o *IPAssignment) GetType() IPAssignmentType`

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

### GetTypeOk

`func (o *IPAssignment) GetTypeOk() (*IPAssignmentType, 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 *IPAssignment) SetType(v IPAssignmentType)`

SetType sets Type field to given value.

### HasType

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

HasType 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
11 changes: 11 additions & 0 deletions docs/IPAssignmentType.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# IPAssignmentType

## Enum


* `IP_ASSIGNMENT` (value: `"IPAssignment"`)


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


2 changes: 2 additions & 0 deletions metal/v1/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ docs/IPAssignmentInput.md
docs/IPAssignmentList.md
docs/IPAssignmentMetro.md
docs/IPAssignmentState.md
docs/IPAssignmentType.md
docs/IPAssignmentUpdateInput.md
docs/IPAvailabilitiesList.md
docs/IPReservation.md
Expand Down Expand Up @@ -513,6 +514,7 @@ model_ip_assignment_input.go
model_ip_assignment_list.go
model_ip_assignment_metro.go
model_ip_assignment_state.go
model_ip_assignment_type.go
model_ip_assignment_update_input.go
model_ip_availabilities_list.go
model_ip_reservation.go
Expand Down
39 changes: 38 additions & 1 deletion metal/v1/model_ip_assignment.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0145602

Please sign in to comment.