Skip to content

Commit

Permalink
feat: set required fields for listing resource record sets
Browse files Browse the repository at this point in the history
  • Loading branch information
Leaseweb CI committed Dec 19, 2024
1 parent 0aa278b commit 54d2026
Show file tree
Hide file tree
Showing 23 changed files with 452 additions and 449 deletions.
24 changes: 23 additions & 1 deletion dns/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1615,6 +1615,8 @@ components:
description: Hyperlink to the resource record set's location
example: /domains/example.com/resourceRecordSets/example.com./A+GEO
type: string
required:
- href
title: self
type: object
ldLinks:
Expand All @@ -1629,6 +1631,9 @@ components:
$ref: '#/components/schemas/self'
collection:
$ref: '#/components/schemas/collection'
required:
- collection
- self
title: ldLinks
type: object
name:
Expand Down Expand Up @@ -1703,6 +1708,7 @@ components:
_links:
$ref: '#/components/schemas/ldLinks'
required:
- _links
- editable
title: resourceRecordSetDetails
type: object
Expand Down Expand Up @@ -1741,6 +1747,10 @@ components:
$ref: '#/components/schemas/parent'
validateSet:
$ref: '#/components/schemas/validateSet'
required:
- parent
- self
- validateSet
title: links
type: object
baseResourceRecordSetList:
Expand All @@ -1752,6 +1762,8 @@ components:
type: string
_links:
$ref: '#/components/schemas/links'
required:
- _links
type: object
getResourceRecordSetListResult:
allOf:
Expand All @@ -1761,6 +1773,8 @@ components:
items:
$ref: '#/components/schemas/resourceRecordSetDetails'
type: array
required:
- resourceRecordSets
type: object
- $ref: '#/components/schemas/baseResourceRecordSetList'
example:
Expand Down Expand Up @@ -1844,8 +1858,8 @@ components:
_links:
$ref: '#/components/schemas/ldLinks'
required:
- _links
- editable
- ttl
title: ldResourceRecordSetDetails
type: object
- $ref: '#/components/schemas/ldResourceRecordSet'
Expand All @@ -1857,6 +1871,8 @@ components:
items:
$ref: '#/components/schemas/ldResourceRecordSetDetails'
type: array
required:
- resourceRecordSets
type: object
- $ref: '#/components/schemas/baseResourceRecordSetList'
errorResult:
Expand Down Expand Up @@ -2024,6 +2040,8 @@ components:
description: Hyperlink to the resource record sets collection location
example: /domains/example.com/resourceRecordSets
type: string
required:
- href
title: collection
type: object
parent:
Expand All @@ -2035,6 +2053,8 @@ components:
description: Hyperlink to the parent resource location
example: /domains/example.com
type: string
required:
- href
title: parent
type: object
validateSet:
Expand All @@ -2046,6 +2066,8 @@ components:
description: Hyperlink to validate a single resource record set for a domain
example: /domains/example.com/resourceRecordSets/validateSet
type: string
required:
- href
title: validateSet
type: object
securitySchemes:
Expand Down
9 changes: 2 additions & 7 deletions dns/docs/BaseResourceRecordSetList.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**InfoMessage** | Pointer to **string** | Optional additional information | [optional]
**Links** | Pointer to [**Links**](Links.md) | | [optional]
**Links** | [**Links**](Links.md) | |

## Methods

### NewBaseResourceRecordSetList

`func NewBaseResourceRecordSetList() *BaseResourceRecordSetList`
`func NewBaseResourceRecordSetList(links Links, ) *BaseResourceRecordSetList`

NewBaseResourceRecordSetList instantiates a new BaseResourceRecordSetList object
This constructor will assign default values to properties that have it defined,
Expand Down Expand Up @@ -70,11 +70,6 @@ and a boolean to check if the value has been set.

SetLinks sets Links field to given value.

### HasLinks

`func (o *BaseResourceRecordSetList) HasLinks() bool`

HasLinks 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
9 changes: 2 additions & 7 deletions dns/docs/Collection.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Href** | Pointer to **string** | Hyperlink to the resource record sets collection location | [optional]
**Href** | **string** | Hyperlink to the resource record sets collection location |

## Methods

### NewCollection

`func NewCollection() *Collection`
`func NewCollection(href string, ) *Collection`

NewCollection instantiates a new Collection object
This constructor will assign default values to properties that have it defined,
Expand Down Expand Up @@ -44,11 +44,6 @@ and a boolean to check if the value has been set.

SetHref sets Href field to given value.

### HasHref

`func (o *Collection) HasHref() bool`

HasHref 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
16 changes: 3 additions & 13 deletions dns/docs/GetResourceRecordSetListLdResult.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**InfoMessage** | Pointer to **string** | Optional additional information | [optional]
**Links** | Pointer to [**Links**](Links.md) | | [optional]
**ResourceRecordSets** | Pointer to [**[]LdResourceRecordSetDetails**](LdResourceRecordSetDetails.md) | Array of resource record sets | [optional]
**Links** | [**Links**](Links.md) | |
**ResourceRecordSets** | [**[]LdResourceRecordSetDetails**](LdResourceRecordSetDetails.md) | Array of resource record sets |

## Methods

### NewGetResourceRecordSetListLdResult

`func NewGetResourceRecordSetListLdResult() *GetResourceRecordSetListLdResult`
`func NewGetResourceRecordSetListLdResult(links Links, resourceRecordSets []LdResourceRecordSetDetails, ) *GetResourceRecordSetListLdResult`

NewGetResourceRecordSetListLdResult instantiates a new GetResourceRecordSetListLdResult object
This constructor will assign default values to properties that have it defined,
Expand Down Expand Up @@ -71,11 +71,6 @@ and a boolean to check if the value has been set.

SetLinks sets Links field to given value.

### HasLinks

`func (o *GetResourceRecordSetListLdResult) HasLinks() bool`

HasLinks returns a boolean if a field has been set.

### GetResourceRecordSets

Expand All @@ -96,11 +91,6 @@ and a boolean to check if the value has been set.

SetResourceRecordSets sets ResourceRecordSets field to given value.

### HasResourceRecordSets

`func (o *GetResourceRecordSetListLdResult) HasResourceRecordSets() bool`

HasResourceRecordSets 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
16 changes: 3 additions & 13 deletions dns/docs/GetResourceRecordSetListResult.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**InfoMessage** | Pointer to **string** | Optional additional information | [optional]
**Links** | Pointer to [**Links**](Links.md) | | [optional]
**ResourceRecordSets** | Pointer to [**[]ResourceRecordSetDetails**](ResourceRecordSetDetails.md) | Array of resource record sets | [optional]
**Links** | [**Links**](Links.md) | |
**ResourceRecordSets** | [**[]ResourceRecordSetDetails**](ResourceRecordSetDetails.md) | Array of resource record sets |

## Methods

### NewGetResourceRecordSetListResult

`func NewGetResourceRecordSetListResult() *GetResourceRecordSetListResult`
`func NewGetResourceRecordSetListResult(links Links, resourceRecordSets []ResourceRecordSetDetails, ) *GetResourceRecordSetListResult`

NewGetResourceRecordSetListResult instantiates a new GetResourceRecordSetListResult object
This constructor will assign default values to properties that have it defined,
Expand Down Expand Up @@ -71,11 +71,6 @@ and a boolean to check if the value has been set.

SetLinks sets Links field to given value.

### HasLinks

`func (o *GetResourceRecordSetListResult) HasLinks() bool`

HasLinks returns a boolean if a field has been set.

### GetResourceRecordSets

Expand All @@ -96,11 +91,6 @@ and a boolean to check if the value has been set.

SetResourceRecordSets sets ResourceRecordSets field to given value.

### HasResourceRecordSets

`func (o *GetResourceRecordSetListResult) HasResourceRecordSets() bool`

HasResourceRecordSets 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
16 changes: 3 additions & 13 deletions dns/docs/LdLinks.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Self** | Pointer to [**Self**](Self.md) | | [optional]
**Collection** | Pointer to [**Collection**](Collection.md) | | [optional]
**Self** | [**Self**](Self.md) | |
**Collection** | [**Collection**](Collection.md) | |

## Methods

### NewLdLinks

`func NewLdLinks() *LdLinks`
`func NewLdLinks(self Self, collection Collection, ) *LdLinks`

NewLdLinks instantiates a new LdLinks object
This constructor will assign default values to properties that have it defined,
Expand Down Expand Up @@ -45,11 +45,6 @@ and a boolean to check if the value has been set.

SetSelf sets Self field to given value.

### HasSelf

`func (o *LdLinks) HasSelf() bool`

HasSelf returns a boolean if a field has been set.

### GetCollection

Expand All @@ -70,11 +65,6 @@ and a boolean to check if the value has been set.

SetCollection sets Collection field to given value.

### HasCollection

`func (o *LdLinks) HasCollection() bool`

HasCollection 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
9 changes: 2 additions & 7 deletions dns/docs/LdResourceRecordSetDetails.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ Name | Type | Description | Notes
**GeoContent** | [**GeoContent**](GeoContent.md) | |
**Ttl** | [**Ttl**](Ttl.md) | |
**Editable** | **bool** | May the set be edited |
**Links** | Pointer to [**LdLinks**](LdLinks.md) | | [optional]
**Links** | [**LdLinks**](LdLinks.md) | |

## Methods

### NewLdResourceRecordSetDetails

`func NewLdResourceRecordSetDetails(name string, type_ LdResourceRecordSetType, geoContent GeoContent, ttl Ttl, editable bool, ) *LdResourceRecordSetDetails`
`func NewLdResourceRecordSetDetails(name string, type_ LdResourceRecordSetType, geoContent GeoContent, ttl Ttl, editable bool, links LdLinks, ) *LdResourceRecordSetDetails`

NewLdResourceRecordSetDetails instantiates a new LdResourceRecordSetDetails object
This constructor will assign default values to properties that have it defined,
Expand Down Expand Up @@ -149,11 +149,6 @@ and a boolean to check if the value has been set.

SetLinks sets Links field to given value.

### HasLinks

`func (o *LdResourceRecordSetDetails) HasLinks() bool`

HasLinks 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
23 changes: 4 additions & 19 deletions dns/docs/Links.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Self** | Pointer to [**Self**](Self.md) | | [optional]
**Parent** | Pointer to [**Parent**](Parent.md) | | [optional]
**ValidateSet** | Pointer to [**ValidateSet**](ValidateSet.md) | | [optional]
**Self** | [**Self**](Self.md) | |
**Parent** | [**Parent**](Parent.md) | |
**ValidateSet** | [**ValidateSet**](ValidateSet.md) | |

## Methods

### NewLinks

`func NewLinks() *Links`
`func NewLinks(self Self, parent Parent, validateSet ValidateSet, ) *Links`

NewLinks instantiates a new Links object
This constructor will assign default values to properties that have it defined,
Expand Down Expand Up @@ -46,11 +46,6 @@ and a boolean to check if the value has been set.

SetSelf sets Self field to given value.

### HasSelf

`func (o *Links) HasSelf() bool`

HasSelf returns a boolean if a field has been set.

### GetParent

Expand All @@ -71,11 +66,6 @@ and a boolean to check if the value has been set.

SetParent sets Parent field to given value.

### HasParent

`func (o *Links) HasParent() bool`

HasParent returns a boolean if a field has been set.

### GetValidateSet

Expand All @@ -96,11 +86,6 @@ and a boolean to check if the value has been set.

SetValidateSet sets ValidateSet field to given value.

### HasValidateSet

`func (o *Links) HasValidateSet() bool`

HasValidateSet 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
9 changes: 2 additions & 7 deletions dns/docs/Parent.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Href** | Pointer to **string** | Hyperlink to the parent resource location | [optional]
**Href** | **string** | Hyperlink to the parent resource location |

## Methods

### NewParent

`func NewParent() *Parent`
`func NewParent(href string, ) *Parent`

NewParent instantiates a new Parent object
This constructor will assign default values to properties that have it defined,
Expand Down Expand Up @@ -44,11 +44,6 @@ and a boolean to check if the value has been set.

SetHref sets Href field to given value.

### HasHref

`func (o *Parent) HasHref() bool`

HasHref 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 54d2026

Please sign in to comment.