diff --git a/apiv4_3/api/openapi.yaml b/apiv4_3/api/openapi.yaml index 978ab131..d6e9473d 100644 --- a/apiv4_3/api/openapi.yaml +++ b/apiv4_3/api/openapi.yaml @@ -146697,7 +146697,6 @@ components: title: ' depth' type: integer required: - - _depth - id - name - slug @@ -147304,7 +147303,6 @@ components: title: ' depth' type: integer required: - - _depth - id - name - slug @@ -148216,7 +148214,6 @@ components: title: ' depth' type: integer required: - - _depth - id - name - slug @@ -148366,7 +148363,6 @@ components: title: ' depth' type: integer required: - - _depth - id - name - slug @@ -148507,7 +148503,6 @@ components: title: ' depth' type: integer required: - - _depth - id - name - slug @@ -149127,7 +149122,6 @@ components: title: ' depth' type: integer required: - - _depth - id - name - slug @@ -153384,7 +153378,6 @@ components: title: ' depth' type: integer required: - - _depth - id - last_updated - name @@ -155024,7 +155017,6 @@ components: title: ' depth' type: integer required: - - _depth - id - last_updated - name @@ -159505,7 +159497,6 @@ components: title: ' depth' type: integer required: - - _depth - component - device - id @@ -159835,7 +159826,6 @@ components: title: ' depth' type: integer required: - - _depth - component - device_type - id @@ -160676,7 +160666,6 @@ components: title: ' depth' type: integer required: - - _depth - id - last_updated - name @@ -161777,7 +161766,6 @@ components: title: ' depth' type: integer required: - - _depth - id - name - slug @@ -162102,7 +162090,6 @@ components: title: ' depth' type: integer required: - - _depth - id - name - slug @@ -162247,7 +162234,6 @@ components: title: ' depth' type: integer required: - - _depth - id - name - slug @@ -162304,7 +162290,6 @@ components: title: ' depth' type: integer required: - - _depth - id - name - slug @@ -162434,7 +162419,6 @@ components: title: ' depth' type: integer required: - - _depth - id - name - slug @@ -162672,7 +162656,6 @@ components: title: ' depth' type: integer required: - - _depth - id - name - slug @@ -189606,7 +189589,6 @@ components: title: ' depth' type: integer required: - - _depth - children - family - id @@ -191734,7 +191716,6 @@ components: title: ' depth' type: integer required: - - _depth - id - last_updated - name @@ -193019,7 +193000,6 @@ components: title: ' depth' type: integer required: - - _depth - id - last_updated - name @@ -193793,7 +193773,6 @@ components: title: ' depth' type: integer required: - - _depth - id - last_updated - name @@ -197635,7 +197614,6 @@ components: title: ' depth' type: integer required: - - _depth - id - last_updated - name diff --git a/apiv4_3/docs/BriefDeviceRole.md b/apiv4_3/docs/BriefDeviceRole.md index 36e270b6..12c482c9 100644 --- a/apiv4_3/docs/BriefDeviceRole.md +++ b/apiv4_3/docs/BriefDeviceRole.md @@ -12,13 +12,13 @@ Name | Type | Description | Notes **Description** | Pointer to **string** | | [optional] **DeviceCount** | Pointer to **int32** | | [optional] [readonly] [default to 0] **VirtualmachineCount** | Pointer to **int32** | | [optional] [readonly] [default to 0] -**Depth** | **int32** | | [readonly] +**Depth** | Pointer to **int32** | | [optional] [readonly] ## Methods ### NewBriefDeviceRole -`func NewBriefDeviceRole(id int32, url string, name string, slug string, depth int32, ) *BriefDeviceRole` +`func NewBriefDeviceRole(id int32, url string, name string, slug string, ) *BriefDeviceRole` NewBriefDeviceRole instantiates a new BriefDeviceRole object This constructor will assign default values to properties that have it defined, @@ -232,6 +232,11 @@ and a boolean to check if the value has been set. SetDepth sets Depth field to given value. +### HasDepth + +`func (o *BriefDeviceRole) HasDepth() bool` + +HasDepth 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) diff --git a/apiv4_3/docs/BriefLocation.md b/apiv4_3/docs/BriefLocation.md index ca6c7a98..95a0c7b8 100644 --- a/apiv4_3/docs/BriefLocation.md +++ b/apiv4_3/docs/BriefLocation.md @@ -11,13 +11,13 @@ Name | Type | Description | Notes **Slug** | **string** | | **Description** | Pointer to **string** | | [optional] **RackCount** | Pointer to **int32** | | [optional] [readonly] [default to 0] -**Depth** | **int32** | | [readonly] +**Depth** | Pointer to **int32** | | [optional] [readonly] ## Methods ### NewBriefLocation -`func NewBriefLocation(id int32, url string, name string, slug string, depth int32, ) *BriefLocation` +`func NewBriefLocation(id int32, url string, name string, slug string, ) *BriefLocation` NewBriefLocation instantiates a new BriefLocation object This constructor will assign default values to properties that have it defined, @@ -206,6 +206,11 @@ and a boolean to check if the value has been set. SetDepth sets Depth field to given value. +### HasDepth + +`func (o *BriefLocation) HasDepth() bool` + +HasDepth 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) diff --git a/apiv4_3/docs/BriefRegion.md b/apiv4_3/docs/BriefRegion.md index 5805799d..f4714832 100644 --- a/apiv4_3/docs/BriefRegion.md +++ b/apiv4_3/docs/BriefRegion.md @@ -11,13 +11,13 @@ Name | Type | Description | Notes **Slug** | **string** | | **Description** | Pointer to **string** | | [optional] **SiteCount** | Pointer to **int32** | | [optional] [readonly] [default to 0] -**Depth** | **int32** | | [readonly] +**Depth** | Pointer to **int32** | | [optional] [readonly] ## Methods ### NewBriefRegion -`func NewBriefRegion(id int32, url string, name string, slug string, depth int32, ) *BriefRegion` +`func NewBriefRegion(id int32, url string, name string, slug string, ) *BriefRegion` NewBriefRegion instantiates a new BriefRegion object This constructor will assign default values to properties that have it defined, @@ -206,6 +206,11 @@ and a boolean to check if the value has been set. SetDepth sets Depth field to given value. +### HasDepth + +`func (o *BriefRegion) HasDepth() bool` + +HasDepth 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) diff --git a/apiv4_3/docs/BriefSiteGroup.md b/apiv4_3/docs/BriefSiteGroup.md index e45d2b58..bbe20dba 100644 --- a/apiv4_3/docs/BriefSiteGroup.md +++ b/apiv4_3/docs/BriefSiteGroup.md @@ -11,13 +11,13 @@ Name | Type | Description | Notes **Slug** | **string** | | **Description** | Pointer to **string** | | [optional] **SiteCount** | Pointer to **int32** | | [optional] [readonly] [default to 0] -**Depth** | **int32** | | [readonly] +**Depth** | Pointer to **int32** | | [optional] [readonly] ## Methods ### NewBriefSiteGroup -`func NewBriefSiteGroup(id int32, url string, name string, slug string, depth int32, ) *BriefSiteGroup` +`func NewBriefSiteGroup(id int32, url string, name string, slug string, ) *BriefSiteGroup` NewBriefSiteGroup instantiates a new BriefSiteGroup object This constructor will assign default values to properties that have it defined, @@ -206,6 +206,11 @@ and a boolean to check if the value has been set. SetDepth sets Depth field to given value. +### HasDepth + +`func (o *BriefSiteGroup) HasDepth() bool` + +HasDepth 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) diff --git a/apiv4_3/docs/BriefTenantGroup.md b/apiv4_3/docs/BriefTenantGroup.md index c81f13bc..abbed0db 100644 --- a/apiv4_3/docs/BriefTenantGroup.md +++ b/apiv4_3/docs/BriefTenantGroup.md @@ -11,13 +11,13 @@ Name | Type | Description | Notes **Slug** | **string** | | **Description** | Pointer to **string** | | [optional] **TenantCount** | Pointer to **int32** | | [optional] [readonly] [default to 0] -**Depth** | **int32** | | [readonly] +**Depth** | Pointer to **int32** | | [optional] [readonly] ## Methods ### NewBriefTenantGroup -`func NewBriefTenantGroup(id int32, url string, name string, slug string, depth int32, ) *BriefTenantGroup` +`func NewBriefTenantGroup(id int32, url string, name string, slug string, ) *BriefTenantGroup` NewBriefTenantGroup instantiates a new BriefTenantGroup object This constructor will assign default values to properties that have it defined, @@ -206,6 +206,11 @@ and a boolean to check if the value has been set. SetDepth sets Depth field to given value. +### HasDepth + +`func (o *BriefTenantGroup) HasDepth() bool` + +HasDepth 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) diff --git a/apiv4_3/docs/BriefWirelessLANGroup.md b/apiv4_3/docs/BriefWirelessLANGroup.md index bf4b1dc1..25ed796d 100644 --- a/apiv4_3/docs/BriefWirelessLANGroup.md +++ b/apiv4_3/docs/BriefWirelessLANGroup.md @@ -11,13 +11,13 @@ Name | Type | Description | Notes **Slug** | **string** | | **Description** | Pointer to **string** | | [optional] **WirelesslanCount** | Pointer to **int32** | | [optional] [readonly] [default to 0] -**Depth** | **int32** | | [readonly] +**Depth** | Pointer to **int32** | | [optional] [readonly] ## Methods ### NewBriefWirelessLANGroup -`func NewBriefWirelessLANGroup(id int32, url string, name string, slug string, depth int32, ) *BriefWirelessLANGroup` +`func NewBriefWirelessLANGroup(id int32, url string, name string, slug string, ) *BriefWirelessLANGroup` NewBriefWirelessLANGroup instantiates a new BriefWirelessLANGroup object This constructor will assign default values to properties that have it defined, @@ -206,6 +206,11 @@ and a boolean to check if the value has been set. SetDepth sets Depth field to given value. +### HasDepth + +`func (o *BriefWirelessLANGroup) HasDepth() bool` + +HasDepth 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) diff --git a/apiv4_3/docs/ContactGroup.md b/apiv4_3/docs/ContactGroup.md index 76f6bfa2..8c376e5b 100644 --- a/apiv4_3/docs/ContactGroup.md +++ b/apiv4_3/docs/ContactGroup.md @@ -18,13 +18,13 @@ Name | Type | Description | Notes **LastUpdated** | **NullableTime** | | [readonly] **ContactCount** | Pointer to **int32** | | [optional] [readonly] [default to 0] **Comments** | Pointer to **string** | | [optional] -**Depth** | **int32** | | [readonly] +**Depth** | Pointer to **int32** | | [optional] [readonly] ## Methods ### NewContactGroup -`func NewContactGroup(id int32, url string, name string, slug string, lastUpdated NullableTime, depth int32, ) *ContactGroup` +`func NewContactGroup(id int32, url string, name string, slug string, lastUpdated NullableTime, ) *ContactGroup` NewContactGroup instantiates a new ContactGroup object This constructor will assign default values to properties that have it defined, @@ -413,6 +413,11 @@ and a boolean to check if the value has been set. SetDepth sets Depth field to given value. +### HasDepth + +`func (o *ContactGroup) HasDepth() bool` + +HasDepth 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) diff --git a/apiv4_3/docs/DeviceRole.md b/apiv4_3/docs/DeviceRole.md index 12ea0952..28f6b7d9 100644 --- a/apiv4_3/docs/DeviceRole.md +++ b/apiv4_3/docs/DeviceRole.md @@ -22,13 +22,13 @@ Name | Type | Description | Notes **DeviceCount** | Pointer to **int32** | | [optional] [readonly] [default to 0] **VirtualmachineCount** | Pointer to **int32** | | [optional] [readonly] [default to 0] **Comments** | Pointer to **string** | | [optional] -**Depth** | **int32** | | [readonly] +**Depth** | Pointer to **int32** | | [optional] [readonly] ## Methods ### NewDeviceRole -`func NewDeviceRole(id int32, url string, name string, slug string, lastUpdated NullableTime, depth int32, ) *DeviceRole` +`func NewDeviceRole(id int32, url string, name string, slug string, lastUpdated NullableTime, ) *DeviceRole` NewDeviceRole instantiates a new DeviceRole object This constructor will assign default values to properties that have it defined, @@ -527,6 +527,11 @@ and a boolean to check if the value has been set. SetDepth sets Depth field to given value. +### HasDepth + +`func (o *DeviceRole) HasDepth() bool` + +HasDepth 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) diff --git a/apiv4_3/docs/InventoryItem.md b/apiv4_3/docs/InventoryItem.md index db5b1bc7..028633b4 100644 --- a/apiv4_3/docs/InventoryItem.md +++ b/apiv4_3/docs/InventoryItem.md @@ -27,13 +27,13 @@ Name | Type | Description | Notes **CustomFields** | Pointer to **map[string]interface{}** | | [optional] **Created** | Pointer to **NullableTime** | | [optional] [readonly] **LastUpdated** | **NullableTime** | | [readonly] -**Depth** | **int32** | | [readonly] +**Depth** | Pointer to **int32** | | [optional] [readonly] ## Methods ### NewInventoryItem -`func NewInventoryItem(id int32, url string, device BriefDevice, name string, component interface{}, lastUpdated NullableTime, depth int32, ) *InventoryItem` +`func NewInventoryItem(id int32, url string, device BriefDevice, name string, component interface{}, lastUpdated NullableTime, ) *InventoryItem` NewInventoryItem instantiates a new InventoryItem object This constructor will assign default values to properties that have it defined, @@ -702,6 +702,11 @@ and a boolean to check if the value has been set. SetDepth sets Depth field to given value. +### HasDepth + +`func (o *InventoryItem) HasDepth() bool` + +HasDepth 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) diff --git a/apiv4_3/docs/InventoryItemTemplate.md b/apiv4_3/docs/InventoryItemTemplate.md index 961dc6a1..db2a2b9f 100644 --- a/apiv4_3/docs/InventoryItemTemplate.md +++ b/apiv4_3/docs/InventoryItemTemplate.md @@ -20,13 +20,13 @@ Name | Type | Description | Notes **Component** | **interface{}** | | [readonly] **Created** | Pointer to **NullableTime** | | [optional] [readonly] **LastUpdated** | **NullableTime** | | [readonly] -**Depth** | **int32** | | [readonly] +**Depth** | Pointer to **int32** | | [optional] [readonly] ## Methods ### NewInventoryItemTemplate -`func NewInventoryItemTemplate(id int32, url string, deviceType BriefDeviceType, name string, component interface{}, lastUpdated NullableTime, depth int32, ) *InventoryItemTemplate` +`func NewInventoryItemTemplate(id int32, url string, deviceType BriefDeviceType, name string, component interface{}, lastUpdated NullableTime, ) *InventoryItemTemplate` NewInventoryItemTemplate instantiates a new InventoryItemTemplate object This constructor will assign default values to properties that have it defined, @@ -510,6 +510,11 @@ and a boolean to check if the value has been set. SetDepth sets Depth field to given value. +### HasDepth + +`func (o *InventoryItemTemplate) HasDepth() bool` + +HasDepth 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) diff --git a/apiv4_3/docs/Location.md b/apiv4_3/docs/Location.md index 4ca1a540..1cf20f10 100644 --- a/apiv4_3/docs/Location.md +++ b/apiv4_3/docs/Location.md @@ -24,13 +24,13 @@ Name | Type | Description | Notes **DeviceCount** | Pointer to **int32** | | [optional] [readonly] [default to 0] **PrefixCount** | Pointer to **int64** | | [optional] [readonly] **Comments** | Pointer to **string** | | [optional] -**Depth** | **int32** | | [readonly] +**Depth** | Pointer to **int32** | | [optional] [readonly] ## Methods ### NewLocation -`func NewLocation(id int32, url string, name string, slug string, site BriefSite, lastUpdated NullableTime, depth int32, ) *Location` +`func NewLocation(id int32, url string, name string, slug string, site BriefSite, lastUpdated NullableTime, ) *Location` NewLocation instantiates a new Location object This constructor will assign default values to properties that have it defined, @@ -574,6 +574,11 @@ and a boolean to check if the value has been set. SetDepth sets Depth field to given value. +### HasDepth + +`func (o *Location) HasDepth() bool` + +HasDepth 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) diff --git a/apiv4_3/docs/NestedContactGroup.md b/apiv4_3/docs/NestedContactGroup.md index 752b13b7..a9f00ef5 100644 --- a/apiv4_3/docs/NestedContactGroup.md +++ b/apiv4_3/docs/NestedContactGroup.md @@ -10,13 +10,13 @@ Name | Type | Description | Notes **Display** | Pointer to **string** | | [optional] [readonly] **Name** | **string** | | **Slug** | **string** | | -**Depth** | **int32** | | [readonly] +**Depth** | Pointer to **int32** | | [optional] [readonly] ## Methods ### NewNestedContactGroup -`func NewNestedContactGroup(id int32, url string, name string, slug string, depth int32, ) *NestedContactGroup` +`func NewNestedContactGroup(id int32, url string, name string, slug string, ) *NestedContactGroup` NewNestedContactGroup instantiates a new NestedContactGroup object This constructor will assign default values to properties that have it defined, @@ -180,6 +180,11 @@ and a boolean to check if the value has been set. SetDepth sets Depth field to given value. +### HasDepth + +`func (o *NestedContactGroup) HasDepth() bool` + +HasDepth 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) diff --git a/apiv4_3/docs/NestedLocation.md b/apiv4_3/docs/NestedLocation.md index 79121cf2..5cef9aeb 100644 --- a/apiv4_3/docs/NestedLocation.md +++ b/apiv4_3/docs/NestedLocation.md @@ -10,13 +10,13 @@ Name | Type | Description | Notes **Display** | Pointer to **string** | | [optional] [readonly] **Name** | **string** | | **Slug** | **string** | | -**Depth** | **int32** | | [readonly] +**Depth** | Pointer to **int32** | | [optional] [readonly] ## Methods ### NewNestedLocation -`func NewNestedLocation(id int32, url string, name string, slug string, depth int32, ) *NestedLocation` +`func NewNestedLocation(id int32, url string, name string, slug string, ) *NestedLocation` NewNestedLocation instantiates a new NestedLocation object This constructor will assign default values to properties that have it defined, @@ -180,6 +180,11 @@ and a boolean to check if the value has been set. SetDepth sets Depth field to given value. +### HasDepth + +`func (o *NestedLocation) HasDepth() bool` + +HasDepth 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) diff --git a/apiv4_3/docs/NestedRegion.md b/apiv4_3/docs/NestedRegion.md index b6139170..17d425e5 100644 --- a/apiv4_3/docs/NestedRegion.md +++ b/apiv4_3/docs/NestedRegion.md @@ -10,13 +10,13 @@ Name | Type | Description | Notes **Display** | Pointer to **string** | | [optional] [readonly] **Name** | **string** | | **Slug** | **string** | | -**Depth** | **int32** | | [readonly] +**Depth** | Pointer to **int32** | | [optional] [readonly] ## Methods ### NewNestedRegion -`func NewNestedRegion(id int32, url string, name string, slug string, depth int32, ) *NestedRegion` +`func NewNestedRegion(id int32, url string, name string, slug string, ) *NestedRegion` NewNestedRegion instantiates a new NestedRegion object This constructor will assign default values to properties that have it defined, @@ -180,6 +180,11 @@ and a boolean to check if the value has been set. SetDepth sets Depth field to given value. +### HasDepth + +`func (o *NestedRegion) HasDepth() bool` + +HasDepth 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) diff --git a/apiv4_3/docs/NestedSiteGroup.md b/apiv4_3/docs/NestedSiteGroup.md index 0edfb1e0..2737ef6d 100644 --- a/apiv4_3/docs/NestedSiteGroup.md +++ b/apiv4_3/docs/NestedSiteGroup.md @@ -10,13 +10,13 @@ Name | Type | Description | Notes **Display** | Pointer to **string** | | [optional] [readonly] **Name** | **string** | | **Slug** | **string** | | -**Depth** | **int32** | | [readonly] +**Depth** | Pointer to **int32** | | [optional] [readonly] ## Methods ### NewNestedSiteGroup -`func NewNestedSiteGroup(id int32, url string, name string, slug string, depth int32, ) *NestedSiteGroup` +`func NewNestedSiteGroup(id int32, url string, name string, slug string, ) *NestedSiteGroup` NewNestedSiteGroup instantiates a new NestedSiteGroup object This constructor will assign default values to properties that have it defined, @@ -180,6 +180,11 @@ and a boolean to check if the value has been set. SetDepth sets Depth field to given value. +### HasDepth + +`func (o *NestedSiteGroup) HasDepth() bool` + +HasDepth 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) diff --git a/apiv4_3/docs/NestedTenantGroup.md b/apiv4_3/docs/NestedTenantGroup.md index 4c2d5c6c..64cd2d0a 100644 --- a/apiv4_3/docs/NestedTenantGroup.md +++ b/apiv4_3/docs/NestedTenantGroup.md @@ -10,13 +10,13 @@ Name | Type | Description | Notes **Display** | Pointer to **string** | | [optional] [readonly] **Name** | **string** | | **Slug** | **string** | | -**Depth** | **int32** | | [readonly] +**Depth** | Pointer to **int32** | | [optional] [readonly] ## Methods ### NewNestedTenantGroup -`func NewNestedTenantGroup(id int32, url string, name string, slug string, depth int32, ) *NestedTenantGroup` +`func NewNestedTenantGroup(id int32, url string, name string, slug string, ) *NestedTenantGroup` NewNestedTenantGroup instantiates a new NestedTenantGroup object This constructor will assign default values to properties that have it defined, @@ -180,6 +180,11 @@ and a boolean to check if the value has been set. SetDepth sets Depth field to given value. +### HasDepth + +`func (o *NestedTenantGroup) HasDepth() bool` + +HasDepth 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) diff --git a/apiv4_3/docs/NestedWirelessLANGroup.md b/apiv4_3/docs/NestedWirelessLANGroup.md index a5d0c0cc..14792fda 100644 --- a/apiv4_3/docs/NestedWirelessLANGroup.md +++ b/apiv4_3/docs/NestedWirelessLANGroup.md @@ -10,13 +10,13 @@ Name | Type | Description | Notes **Display** | Pointer to **string** | | [optional] [readonly] **Name** | **string** | | **Slug** | **string** | | -**Depth** | **int32** | | [readonly] +**Depth** | Pointer to **int32** | | [optional] [readonly] ## Methods ### NewNestedWirelessLANGroup -`func NewNestedWirelessLANGroup(id int32, url string, name string, slug string, depth int32, ) *NestedWirelessLANGroup` +`func NewNestedWirelessLANGroup(id int32, url string, name string, slug string, ) *NestedWirelessLANGroup` NewNestedWirelessLANGroup instantiates a new NestedWirelessLANGroup object This constructor will assign default values to properties that have it defined, @@ -180,6 +180,11 @@ and a boolean to check if the value has been set. SetDepth sets Depth field to given value. +### HasDepth + +`func (o *NestedWirelessLANGroup) HasDepth() bool` + +HasDepth 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) diff --git a/apiv4_3/docs/Prefix.md b/apiv4_3/docs/Prefix.md index 72c8ed6d..927f8fe6 100644 --- a/apiv4_3/docs/Prefix.md +++ b/apiv4_3/docs/Prefix.md @@ -27,13 +27,13 @@ Name | Type | Description | Notes **Created** | Pointer to **NullableTime** | | [optional] [readonly] **LastUpdated** | **NullableTime** | | [readonly] **Children** | **int32** | | [readonly] -**Depth** | **int32** | | [readonly] +**Depth** | Pointer to **int32** | | [optional] [readonly] ## Methods ### NewPrefix -`func NewPrefix(id int32, url string, family AggregateFamily, prefix string, lastUpdated NullableTime, children int32, depth int32, ) *Prefix` +`func NewPrefix(id int32, url string, family AggregateFamily, prefix string, lastUpdated NullableTime, children int32, ) *Prefix` NewPrefix instantiates a new Prefix object This constructor will assign default values to properties that have it defined, @@ -702,6 +702,11 @@ and a boolean to check if the value has been set. SetDepth sets Depth field to given value. +### HasDepth + +`func (o *Prefix) HasDepth() bool` + +HasDepth 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) diff --git a/apiv4_3/docs/Region.md b/apiv4_3/docs/Region.md index 96f955eb..46faefbd 100644 --- a/apiv4_3/docs/Region.md +++ b/apiv4_3/docs/Region.md @@ -19,13 +19,13 @@ Name | Type | Description | Notes **SiteCount** | Pointer to **int32** | | [optional] [readonly] [default to 0] **PrefixCount** | Pointer to **int64** | | [optional] [readonly] **Comments** | Pointer to **string** | | [optional] -**Depth** | **int32** | | [readonly] +**Depth** | Pointer to **int32** | | [optional] [readonly] ## Methods ### NewRegion -`func NewRegion(id int32, url string, name string, slug string, lastUpdated NullableTime, depth int32, ) *Region` +`func NewRegion(id int32, url string, name string, slug string, lastUpdated NullableTime, ) *Region` NewRegion instantiates a new Region object This constructor will assign default values to properties that have it defined, @@ -439,6 +439,11 @@ and a boolean to check if the value has been set. SetDepth sets Depth field to given value. +### HasDepth + +`func (o *Region) HasDepth() bool` + +HasDepth 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) diff --git a/apiv4_3/docs/SiteGroup.md b/apiv4_3/docs/SiteGroup.md index 6e6ee46c..d5c8833c 100644 --- a/apiv4_3/docs/SiteGroup.md +++ b/apiv4_3/docs/SiteGroup.md @@ -19,13 +19,13 @@ Name | Type | Description | Notes **SiteCount** | Pointer to **int32** | | [optional] [readonly] [default to 0] **PrefixCount** | Pointer to **int64** | | [optional] [readonly] **Comments** | Pointer to **string** | | [optional] -**Depth** | **int32** | | [readonly] +**Depth** | Pointer to **int32** | | [optional] [readonly] ## Methods ### NewSiteGroup -`func NewSiteGroup(id int32, url string, name string, slug string, lastUpdated NullableTime, depth int32, ) *SiteGroup` +`func NewSiteGroup(id int32, url string, name string, slug string, lastUpdated NullableTime, ) *SiteGroup` NewSiteGroup instantiates a new SiteGroup object This constructor will assign default values to properties that have it defined, @@ -439,6 +439,11 @@ and a boolean to check if the value has been set. SetDepth sets Depth field to given value. +### HasDepth + +`func (o *SiteGroup) HasDepth() bool` + +HasDepth 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) diff --git a/apiv4_3/docs/TenantGroup.md b/apiv4_3/docs/TenantGroup.md index 1df47bbc..47d0443b 100644 --- a/apiv4_3/docs/TenantGroup.md +++ b/apiv4_3/docs/TenantGroup.md @@ -18,13 +18,13 @@ Name | Type | Description | Notes **LastUpdated** | **NullableTime** | | [readonly] **TenantCount** | Pointer to **int32** | | [optional] [readonly] [default to 0] **Comments** | Pointer to **string** | | [optional] -**Depth** | **int32** | | [readonly] +**Depth** | Pointer to **int32** | | [optional] [readonly] ## Methods ### NewTenantGroup -`func NewTenantGroup(id int32, url string, name string, slug string, lastUpdated NullableTime, depth int32, ) *TenantGroup` +`func NewTenantGroup(id int32, url string, name string, slug string, lastUpdated NullableTime, ) *TenantGroup` NewTenantGroup instantiates a new TenantGroup object This constructor will assign default values to properties that have it defined, @@ -413,6 +413,11 @@ and a boolean to check if the value has been set. SetDepth sets Depth field to given value. +### HasDepth + +`func (o *TenantGroup) HasDepth() bool` + +HasDepth 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) diff --git a/apiv4_3/docs/WirelessLANGroup.md b/apiv4_3/docs/WirelessLANGroup.md index 9d43e953..21cffc45 100644 --- a/apiv4_3/docs/WirelessLANGroup.md +++ b/apiv4_3/docs/WirelessLANGroup.md @@ -18,13 +18,13 @@ Name | Type | Description | Notes **LastUpdated** | **NullableTime** | | [readonly] **WirelesslanCount** | Pointer to **int32** | | [optional] [readonly] [default to 0] **Comments** | Pointer to **string** | | [optional] -**Depth** | **int32** | | [readonly] +**Depth** | Pointer to **int32** | | [optional] [readonly] ## Methods ### NewWirelessLANGroup -`func NewWirelessLANGroup(id int32, url string, name string, slug string, lastUpdated NullableTime, depth int32, ) *WirelessLANGroup` +`func NewWirelessLANGroup(id int32, url string, name string, slug string, lastUpdated NullableTime, ) *WirelessLANGroup` NewWirelessLANGroup instantiates a new WirelessLANGroup object This constructor will assign default values to properties that have it defined, @@ -413,6 +413,11 @@ and a boolean to check if the value has been set. SetDepth sets Depth field to given value. +### HasDepth + +`func (o *WirelessLANGroup) HasDepth() bool` + +HasDepth 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) diff --git a/apiv4_3/model_brief_device_role.go b/apiv4_3/model_brief_device_role.go index 7ed5ce61..4ce5a5fc 100644 --- a/apiv4_3/model_brief_device_role.go +++ b/apiv4_3/model_brief_device_role.go @@ -28,7 +28,7 @@ type BriefDeviceRole struct { Description *string `json:"description,omitempty"` DeviceCount *int32 `json:"device_count,omitempty"` VirtualmachineCount *int32 `json:"virtualmachine_count,omitempty"` - Depth int32 `json:"_depth"` + Depth *int32 `json:"_depth,omitempty"` AdditionalProperties map[string]interface{} } @@ -38,13 +38,12 @@ type _BriefDeviceRole BriefDeviceRole // 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 -func NewBriefDeviceRole(id int32, url string, name string, slug string, depth int32) *BriefDeviceRole { +func NewBriefDeviceRole(id int32, url string, name string, slug string) *BriefDeviceRole { this := BriefDeviceRole{} this.Id = id this.Url = url this.Name = name this.Slug = slug - this.Depth = depth return &this } @@ -280,28 +279,36 @@ func (o *BriefDeviceRole) SetVirtualmachineCount(v int32) { o.VirtualmachineCount = &v } -// GetDepth returns the Depth field value +// GetDepth returns the Depth field value if set, zero value otherwise. func (o *BriefDeviceRole) GetDepth() int32 { - if o == nil { + if o == nil || IsNil(o.Depth) { var ret int32 return ret } - - return o.Depth + return *o.Depth } -// GetDepthOk returns a tuple with the Depth field value +// GetDepthOk returns a tuple with the Depth field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BriefDeviceRole) GetDepthOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.Depth) { return nil, false } - return &o.Depth, true + return o.Depth, true +} + +// HasDepth returns a boolean if a field has been set. +func (o *BriefDeviceRole) HasDepth() bool { + if o != nil && !IsNil(o.Depth) { + return true + } + + return false } -// SetDepth sets field value +// SetDepth gets a reference to the given int32 and assigns it to the Depth field. func (o *BriefDeviceRole) SetDepth(v int32) { - o.Depth = v + o.Depth = &v } func (o BriefDeviceRole) MarshalJSON() ([]byte, error) { @@ -330,7 +337,9 @@ func (o BriefDeviceRole) ToMap() (map[string]interface{}, error) { if !IsNil(o.VirtualmachineCount) { toSerialize["virtualmachine_count"] = o.VirtualmachineCount } - toSerialize["_depth"] = o.Depth + if !IsNil(o.Depth) { + toSerialize["_depth"] = o.Depth + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -348,7 +357,6 @@ func (o *BriefDeviceRole) UnmarshalJSON(data []byte) (err error) { "url", "name", "slug", - "_depth", } // defaultValueFuncMap captures the default values for required properties. diff --git a/apiv4_3/model_brief_location.go b/apiv4_3/model_brief_location.go index 1e332905..f0d59b6c 100644 --- a/apiv4_3/model_brief_location.go +++ b/apiv4_3/model_brief_location.go @@ -27,7 +27,7 @@ type BriefLocation struct { Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` Description *string `json:"description,omitempty"` RackCount *int32 `json:"rack_count,omitempty"` - Depth int32 `json:"_depth"` + Depth *int32 `json:"_depth,omitempty"` AdditionalProperties map[string]interface{} } @@ -37,13 +37,12 @@ type _BriefLocation BriefLocation // 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 -func NewBriefLocation(id int32, url string, name string, slug string, depth int32) *BriefLocation { +func NewBriefLocation(id int32, url string, name string, slug string) *BriefLocation { this := BriefLocation{} this.Id = id this.Url = url this.Name = name this.Slug = slug - this.Depth = depth return &this } @@ -247,28 +246,36 @@ func (o *BriefLocation) SetRackCount(v int32) { o.RackCount = &v } -// GetDepth returns the Depth field value +// GetDepth returns the Depth field value if set, zero value otherwise. func (o *BriefLocation) GetDepth() int32 { - if o == nil { + if o == nil || IsNil(o.Depth) { var ret int32 return ret } - - return o.Depth + return *o.Depth } -// GetDepthOk returns a tuple with the Depth field value +// GetDepthOk returns a tuple with the Depth field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BriefLocation) GetDepthOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.Depth) { return nil, false } - return &o.Depth, true + return o.Depth, true +} + +// HasDepth returns a boolean if a field has been set. +func (o *BriefLocation) HasDepth() bool { + if o != nil && !IsNil(o.Depth) { + return true + } + + return false } -// SetDepth sets field value +// SetDepth gets a reference to the given int32 and assigns it to the Depth field. func (o *BriefLocation) SetDepth(v int32) { - o.Depth = v + o.Depth = &v } func (o BriefLocation) MarshalJSON() ([]byte, error) { @@ -294,7 +301,9 @@ func (o BriefLocation) ToMap() (map[string]interface{}, error) { if !IsNil(o.RackCount) { toSerialize["rack_count"] = o.RackCount } - toSerialize["_depth"] = o.Depth + if !IsNil(o.Depth) { + toSerialize["_depth"] = o.Depth + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -312,7 +321,6 @@ func (o *BriefLocation) UnmarshalJSON(data []byte) (err error) { "url", "name", "slug", - "_depth", } // defaultValueFuncMap captures the default values for required properties. diff --git a/apiv4_3/model_brief_region.go b/apiv4_3/model_brief_region.go index dfa682f2..4fe8c255 100644 --- a/apiv4_3/model_brief_region.go +++ b/apiv4_3/model_brief_region.go @@ -27,7 +27,7 @@ type BriefRegion struct { Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` Description *string `json:"description,omitempty"` SiteCount *int32 `json:"site_count,omitempty"` - Depth int32 `json:"_depth"` + Depth *int32 `json:"_depth,omitempty"` AdditionalProperties map[string]interface{} } @@ -37,13 +37,12 @@ type _BriefRegion BriefRegion // 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 -func NewBriefRegion(id int32, url string, name string, slug string, depth int32) *BriefRegion { +func NewBriefRegion(id int32, url string, name string, slug string) *BriefRegion { this := BriefRegion{} this.Id = id this.Url = url this.Name = name this.Slug = slug - this.Depth = depth return &this } @@ -247,28 +246,36 @@ func (o *BriefRegion) SetSiteCount(v int32) { o.SiteCount = &v } -// GetDepth returns the Depth field value +// GetDepth returns the Depth field value if set, zero value otherwise. func (o *BriefRegion) GetDepth() int32 { - if o == nil { + if o == nil || IsNil(o.Depth) { var ret int32 return ret } - - return o.Depth + return *o.Depth } -// GetDepthOk returns a tuple with the Depth field value +// GetDepthOk returns a tuple with the Depth field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BriefRegion) GetDepthOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.Depth) { return nil, false } - return &o.Depth, true + return o.Depth, true +} + +// HasDepth returns a boolean if a field has been set. +func (o *BriefRegion) HasDepth() bool { + if o != nil && !IsNil(o.Depth) { + return true + } + + return false } -// SetDepth sets field value +// SetDepth gets a reference to the given int32 and assigns it to the Depth field. func (o *BriefRegion) SetDepth(v int32) { - o.Depth = v + o.Depth = &v } func (o BriefRegion) MarshalJSON() ([]byte, error) { @@ -294,7 +301,9 @@ func (o BriefRegion) ToMap() (map[string]interface{}, error) { if !IsNil(o.SiteCount) { toSerialize["site_count"] = o.SiteCount } - toSerialize["_depth"] = o.Depth + if !IsNil(o.Depth) { + toSerialize["_depth"] = o.Depth + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -312,7 +321,6 @@ func (o *BriefRegion) UnmarshalJSON(data []byte) (err error) { "url", "name", "slug", - "_depth", } // defaultValueFuncMap captures the default values for required properties. diff --git a/apiv4_3/model_brief_site_group.go b/apiv4_3/model_brief_site_group.go index ea5e039c..d297d791 100644 --- a/apiv4_3/model_brief_site_group.go +++ b/apiv4_3/model_brief_site_group.go @@ -27,7 +27,7 @@ type BriefSiteGroup struct { Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` Description *string `json:"description,omitempty"` SiteCount *int32 `json:"site_count,omitempty"` - Depth int32 `json:"_depth"` + Depth *int32 `json:"_depth,omitempty"` AdditionalProperties map[string]interface{} } @@ -37,13 +37,12 @@ type _BriefSiteGroup BriefSiteGroup // 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 -func NewBriefSiteGroup(id int32, url string, name string, slug string, depth int32) *BriefSiteGroup { +func NewBriefSiteGroup(id int32, url string, name string, slug string) *BriefSiteGroup { this := BriefSiteGroup{} this.Id = id this.Url = url this.Name = name this.Slug = slug - this.Depth = depth return &this } @@ -247,28 +246,36 @@ func (o *BriefSiteGroup) SetSiteCount(v int32) { o.SiteCount = &v } -// GetDepth returns the Depth field value +// GetDepth returns the Depth field value if set, zero value otherwise. func (o *BriefSiteGroup) GetDepth() int32 { - if o == nil { + if o == nil || IsNil(o.Depth) { var ret int32 return ret } - - return o.Depth + return *o.Depth } -// GetDepthOk returns a tuple with the Depth field value +// GetDepthOk returns a tuple with the Depth field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BriefSiteGroup) GetDepthOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.Depth) { return nil, false } - return &o.Depth, true + return o.Depth, true +} + +// HasDepth returns a boolean if a field has been set. +func (o *BriefSiteGroup) HasDepth() bool { + if o != nil && !IsNil(o.Depth) { + return true + } + + return false } -// SetDepth sets field value +// SetDepth gets a reference to the given int32 and assigns it to the Depth field. func (o *BriefSiteGroup) SetDepth(v int32) { - o.Depth = v + o.Depth = &v } func (o BriefSiteGroup) MarshalJSON() ([]byte, error) { @@ -294,7 +301,9 @@ func (o BriefSiteGroup) ToMap() (map[string]interface{}, error) { if !IsNil(o.SiteCount) { toSerialize["site_count"] = o.SiteCount } - toSerialize["_depth"] = o.Depth + if !IsNil(o.Depth) { + toSerialize["_depth"] = o.Depth + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -312,7 +321,6 @@ func (o *BriefSiteGroup) UnmarshalJSON(data []byte) (err error) { "url", "name", "slug", - "_depth", } // defaultValueFuncMap captures the default values for required properties. diff --git a/apiv4_3/model_brief_tenant_group.go b/apiv4_3/model_brief_tenant_group.go index 726f531c..81d14ea9 100644 --- a/apiv4_3/model_brief_tenant_group.go +++ b/apiv4_3/model_brief_tenant_group.go @@ -27,7 +27,7 @@ type BriefTenantGroup struct { Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` Description *string `json:"description,omitempty"` TenantCount *int32 `json:"tenant_count,omitempty"` - Depth int32 `json:"_depth"` + Depth *int32 `json:"_depth,omitempty"` AdditionalProperties map[string]interface{} } @@ -37,13 +37,12 @@ type _BriefTenantGroup BriefTenantGroup // 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 -func NewBriefTenantGroup(id int32, url string, name string, slug string, depth int32) *BriefTenantGroup { +func NewBriefTenantGroup(id int32, url string, name string, slug string) *BriefTenantGroup { this := BriefTenantGroup{} this.Id = id this.Url = url this.Name = name this.Slug = slug - this.Depth = depth return &this } @@ -247,28 +246,36 @@ func (o *BriefTenantGroup) SetTenantCount(v int32) { o.TenantCount = &v } -// GetDepth returns the Depth field value +// GetDepth returns the Depth field value if set, zero value otherwise. func (o *BriefTenantGroup) GetDepth() int32 { - if o == nil { + if o == nil || IsNil(o.Depth) { var ret int32 return ret } - - return o.Depth + return *o.Depth } -// GetDepthOk returns a tuple with the Depth field value +// GetDepthOk returns a tuple with the Depth field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BriefTenantGroup) GetDepthOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.Depth) { return nil, false } - return &o.Depth, true + return o.Depth, true +} + +// HasDepth returns a boolean if a field has been set. +func (o *BriefTenantGroup) HasDepth() bool { + if o != nil && !IsNil(o.Depth) { + return true + } + + return false } -// SetDepth sets field value +// SetDepth gets a reference to the given int32 and assigns it to the Depth field. func (o *BriefTenantGroup) SetDepth(v int32) { - o.Depth = v + o.Depth = &v } func (o BriefTenantGroup) MarshalJSON() ([]byte, error) { @@ -294,7 +301,9 @@ func (o BriefTenantGroup) ToMap() (map[string]interface{}, error) { if !IsNil(o.TenantCount) { toSerialize["tenant_count"] = o.TenantCount } - toSerialize["_depth"] = o.Depth + if !IsNil(o.Depth) { + toSerialize["_depth"] = o.Depth + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -312,7 +321,6 @@ func (o *BriefTenantGroup) UnmarshalJSON(data []byte) (err error) { "url", "name", "slug", - "_depth", } // defaultValueFuncMap captures the default values for required properties. diff --git a/apiv4_3/model_brief_wireless_lan_group.go b/apiv4_3/model_brief_wireless_lan_group.go index 8a8e61b5..37b2fc52 100644 --- a/apiv4_3/model_brief_wireless_lan_group.go +++ b/apiv4_3/model_brief_wireless_lan_group.go @@ -27,7 +27,7 @@ type BriefWirelessLANGroup struct { Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` Description *string `json:"description,omitempty"` WirelesslanCount *int32 `json:"wirelesslan_count,omitempty"` - Depth int32 `json:"_depth"` + Depth *int32 `json:"_depth,omitempty"` AdditionalProperties map[string]interface{} } @@ -37,13 +37,12 @@ type _BriefWirelessLANGroup BriefWirelessLANGroup // 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 -func NewBriefWirelessLANGroup(id int32, url string, name string, slug string, depth int32) *BriefWirelessLANGroup { +func NewBriefWirelessLANGroup(id int32, url string, name string, slug string) *BriefWirelessLANGroup { this := BriefWirelessLANGroup{} this.Id = id this.Url = url this.Name = name this.Slug = slug - this.Depth = depth return &this } @@ -247,28 +246,36 @@ func (o *BriefWirelessLANGroup) SetWirelesslanCount(v int32) { o.WirelesslanCount = &v } -// GetDepth returns the Depth field value +// GetDepth returns the Depth field value if set, zero value otherwise. func (o *BriefWirelessLANGroup) GetDepth() int32 { - if o == nil { + if o == nil || IsNil(o.Depth) { var ret int32 return ret } - - return o.Depth + return *o.Depth } -// GetDepthOk returns a tuple with the Depth field value +// GetDepthOk returns a tuple with the Depth field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BriefWirelessLANGroup) GetDepthOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.Depth) { return nil, false } - return &o.Depth, true + return o.Depth, true +} + +// HasDepth returns a boolean if a field has been set. +func (o *BriefWirelessLANGroup) HasDepth() bool { + if o != nil && !IsNil(o.Depth) { + return true + } + + return false } -// SetDepth sets field value +// SetDepth gets a reference to the given int32 and assigns it to the Depth field. func (o *BriefWirelessLANGroup) SetDepth(v int32) { - o.Depth = v + o.Depth = &v } func (o BriefWirelessLANGroup) MarshalJSON() ([]byte, error) { @@ -294,7 +301,9 @@ func (o BriefWirelessLANGroup) ToMap() (map[string]interface{}, error) { if !IsNil(o.WirelesslanCount) { toSerialize["wirelesslan_count"] = o.WirelesslanCount } - toSerialize["_depth"] = o.Depth + if !IsNil(o.Depth) { + toSerialize["_depth"] = o.Depth + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -312,7 +321,6 @@ func (o *BriefWirelessLANGroup) UnmarshalJSON(data []byte) (err error) { "url", "name", "slug", - "_depth", } // defaultValueFuncMap captures the default values for required properties. diff --git a/apiv4_3/model_contact_group.go b/apiv4_3/model_contact_group.go index f0784d8e..80d8e315 100644 --- a/apiv4_3/model_contact_group.go +++ b/apiv4_3/model_contact_group.go @@ -35,7 +35,7 @@ type ContactGroup struct { LastUpdated NullableTime `json:"last_updated"` ContactCount *int32 `json:"contact_count,omitempty"` Comments *string `json:"comments,omitempty"` - Depth int32 `json:"_depth"` + Depth *int32 `json:"_depth,omitempty"` AdditionalProperties map[string]interface{} } @@ -45,14 +45,13 @@ type _ContactGroup ContactGroup // 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 -func NewContactGroup(id int32, url string, name string, slug string, lastUpdated NullableTime, depth int32) *ContactGroup { +func NewContactGroup(id int32, url string, name string, slug string, lastUpdated NullableTime) *ContactGroup { this := ContactGroup{} this.Id = id this.Url = url this.Name = name this.Slug = slug this.LastUpdated = lastUpdated - this.Depth = depth return &this } @@ -496,28 +495,36 @@ func (o *ContactGroup) SetComments(v string) { o.Comments = &v } -// GetDepth returns the Depth field value +// GetDepth returns the Depth field value if set, zero value otherwise. func (o *ContactGroup) GetDepth() int32 { - if o == nil { + if o == nil || IsNil(o.Depth) { var ret int32 return ret } - - return o.Depth + return *o.Depth } -// GetDepthOk returns a tuple with the Depth field value +// GetDepthOk returns a tuple with the Depth field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ContactGroup) GetDepthOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.Depth) { return nil, false } - return &o.Depth, true + return o.Depth, true +} + +// HasDepth returns a boolean if a field has been set. +func (o *ContactGroup) HasDepth() bool { + if o != nil && !IsNil(o.Depth) { + return true + } + + return false } -// SetDepth sets field value +// SetDepth gets a reference to the given int32 and assigns it to the Depth field. func (o *ContactGroup) SetDepth(v int32) { - o.Depth = v + o.Depth = &v } func (o ContactGroup) MarshalJSON() ([]byte, error) { @@ -562,7 +569,9 @@ func (o ContactGroup) ToMap() (map[string]interface{}, error) { if !IsNil(o.Comments) { toSerialize["comments"] = o.Comments } - toSerialize["_depth"] = o.Depth + if !IsNil(o.Depth) { + toSerialize["_depth"] = o.Depth + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -581,7 +590,6 @@ func (o *ContactGroup) UnmarshalJSON(data []byte) (err error) { "name", "slug", "last_updated", - "_depth", } // defaultValueFuncMap captures the default values for required properties. diff --git a/apiv4_3/model_device_role.go b/apiv4_3/model_device_role.go index e21839de..67bbda29 100644 --- a/apiv4_3/model_device_role.go +++ b/apiv4_3/model_device_role.go @@ -40,7 +40,7 @@ type DeviceRole struct { DeviceCount *int32 `json:"device_count,omitempty"` VirtualmachineCount *int32 `json:"virtualmachine_count,omitempty"` Comments *string `json:"comments,omitempty"` - Depth int32 `json:"_depth"` + Depth *int32 `json:"_depth,omitempty"` AdditionalProperties map[string]interface{} } @@ -50,14 +50,13 @@ type _DeviceRole DeviceRole // 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 -func NewDeviceRole(id int32, url string, name string, slug string, lastUpdated NullableTime, depth int32) *DeviceRole { +func NewDeviceRole(id int32, url string, name string, slug string, lastUpdated NullableTime) *DeviceRole { this := DeviceRole{} this.Id = id this.Url = url this.Name = name this.Slug = slug this.LastUpdated = lastUpdated - this.Depth = depth return &this } @@ -640,28 +639,36 @@ func (o *DeviceRole) SetComments(v string) { o.Comments = &v } -// GetDepth returns the Depth field value +// GetDepth returns the Depth field value if set, zero value otherwise. func (o *DeviceRole) GetDepth() int32 { - if o == nil { + if o == nil || IsNil(o.Depth) { var ret int32 return ret } - - return o.Depth + return *o.Depth } -// GetDepthOk returns a tuple with the Depth field value +// GetDepthOk returns a tuple with the Depth field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *DeviceRole) GetDepthOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.Depth) { return nil, false } - return &o.Depth, true + return o.Depth, true +} + +// HasDepth returns a boolean if a field has been set. +func (o *DeviceRole) HasDepth() bool { + if o != nil && !IsNil(o.Depth) { + return true + } + + return false } -// SetDepth sets field value +// SetDepth gets a reference to the given int32 and assigns it to the Depth field. func (o *DeviceRole) SetDepth(v int32) { - o.Depth = v + o.Depth = &v } func (o DeviceRole) MarshalJSON() ([]byte, error) { @@ -718,7 +725,9 @@ func (o DeviceRole) ToMap() (map[string]interface{}, error) { if !IsNil(o.Comments) { toSerialize["comments"] = o.Comments } - toSerialize["_depth"] = o.Depth + if !IsNil(o.Depth) { + toSerialize["_depth"] = o.Depth + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -737,7 +746,6 @@ func (o *DeviceRole) UnmarshalJSON(data []byte) (err error) { "name", "slug", "last_updated", - "_depth", } // defaultValueFuncMap captures the default values for required properties. diff --git a/apiv4_3/model_inventory_item.go b/apiv4_3/model_inventory_item.go index 158669bb..9fd11146 100644 --- a/apiv4_3/model_inventory_item.go +++ b/apiv4_3/model_inventory_item.go @@ -48,7 +48,7 @@ type InventoryItem struct { CustomFields map[string]interface{} `json:"custom_fields,omitempty"` Created NullableTime `json:"created,omitempty"` LastUpdated NullableTime `json:"last_updated"` - Depth int32 `json:"_depth"` + Depth *int32 `json:"_depth,omitempty"` AdditionalProperties map[string]interface{} } @@ -58,7 +58,7 @@ type _InventoryItem InventoryItem // 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 -func NewInventoryItem(id int32, url string, device BriefDevice, name string, component interface{}, lastUpdated NullableTime, depth int32) *InventoryItem { +func NewInventoryItem(id int32, url string, device BriefDevice, name string, component interface{}, lastUpdated NullableTime) *InventoryItem { this := InventoryItem{} this.Id = id this.Url = url @@ -66,7 +66,6 @@ func NewInventoryItem(id int32, url string, device BriefDevice, name string, com this.Name = name this.Component = component this.LastUpdated = lastUpdated - this.Depth = depth return &this } @@ -847,28 +846,36 @@ func (o *InventoryItem) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } -// GetDepth returns the Depth field value +// GetDepth returns the Depth field value if set, zero value otherwise. func (o *InventoryItem) GetDepth() int32 { - if o == nil { + if o == nil || IsNil(o.Depth) { var ret int32 return ret } - - return o.Depth + return *o.Depth } -// GetDepthOk returns a tuple with the Depth field value +// GetDepthOk returns a tuple with the Depth field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *InventoryItem) GetDepthOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.Depth) { return nil, false } - return &o.Depth, true + return o.Depth, true +} + +// HasDepth returns a boolean if a field has been set. +func (o *InventoryItem) HasDepth() bool { + if o != nil && !IsNil(o.Depth) { + return true + } + + return false } -// SetDepth sets field value +// SetDepth gets a reference to the given int32 and assigns it to the Depth field. func (o *InventoryItem) SetDepth(v int32) { - o.Depth = v + o.Depth = &v } func (o InventoryItem) MarshalJSON() ([]byte, error) { @@ -940,7 +947,9 @@ func (o InventoryItem) ToMap() (map[string]interface{}, error) { toSerialize["created"] = o.Created.Get() } toSerialize["last_updated"] = o.LastUpdated.Get() - toSerialize["_depth"] = o.Depth + if !IsNil(o.Depth) { + toSerialize["_depth"] = o.Depth + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -960,7 +969,6 @@ func (o *InventoryItem) UnmarshalJSON(data []byte) (err error) { "name", "component", "last_updated", - "_depth", } // defaultValueFuncMap captures the default values for required properties. diff --git a/apiv4_3/model_inventory_item_template.go b/apiv4_3/model_inventory_item_template.go index 96254611..4210b1ed 100644 --- a/apiv4_3/model_inventory_item_template.go +++ b/apiv4_3/model_inventory_item_template.go @@ -40,7 +40,7 @@ type InventoryItemTemplate struct { Component interface{} `json:"component"` Created NullableTime `json:"created,omitempty"` LastUpdated NullableTime `json:"last_updated"` - Depth int32 `json:"_depth"` + Depth *int32 `json:"_depth,omitempty"` AdditionalProperties map[string]interface{} } @@ -50,7 +50,7 @@ type _InventoryItemTemplate InventoryItemTemplate // 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 -func NewInventoryItemTemplate(id int32, url string, deviceType BriefDeviceType, name string, component interface{}, lastUpdated NullableTime, depth int32) *InventoryItemTemplate { +func NewInventoryItemTemplate(id int32, url string, deviceType BriefDeviceType, name string, component interface{}, lastUpdated NullableTime) *InventoryItemTemplate { this := InventoryItemTemplate{} this.Id = id this.Url = url @@ -58,7 +58,6 @@ func NewInventoryItemTemplate(id int32, url string, deviceType BriefDeviceType, this.Name = name this.Component = component this.LastUpdated = lastUpdated - this.Depth = depth return &this } @@ -604,28 +603,36 @@ func (o *InventoryItemTemplate) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } -// GetDepth returns the Depth field value +// GetDepth returns the Depth field value if set, zero value otherwise. func (o *InventoryItemTemplate) GetDepth() int32 { - if o == nil { + if o == nil || IsNil(o.Depth) { var ret int32 return ret } - - return o.Depth + return *o.Depth } -// GetDepthOk returns a tuple with the Depth field value +// GetDepthOk returns a tuple with the Depth field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *InventoryItemTemplate) GetDepthOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.Depth) { return nil, false } - return &o.Depth, true + return o.Depth, true +} + +// HasDepth returns a boolean if a field has been set. +func (o *InventoryItemTemplate) HasDepth() bool { + if o != nil && !IsNil(o.Depth) { + return true + } + + return false } -// SetDepth sets field value +// SetDepth gets a reference to the given int32 and assigns it to the Depth field. func (o *InventoryItemTemplate) SetDepth(v int32) { - o.Depth = v + o.Depth = &v } func (o InventoryItemTemplate) MarshalJSON() ([]byte, error) { @@ -676,7 +683,9 @@ func (o InventoryItemTemplate) ToMap() (map[string]interface{}, error) { toSerialize["created"] = o.Created.Get() } toSerialize["last_updated"] = o.LastUpdated.Get() - toSerialize["_depth"] = o.Depth + if !IsNil(o.Depth) { + toSerialize["_depth"] = o.Depth + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -696,7 +705,6 @@ func (o *InventoryItemTemplate) UnmarshalJSON(data []byte) (err error) { "name", "component", "last_updated", - "_depth", } // defaultValueFuncMap captures the default values for required properties. diff --git a/apiv4_3/model_location.go b/apiv4_3/model_location.go index 541ec076..d189385d 100644 --- a/apiv4_3/model_location.go +++ b/apiv4_3/model_location.go @@ -42,7 +42,7 @@ type Location struct { DeviceCount *int32 `json:"device_count,omitempty"` PrefixCount *int64 `json:"prefix_count,omitempty"` Comments *string `json:"comments,omitempty"` - Depth int32 `json:"_depth"` + Depth *int32 `json:"_depth,omitempty"` AdditionalProperties map[string]interface{} } @@ -52,7 +52,7 @@ type _Location Location // 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 -func NewLocation(id int32, url string, name string, slug string, site BriefSite, lastUpdated NullableTime, depth int32) *Location { +func NewLocation(id int32, url string, name string, slug string, site BriefSite, lastUpdated NullableTime) *Location { this := Location{} this.Id = id this.Url = url @@ -60,7 +60,6 @@ func NewLocation(id int32, url string, name string, slug string, site BriefSite, this.Slug = slug this.Site = site this.LastUpdated = lastUpdated - this.Depth = depth return &this } @@ -699,28 +698,36 @@ func (o *Location) SetComments(v string) { o.Comments = &v } -// GetDepth returns the Depth field value +// GetDepth returns the Depth field value if set, zero value otherwise. func (o *Location) GetDepth() int32 { - if o == nil { + if o == nil || IsNil(o.Depth) { var ret int32 return ret } - - return o.Depth + return *o.Depth } -// GetDepthOk returns a tuple with the Depth field value +// GetDepthOk returns a tuple with the Depth field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Location) GetDepthOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.Depth) { return nil, false } - return &o.Depth, true + return o.Depth, true +} + +// HasDepth returns a boolean if a field has been set. +func (o *Location) HasDepth() bool { + if o != nil && !IsNil(o.Depth) { + return true + } + + return false } -// SetDepth sets field value +// SetDepth gets a reference to the given int32 and assigns it to the Depth field. func (o *Location) SetDepth(v int32) { - o.Depth = v + o.Depth = &v } func (o Location) MarshalJSON() ([]byte, error) { @@ -781,7 +788,9 @@ func (o Location) ToMap() (map[string]interface{}, error) { if !IsNil(o.Comments) { toSerialize["comments"] = o.Comments } - toSerialize["_depth"] = o.Depth + if !IsNil(o.Depth) { + toSerialize["_depth"] = o.Depth + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -801,7 +810,6 @@ func (o *Location) UnmarshalJSON(data []byte) (err error) { "slug", "site", "last_updated", - "_depth", } // defaultValueFuncMap captures the default values for required properties. diff --git a/apiv4_3/model_nested_contact_group.go b/apiv4_3/model_nested_contact_group.go index b3f7e5de..518b6b8b 100644 --- a/apiv4_3/model_nested_contact_group.go +++ b/apiv4_3/model_nested_contact_group.go @@ -26,7 +26,7 @@ type NestedContactGroup struct { Display *string `json:"display,omitempty"` Name string `json:"name"` Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` - Depth int32 `json:"_depth"` + Depth *int32 `json:"_depth,omitempty"` AdditionalProperties map[string]interface{} } @@ -36,13 +36,12 @@ type _NestedContactGroup NestedContactGroup // 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 -func NewNestedContactGroup(id int32, url string, name string, slug string, depth int32) *NestedContactGroup { +func NewNestedContactGroup(id int32, url string, name string, slug string) *NestedContactGroup { this := NestedContactGroup{} this.Id = id this.Url = url this.Name = name this.Slug = slug - this.Depth = depth return &this } @@ -214,28 +213,36 @@ func (o *NestedContactGroup) SetSlug(v string) { o.Slug = v } -// GetDepth returns the Depth field value +// GetDepth returns the Depth field value if set, zero value otherwise. func (o *NestedContactGroup) GetDepth() int32 { - if o == nil { + if o == nil || IsNil(o.Depth) { var ret int32 return ret } - - return o.Depth + return *o.Depth } -// GetDepthOk returns a tuple with the Depth field value +// GetDepthOk returns a tuple with the Depth field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NestedContactGroup) GetDepthOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.Depth) { return nil, false } - return &o.Depth, true + return o.Depth, true +} + +// HasDepth returns a boolean if a field has been set. +func (o *NestedContactGroup) HasDepth() bool { + if o != nil && !IsNil(o.Depth) { + return true + } + + return false } -// SetDepth sets field value +// SetDepth gets a reference to the given int32 and assigns it to the Depth field. func (o *NestedContactGroup) SetDepth(v int32) { - o.Depth = v + o.Depth = &v } func (o NestedContactGroup) MarshalJSON() ([]byte, error) { @@ -258,7 +265,9 @@ func (o NestedContactGroup) ToMap() (map[string]interface{}, error) { } toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug - toSerialize["_depth"] = o.Depth + if !IsNil(o.Depth) { + toSerialize["_depth"] = o.Depth + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -276,7 +285,6 @@ func (o *NestedContactGroup) UnmarshalJSON(data []byte) (err error) { "url", "name", "slug", - "_depth", } // defaultValueFuncMap captures the default values for required properties. diff --git a/apiv4_3/model_nested_location.go b/apiv4_3/model_nested_location.go index 8b2560d3..4c7cc934 100644 --- a/apiv4_3/model_nested_location.go +++ b/apiv4_3/model_nested_location.go @@ -26,7 +26,7 @@ type NestedLocation struct { Display *string `json:"display,omitempty"` Name string `json:"name"` Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` - Depth int32 `json:"_depth"` + Depth *int32 `json:"_depth,omitempty"` AdditionalProperties map[string]interface{} } @@ -36,13 +36,12 @@ type _NestedLocation NestedLocation // 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 -func NewNestedLocation(id int32, url string, name string, slug string, depth int32) *NestedLocation { +func NewNestedLocation(id int32, url string, name string, slug string) *NestedLocation { this := NestedLocation{} this.Id = id this.Url = url this.Name = name this.Slug = slug - this.Depth = depth return &this } @@ -214,28 +213,36 @@ func (o *NestedLocation) SetSlug(v string) { o.Slug = v } -// GetDepth returns the Depth field value +// GetDepth returns the Depth field value if set, zero value otherwise. func (o *NestedLocation) GetDepth() int32 { - if o == nil { + if o == nil || IsNil(o.Depth) { var ret int32 return ret } - - return o.Depth + return *o.Depth } -// GetDepthOk returns a tuple with the Depth field value +// GetDepthOk returns a tuple with the Depth field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NestedLocation) GetDepthOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.Depth) { return nil, false } - return &o.Depth, true + return o.Depth, true +} + +// HasDepth returns a boolean if a field has been set. +func (o *NestedLocation) HasDepth() bool { + if o != nil && !IsNil(o.Depth) { + return true + } + + return false } -// SetDepth sets field value +// SetDepth gets a reference to the given int32 and assigns it to the Depth field. func (o *NestedLocation) SetDepth(v int32) { - o.Depth = v + o.Depth = &v } func (o NestedLocation) MarshalJSON() ([]byte, error) { @@ -258,7 +265,9 @@ func (o NestedLocation) ToMap() (map[string]interface{}, error) { } toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug - toSerialize["_depth"] = o.Depth + if !IsNil(o.Depth) { + toSerialize["_depth"] = o.Depth + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -276,7 +285,6 @@ func (o *NestedLocation) UnmarshalJSON(data []byte) (err error) { "url", "name", "slug", - "_depth", } // defaultValueFuncMap captures the default values for required properties. diff --git a/apiv4_3/model_nested_region.go b/apiv4_3/model_nested_region.go index 76ee6ccb..a0fc7725 100644 --- a/apiv4_3/model_nested_region.go +++ b/apiv4_3/model_nested_region.go @@ -26,7 +26,7 @@ type NestedRegion struct { Display *string `json:"display,omitempty"` Name string `json:"name"` Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` - Depth int32 `json:"_depth"` + Depth *int32 `json:"_depth,omitempty"` AdditionalProperties map[string]interface{} } @@ -36,13 +36,12 @@ type _NestedRegion NestedRegion // 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 -func NewNestedRegion(id int32, url string, name string, slug string, depth int32) *NestedRegion { +func NewNestedRegion(id int32, url string, name string, slug string) *NestedRegion { this := NestedRegion{} this.Id = id this.Url = url this.Name = name this.Slug = slug - this.Depth = depth return &this } @@ -214,28 +213,36 @@ func (o *NestedRegion) SetSlug(v string) { o.Slug = v } -// GetDepth returns the Depth field value +// GetDepth returns the Depth field value if set, zero value otherwise. func (o *NestedRegion) GetDepth() int32 { - if o == nil { + if o == nil || IsNil(o.Depth) { var ret int32 return ret } - - return o.Depth + return *o.Depth } -// GetDepthOk returns a tuple with the Depth field value +// GetDepthOk returns a tuple with the Depth field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NestedRegion) GetDepthOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.Depth) { return nil, false } - return &o.Depth, true + return o.Depth, true +} + +// HasDepth returns a boolean if a field has been set. +func (o *NestedRegion) HasDepth() bool { + if o != nil && !IsNil(o.Depth) { + return true + } + + return false } -// SetDepth sets field value +// SetDepth gets a reference to the given int32 and assigns it to the Depth field. func (o *NestedRegion) SetDepth(v int32) { - o.Depth = v + o.Depth = &v } func (o NestedRegion) MarshalJSON() ([]byte, error) { @@ -258,7 +265,9 @@ func (o NestedRegion) ToMap() (map[string]interface{}, error) { } toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug - toSerialize["_depth"] = o.Depth + if !IsNil(o.Depth) { + toSerialize["_depth"] = o.Depth + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -276,7 +285,6 @@ func (o *NestedRegion) UnmarshalJSON(data []byte) (err error) { "url", "name", "slug", - "_depth", } // defaultValueFuncMap captures the default values for required properties. diff --git a/apiv4_3/model_nested_site_group.go b/apiv4_3/model_nested_site_group.go index 78d1c9fb..9f588957 100644 --- a/apiv4_3/model_nested_site_group.go +++ b/apiv4_3/model_nested_site_group.go @@ -26,7 +26,7 @@ type NestedSiteGroup struct { Display *string `json:"display,omitempty"` Name string `json:"name"` Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` - Depth int32 `json:"_depth"` + Depth *int32 `json:"_depth,omitempty"` AdditionalProperties map[string]interface{} } @@ -36,13 +36,12 @@ type _NestedSiteGroup NestedSiteGroup // 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 -func NewNestedSiteGroup(id int32, url string, name string, slug string, depth int32) *NestedSiteGroup { +func NewNestedSiteGroup(id int32, url string, name string, slug string) *NestedSiteGroup { this := NestedSiteGroup{} this.Id = id this.Url = url this.Name = name this.Slug = slug - this.Depth = depth return &this } @@ -214,28 +213,36 @@ func (o *NestedSiteGroup) SetSlug(v string) { o.Slug = v } -// GetDepth returns the Depth field value +// GetDepth returns the Depth field value if set, zero value otherwise. func (o *NestedSiteGroup) GetDepth() int32 { - if o == nil { + if o == nil || IsNil(o.Depth) { var ret int32 return ret } - - return o.Depth + return *o.Depth } -// GetDepthOk returns a tuple with the Depth field value +// GetDepthOk returns a tuple with the Depth field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NestedSiteGroup) GetDepthOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.Depth) { return nil, false } - return &o.Depth, true + return o.Depth, true +} + +// HasDepth returns a boolean if a field has been set. +func (o *NestedSiteGroup) HasDepth() bool { + if o != nil && !IsNil(o.Depth) { + return true + } + + return false } -// SetDepth sets field value +// SetDepth gets a reference to the given int32 and assigns it to the Depth field. func (o *NestedSiteGroup) SetDepth(v int32) { - o.Depth = v + o.Depth = &v } func (o NestedSiteGroup) MarshalJSON() ([]byte, error) { @@ -258,7 +265,9 @@ func (o NestedSiteGroup) ToMap() (map[string]interface{}, error) { } toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug - toSerialize["_depth"] = o.Depth + if !IsNil(o.Depth) { + toSerialize["_depth"] = o.Depth + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -276,7 +285,6 @@ func (o *NestedSiteGroup) UnmarshalJSON(data []byte) (err error) { "url", "name", "slug", - "_depth", } // defaultValueFuncMap captures the default values for required properties. diff --git a/apiv4_3/model_nested_tenant_group.go b/apiv4_3/model_nested_tenant_group.go index 09e7006e..0dea9c88 100644 --- a/apiv4_3/model_nested_tenant_group.go +++ b/apiv4_3/model_nested_tenant_group.go @@ -26,7 +26,7 @@ type NestedTenantGroup struct { Display *string `json:"display,omitempty"` Name string `json:"name"` Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` - Depth int32 `json:"_depth"` + Depth *int32 `json:"_depth,omitempty"` AdditionalProperties map[string]interface{} } @@ -36,13 +36,12 @@ type _NestedTenantGroup NestedTenantGroup // 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 -func NewNestedTenantGroup(id int32, url string, name string, slug string, depth int32) *NestedTenantGroup { +func NewNestedTenantGroup(id int32, url string, name string, slug string) *NestedTenantGroup { this := NestedTenantGroup{} this.Id = id this.Url = url this.Name = name this.Slug = slug - this.Depth = depth return &this } @@ -214,28 +213,36 @@ func (o *NestedTenantGroup) SetSlug(v string) { o.Slug = v } -// GetDepth returns the Depth field value +// GetDepth returns the Depth field value if set, zero value otherwise. func (o *NestedTenantGroup) GetDepth() int32 { - if o == nil { + if o == nil || IsNil(o.Depth) { var ret int32 return ret } - - return o.Depth + return *o.Depth } -// GetDepthOk returns a tuple with the Depth field value +// GetDepthOk returns a tuple with the Depth field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NestedTenantGroup) GetDepthOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.Depth) { return nil, false } - return &o.Depth, true + return o.Depth, true +} + +// HasDepth returns a boolean if a field has been set. +func (o *NestedTenantGroup) HasDepth() bool { + if o != nil && !IsNil(o.Depth) { + return true + } + + return false } -// SetDepth sets field value +// SetDepth gets a reference to the given int32 and assigns it to the Depth field. func (o *NestedTenantGroup) SetDepth(v int32) { - o.Depth = v + o.Depth = &v } func (o NestedTenantGroup) MarshalJSON() ([]byte, error) { @@ -258,7 +265,9 @@ func (o NestedTenantGroup) ToMap() (map[string]interface{}, error) { } toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug - toSerialize["_depth"] = o.Depth + if !IsNil(o.Depth) { + toSerialize["_depth"] = o.Depth + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -276,7 +285,6 @@ func (o *NestedTenantGroup) UnmarshalJSON(data []byte) (err error) { "url", "name", "slug", - "_depth", } // defaultValueFuncMap captures the default values for required properties. diff --git a/apiv4_3/model_nested_wireless_lan_group.go b/apiv4_3/model_nested_wireless_lan_group.go index 91b59726..4cb401a4 100644 --- a/apiv4_3/model_nested_wireless_lan_group.go +++ b/apiv4_3/model_nested_wireless_lan_group.go @@ -26,7 +26,7 @@ type NestedWirelessLANGroup struct { Display *string `json:"display,omitempty"` Name string `json:"name"` Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` - Depth int32 `json:"_depth"` + Depth *int32 `json:"_depth,omitempty"` AdditionalProperties map[string]interface{} } @@ -36,13 +36,12 @@ type _NestedWirelessLANGroup NestedWirelessLANGroup // 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 -func NewNestedWirelessLANGroup(id int32, url string, name string, slug string, depth int32) *NestedWirelessLANGroup { +func NewNestedWirelessLANGroup(id int32, url string, name string, slug string) *NestedWirelessLANGroup { this := NestedWirelessLANGroup{} this.Id = id this.Url = url this.Name = name this.Slug = slug - this.Depth = depth return &this } @@ -214,28 +213,36 @@ func (o *NestedWirelessLANGroup) SetSlug(v string) { o.Slug = v } -// GetDepth returns the Depth field value +// GetDepth returns the Depth field value if set, zero value otherwise. func (o *NestedWirelessLANGroup) GetDepth() int32 { - if o == nil { + if o == nil || IsNil(o.Depth) { var ret int32 return ret } - - return o.Depth + return *o.Depth } -// GetDepthOk returns a tuple with the Depth field value +// GetDepthOk returns a tuple with the Depth field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NestedWirelessLANGroup) GetDepthOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.Depth) { return nil, false } - return &o.Depth, true + return o.Depth, true +} + +// HasDepth returns a boolean if a field has been set. +func (o *NestedWirelessLANGroup) HasDepth() bool { + if o != nil && !IsNil(o.Depth) { + return true + } + + return false } -// SetDepth sets field value +// SetDepth gets a reference to the given int32 and assigns it to the Depth field. func (o *NestedWirelessLANGroup) SetDepth(v int32) { - o.Depth = v + o.Depth = &v } func (o NestedWirelessLANGroup) MarshalJSON() ([]byte, error) { @@ -258,7 +265,9 @@ func (o NestedWirelessLANGroup) ToMap() (map[string]interface{}, error) { } toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug - toSerialize["_depth"] = o.Depth + if !IsNil(o.Depth) { + toSerialize["_depth"] = o.Depth + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -276,7 +285,6 @@ func (o *NestedWirelessLANGroup) UnmarshalJSON(data []byte) (err error) { "url", "name", "slug", - "_depth", } // defaultValueFuncMap captures the default values for required properties. diff --git a/apiv4_3/model_prefix.go b/apiv4_3/model_prefix.go index a675f8cf..e3561bcb 100644 --- a/apiv4_3/model_prefix.go +++ b/apiv4_3/model_prefix.go @@ -46,7 +46,7 @@ type Prefix struct { Created NullableTime `json:"created,omitempty"` LastUpdated NullableTime `json:"last_updated"` Children int32 `json:"children"` - Depth int32 `json:"_depth"` + Depth *int32 `json:"_depth,omitempty"` AdditionalProperties map[string]interface{} } @@ -56,7 +56,7 @@ type _Prefix Prefix // 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 -func NewPrefix(id int32, url string, family AggregateFamily, prefix string, lastUpdated NullableTime, children int32, depth int32) *Prefix { +func NewPrefix(id int32, url string, family AggregateFamily, prefix string, lastUpdated NullableTime, children int32) *Prefix { this := Prefix{} this.Id = id this.Url = url @@ -64,7 +64,6 @@ func NewPrefix(id int32, url string, family AggregateFamily, prefix string, last this.Prefix = prefix this.LastUpdated = lastUpdated this.Children = children - this.Depth = depth return &this } @@ -844,28 +843,36 @@ func (o *Prefix) SetChildren(v int32) { o.Children = v } -// GetDepth returns the Depth field value +// GetDepth returns the Depth field value if set, zero value otherwise. func (o *Prefix) GetDepth() int32 { - if o == nil { + if o == nil || IsNil(o.Depth) { var ret int32 return ret } - - return o.Depth + return *o.Depth } -// GetDepthOk returns a tuple with the Depth field value +// GetDepthOk returns a tuple with the Depth field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Prefix) GetDepthOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.Depth) { return nil, false } - return &o.Depth, true + return o.Depth, true +} + +// HasDepth returns a boolean if a field has been set. +func (o *Prefix) HasDepth() bool { + if o != nil && !IsNil(o.Depth) { + return true + } + + return false } -// SetDepth sets field value +// SetDepth gets a reference to the given int32 and assigns it to the Depth field. func (o *Prefix) SetDepth(v int32) { - o.Depth = v + o.Depth = &v } func (o Prefix) MarshalJSON() ([]byte, error) { @@ -935,7 +942,9 @@ func (o Prefix) ToMap() (map[string]interface{}, error) { } toSerialize["last_updated"] = o.LastUpdated.Get() toSerialize["children"] = o.Children - toSerialize["_depth"] = o.Depth + if !IsNil(o.Depth) { + toSerialize["_depth"] = o.Depth + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -955,7 +964,6 @@ func (o *Prefix) UnmarshalJSON(data []byte) (err error) { "prefix", "last_updated", "children", - "_depth", } // defaultValueFuncMap captures the default values for required properties. diff --git a/apiv4_3/model_region.go b/apiv4_3/model_region.go index 28432306..e63afb62 100644 --- a/apiv4_3/model_region.go +++ b/apiv4_3/model_region.go @@ -36,7 +36,7 @@ type Region struct { SiteCount *int32 `json:"site_count,omitempty"` PrefixCount *int64 `json:"prefix_count,omitempty"` Comments *string `json:"comments,omitempty"` - Depth int32 `json:"_depth"` + Depth *int32 `json:"_depth,omitempty"` AdditionalProperties map[string]interface{} } @@ -46,14 +46,13 @@ type _Region Region // 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 -func NewRegion(id int32, url string, name string, slug string, lastUpdated NullableTime, depth int32) *Region { +func NewRegion(id int32, url string, name string, slug string, lastUpdated NullableTime) *Region { this := Region{} this.Id = id this.Url = url this.Name = name this.Slug = slug this.LastUpdated = lastUpdated - this.Depth = depth return &this } @@ -529,28 +528,36 @@ func (o *Region) SetComments(v string) { o.Comments = &v } -// GetDepth returns the Depth field value +// GetDepth returns the Depth field value if set, zero value otherwise. func (o *Region) GetDepth() int32 { - if o == nil { + if o == nil || IsNil(o.Depth) { var ret int32 return ret } - - return o.Depth + return *o.Depth } -// GetDepthOk returns a tuple with the Depth field value +// GetDepthOk returns a tuple with the Depth field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Region) GetDepthOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.Depth) { return nil, false } - return &o.Depth, true + return o.Depth, true +} + +// HasDepth returns a boolean if a field has been set. +func (o *Region) HasDepth() bool { + if o != nil && !IsNil(o.Depth) { + return true + } + + return false } -// SetDepth sets field value +// SetDepth gets a reference to the given int32 and assigns it to the Depth field. func (o *Region) SetDepth(v int32) { - o.Depth = v + o.Depth = &v } func (o Region) MarshalJSON() ([]byte, error) { @@ -598,7 +605,9 @@ func (o Region) ToMap() (map[string]interface{}, error) { if !IsNil(o.Comments) { toSerialize["comments"] = o.Comments } - toSerialize["_depth"] = o.Depth + if !IsNil(o.Depth) { + toSerialize["_depth"] = o.Depth + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -617,7 +626,6 @@ func (o *Region) UnmarshalJSON(data []byte) (err error) { "name", "slug", "last_updated", - "_depth", } // defaultValueFuncMap captures the default values for required properties. diff --git a/apiv4_3/model_site_group.go b/apiv4_3/model_site_group.go index 416ab84a..00ec2f62 100644 --- a/apiv4_3/model_site_group.go +++ b/apiv4_3/model_site_group.go @@ -36,7 +36,7 @@ type SiteGroup struct { SiteCount *int32 `json:"site_count,omitempty"` PrefixCount *int64 `json:"prefix_count,omitempty"` Comments *string `json:"comments,omitempty"` - Depth int32 `json:"_depth"` + Depth *int32 `json:"_depth,omitempty"` AdditionalProperties map[string]interface{} } @@ -46,14 +46,13 @@ type _SiteGroup SiteGroup // 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 -func NewSiteGroup(id int32, url string, name string, slug string, lastUpdated NullableTime, depth int32) *SiteGroup { +func NewSiteGroup(id int32, url string, name string, slug string, lastUpdated NullableTime) *SiteGroup { this := SiteGroup{} this.Id = id this.Url = url this.Name = name this.Slug = slug this.LastUpdated = lastUpdated - this.Depth = depth return &this } @@ -529,28 +528,36 @@ func (o *SiteGroup) SetComments(v string) { o.Comments = &v } -// GetDepth returns the Depth field value +// GetDepth returns the Depth field value if set, zero value otherwise. func (o *SiteGroup) GetDepth() int32 { - if o == nil { + if o == nil || IsNil(o.Depth) { var ret int32 return ret } - - return o.Depth + return *o.Depth } -// GetDepthOk returns a tuple with the Depth field value +// GetDepthOk returns a tuple with the Depth field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SiteGroup) GetDepthOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.Depth) { return nil, false } - return &o.Depth, true + return o.Depth, true +} + +// HasDepth returns a boolean if a field has been set. +func (o *SiteGroup) HasDepth() bool { + if o != nil && !IsNil(o.Depth) { + return true + } + + return false } -// SetDepth sets field value +// SetDepth gets a reference to the given int32 and assigns it to the Depth field. func (o *SiteGroup) SetDepth(v int32) { - o.Depth = v + o.Depth = &v } func (o SiteGroup) MarshalJSON() ([]byte, error) { @@ -598,7 +605,9 @@ func (o SiteGroup) ToMap() (map[string]interface{}, error) { if !IsNil(o.Comments) { toSerialize["comments"] = o.Comments } - toSerialize["_depth"] = o.Depth + if !IsNil(o.Depth) { + toSerialize["_depth"] = o.Depth + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -617,7 +626,6 @@ func (o *SiteGroup) UnmarshalJSON(data []byte) (err error) { "name", "slug", "last_updated", - "_depth", } // defaultValueFuncMap captures the default values for required properties. diff --git a/apiv4_3/model_tenant_group.go b/apiv4_3/model_tenant_group.go index 2c2e2117..08923666 100644 --- a/apiv4_3/model_tenant_group.go +++ b/apiv4_3/model_tenant_group.go @@ -35,7 +35,7 @@ type TenantGroup struct { LastUpdated NullableTime `json:"last_updated"` TenantCount *int32 `json:"tenant_count,omitempty"` Comments *string `json:"comments,omitempty"` - Depth int32 `json:"_depth"` + Depth *int32 `json:"_depth,omitempty"` AdditionalProperties map[string]interface{} } @@ -45,14 +45,13 @@ type _TenantGroup TenantGroup // 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 -func NewTenantGroup(id int32, url string, name string, slug string, lastUpdated NullableTime, depth int32) *TenantGroup { +func NewTenantGroup(id int32, url string, name string, slug string, lastUpdated NullableTime) *TenantGroup { this := TenantGroup{} this.Id = id this.Url = url this.Name = name this.Slug = slug this.LastUpdated = lastUpdated - this.Depth = depth return &this } @@ -496,28 +495,36 @@ func (o *TenantGroup) SetComments(v string) { o.Comments = &v } -// GetDepth returns the Depth field value +// GetDepth returns the Depth field value if set, zero value otherwise. func (o *TenantGroup) GetDepth() int32 { - if o == nil { + if o == nil || IsNil(o.Depth) { var ret int32 return ret } - - return o.Depth + return *o.Depth } -// GetDepthOk returns a tuple with the Depth field value +// GetDepthOk returns a tuple with the Depth field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TenantGroup) GetDepthOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.Depth) { return nil, false } - return &o.Depth, true + return o.Depth, true +} + +// HasDepth returns a boolean if a field has been set. +func (o *TenantGroup) HasDepth() bool { + if o != nil && !IsNil(o.Depth) { + return true + } + + return false } -// SetDepth sets field value +// SetDepth gets a reference to the given int32 and assigns it to the Depth field. func (o *TenantGroup) SetDepth(v int32) { - o.Depth = v + o.Depth = &v } func (o TenantGroup) MarshalJSON() ([]byte, error) { @@ -562,7 +569,9 @@ func (o TenantGroup) ToMap() (map[string]interface{}, error) { if !IsNil(o.Comments) { toSerialize["comments"] = o.Comments } - toSerialize["_depth"] = o.Depth + if !IsNil(o.Depth) { + toSerialize["_depth"] = o.Depth + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -581,7 +590,6 @@ func (o *TenantGroup) UnmarshalJSON(data []byte) (err error) { "name", "slug", "last_updated", - "_depth", } // defaultValueFuncMap captures the default values for required properties. diff --git a/apiv4_3/model_wireless_lan_group.go b/apiv4_3/model_wireless_lan_group.go index f0359466..44c8d99f 100644 --- a/apiv4_3/model_wireless_lan_group.go +++ b/apiv4_3/model_wireless_lan_group.go @@ -35,7 +35,7 @@ type WirelessLANGroup struct { LastUpdated NullableTime `json:"last_updated"` WirelesslanCount *int32 `json:"wirelesslan_count,omitempty"` Comments *string `json:"comments,omitempty"` - Depth int32 `json:"_depth"` + Depth *int32 `json:"_depth,omitempty"` AdditionalProperties map[string]interface{} } @@ -45,14 +45,13 @@ type _WirelessLANGroup WirelessLANGroup // 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 -func NewWirelessLANGroup(id int32, url string, name string, slug string, lastUpdated NullableTime, depth int32) *WirelessLANGroup { +func NewWirelessLANGroup(id int32, url string, name string, slug string, lastUpdated NullableTime) *WirelessLANGroup { this := WirelessLANGroup{} this.Id = id this.Url = url this.Name = name this.Slug = slug this.LastUpdated = lastUpdated - this.Depth = depth return &this } @@ -496,28 +495,36 @@ func (o *WirelessLANGroup) SetComments(v string) { o.Comments = &v } -// GetDepth returns the Depth field value +// GetDepth returns the Depth field value if set, zero value otherwise. func (o *WirelessLANGroup) GetDepth() int32 { - if o == nil { + if o == nil || IsNil(o.Depth) { var ret int32 return ret } - - return o.Depth + return *o.Depth } -// GetDepthOk returns a tuple with the Depth field value +// GetDepthOk returns a tuple with the Depth field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WirelessLANGroup) GetDepthOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.Depth) { return nil, false } - return &o.Depth, true + return o.Depth, true +} + +// HasDepth returns a boolean if a field has been set. +func (o *WirelessLANGroup) HasDepth() bool { + if o != nil && !IsNil(o.Depth) { + return true + } + + return false } -// SetDepth sets field value +// SetDepth gets a reference to the given int32 and assigns it to the Depth field. func (o *WirelessLANGroup) SetDepth(v int32) { - o.Depth = v + o.Depth = &v } func (o WirelessLANGroup) MarshalJSON() ([]byte, error) { @@ -562,7 +569,9 @@ func (o WirelessLANGroup) ToMap() (map[string]interface{}, error) { if !IsNil(o.Comments) { toSerialize["comments"] = o.Comments } - toSerialize["_depth"] = o.Depth + if !IsNil(o.Depth) { + toSerialize["_depth"] = o.Depth + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -581,7 +590,6 @@ func (o *WirelessLANGroup) UnmarshalJSON(data []byte) (err error) { "name", "slug", "last_updated", - "_depth", } // defaultValueFuncMap captures the default values for required properties. diff --git a/apiv4_4/api/openapi.yaml b/apiv4_4/api/openapi.yaml index 7e90f761..09e5d6ab 100644 --- a/apiv4_4/api/openapi.yaml +++ b/apiv4_4/api/openapi.yaml @@ -148964,7 +148964,6 @@ components: title: ' depth' type: integer required: - - _depth - id - name - slug @@ -149571,7 +149570,6 @@ components: title: ' depth' type: integer required: - - _depth - id - name - slug @@ -149868,7 +149866,6 @@ components: title: ' depth' type: integer required: - - _depth - id - name - slug @@ -150489,7 +150486,6 @@ components: title: ' depth' type: integer required: - - _depth - id - name - slug @@ -150639,7 +150635,6 @@ components: title: ' depth' type: integer required: - - _depth - id - name - slug @@ -150780,7 +150775,6 @@ components: title: ' depth' type: integer required: - - _depth - id - name - slug @@ -151400,7 +151394,6 @@ components: title: ' depth' type: integer required: - - _depth - id - name - slug @@ -155801,7 +155794,6 @@ components: title: ' depth' type: integer required: - - _depth - id - last_updated - name @@ -157449,7 +157441,6 @@ components: title: ' depth' type: integer required: - - _depth - id - last_updated - name @@ -161940,7 +161931,6 @@ components: title: ' depth' type: integer required: - - _depth - component - device - id @@ -162270,7 +162260,6 @@ components: title: ' depth' type: integer required: - - _depth - component - device_type - id @@ -163117,7 +163106,6 @@ components: title: ' depth' type: integer required: - - _depth - id - last_updated - name @@ -164219,7 +164207,6 @@ components: title: ' depth' type: integer required: - - _depth - id - name - slug @@ -164544,7 +164531,6 @@ components: title: ' depth' type: integer required: - - _depth - id - name - slug @@ -164730,7 +164716,6 @@ components: title: ' depth' type: integer required: - - _depth - id - name - slug @@ -164787,7 +164772,6 @@ components: title: ' depth' type: integer required: - - _depth - id - name - slug @@ -164917,7 +164901,6 @@ components: title: ' depth' type: integer required: - - _depth - id - name - slug @@ -165155,7 +165138,6 @@ components: title: ' depth' type: integer required: - - _depth - id - name - slug @@ -191027,7 +191009,6 @@ components: title: ' depth' type: integer required: - - _depth - id - last_updated - name @@ -192334,7 +192315,6 @@ components: title: ' depth' type: integer required: - - _depth - children - family - id @@ -194470,7 +194450,6 @@ components: title: ' depth' type: integer required: - - _depth - id - last_updated - name @@ -195755,7 +195734,6 @@ components: title: ' depth' type: integer required: - - _depth - id - last_updated - name @@ -196529,7 +196507,6 @@ components: title: ' depth' type: integer required: - - _depth - id - last_updated - name @@ -200363,7 +200340,6 @@ components: title: ' depth' type: integer required: - - _depth - id - last_updated - name diff --git a/apiv4_4/docs/BriefDeviceRole.md b/apiv4_4/docs/BriefDeviceRole.md index 36e270b6..12c482c9 100644 --- a/apiv4_4/docs/BriefDeviceRole.md +++ b/apiv4_4/docs/BriefDeviceRole.md @@ -12,13 +12,13 @@ Name | Type | Description | Notes **Description** | Pointer to **string** | | [optional] **DeviceCount** | Pointer to **int32** | | [optional] [readonly] [default to 0] **VirtualmachineCount** | Pointer to **int32** | | [optional] [readonly] [default to 0] -**Depth** | **int32** | | [readonly] +**Depth** | Pointer to **int32** | | [optional] [readonly] ## Methods ### NewBriefDeviceRole -`func NewBriefDeviceRole(id int32, url string, name string, slug string, depth int32, ) *BriefDeviceRole` +`func NewBriefDeviceRole(id int32, url string, name string, slug string, ) *BriefDeviceRole` NewBriefDeviceRole instantiates a new BriefDeviceRole object This constructor will assign default values to properties that have it defined, @@ -232,6 +232,11 @@ and a boolean to check if the value has been set. SetDepth sets Depth field to given value. +### HasDepth + +`func (o *BriefDeviceRole) HasDepth() bool` + +HasDepth 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) diff --git a/apiv4_4/docs/BriefLocation.md b/apiv4_4/docs/BriefLocation.md index ca6c7a98..95a0c7b8 100644 --- a/apiv4_4/docs/BriefLocation.md +++ b/apiv4_4/docs/BriefLocation.md @@ -11,13 +11,13 @@ Name | Type | Description | Notes **Slug** | **string** | | **Description** | Pointer to **string** | | [optional] **RackCount** | Pointer to **int32** | | [optional] [readonly] [default to 0] -**Depth** | **int32** | | [readonly] +**Depth** | Pointer to **int32** | | [optional] [readonly] ## Methods ### NewBriefLocation -`func NewBriefLocation(id int32, url string, name string, slug string, depth int32, ) *BriefLocation` +`func NewBriefLocation(id int32, url string, name string, slug string, ) *BriefLocation` NewBriefLocation instantiates a new BriefLocation object This constructor will assign default values to properties that have it defined, @@ -206,6 +206,11 @@ and a boolean to check if the value has been set. SetDepth sets Depth field to given value. +### HasDepth + +`func (o *BriefLocation) HasDepth() bool` + +HasDepth 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) diff --git a/apiv4_4/docs/BriefPlatform.md b/apiv4_4/docs/BriefPlatform.md index ee5ed2e1..aaf7607e 100644 --- a/apiv4_4/docs/BriefPlatform.md +++ b/apiv4_4/docs/BriefPlatform.md @@ -12,13 +12,13 @@ Name | Type | Description | Notes **Description** | Pointer to **string** | | [optional] **DeviceCount** | Pointer to **int32** | | [optional] [readonly] [default to 0] **VirtualmachineCount** | Pointer to **int32** | | [optional] [readonly] [default to 0] -**Depth** | **int32** | | [readonly] +**Depth** | Pointer to **int32** | | [optional] [readonly] ## Methods ### NewBriefPlatform -`func NewBriefPlatform(id int32, url string, name string, slug string, depth int32, ) *BriefPlatform` +`func NewBriefPlatform(id int32, url string, name string, slug string, ) *BriefPlatform` NewBriefPlatform instantiates a new BriefPlatform object This constructor will assign default values to properties that have it defined, @@ -232,6 +232,11 @@ and a boolean to check if the value has been set. SetDepth sets Depth field to given value. +### HasDepth + +`func (o *BriefPlatform) HasDepth() bool` + +HasDepth 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) diff --git a/apiv4_4/docs/BriefRegion.md b/apiv4_4/docs/BriefRegion.md index 5805799d..f4714832 100644 --- a/apiv4_4/docs/BriefRegion.md +++ b/apiv4_4/docs/BriefRegion.md @@ -11,13 +11,13 @@ Name | Type | Description | Notes **Slug** | **string** | | **Description** | Pointer to **string** | | [optional] **SiteCount** | Pointer to **int32** | | [optional] [readonly] [default to 0] -**Depth** | **int32** | | [readonly] +**Depth** | Pointer to **int32** | | [optional] [readonly] ## Methods ### NewBriefRegion -`func NewBriefRegion(id int32, url string, name string, slug string, depth int32, ) *BriefRegion` +`func NewBriefRegion(id int32, url string, name string, slug string, ) *BriefRegion` NewBriefRegion instantiates a new BriefRegion object This constructor will assign default values to properties that have it defined, @@ -206,6 +206,11 @@ and a boolean to check if the value has been set. SetDepth sets Depth field to given value. +### HasDepth + +`func (o *BriefRegion) HasDepth() bool` + +HasDepth 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) diff --git a/apiv4_4/docs/BriefSiteGroup.md b/apiv4_4/docs/BriefSiteGroup.md index e45d2b58..bbe20dba 100644 --- a/apiv4_4/docs/BriefSiteGroup.md +++ b/apiv4_4/docs/BriefSiteGroup.md @@ -11,13 +11,13 @@ Name | Type | Description | Notes **Slug** | **string** | | **Description** | Pointer to **string** | | [optional] **SiteCount** | Pointer to **int32** | | [optional] [readonly] [default to 0] -**Depth** | **int32** | | [readonly] +**Depth** | Pointer to **int32** | | [optional] [readonly] ## Methods ### NewBriefSiteGroup -`func NewBriefSiteGroup(id int32, url string, name string, slug string, depth int32, ) *BriefSiteGroup` +`func NewBriefSiteGroup(id int32, url string, name string, slug string, ) *BriefSiteGroup` NewBriefSiteGroup instantiates a new BriefSiteGroup object This constructor will assign default values to properties that have it defined, @@ -206,6 +206,11 @@ and a boolean to check if the value has been set. SetDepth sets Depth field to given value. +### HasDepth + +`func (o *BriefSiteGroup) HasDepth() bool` + +HasDepth 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) diff --git a/apiv4_4/docs/BriefTenantGroup.md b/apiv4_4/docs/BriefTenantGroup.md index c81f13bc..abbed0db 100644 --- a/apiv4_4/docs/BriefTenantGroup.md +++ b/apiv4_4/docs/BriefTenantGroup.md @@ -11,13 +11,13 @@ Name | Type | Description | Notes **Slug** | **string** | | **Description** | Pointer to **string** | | [optional] **TenantCount** | Pointer to **int32** | | [optional] [readonly] [default to 0] -**Depth** | **int32** | | [readonly] +**Depth** | Pointer to **int32** | | [optional] [readonly] ## Methods ### NewBriefTenantGroup -`func NewBriefTenantGroup(id int32, url string, name string, slug string, depth int32, ) *BriefTenantGroup` +`func NewBriefTenantGroup(id int32, url string, name string, slug string, ) *BriefTenantGroup` NewBriefTenantGroup instantiates a new BriefTenantGroup object This constructor will assign default values to properties that have it defined, @@ -206,6 +206,11 @@ and a boolean to check if the value has been set. SetDepth sets Depth field to given value. +### HasDepth + +`func (o *BriefTenantGroup) HasDepth() bool` + +HasDepth 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) diff --git a/apiv4_4/docs/BriefWirelessLANGroup.md b/apiv4_4/docs/BriefWirelessLANGroup.md index bf4b1dc1..25ed796d 100644 --- a/apiv4_4/docs/BriefWirelessLANGroup.md +++ b/apiv4_4/docs/BriefWirelessLANGroup.md @@ -11,13 +11,13 @@ Name | Type | Description | Notes **Slug** | **string** | | **Description** | Pointer to **string** | | [optional] **WirelesslanCount** | Pointer to **int32** | | [optional] [readonly] [default to 0] -**Depth** | **int32** | | [readonly] +**Depth** | Pointer to **int32** | | [optional] [readonly] ## Methods ### NewBriefWirelessLANGroup -`func NewBriefWirelessLANGroup(id int32, url string, name string, slug string, depth int32, ) *BriefWirelessLANGroup` +`func NewBriefWirelessLANGroup(id int32, url string, name string, slug string, ) *BriefWirelessLANGroup` NewBriefWirelessLANGroup instantiates a new BriefWirelessLANGroup object This constructor will assign default values to properties that have it defined, @@ -206,6 +206,11 @@ and a boolean to check if the value has been set. SetDepth sets Depth field to given value. +### HasDepth + +`func (o *BriefWirelessLANGroup) HasDepth() bool` + +HasDepth 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) diff --git a/apiv4_4/docs/ContactGroup.md b/apiv4_4/docs/ContactGroup.md index 76f6bfa2..8c376e5b 100644 --- a/apiv4_4/docs/ContactGroup.md +++ b/apiv4_4/docs/ContactGroup.md @@ -18,13 +18,13 @@ Name | Type | Description | Notes **LastUpdated** | **NullableTime** | | [readonly] **ContactCount** | Pointer to **int32** | | [optional] [readonly] [default to 0] **Comments** | Pointer to **string** | | [optional] -**Depth** | **int32** | | [readonly] +**Depth** | Pointer to **int32** | | [optional] [readonly] ## Methods ### NewContactGroup -`func NewContactGroup(id int32, url string, name string, slug string, lastUpdated NullableTime, depth int32, ) *ContactGroup` +`func NewContactGroup(id int32, url string, name string, slug string, lastUpdated NullableTime, ) *ContactGroup` NewContactGroup instantiates a new ContactGroup object This constructor will assign default values to properties that have it defined, @@ -413,6 +413,11 @@ and a boolean to check if the value has been set. SetDepth sets Depth field to given value. +### HasDepth + +`func (o *ContactGroup) HasDepth() bool` + +HasDepth 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) diff --git a/apiv4_4/docs/DeviceRole.md b/apiv4_4/docs/DeviceRole.md index 12ea0952..28f6b7d9 100644 --- a/apiv4_4/docs/DeviceRole.md +++ b/apiv4_4/docs/DeviceRole.md @@ -22,13 +22,13 @@ Name | Type | Description | Notes **DeviceCount** | Pointer to **int32** | | [optional] [readonly] [default to 0] **VirtualmachineCount** | Pointer to **int32** | | [optional] [readonly] [default to 0] **Comments** | Pointer to **string** | | [optional] -**Depth** | **int32** | | [readonly] +**Depth** | Pointer to **int32** | | [optional] [readonly] ## Methods ### NewDeviceRole -`func NewDeviceRole(id int32, url string, name string, slug string, lastUpdated NullableTime, depth int32, ) *DeviceRole` +`func NewDeviceRole(id int32, url string, name string, slug string, lastUpdated NullableTime, ) *DeviceRole` NewDeviceRole instantiates a new DeviceRole object This constructor will assign default values to properties that have it defined, @@ -527,6 +527,11 @@ and a boolean to check if the value has been set. SetDepth sets Depth field to given value. +### HasDepth + +`func (o *DeviceRole) HasDepth() bool` + +HasDepth 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) diff --git a/apiv4_4/docs/InventoryItem.md b/apiv4_4/docs/InventoryItem.md index db5b1bc7..028633b4 100644 --- a/apiv4_4/docs/InventoryItem.md +++ b/apiv4_4/docs/InventoryItem.md @@ -27,13 +27,13 @@ Name | Type | Description | Notes **CustomFields** | Pointer to **map[string]interface{}** | | [optional] **Created** | Pointer to **NullableTime** | | [optional] [readonly] **LastUpdated** | **NullableTime** | | [readonly] -**Depth** | **int32** | | [readonly] +**Depth** | Pointer to **int32** | | [optional] [readonly] ## Methods ### NewInventoryItem -`func NewInventoryItem(id int32, url string, device BriefDevice, name string, component interface{}, lastUpdated NullableTime, depth int32, ) *InventoryItem` +`func NewInventoryItem(id int32, url string, device BriefDevice, name string, component interface{}, lastUpdated NullableTime, ) *InventoryItem` NewInventoryItem instantiates a new InventoryItem object This constructor will assign default values to properties that have it defined, @@ -702,6 +702,11 @@ and a boolean to check if the value has been set. SetDepth sets Depth field to given value. +### HasDepth + +`func (o *InventoryItem) HasDepth() bool` + +HasDepth 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) diff --git a/apiv4_4/docs/InventoryItemTemplate.md b/apiv4_4/docs/InventoryItemTemplate.md index 961dc6a1..db2a2b9f 100644 --- a/apiv4_4/docs/InventoryItemTemplate.md +++ b/apiv4_4/docs/InventoryItemTemplate.md @@ -20,13 +20,13 @@ Name | Type | Description | Notes **Component** | **interface{}** | | [readonly] **Created** | Pointer to **NullableTime** | | [optional] [readonly] **LastUpdated** | **NullableTime** | | [readonly] -**Depth** | **int32** | | [readonly] +**Depth** | Pointer to **int32** | | [optional] [readonly] ## Methods ### NewInventoryItemTemplate -`func NewInventoryItemTemplate(id int32, url string, deviceType BriefDeviceType, name string, component interface{}, lastUpdated NullableTime, depth int32, ) *InventoryItemTemplate` +`func NewInventoryItemTemplate(id int32, url string, deviceType BriefDeviceType, name string, component interface{}, lastUpdated NullableTime, ) *InventoryItemTemplate` NewInventoryItemTemplate instantiates a new InventoryItemTemplate object This constructor will assign default values to properties that have it defined, @@ -510,6 +510,11 @@ and a boolean to check if the value has been set. SetDepth sets Depth field to given value. +### HasDepth + +`func (o *InventoryItemTemplate) HasDepth() bool` + +HasDepth 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) diff --git a/apiv4_4/docs/Location.md b/apiv4_4/docs/Location.md index 4ca1a540..1cf20f10 100644 --- a/apiv4_4/docs/Location.md +++ b/apiv4_4/docs/Location.md @@ -24,13 +24,13 @@ Name | Type | Description | Notes **DeviceCount** | Pointer to **int32** | | [optional] [readonly] [default to 0] **PrefixCount** | Pointer to **int64** | | [optional] [readonly] **Comments** | Pointer to **string** | | [optional] -**Depth** | **int32** | | [readonly] +**Depth** | Pointer to **int32** | | [optional] [readonly] ## Methods ### NewLocation -`func NewLocation(id int32, url string, name string, slug string, site BriefSite, lastUpdated NullableTime, depth int32, ) *Location` +`func NewLocation(id int32, url string, name string, slug string, site BriefSite, lastUpdated NullableTime, ) *Location` NewLocation instantiates a new Location object This constructor will assign default values to properties that have it defined, @@ -574,6 +574,11 @@ and a boolean to check if the value has been set. SetDepth sets Depth field to given value. +### HasDepth + +`func (o *Location) HasDepth() bool` + +HasDepth 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) diff --git a/apiv4_4/docs/NestedContactGroup.md b/apiv4_4/docs/NestedContactGroup.md index 752b13b7..a9f00ef5 100644 --- a/apiv4_4/docs/NestedContactGroup.md +++ b/apiv4_4/docs/NestedContactGroup.md @@ -10,13 +10,13 @@ Name | Type | Description | Notes **Display** | Pointer to **string** | | [optional] [readonly] **Name** | **string** | | **Slug** | **string** | | -**Depth** | **int32** | | [readonly] +**Depth** | Pointer to **int32** | | [optional] [readonly] ## Methods ### NewNestedContactGroup -`func NewNestedContactGroup(id int32, url string, name string, slug string, depth int32, ) *NestedContactGroup` +`func NewNestedContactGroup(id int32, url string, name string, slug string, ) *NestedContactGroup` NewNestedContactGroup instantiates a new NestedContactGroup object This constructor will assign default values to properties that have it defined, @@ -180,6 +180,11 @@ and a boolean to check if the value has been set. SetDepth sets Depth field to given value. +### HasDepth + +`func (o *NestedContactGroup) HasDepth() bool` + +HasDepth 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) diff --git a/apiv4_4/docs/NestedLocation.md b/apiv4_4/docs/NestedLocation.md index 79121cf2..5cef9aeb 100644 --- a/apiv4_4/docs/NestedLocation.md +++ b/apiv4_4/docs/NestedLocation.md @@ -10,13 +10,13 @@ Name | Type | Description | Notes **Display** | Pointer to **string** | | [optional] [readonly] **Name** | **string** | | **Slug** | **string** | | -**Depth** | **int32** | | [readonly] +**Depth** | Pointer to **int32** | | [optional] [readonly] ## Methods ### NewNestedLocation -`func NewNestedLocation(id int32, url string, name string, slug string, depth int32, ) *NestedLocation` +`func NewNestedLocation(id int32, url string, name string, slug string, ) *NestedLocation` NewNestedLocation instantiates a new NestedLocation object This constructor will assign default values to properties that have it defined, @@ -180,6 +180,11 @@ and a boolean to check if the value has been set. SetDepth sets Depth field to given value. +### HasDepth + +`func (o *NestedLocation) HasDepth() bool` + +HasDepth 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) diff --git a/apiv4_4/docs/NestedRegion.md b/apiv4_4/docs/NestedRegion.md index b6139170..17d425e5 100644 --- a/apiv4_4/docs/NestedRegion.md +++ b/apiv4_4/docs/NestedRegion.md @@ -10,13 +10,13 @@ Name | Type | Description | Notes **Display** | Pointer to **string** | | [optional] [readonly] **Name** | **string** | | **Slug** | **string** | | -**Depth** | **int32** | | [readonly] +**Depth** | Pointer to **int32** | | [optional] [readonly] ## Methods ### NewNestedRegion -`func NewNestedRegion(id int32, url string, name string, slug string, depth int32, ) *NestedRegion` +`func NewNestedRegion(id int32, url string, name string, slug string, ) *NestedRegion` NewNestedRegion instantiates a new NestedRegion object This constructor will assign default values to properties that have it defined, @@ -180,6 +180,11 @@ and a boolean to check if the value has been set. SetDepth sets Depth field to given value. +### HasDepth + +`func (o *NestedRegion) HasDepth() bool` + +HasDepth 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) diff --git a/apiv4_4/docs/NestedSiteGroup.md b/apiv4_4/docs/NestedSiteGroup.md index 0edfb1e0..2737ef6d 100644 --- a/apiv4_4/docs/NestedSiteGroup.md +++ b/apiv4_4/docs/NestedSiteGroup.md @@ -10,13 +10,13 @@ Name | Type | Description | Notes **Display** | Pointer to **string** | | [optional] [readonly] **Name** | **string** | | **Slug** | **string** | | -**Depth** | **int32** | | [readonly] +**Depth** | Pointer to **int32** | | [optional] [readonly] ## Methods ### NewNestedSiteGroup -`func NewNestedSiteGroup(id int32, url string, name string, slug string, depth int32, ) *NestedSiteGroup` +`func NewNestedSiteGroup(id int32, url string, name string, slug string, ) *NestedSiteGroup` NewNestedSiteGroup instantiates a new NestedSiteGroup object This constructor will assign default values to properties that have it defined, @@ -180,6 +180,11 @@ and a boolean to check if the value has been set. SetDepth sets Depth field to given value. +### HasDepth + +`func (o *NestedSiteGroup) HasDepth() bool` + +HasDepth 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) diff --git a/apiv4_4/docs/NestedTenantGroup.md b/apiv4_4/docs/NestedTenantGroup.md index 4c2d5c6c..64cd2d0a 100644 --- a/apiv4_4/docs/NestedTenantGroup.md +++ b/apiv4_4/docs/NestedTenantGroup.md @@ -10,13 +10,13 @@ Name | Type | Description | Notes **Display** | Pointer to **string** | | [optional] [readonly] **Name** | **string** | | **Slug** | **string** | | -**Depth** | **int32** | | [readonly] +**Depth** | Pointer to **int32** | | [optional] [readonly] ## Methods ### NewNestedTenantGroup -`func NewNestedTenantGroup(id int32, url string, name string, slug string, depth int32, ) *NestedTenantGroup` +`func NewNestedTenantGroup(id int32, url string, name string, slug string, ) *NestedTenantGroup` NewNestedTenantGroup instantiates a new NestedTenantGroup object This constructor will assign default values to properties that have it defined, @@ -180,6 +180,11 @@ and a boolean to check if the value has been set. SetDepth sets Depth field to given value. +### HasDepth + +`func (o *NestedTenantGroup) HasDepth() bool` + +HasDepth 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) diff --git a/apiv4_4/docs/NestedWirelessLANGroup.md b/apiv4_4/docs/NestedWirelessLANGroup.md index a5d0c0cc..14792fda 100644 --- a/apiv4_4/docs/NestedWirelessLANGroup.md +++ b/apiv4_4/docs/NestedWirelessLANGroup.md @@ -10,13 +10,13 @@ Name | Type | Description | Notes **Display** | Pointer to **string** | | [optional] [readonly] **Name** | **string** | | **Slug** | **string** | | -**Depth** | **int32** | | [readonly] +**Depth** | Pointer to **int32** | | [optional] [readonly] ## Methods ### NewNestedWirelessLANGroup -`func NewNestedWirelessLANGroup(id int32, url string, name string, slug string, depth int32, ) *NestedWirelessLANGroup` +`func NewNestedWirelessLANGroup(id int32, url string, name string, slug string, ) *NestedWirelessLANGroup` NewNestedWirelessLANGroup instantiates a new NestedWirelessLANGroup object This constructor will assign default values to properties that have it defined, @@ -180,6 +180,11 @@ and a boolean to check if the value has been set. SetDepth sets Depth field to given value. +### HasDepth + +`func (o *NestedWirelessLANGroup) HasDepth() bool` + +HasDepth 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) diff --git a/apiv4_4/docs/Platform.md b/apiv4_4/docs/Platform.md index c0a67171..994e4f9c 100644 --- a/apiv4_4/docs/Platform.md +++ b/apiv4_4/docs/Platform.md @@ -21,13 +21,13 @@ Name | Type | Description | Notes **LastUpdated** | **NullableTime** | | [readonly] **DeviceCount** | Pointer to **int32** | | [optional] [readonly] [default to 0] **VirtualmachineCount** | Pointer to **int32** | | [optional] [readonly] [default to 0] -**Depth** | **int32** | | [readonly] +**Depth** | Pointer to **int32** | | [optional] [readonly] ## Methods ### NewPlatform -`func NewPlatform(id int32, url string, name string, slug string, lastUpdated NullableTime, depth int32, ) *Platform` +`func NewPlatform(id int32, url string, name string, slug string, lastUpdated NullableTime, ) *Platform` NewPlatform instantiates a new Platform object This constructor will assign default values to properties that have it defined, @@ -511,6 +511,11 @@ and a boolean to check if the value has been set. SetDepth sets Depth field to given value. +### HasDepth + +`func (o *Platform) HasDepth() bool` + +HasDepth 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) diff --git a/apiv4_4/docs/Prefix.md b/apiv4_4/docs/Prefix.md index 72c8ed6d..927f8fe6 100644 --- a/apiv4_4/docs/Prefix.md +++ b/apiv4_4/docs/Prefix.md @@ -27,13 +27,13 @@ Name | Type | Description | Notes **Created** | Pointer to **NullableTime** | | [optional] [readonly] **LastUpdated** | **NullableTime** | | [readonly] **Children** | **int32** | | [readonly] -**Depth** | **int32** | | [readonly] +**Depth** | Pointer to **int32** | | [optional] [readonly] ## Methods ### NewPrefix -`func NewPrefix(id int32, url string, family AggregateFamily, prefix string, lastUpdated NullableTime, children int32, depth int32, ) *Prefix` +`func NewPrefix(id int32, url string, family AggregateFamily, prefix string, lastUpdated NullableTime, children int32, ) *Prefix` NewPrefix instantiates a new Prefix object This constructor will assign default values to properties that have it defined, @@ -702,6 +702,11 @@ and a boolean to check if the value has been set. SetDepth sets Depth field to given value. +### HasDepth + +`func (o *Prefix) HasDepth() bool` + +HasDepth 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) diff --git a/apiv4_4/docs/Region.md b/apiv4_4/docs/Region.md index 96f955eb..46faefbd 100644 --- a/apiv4_4/docs/Region.md +++ b/apiv4_4/docs/Region.md @@ -19,13 +19,13 @@ Name | Type | Description | Notes **SiteCount** | Pointer to **int32** | | [optional] [readonly] [default to 0] **PrefixCount** | Pointer to **int64** | | [optional] [readonly] **Comments** | Pointer to **string** | | [optional] -**Depth** | **int32** | | [readonly] +**Depth** | Pointer to **int32** | | [optional] [readonly] ## Methods ### NewRegion -`func NewRegion(id int32, url string, name string, slug string, lastUpdated NullableTime, depth int32, ) *Region` +`func NewRegion(id int32, url string, name string, slug string, lastUpdated NullableTime, ) *Region` NewRegion instantiates a new Region object This constructor will assign default values to properties that have it defined, @@ -439,6 +439,11 @@ and a boolean to check if the value has been set. SetDepth sets Depth field to given value. +### HasDepth + +`func (o *Region) HasDepth() bool` + +HasDepth 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) diff --git a/apiv4_4/docs/SiteGroup.md b/apiv4_4/docs/SiteGroup.md index 6e6ee46c..d5c8833c 100644 --- a/apiv4_4/docs/SiteGroup.md +++ b/apiv4_4/docs/SiteGroup.md @@ -19,13 +19,13 @@ Name | Type | Description | Notes **SiteCount** | Pointer to **int32** | | [optional] [readonly] [default to 0] **PrefixCount** | Pointer to **int64** | | [optional] [readonly] **Comments** | Pointer to **string** | | [optional] -**Depth** | **int32** | | [readonly] +**Depth** | Pointer to **int32** | | [optional] [readonly] ## Methods ### NewSiteGroup -`func NewSiteGroup(id int32, url string, name string, slug string, lastUpdated NullableTime, depth int32, ) *SiteGroup` +`func NewSiteGroup(id int32, url string, name string, slug string, lastUpdated NullableTime, ) *SiteGroup` NewSiteGroup instantiates a new SiteGroup object This constructor will assign default values to properties that have it defined, @@ -439,6 +439,11 @@ and a boolean to check if the value has been set. SetDepth sets Depth field to given value. +### HasDepth + +`func (o *SiteGroup) HasDepth() bool` + +HasDepth 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) diff --git a/apiv4_4/docs/TenantGroup.md b/apiv4_4/docs/TenantGroup.md index 1df47bbc..47d0443b 100644 --- a/apiv4_4/docs/TenantGroup.md +++ b/apiv4_4/docs/TenantGroup.md @@ -18,13 +18,13 @@ Name | Type | Description | Notes **LastUpdated** | **NullableTime** | | [readonly] **TenantCount** | Pointer to **int32** | | [optional] [readonly] [default to 0] **Comments** | Pointer to **string** | | [optional] -**Depth** | **int32** | | [readonly] +**Depth** | Pointer to **int32** | | [optional] [readonly] ## Methods ### NewTenantGroup -`func NewTenantGroup(id int32, url string, name string, slug string, lastUpdated NullableTime, depth int32, ) *TenantGroup` +`func NewTenantGroup(id int32, url string, name string, slug string, lastUpdated NullableTime, ) *TenantGroup` NewTenantGroup instantiates a new TenantGroup object This constructor will assign default values to properties that have it defined, @@ -413,6 +413,11 @@ and a boolean to check if the value has been set. SetDepth sets Depth field to given value. +### HasDepth + +`func (o *TenantGroup) HasDepth() bool` + +HasDepth 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) diff --git a/apiv4_4/docs/WirelessLANGroup.md b/apiv4_4/docs/WirelessLANGroup.md index 9d43e953..21cffc45 100644 --- a/apiv4_4/docs/WirelessLANGroup.md +++ b/apiv4_4/docs/WirelessLANGroup.md @@ -18,13 +18,13 @@ Name | Type | Description | Notes **LastUpdated** | **NullableTime** | | [readonly] **WirelesslanCount** | Pointer to **int32** | | [optional] [readonly] [default to 0] **Comments** | Pointer to **string** | | [optional] -**Depth** | **int32** | | [readonly] +**Depth** | Pointer to **int32** | | [optional] [readonly] ## Methods ### NewWirelessLANGroup -`func NewWirelessLANGroup(id int32, url string, name string, slug string, lastUpdated NullableTime, depth int32, ) *WirelessLANGroup` +`func NewWirelessLANGroup(id int32, url string, name string, slug string, lastUpdated NullableTime, ) *WirelessLANGroup` NewWirelessLANGroup instantiates a new WirelessLANGroup object This constructor will assign default values to properties that have it defined, @@ -413,6 +413,11 @@ and a boolean to check if the value has been set. SetDepth sets Depth field to given value. +### HasDepth + +`func (o *WirelessLANGroup) HasDepth() bool` + +HasDepth 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) diff --git a/apiv4_4/model_brief_device_role.go b/apiv4_4/model_brief_device_role.go index addf0ced..4e3c9617 100644 --- a/apiv4_4/model_brief_device_role.go +++ b/apiv4_4/model_brief_device_role.go @@ -28,7 +28,7 @@ type BriefDeviceRole struct { Description *string `json:"description,omitempty"` DeviceCount *int32 `json:"device_count,omitempty"` VirtualmachineCount *int32 `json:"virtualmachine_count,omitempty"` - Depth int32 `json:"_depth"` + Depth *int32 `json:"_depth,omitempty"` AdditionalProperties map[string]interface{} } @@ -38,13 +38,12 @@ type _BriefDeviceRole BriefDeviceRole // 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 -func NewBriefDeviceRole(id int32, url string, name string, slug string, depth int32) *BriefDeviceRole { +func NewBriefDeviceRole(id int32, url string, name string, slug string) *BriefDeviceRole { this := BriefDeviceRole{} this.Id = id this.Url = url this.Name = name this.Slug = slug - this.Depth = depth return &this } @@ -280,28 +279,36 @@ func (o *BriefDeviceRole) SetVirtualmachineCount(v int32) { o.VirtualmachineCount = &v } -// GetDepth returns the Depth field value +// GetDepth returns the Depth field value if set, zero value otherwise. func (o *BriefDeviceRole) GetDepth() int32 { - if o == nil { + if o == nil || IsNil(o.Depth) { var ret int32 return ret } - - return o.Depth + return *o.Depth } -// GetDepthOk returns a tuple with the Depth field value +// GetDepthOk returns a tuple with the Depth field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BriefDeviceRole) GetDepthOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.Depth) { return nil, false } - return &o.Depth, true + return o.Depth, true +} + +// HasDepth returns a boolean if a field has been set. +func (o *BriefDeviceRole) HasDepth() bool { + if o != nil && !IsNil(o.Depth) { + return true + } + + return false } -// SetDepth sets field value +// SetDepth gets a reference to the given int32 and assigns it to the Depth field. func (o *BriefDeviceRole) SetDepth(v int32) { - o.Depth = v + o.Depth = &v } func (o BriefDeviceRole) MarshalJSON() ([]byte, error) { @@ -330,7 +337,9 @@ func (o BriefDeviceRole) ToMap() (map[string]interface{}, error) { if !IsNil(o.VirtualmachineCount) { toSerialize["virtualmachine_count"] = o.VirtualmachineCount } - toSerialize["_depth"] = o.Depth + if !IsNil(o.Depth) { + toSerialize["_depth"] = o.Depth + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -348,7 +357,6 @@ func (o *BriefDeviceRole) UnmarshalJSON(data []byte) (err error) { "url", "name", "slug", - "_depth", } // defaultValueFuncMap captures the default values for required properties. diff --git a/apiv4_4/model_brief_location.go b/apiv4_4/model_brief_location.go index a190517b..38d6c079 100644 --- a/apiv4_4/model_brief_location.go +++ b/apiv4_4/model_brief_location.go @@ -27,7 +27,7 @@ type BriefLocation struct { Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` Description *string `json:"description,omitempty"` RackCount *int32 `json:"rack_count,omitempty"` - Depth int32 `json:"_depth"` + Depth *int32 `json:"_depth,omitempty"` AdditionalProperties map[string]interface{} } @@ -37,13 +37,12 @@ type _BriefLocation BriefLocation // 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 -func NewBriefLocation(id int32, url string, name string, slug string, depth int32) *BriefLocation { +func NewBriefLocation(id int32, url string, name string, slug string) *BriefLocation { this := BriefLocation{} this.Id = id this.Url = url this.Name = name this.Slug = slug - this.Depth = depth return &this } @@ -247,28 +246,36 @@ func (o *BriefLocation) SetRackCount(v int32) { o.RackCount = &v } -// GetDepth returns the Depth field value +// GetDepth returns the Depth field value if set, zero value otherwise. func (o *BriefLocation) GetDepth() int32 { - if o == nil { + if o == nil || IsNil(o.Depth) { var ret int32 return ret } - - return o.Depth + return *o.Depth } -// GetDepthOk returns a tuple with the Depth field value +// GetDepthOk returns a tuple with the Depth field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BriefLocation) GetDepthOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.Depth) { return nil, false } - return &o.Depth, true + return o.Depth, true +} + +// HasDepth returns a boolean if a field has been set. +func (o *BriefLocation) HasDepth() bool { + if o != nil && !IsNil(o.Depth) { + return true + } + + return false } -// SetDepth sets field value +// SetDepth gets a reference to the given int32 and assigns it to the Depth field. func (o *BriefLocation) SetDepth(v int32) { - o.Depth = v + o.Depth = &v } func (o BriefLocation) MarshalJSON() ([]byte, error) { @@ -294,7 +301,9 @@ func (o BriefLocation) ToMap() (map[string]interface{}, error) { if !IsNil(o.RackCount) { toSerialize["rack_count"] = o.RackCount } - toSerialize["_depth"] = o.Depth + if !IsNil(o.Depth) { + toSerialize["_depth"] = o.Depth + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -312,7 +321,6 @@ func (o *BriefLocation) UnmarshalJSON(data []byte) (err error) { "url", "name", "slug", - "_depth", } // defaultValueFuncMap captures the default values for required properties. diff --git a/apiv4_4/model_brief_platform.go b/apiv4_4/model_brief_platform.go index 1312073c..864d14f8 100644 --- a/apiv4_4/model_brief_platform.go +++ b/apiv4_4/model_brief_platform.go @@ -28,7 +28,7 @@ type BriefPlatform struct { Description *string `json:"description,omitempty"` DeviceCount *int32 `json:"device_count,omitempty"` VirtualmachineCount *int32 `json:"virtualmachine_count,omitempty"` - Depth int32 `json:"_depth"` + Depth *int32 `json:"_depth,omitempty"` AdditionalProperties map[string]interface{} } @@ -38,13 +38,12 @@ type _BriefPlatform BriefPlatform // 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 -func NewBriefPlatform(id int32, url string, name string, slug string, depth int32) *BriefPlatform { +func NewBriefPlatform(id int32, url string, name string, slug string) *BriefPlatform { this := BriefPlatform{} this.Id = id this.Url = url this.Name = name this.Slug = slug - this.Depth = depth return &this } @@ -280,28 +279,36 @@ func (o *BriefPlatform) SetVirtualmachineCount(v int32) { o.VirtualmachineCount = &v } -// GetDepth returns the Depth field value +// GetDepth returns the Depth field value if set, zero value otherwise. func (o *BriefPlatform) GetDepth() int32 { - if o == nil { + if o == nil || IsNil(o.Depth) { var ret int32 return ret } - - return o.Depth + return *o.Depth } -// GetDepthOk returns a tuple with the Depth field value +// GetDepthOk returns a tuple with the Depth field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BriefPlatform) GetDepthOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.Depth) { return nil, false } - return &o.Depth, true + return o.Depth, true +} + +// HasDepth returns a boolean if a field has been set. +func (o *BriefPlatform) HasDepth() bool { + if o != nil && !IsNil(o.Depth) { + return true + } + + return false } -// SetDepth sets field value +// SetDepth gets a reference to the given int32 and assigns it to the Depth field. func (o *BriefPlatform) SetDepth(v int32) { - o.Depth = v + o.Depth = &v } func (o BriefPlatform) MarshalJSON() ([]byte, error) { @@ -330,7 +337,9 @@ func (o BriefPlatform) ToMap() (map[string]interface{}, error) { if !IsNil(o.VirtualmachineCount) { toSerialize["virtualmachine_count"] = o.VirtualmachineCount } - toSerialize["_depth"] = o.Depth + if !IsNil(o.Depth) { + toSerialize["_depth"] = o.Depth + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -348,7 +357,6 @@ func (o *BriefPlatform) UnmarshalJSON(data []byte) (err error) { "url", "name", "slug", - "_depth", } // defaultValueFuncMap captures the default values for required properties. diff --git a/apiv4_4/model_brief_region.go b/apiv4_4/model_brief_region.go index 08c2e8c7..c98c064c 100644 --- a/apiv4_4/model_brief_region.go +++ b/apiv4_4/model_brief_region.go @@ -27,7 +27,7 @@ type BriefRegion struct { Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` Description *string `json:"description,omitempty"` SiteCount *int32 `json:"site_count,omitempty"` - Depth int32 `json:"_depth"` + Depth *int32 `json:"_depth,omitempty"` AdditionalProperties map[string]interface{} } @@ -37,13 +37,12 @@ type _BriefRegion BriefRegion // 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 -func NewBriefRegion(id int32, url string, name string, slug string, depth int32) *BriefRegion { +func NewBriefRegion(id int32, url string, name string, slug string) *BriefRegion { this := BriefRegion{} this.Id = id this.Url = url this.Name = name this.Slug = slug - this.Depth = depth return &this } @@ -247,28 +246,36 @@ func (o *BriefRegion) SetSiteCount(v int32) { o.SiteCount = &v } -// GetDepth returns the Depth field value +// GetDepth returns the Depth field value if set, zero value otherwise. func (o *BriefRegion) GetDepth() int32 { - if o == nil { + if o == nil || IsNil(o.Depth) { var ret int32 return ret } - - return o.Depth + return *o.Depth } -// GetDepthOk returns a tuple with the Depth field value +// GetDepthOk returns a tuple with the Depth field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BriefRegion) GetDepthOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.Depth) { return nil, false } - return &o.Depth, true + return o.Depth, true +} + +// HasDepth returns a boolean if a field has been set. +func (o *BriefRegion) HasDepth() bool { + if o != nil && !IsNil(o.Depth) { + return true + } + + return false } -// SetDepth sets field value +// SetDepth gets a reference to the given int32 and assigns it to the Depth field. func (o *BriefRegion) SetDepth(v int32) { - o.Depth = v + o.Depth = &v } func (o BriefRegion) MarshalJSON() ([]byte, error) { @@ -294,7 +301,9 @@ func (o BriefRegion) ToMap() (map[string]interface{}, error) { if !IsNil(o.SiteCount) { toSerialize["site_count"] = o.SiteCount } - toSerialize["_depth"] = o.Depth + if !IsNil(o.Depth) { + toSerialize["_depth"] = o.Depth + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -312,7 +321,6 @@ func (o *BriefRegion) UnmarshalJSON(data []byte) (err error) { "url", "name", "slug", - "_depth", } // defaultValueFuncMap captures the default values for required properties. diff --git a/apiv4_4/model_brief_site_group.go b/apiv4_4/model_brief_site_group.go index 71c7cc4d..ff2bad9e 100644 --- a/apiv4_4/model_brief_site_group.go +++ b/apiv4_4/model_brief_site_group.go @@ -27,7 +27,7 @@ type BriefSiteGroup struct { Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` Description *string `json:"description,omitempty"` SiteCount *int32 `json:"site_count,omitempty"` - Depth int32 `json:"_depth"` + Depth *int32 `json:"_depth,omitempty"` AdditionalProperties map[string]interface{} } @@ -37,13 +37,12 @@ type _BriefSiteGroup BriefSiteGroup // 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 -func NewBriefSiteGroup(id int32, url string, name string, slug string, depth int32) *BriefSiteGroup { +func NewBriefSiteGroup(id int32, url string, name string, slug string) *BriefSiteGroup { this := BriefSiteGroup{} this.Id = id this.Url = url this.Name = name this.Slug = slug - this.Depth = depth return &this } @@ -247,28 +246,36 @@ func (o *BriefSiteGroup) SetSiteCount(v int32) { o.SiteCount = &v } -// GetDepth returns the Depth field value +// GetDepth returns the Depth field value if set, zero value otherwise. func (o *BriefSiteGroup) GetDepth() int32 { - if o == nil { + if o == nil || IsNil(o.Depth) { var ret int32 return ret } - - return o.Depth + return *o.Depth } -// GetDepthOk returns a tuple with the Depth field value +// GetDepthOk returns a tuple with the Depth field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BriefSiteGroup) GetDepthOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.Depth) { return nil, false } - return &o.Depth, true + return o.Depth, true +} + +// HasDepth returns a boolean if a field has been set. +func (o *BriefSiteGroup) HasDepth() bool { + if o != nil && !IsNil(o.Depth) { + return true + } + + return false } -// SetDepth sets field value +// SetDepth gets a reference to the given int32 and assigns it to the Depth field. func (o *BriefSiteGroup) SetDepth(v int32) { - o.Depth = v + o.Depth = &v } func (o BriefSiteGroup) MarshalJSON() ([]byte, error) { @@ -294,7 +301,9 @@ func (o BriefSiteGroup) ToMap() (map[string]interface{}, error) { if !IsNil(o.SiteCount) { toSerialize["site_count"] = o.SiteCount } - toSerialize["_depth"] = o.Depth + if !IsNil(o.Depth) { + toSerialize["_depth"] = o.Depth + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -312,7 +321,6 @@ func (o *BriefSiteGroup) UnmarshalJSON(data []byte) (err error) { "url", "name", "slug", - "_depth", } // defaultValueFuncMap captures the default values for required properties. diff --git a/apiv4_4/model_brief_tenant_group.go b/apiv4_4/model_brief_tenant_group.go index 99bf3e0d..c2517cff 100644 --- a/apiv4_4/model_brief_tenant_group.go +++ b/apiv4_4/model_brief_tenant_group.go @@ -27,7 +27,7 @@ type BriefTenantGroup struct { Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` Description *string `json:"description,omitempty"` TenantCount *int32 `json:"tenant_count,omitempty"` - Depth int32 `json:"_depth"` + Depth *int32 `json:"_depth,omitempty"` AdditionalProperties map[string]interface{} } @@ -37,13 +37,12 @@ type _BriefTenantGroup BriefTenantGroup // 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 -func NewBriefTenantGroup(id int32, url string, name string, slug string, depth int32) *BriefTenantGroup { +func NewBriefTenantGroup(id int32, url string, name string, slug string) *BriefTenantGroup { this := BriefTenantGroup{} this.Id = id this.Url = url this.Name = name this.Slug = slug - this.Depth = depth return &this } @@ -247,28 +246,36 @@ func (o *BriefTenantGroup) SetTenantCount(v int32) { o.TenantCount = &v } -// GetDepth returns the Depth field value +// GetDepth returns the Depth field value if set, zero value otherwise. func (o *BriefTenantGroup) GetDepth() int32 { - if o == nil { + if o == nil || IsNil(o.Depth) { var ret int32 return ret } - - return o.Depth + return *o.Depth } -// GetDepthOk returns a tuple with the Depth field value +// GetDepthOk returns a tuple with the Depth field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BriefTenantGroup) GetDepthOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.Depth) { return nil, false } - return &o.Depth, true + return o.Depth, true +} + +// HasDepth returns a boolean if a field has been set. +func (o *BriefTenantGroup) HasDepth() bool { + if o != nil && !IsNil(o.Depth) { + return true + } + + return false } -// SetDepth sets field value +// SetDepth gets a reference to the given int32 and assigns it to the Depth field. func (o *BriefTenantGroup) SetDepth(v int32) { - o.Depth = v + o.Depth = &v } func (o BriefTenantGroup) MarshalJSON() ([]byte, error) { @@ -294,7 +301,9 @@ func (o BriefTenantGroup) ToMap() (map[string]interface{}, error) { if !IsNil(o.TenantCount) { toSerialize["tenant_count"] = o.TenantCount } - toSerialize["_depth"] = o.Depth + if !IsNil(o.Depth) { + toSerialize["_depth"] = o.Depth + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -312,7 +321,6 @@ func (o *BriefTenantGroup) UnmarshalJSON(data []byte) (err error) { "url", "name", "slug", - "_depth", } // defaultValueFuncMap captures the default values for required properties. diff --git a/apiv4_4/model_brief_wireless_lan_group.go b/apiv4_4/model_brief_wireless_lan_group.go index 6e1a0dfe..1c8b8e94 100644 --- a/apiv4_4/model_brief_wireless_lan_group.go +++ b/apiv4_4/model_brief_wireless_lan_group.go @@ -27,7 +27,7 @@ type BriefWirelessLANGroup struct { Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` Description *string `json:"description,omitempty"` WirelesslanCount *int32 `json:"wirelesslan_count,omitempty"` - Depth int32 `json:"_depth"` + Depth *int32 `json:"_depth,omitempty"` AdditionalProperties map[string]interface{} } @@ -37,13 +37,12 @@ type _BriefWirelessLANGroup BriefWirelessLANGroup // 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 -func NewBriefWirelessLANGroup(id int32, url string, name string, slug string, depth int32) *BriefWirelessLANGroup { +func NewBriefWirelessLANGroup(id int32, url string, name string, slug string) *BriefWirelessLANGroup { this := BriefWirelessLANGroup{} this.Id = id this.Url = url this.Name = name this.Slug = slug - this.Depth = depth return &this } @@ -247,28 +246,36 @@ func (o *BriefWirelessLANGroup) SetWirelesslanCount(v int32) { o.WirelesslanCount = &v } -// GetDepth returns the Depth field value +// GetDepth returns the Depth field value if set, zero value otherwise. func (o *BriefWirelessLANGroup) GetDepth() int32 { - if o == nil { + if o == nil || IsNil(o.Depth) { var ret int32 return ret } - - return o.Depth + return *o.Depth } -// GetDepthOk returns a tuple with the Depth field value +// GetDepthOk returns a tuple with the Depth field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BriefWirelessLANGroup) GetDepthOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.Depth) { return nil, false } - return &o.Depth, true + return o.Depth, true +} + +// HasDepth returns a boolean if a field has been set. +func (o *BriefWirelessLANGroup) HasDepth() bool { + if o != nil && !IsNil(o.Depth) { + return true + } + + return false } -// SetDepth sets field value +// SetDepth gets a reference to the given int32 and assigns it to the Depth field. func (o *BriefWirelessLANGroup) SetDepth(v int32) { - o.Depth = v + o.Depth = &v } func (o BriefWirelessLANGroup) MarshalJSON() ([]byte, error) { @@ -294,7 +301,9 @@ func (o BriefWirelessLANGroup) ToMap() (map[string]interface{}, error) { if !IsNil(o.WirelesslanCount) { toSerialize["wirelesslan_count"] = o.WirelesslanCount } - toSerialize["_depth"] = o.Depth + if !IsNil(o.Depth) { + toSerialize["_depth"] = o.Depth + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -312,7 +321,6 @@ func (o *BriefWirelessLANGroup) UnmarshalJSON(data []byte) (err error) { "url", "name", "slug", - "_depth", } // defaultValueFuncMap captures the default values for required properties. diff --git a/apiv4_4/model_contact_group.go b/apiv4_4/model_contact_group.go index e470f2d1..9b46c9b0 100644 --- a/apiv4_4/model_contact_group.go +++ b/apiv4_4/model_contact_group.go @@ -35,7 +35,7 @@ type ContactGroup struct { LastUpdated NullableTime `json:"last_updated"` ContactCount *int32 `json:"contact_count,omitempty"` Comments *string `json:"comments,omitempty"` - Depth int32 `json:"_depth"` + Depth *int32 `json:"_depth,omitempty"` AdditionalProperties map[string]interface{} } @@ -45,14 +45,13 @@ type _ContactGroup ContactGroup // 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 -func NewContactGroup(id int32, url string, name string, slug string, lastUpdated NullableTime, depth int32) *ContactGroup { +func NewContactGroup(id int32, url string, name string, slug string, lastUpdated NullableTime) *ContactGroup { this := ContactGroup{} this.Id = id this.Url = url this.Name = name this.Slug = slug this.LastUpdated = lastUpdated - this.Depth = depth return &this } @@ -496,28 +495,36 @@ func (o *ContactGroup) SetComments(v string) { o.Comments = &v } -// GetDepth returns the Depth field value +// GetDepth returns the Depth field value if set, zero value otherwise. func (o *ContactGroup) GetDepth() int32 { - if o == nil { + if o == nil || IsNil(o.Depth) { var ret int32 return ret } - - return o.Depth + return *o.Depth } -// GetDepthOk returns a tuple with the Depth field value +// GetDepthOk returns a tuple with the Depth field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *ContactGroup) GetDepthOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.Depth) { return nil, false } - return &o.Depth, true + return o.Depth, true +} + +// HasDepth returns a boolean if a field has been set. +func (o *ContactGroup) HasDepth() bool { + if o != nil && !IsNil(o.Depth) { + return true + } + + return false } -// SetDepth sets field value +// SetDepth gets a reference to the given int32 and assigns it to the Depth field. func (o *ContactGroup) SetDepth(v int32) { - o.Depth = v + o.Depth = &v } func (o ContactGroup) MarshalJSON() ([]byte, error) { @@ -562,7 +569,9 @@ func (o ContactGroup) ToMap() (map[string]interface{}, error) { if !IsNil(o.Comments) { toSerialize["comments"] = o.Comments } - toSerialize["_depth"] = o.Depth + if !IsNil(o.Depth) { + toSerialize["_depth"] = o.Depth + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -581,7 +590,6 @@ func (o *ContactGroup) UnmarshalJSON(data []byte) (err error) { "name", "slug", "last_updated", - "_depth", } // defaultValueFuncMap captures the default values for required properties. diff --git a/apiv4_4/model_device_role.go b/apiv4_4/model_device_role.go index 9bfe6692..31106309 100644 --- a/apiv4_4/model_device_role.go +++ b/apiv4_4/model_device_role.go @@ -40,7 +40,7 @@ type DeviceRole struct { DeviceCount *int32 `json:"device_count,omitempty"` VirtualmachineCount *int32 `json:"virtualmachine_count,omitempty"` Comments *string `json:"comments,omitempty"` - Depth int32 `json:"_depth"` + Depth *int32 `json:"_depth,omitempty"` AdditionalProperties map[string]interface{} } @@ -50,14 +50,13 @@ type _DeviceRole DeviceRole // 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 -func NewDeviceRole(id int32, url string, name string, slug string, lastUpdated NullableTime, depth int32) *DeviceRole { +func NewDeviceRole(id int32, url string, name string, slug string, lastUpdated NullableTime) *DeviceRole { this := DeviceRole{} this.Id = id this.Url = url this.Name = name this.Slug = slug this.LastUpdated = lastUpdated - this.Depth = depth return &this } @@ -640,28 +639,36 @@ func (o *DeviceRole) SetComments(v string) { o.Comments = &v } -// GetDepth returns the Depth field value +// GetDepth returns the Depth field value if set, zero value otherwise. func (o *DeviceRole) GetDepth() int32 { - if o == nil { + if o == nil || IsNil(o.Depth) { var ret int32 return ret } - - return o.Depth + return *o.Depth } -// GetDepthOk returns a tuple with the Depth field value +// GetDepthOk returns a tuple with the Depth field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *DeviceRole) GetDepthOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.Depth) { return nil, false } - return &o.Depth, true + return o.Depth, true +} + +// HasDepth returns a boolean if a field has been set. +func (o *DeviceRole) HasDepth() bool { + if o != nil && !IsNil(o.Depth) { + return true + } + + return false } -// SetDepth sets field value +// SetDepth gets a reference to the given int32 and assigns it to the Depth field. func (o *DeviceRole) SetDepth(v int32) { - o.Depth = v + o.Depth = &v } func (o DeviceRole) MarshalJSON() ([]byte, error) { @@ -718,7 +725,9 @@ func (o DeviceRole) ToMap() (map[string]interface{}, error) { if !IsNil(o.Comments) { toSerialize["comments"] = o.Comments } - toSerialize["_depth"] = o.Depth + if !IsNil(o.Depth) { + toSerialize["_depth"] = o.Depth + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -737,7 +746,6 @@ func (o *DeviceRole) UnmarshalJSON(data []byte) (err error) { "name", "slug", "last_updated", - "_depth", } // defaultValueFuncMap captures the default values for required properties. diff --git a/apiv4_4/model_inventory_item.go b/apiv4_4/model_inventory_item.go index 64b563c8..e7480623 100644 --- a/apiv4_4/model_inventory_item.go +++ b/apiv4_4/model_inventory_item.go @@ -48,7 +48,7 @@ type InventoryItem struct { CustomFields map[string]interface{} `json:"custom_fields,omitempty"` Created NullableTime `json:"created,omitempty"` LastUpdated NullableTime `json:"last_updated"` - Depth int32 `json:"_depth"` + Depth *int32 `json:"_depth,omitempty"` AdditionalProperties map[string]interface{} } @@ -58,7 +58,7 @@ type _InventoryItem InventoryItem // 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 -func NewInventoryItem(id int32, url string, device BriefDevice, name string, component interface{}, lastUpdated NullableTime, depth int32) *InventoryItem { +func NewInventoryItem(id int32, url string, device BriefDevice, name string, component interface{}, lastUpdated NullableTime) *InventoryItem { this := InventoryItem{} this.Id = id this.Url = url @@ -66,7 +66,6 @@ func NewInventoryItem(id int32, url string, device BriefDevice, name string, com this.Name = name this.Component = component this.LastUpdated = lastUpdated - this.Depth = depth return &this } @@ -847,28 +846,36 @@ func (o *InventoryItem) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } -// GetDepth returns the Depth field value +// GetDepth returns the Depth field value if set, zero value otherwise. func (o *InventoryItem) GetDepth() int32 { - if o == nil { + if o == nil || IsNil(o.Depth) { var ret int32 return ret } - - return o.Depth + return *o.Depth } -// GetDepthOk returns a tuple with the Depth field value +// GetDepthOk returns a tuple with the Depth field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *InventoryItem) GetDepthOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.Depth) { return nil, false } - return &o.Depth, true + return o.Depth, true +} + +// HasDepth returns a boolean if a field has been set. +func (o *InventoryItem) HasDepth() bool { + if o != nil && !IsNil(o.Depth) { + return true + } + + return false } -// SetDepth sets field value +// SetDepth gets a reference to the given int32 and assigns it to the Depth field. func (o *InventoryItem) SetDepth(v int32) { - o.Depth = v + o.Depth = &v } func (o InventoryItem) MarshalJSON() ([]byte, error) { @@ -940,7 +947,9 @@ func (o InventoryItem) ToMap() (map[string]interface{}, error) { toSerialize["created"] = o.Created.Get() } toSerialize["last_updated"] = o.LastUpdated.Get() - toSerialize["_depth"] = o.Depth + if !IsNil(o.Depth) { + toSerialize["_depth"] = o.Depth + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -960,7 +969,6 @@ func (o *InventoryItem) UnmarshalJSON(data []byte) (err error) { "name", "component", "last_updated", - "_depth", } // defaultValueFuncMap captures the default values for required properties. diff --git a/apiv4_4/model_inventory_item_template.go b/apiv4_4/model_inventory_item_template.go index 8512a3cb..1c1f251e 100644 --- a/apiv4_4/model_inventory_item_template.go +++ b/apiv4_4/model_inventory_item_template.go @@ -40,7 +40,7 @@ type InventoryItemTemplate struct { Component interface{} `json:"component"` Created NullableTime `json:"created,omitempty"` LastUpdated NullableTime `json:"last_updated"` - Depth int32 `json:"_depth"` + Depth *int32 `json:"_depth,omitempty"` AdditionalProperties map[string]interface{} } @@ -50,7 +50,7 @@ type _InventoryItemTemplate InventoryItemTemplate // 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 -func NewInventoryItemTemplate(id int32, url string, deviceType BriefDeviceType, name string, component interface{}, lastUpdated NullableTime, depth int32) *InventoryItemTemplate { +func NewInventoryItemTemplate(id int32, url string, deviceType BriefDeviceType, name string, component interface{}, lastUpdated NullableTime) *InventoryItemTemplate { this := InventoryItemTemplate{} this.Id = id this.Url = url @@ -58,7 +58,6 @@ func NewInventoryItemTemplate(id int32, url string, deviceType BriefDeviceType, this.Name = name this.Component = component this.LastUpdated = lastUpdated - this.Depth = depth return &this } @@ -604,28 +603,36 @@ func (o *InventoryItemTemplate) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } -// GetDepth returns the Depth field value +// GetDepth returns the Depth field value if set, zero value otherwise. func (o *InventoryItemTemplate) GetDepth() int32 { - if o == nil { + if o == nil || IsNil(o.Depth) { var ret int32 return ret } - - return o.Depth + return *o.Depth } -// GetDepthOk returns a tuple with the Depth field value +// GetDepthOk returns a tuple with the Depth field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *InventoryItemTemplate) GetDepthOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.Depth) { return nil, false } - return &o.Depth, true + return o.Depth, true +} + +// HasDepth returns a boolean if a field has been set. +func (o *InventoryItemTemplate) HasDepth() bool { + if o != nil && !IsNil(o.Depth) { + return true + } + + return false } -// SetDepth sets field value +// SetDepth gets a reference to the given int32 and assigns it to the Depth field. func (o *InventoryItemTemplate) SetDepth(v int32) { - o.Depth = v + o.Depth = &v } func (o InventoryItemTemplate) MarshalJSON() ([]byte, error) { @@ -676,7 +683,9 @@ func (o InventoryItemTemplate) ToMap() (map[string]interface{}, error) { toSerialize["created"] = o.Created.Get() } toSerialize["last_updated"] = o.LastUpdated.Get() - toSerialize["_depth"] = o.Depth + if !IsNil(o.Depth) { + toSerialize["_depth"] = o.Depth + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -696,7 +705,6 @@ func (o *InventoryItemTemplate) UnmarshalJSON(data []byte) (err error) { "name", "component", "last_updated", - "_depth", } // defaultValueFuncMap captures the default values for required properties. diff --git a/apiv4_4/model_location.go b/apiv4_4/model_location.go index af7e01e1..93e15d93 100644 --- a/apiv4_4/model_location.go +++ b/apiv4_4/model_location.go @@ -42,7 +42,7 @@ type Location struct { DeviceCount *int32 `json:"device_count,omitempty"` PrefixCount *int64 `json:"prefix_count,omitempty"` Comments *string `json:"comments,omitempty"` - Depth int32 `json:"_depth"` + Depth *int32 `json:"_depth,omitempty"` AdditionalProperties map[string]interface{} } @@ -52,7 +52,7 @@ type _Location Location // 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 -func NewLocation(id int32, url string, name string, slug string, site BriefSite, lastUpdated NullableTime, depth int32) *Location { +func NewLocation(id int32, url string, name string, slug string, site BriefSite, lastUpdated NullableTime) *Location { this := Location{} this.Id = id this.Url = url @@ -60,7 +60,6 @@ func NewLocation(id int32, url string, name string, slug string, site BriefSite, this.Slug = slug this.Site = site this.LastUpdated = lastUpdated - this.Depth = depth return &this } @@ -699,28 +698,36 @@ func (o *Location) SetComments(v string) { o.Comments = &v } -// GetDepth returns the Depth field value +// GetDepth returns the Depth field value if set, zero value otherwise. func (o *Location) GetDepth() int32 { - if o == nil { + if o == nil || IsNil(o.Depth) { var ret int32 return ret } - - return o.Depth + return *o.Depth } -// GetDepthOk returns a tuple with the Depth field value +// GetDepthOk returns a tuple with the Depth field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Location) GetDepthOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.Depth) { return nil, false } - return &o.Depth, true + return o.Depth, true +} + +// HasDepth returns a boolean if a field has been set. +func (o *Location) HasDepth() bool { + if o != nil && !IsNil(o.Depth) { + return true + } + + return false } -// SetDepth sets field value +// SetDepth gets a reference to the given int32 and assigns it to the Depth field. func (o *Location) SetDepth(v int32) { - o.Depth = v + o.Depth = &v } func (o Location) MarshalJSON() ([]byte, error) { @@ -781,7 +788,9 @@ func (o Location) ToMap() (map[string]interface{}, error) { if !IsNil(o.Comments) { toSerialize["comments"] = o.Comments } - toSerialize["_depth"] = o.Depth + if !IsNil(o.Depth) { + toSerialize["_depth"] = o.Depth + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -801,7 +810,6 @@ func (o *Location) UnmarshalJSON(data []byte) (err error) { "slug", "site", "last_updated", - "_depth", } // defaultValueFuncMap captures the default values for required properties. diff --git a/apiv4_4/model_nested_contact_group.go b/apiv4_4/model_nested_contact_group.go index 2f268da5..31074f35 100644 --- a/apiv4_4/model_nested_contact_group.go +++ b/apiv4_4/model_nested_contact_group.go @@ -26,7 +26,7 @@ type NestedContactGroup struct { Display *string `json:"display,omitempty"` Name string `json:"name"` Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` - Depth int32 `json:"_depth"` + Depth *int32 `json:"_depth,omitempty"` AdditionalProperties map[string]interface{} } @@ -36,13 +36,12 @@ type _NestedContactGroup NestedContactGroup // 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 -func NewNestedContactGroup(id int32, url string, name string, slug string, depth int32) *NestedContactGroup { +func NewNestedContactGroup(id int32, url string, name string, slug string) *NestedContactGroup { this := NestedContactGroup{} this.Id = id this.Url = url this.Name = name this.Slug = slug - this.Depth = depth return &this } @@ -214,28 +213,36 @@ func (o *NestedContactGroup) SetSlug(v string) { o.Slug = v } -// GetDepth returns the Depth field value +// GetDepth returns the Depth field value if set, zero value otherwise. func (o *NestedContactGroup) GetDepth() int32 { - if o == nil { + if o == nil || IsNil(o.Depth) { var ret int32 return ret } - - return o.Depth + return *o.Depth } -// GetDepthOk returns a tuple with the Depth field value +// GetDepthOk returns a tuple with the Depth field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NestedContactGroup) GetDepthOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.Depth) { return nil, false } - return &o.Depth, true + return o.Depth, true +} + +// HasDepth returns a boolean if a field has been set. +func (o *NestedContactGroup) HasDepth() bool { + if o != nil && !IsNil(o.Depth) { + return true + } + + return false } -// SetDepth sets field value +// SetDepth gets a reference to the given int32 and assigns it to the Depth field. func (o *NestedContactGroup) SetDepth(v int32) { - o.Depth = v + o.Depth = &v } func (o NestedContactGroup) MarshalJSON() ([]byte, error) { @@ -258,7 +265,9 @@ func (o NestedContactGroup) ToMap() (map[string]interface{}, error) { } toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug - toSerialize["_depth"] = o.Depth + if !IsNil(o.Depth) { + toSerialize["_depth"] = o.Depth + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -276,7 +285,6 @@ func (o *NestedContactGroup) UnmarshalJSON(data []byte) (err error) { "url", "name", "slug", - "_depth", } // defaultValueFuncMap captures the default values for required properties. diff --git a/apiv4_4/model_nested_location.go b/apiv4_4/model_nested_location.go index 6f3c2201..eb1456e2 100644 --- a/apiv4_4/model_nested_location.go +++ b/apiv4_4/model_nested_location.go @@ -26,7 +26,7 @@ type NestedLocation struct { Display *string `json:"display,omitempty"` Name string `json:"name"` Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` - Depth int32 `json:"_depth"` + Depth *int32 `json:"_depth,omitempty"` AdditionalProperties map[string]interface{} } @@ -36,13 +36,12 @@ type _NestedLocation NestedLocation // 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 -func NewNestedLocation(id int32, url string, name string, slug string, depth int32) *NestedLocation { +func NewNestedLocation(id int32, url string, name string, slug string) *NestedLocation { this := NestedLocation{} this.Id = id this.Url = url this.Name = name this.Slug = slug - this.Depth = depth return &this } @@ -214,28 +213,36 @@ func (o *NestedLocation) SetSlug(v string) { o.Slug = v } -// GetDepth returns the Depth field value +// GetDepth returns the Depth field value if set, zero value otherwise. func (o *NestedLocation) GetDepth() int32 { - if o == nil { + if o == nil || IsNil(o.Depth) { var ret int32 return ret } - - return o.Depth + return *o.Depth } -// GetDepthOk returns a tuple with the Depth field value +// GetDepthOk returns a tuple with the Depth field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NestedLocation) GetDepthOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.Depth) { return nil, false } - return &o.Depth, true + return o.Depth, true +} + +// HasDepth returns a boolean if a field has been set. +func (o *NestedLocation) HasDepth() bool { + if o != nil && !IsNil(o.Depth) { + return true + } + + return false } -// SetDepth sets field value +// SetDepth gets a reference to the given int32 and assigns it to the Depth field. func (o *NestedLocation) SetDepth(v int32) { - o.Depth = v + o.Depth = &v } func (o NestedLocation) MarshalJSON() ([]byte, error) { @@ -258,7 +265,9 @@ func (o NestedLocation) ToMap() (map[string]interface{}, error) { } toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug - toSerialize["_depth"] = o.Depth + if !IsNil(o.Depth) { + toSerialize["_depth"] = o.Depth + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -276,7 +285,6 @@ func (o *NestedLocation) UnmarshalJSON(data []byte) (err error) { "url", "name", "slug", - "_depth", } // defaultValueFuncMap captures the default values for required properties. diff --git a/apiv4_4/model_nested_region.go b/apiv4_4/model_nested_region.go index baf900c6..44392c5c 100644 --- a/apiv4_4/model_nested_region.go +++ b/apiv4_4/model_nested_region.go @@ -26,7 +26,7 @@ type NestedRegion struct { Display *string `json:"display,omitempty"` Name string `json:"name"` Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` - Depth int32 `json:"_depth"` + Depth *int32 `json:"_depth,omitempty"` AdditionalProperties map[string]interface{} } @@ -36,13 +36,12 @@ type _NestedRegion NestedRegion // 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 -func NewNestedRegion(id int32, url string, name string, slug string, depth int32) *NestedRegion { +func NewNestedRegion(id int32, url string, name string, slug string) *NestedRegion { this := NestedRegion{} this.Id = id this.Url = url this.Name = name this.Slug = slug - this.Depth = depth return &this } @@ -214,28 +213,36 @@ func (o *NestedRegion) SetSlug(v string) { o.Slug = v } -// GetDepth returns the Depth field value +// GetDepth returns the Depth field value if set, zero value otherwise. func (o *NestedRegion) GetDepth() int32 { - if o == nil { + if o == nil || IsNil(o.Depth) { var ret int32 return ret } - - return o.Depth + return *o.Depth } -// GetDepthOk returns a tuple with the Depth field value +// GetDepthOk returns a tuple with the Depth field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NestedRegion) GetDepthOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.Depth) { return nil, false } - return &o.Depth, true + return o.Depth, true +} + +// HasDepth returns a boolean if a field has been set. +func (o *NestedRegion) HasDepth() bool { + if o != nil && !IsNil(o.Depth) { + return true + } + + return false } -// SetDepth sets field value +// SetDepth gets a reference to the given int32 and assigns it to the Depth field. func (o *NestedRegion) SetDepth(v int32) { - o.Depth = v + o.Depth = &v } func (o NestedRegion) MarshalJSON() ([]byte, error) { @@ -258,7 +265,9 @@ func (o NestedRegion) ToMap() (map[string]interface{}, error) { } toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug - toSerialize["_depth"] = o.Depth + if !IsNil(o.Depth) { + toSerialize["_depth"] = o.Depth + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -276,7 +285,6 @@ func (o *NestedRegion) UnmarshalJSON(data []byte) (err error) { "url", "name", "slug", - "_depth", } // defaultValueFuncMap captures the default values for required properties. diff --git a/apiv4_4/model_nested_site_group.go b/apiv4_4/model_nested_site_group.go index 6635201f..8f26e827 100644 --- a/apiv4_4/model_nested_site_group.go +++ b/apiv4_4/model_nested_site_group.go @@ -26,7 +26,7 @@ type NestedSiteGroup struct { Display *string `json:"display,omitempty"` Name string `json:"name"` Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` - Depth int32 `json:"_depth"` + Depth *int32 `json:"_depth,omitempty"` AdditionalProperties map[string]interface{} } @@ -36,13 +36,12 @@ type _NestedSiteGroup NestedSiteGroup // 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 -func NewNestedSiteGroup(id int32, url string, name string, slug string, depth int32) *NestedSiteGroup { +func NewNestedSiteGroup(id int32, url string, name string, slug string) *NestedSiteGroup { this := NestedSiteGroup{} this.Id = id this.Url = url this.Name = name this.Slug = slug - this.Depth = depth return &this } @@ -214,28 +213,36 @@ func (o *NestedSiteGroup) SetSlug(v string) { o.Slug = v } -// GetDepth returns the Depth field value +// GetDepth returns the Depth field value if set, zero value otherwise. func (o *NestedSiteGroup) GetDepth() int32 { - if o == nil { + if o == nil || IsNil(o.Depth) { var ret int32 return ret } - - return o.Depth + return *o.Depth } -// GetDepthOk returns a tuple with the Depth field value +// GetDepthOk returns a tuple with the Depth field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NestedSiteGroup) GetDepthOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.Depth) { return nil, false } - return &o.Depth, true + return o.Depth, true +} + +// HasDepth returns a boolean if a field has been set. +func (o *NestedSiteGroup) HasDepth() bool { + if o != nil && !IsNil(o.Depth) { + return true + } + + return false } -// SetDepth sets field value +// SetDepth gets a reference to the given int32 and assigns it to the Depth field. func (o *NestedSiteGroup) SetDepth(v int32) { - o.Depth = v + o.Depth = &v } func (o NestedSiteGroup) MarshalJSON() ([]byte, error) { @@ -258,7 +265,9 @@ func (o NestedSiteGroup) ToMap() (map[string]interface{}, error) { } toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug - toSerialize["_depth"] = o.Depth + if !IsNil(o.Depth) { + toSerialize["_depth"] = o.Depth + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -276,7 +285,6 @@ func (o *NestedSiteGroup) UnmarshalJSON(data []byte) (err error) { "url", "name", "slug", - "_depth", } // defaultValueFuncMap captures the default values for required properties. diff --git a/apiv4_4/model_nested_tenant_group.go b/apiv4_4/model_nested_tenant_group.go index b57a3c33..063b6632 100644 --- a/apiv4_4/model_nested_tenant_group.go +++ b/apiv4_4/model_nested_tenant_group.go @@ -26,7 +26,7 @@ type NestedTenantGroup struct { Display *string `json:"display,omitempty"` Name string `json:"name"` Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` - Depth int32 `json:"_depth"` + Depth *int32 `json:"_depth,omitempty"` AdditionalProperties map[string]interface{} } @@ -36,13 +36,12 @@ type _NestedTenantGroup NestedTenantGroup // 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 -func NewNestedTenantGroup(id int32, url string, name string, slug string, depth int32) *NestedTenantGroup { +func NewNestedTenantGroup(id int32, url string, name string, slug string) *NestedTenantGroup { this := NestedTenantGroup{} this.Id = id this.Url = url this.Name = name this.Slug = slug - this.Depth = depth return &this } @@ -214,28 +213,36 @@ func (o *NestedTenantGroup) SetSlug(v string) { o.Slug = v } -// GetDepth returns the Depth field value +// GetDepth returns the Depth field value if set, zero value otherwise. func (o *NestedTenantGroup) GetDepth() int32 { - if o == nil { + if o == nil || IsNil(o.Depth) { var ret int32 return ret } - - return o.Depth + return *o.Depth } -// GetDepthOk returns a tuple with the Depth field value +// GetDepthOk returns a tuple with the Depth field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NestedTenantGroup) GetDepthOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.Depth) { return nil, false } - return &o.Depth, true + return o.Depth, true +} + +// HasDepth returns a boolean if a field has been set. +func (o *NestedTenantGroup) HasDepth() bool { + if o != nil && !IsNil(o.Depth) { + return true + } + + return false } -// SetDepth sets field value +// SetDepth gets a reference to the given int32 and assigns it to the Depth field. func (o *NestedTenantGroup) SetDepth(v int32) { - o.Depth = v + o.Depth = &v } func (o NestedTenantGroup) MarshalJSON() ([]byte, error) { @@ -258,7 +265,9 @@ func (o NestedTenantGroup) ToMap() (map[string]interface{}, error) { } toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug - toSerialize["_depth"] = o.Depth + if !IsNil(o.Depth) { + toSerialize["_depth"] = o.Depth + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -276,7 +285,6 @@ func (o *NestedTenantGroup) UnmarshalJSON(data []byte) (err error) { "url", "name", "slug", - "_depth", } // defaultValueFuncMap captures the default values for required properties. diff --git a/apiv4_4/model_nested_wireless_lan_group.go b/apiv4_4/model_nested_wireless_lan_group.go index 7be7df16..3ea30c04 100644 --- a/apiv4_4/model_nested_wireless_lan_group.go +++ b/apiv4_4/model_nested_wireless_lan_group.go @@ -26,7 +26,7 @@ type NestedWirelessLANGroup struct { Display *string `json:"display,omitempty"` Name string `json:"name"` Slug string `json:"slug" validate:"regexp=^[-a-zA-Z0-9_]+$"` - Depth int32 `json:"_depth"` + Depth *int32 `json:"_depth,omitempty"` AdditionalProperties map[string]interface{} } @@ -36,13 +36,12 @@ type _NestedWirelessLANGroup NestedWirelessLANGroup // 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 -func NewNestedWirelessLANGroup(id int32, url string, name string, slug string, depth int32) *NestedWirelessLANGroup { +func NewNestedWirelessLANGroup(id int32, url string, name string, slug string) *NestedWirelessLANGroup { this := NestedWirelessLANGroup{} this.Id = id this.Url = url this.Name = name this.Slug = slug - this.Depth = depth return &this } @@ -214,28 +213,36 @@ func (o *NestedWirelessLANGroup) SetSlug(v string) { o.Slug = v } -// GetDepth returns the Depth field value +// GetDepth returns the Depth field value if set, zero value otherwise. func (o *NestedWirelessLANGroup) GetDepth() int32 { - if o == nil { + if o == nil || IsNil(o.Depth) { var ret int32 return ret } - - return o.Depth + return *o.Depth } -// GetDepthOk returns a tuple with the Depth field value +// GetDepthOk returns a tuple with the Depth field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NestedWirelessLANGroup) GetDepthOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.Depth) { return nil, false } - return &o.Depth, true + return o.Depth, true +} + +// HasDepth returns a boolean if a field has been set. +func (o *NestedWirelessLANGroup) HasDepth() bool { + if o != nil && !IsNil(o.Depth) { + return true + } + + return false } -// SetDepth sets field value +// SetDepth gets a reference to the given int32 and assigns it to the Depth field. func (o *NestedWirelessLANGroup) SetDepth(v int32) { - o.Depth = v + o.Depth = &v } func (o NestedWirelessLANGroup) MarshalJSON() ([]byte, error) { @@ -258,7 +265,9 @@ func (o NestedWirelessLANGroup) ToMap() (map[string]interface{}, error) { } toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug - toSerialize["_depth"] = o.Depth + if !IsNil(o.Depth) { + toSerialize["_depth"] = o.Depth + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -276,7 +285,6 @@ func (o *NestedWirelessLANGroup) UnmarshalJSON(data []byte) (err error) { "url", "name", "slug", - "_depth", } // defaultValueFuncMap captures the default values for required properties. diff --git a/apiv4_4/model_platform.go b/apiv4_4/model_platform.go index b3580df6..de048203 100644 --- a/apiv4_4/model_platform.go +++ b/apiv4_4/model_platform.go @@ -38,7 +38,7 @@ type Platform struct { LastUpdated NullableTime `json:"last_updated"` DeviceCount *int32 `json:"device_count,omitempty"` VirtualmachineCount *int32 `json:"virtualmachine_count,omitempty"` - Depth int32 `json:"_depth"` + Depth *int32 `json:"_depth,omitempty"` AdditionalProperties map[string]interface{} } @@ -48,14 +48,13 @@ type _Platform Platform // 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 -func NewPlatform(id int32, url string, name string, slug string, lastUpdated NullableTime, depth int32) *Platform { +func NewPlatform(id int32, url string, name string, slug string, lastUpdated NullableTime) *Platform { this := Platform{} this.Id = id this.Url = url this.Name = name this.Slug = slug this.LastUpdated = lastUpdated - this.Depth = depth return &this } @@ -617,28 +616,36 @@ func (o *Platform) SetVirtualmachineCount(v int32) { o.VirtualmachineCount = &v } -// GetDepth returns the Depth field value +// GetDepth returns the Depth field value if set, zero value otherwise. func (o *Platform) GetDepth() int32 { - if o == nil { + if o == nil || IsNil(o.Depth) { var ret int32 return ret } - - return o.Depth + return *o.Depth } -// GetDepthOk returns a tuple with the Depth field value +// GetDepthOk returns a tuple with the Depth field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Platform) GetDepthOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.Depth) { return nil, false } - return &o.Depth, true + return o.Depth, true +} + +// HasDepth returns a boolean if a field has been set. +func (o *Platform) HasDepth() bool { + if o != nil && !IsNil(o.Depth) { + return true + } + + return false } -// SetDepth sets field value +// SetDepth gets a reference to the given int32 and assigns it to the Depth field. func (o *Platform) SetDepth(v int32) { - o.Depth = v + o.Depth = &v } func (o Platform) MarshalJSON() ([]byte, error) { @@ -692,7 +699,9 @@ func (o Platform) ToMap() (map[string]interface{}, error) { if !IsNil(o.VirtualmachineCount) { toSerialize["virtualmachine_count"] = o.VirtualmachineCount } - toSerialize["_depth"] = o.Depth + if !IsNil(o.Depth) { + toSerialize["_depth"] = o.Depth + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -711,7 +720,6 @@ func (o *Platform) UnmarshalJSON(data []byte) (err error) { "name", "slug", "last_updated", - "_depth", } // defaultValueFuncMap captures the default values for required properties. diff --git a/apiv4_4/model_prefix.go b/apiv4_4/model_prefix.go index f488eb2c..66935a2d 100644 --- a/apiv4_4/model_prefix.go +++ b/apiv4_4/model_prefix.go @@ -46,7 +46,7 @@ type Prefix struct { Created NullableTime `json:"created,omitempty"` LastUpdated NullableTime `json:"last_updated"` Children int32 `json:"children"` - Depth int32 `json:"_depth"` + Depth *int32 `json:"_depth,omitempty"` AdditionalProperties map[string]interface{} } @@ -56,7 +56,7 @@ type _Prefix Prefix // 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 -func NewPrefix(id int32, url string, family AggregateFamily, prefix string, lastUpdated NullableTime, children int32, depth int32) *Prefix { +func NewPrefix(id int32, url string, family AggregateFamily, prefix string, lastUpdated NullableTime, children int32) *Prefix { this := Prefix{} this.Id = id this.Url = url @@ -64,7 +64,6 @@ func NewPrefix(id int32, url string, family AggregateFamily, prefix string, last this.Prefix = prefix this.LastUpdated = lastUpdated this.Children = children - this.Depth = depth return &this } @@ -844,28 +843,36 @@ func (o *Prefix) SetChildren(v int32) { o.Children = v } -// GetDepth returns the Depth field value +// GetDepth returns the Depth field value if set, zero value otherwise. func (o *Prefix) GetDepth() int32 { - if o == nil { + if o == nil || IsNil(o.Depth) { var ret int32 return ret } - - return o.Depth + return *o.Depth } -// GetDepthOk returns a tuple with the Depth field value +// GetDepthOk returns a tuple with the Depth field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Prefix) GetDepthOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.Depth) { return nil, false } - return &o.Depth, true + return o.Depth, true +} + +// HasDepth returns a boolean if a field has been set. +func (o *Prefix) HasDepth() bool { + if o != nil && !IsNil(o.Depth) { + return true + } + + return false } -// SetDepth sets field value +// SetDepth gets a reference to the given int32 and assigns it to the Depth field. func (o *Prefix) SetDepth(v int32) { - o.Depth = v + o.Depth = &v } func (o Prefix) MarshalJSON() ([]byte, error) { @@ -935,7 +942,9 @@ func (o Prefix) ToMap() (map[string]interface{}, error) { } toSerialize["last_updated"] = o.LastUpdated.Get() toSerialize["children"] = o.Children - toSerialize["_depth"] = o.Depth + if !IsNil(o.Depth) { + toSerialize["_depth"] = o.Depth + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -955,7 +964,6 @@ func (o *Prefix) UnmarshalJSON(data []byte) (err error) { "prefix", "last_updated", "children", - "_depth", } // defaultValueFuncMap captures the default values for required properties. diff --git a/apiv4_4/model_region.go b/apiv4_4/model_region.go index 0a02a03f..ddc86bcb 100644 --- a/apiv4_4/model_region.go +++ b/apiv4_4/model_region.go @@ -36,7 +36,7 @@ type Region struct { SiteCount *int32 `json:"site_count,omitempty"` PrefixCount *int64 `json:"prefix_count,omitempty"` Comments *string `json:"comments,omitempty"` - Depth int32 `json:"_depth"` + Depth *int32 `json:"_depth,omitempty"` AdditionalProperties map[string]interface{} } @@ -46,14 +46,13 @@ type _Region Region // 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 -func NewRegion(id int32, url string, name string, slug string, lastUpdated NullableTime, depth int32) *Region { +func NewRegion(id int32, url string, name string, slug string, lastUpdated NullableTime) *Region { this := Region{} this.Id = id this.Url = url this.Name = name this.Slug = slug this.LastUpdated = lastUpdated - this.Depth = depth return &this } @@ -529,28 +528,36 @@ func (o *Region) SetComments(v string) { o.Comments = &v } -// GetDepth returns the Depth field value +// GetDepth returns the Depth field value if set, zero value otherwise. func (o *Region) GetDepth() int32 { - if o == nil { + if o == nil || IsNil(o.Depth) { var ret int32 return ret } - - return o.Depth + return *o.Depth } -// GetDepthOk returns a tuple with the Depth field value +// GetDepthOk returns a tuple with the Depth field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Region) GetDepthOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.Depth) { return nil, false } - return &o.Depth, true + return o.Depth, true +} + +// HasDepth returns a boolean if a field has been set. +func (o *Region) HasDepth() bool { + if o != nil && !IsNil(o.Depth) { + return true + } + + return false } -// SetDepth sets field value +// SetDepth gets a reference to the given int32 and assigns it to the Depth field. func (o *Region) SetDepth(v int32) { - o.Depth = v + o.Depth = &v } func (o Region) MarshalJSON() ([]byte, error) { @@ -598,7 +605,9 @@ func (o Region) ToMap() (map[string]interface{}, error) { if !IsNil(o.Comments) { toSerialize["comments"] = o.Comments } - toSerialize["_depth"] = o.Depth + if !IsNil(o.Depth) { + toSerialize["_depth"] = o.Depth + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -617,7 +626,6 @@ func (o *Region) UnmarshalJSON(data []byte) (err error) { "name", "slug", "last_updated", - "_depth", } // defaultValueFuncMap captures the default values for required properties. diff --git a/apiv4_4/model_site_group.go b/apiv4_4/model_site_group.go index 46cd0d41..862cf704 100644 --- a/apiv4_4/model_site_group.go +++ b/apiv4_4/model_site_group.go @@ -36,7 +36,7 @@ type SiteGroup struct { SiteCount *int32 `json:"site_count,omitempty"` PrefixCount *int64 `json:"prefix_count,omitempty"` Comments *string `json:"comments,omitempty"` - Depth int32 `json:"_depth"` + Depth *int32 `json:"_depth,omitempty"` AdditionalProperties map[string]interface{} } @@ -46,14 +46,13 @@ type _SiteGroup SiteGroup // 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 -func NewSiteGroup(id int32, url string, name string, slug string, lastUpdated NullableTime, depth int32) *SiteGroup { +func NewSiteGroup(id int32, url string, name string, slug string, lastUpdated NullableTime) *SiteGroup { this := SiteGroup{} this.Id = id this.Url = url this.Name = name this.Slug = slug this.LastUpdated = lastUpdated - this.Depth = depth return &this } @@ -529,28 +528,36 @@ func (o *SiteGroup) SetComments(v string) { o.Comments = &v } -// GetDepth returns the Depth field value +// GetDepth returns the Depth field value if set, zero value otherwise. func (o *SiteGroup) GetDepth() int32 { - if o == nil { + if o == nil || IsNil(o.Depth) { var ret int32 return ret } - - return o.Depth + return *o.Depth } -// GetDepthOk returns a tuple with the Depth field value +// GetDepthOk returns a tuple with the Depth field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SiteGroup) GetDepthOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.Depth) { return nil, false } - return &o.Depth, true + return o.Depth, true +} + +// HasDepth returns a boolean if a field has been set. +func (o *SiteGroup) HasDepth() bool { + if o != nil && !IsNil(o.Depth) { + return true + } + + return false } -// SetDepth sets field value +// SetDepth gets a reference to the given int32 and assigns it to the Depth field. func (o *SiteGroup) SetDepth(v int32) { - o.Depth = v + o.Depth = &v } func (o SiteGroup) MarshalJSON() ([]byte, error) { @@ -598,7 +605,9 @@ func (o SiteGroup) ToMap() (map[string]interface{}, error) { if !IsNil(o.Comments) { toSerialize["comments"] = o.Comments } - toSerialize["_depth"] = o.Depth + if !IsNil(o.Depth) { + toSerialize["_depth"] = o.Depth + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -617,7 +626,6 @@ func (o *SiteGroup) UnmarshalJSON(data []byte) (err error) { "name", "slug", "last_updated", - "_depth", } // defaultValueFuncMap captures the default values for required properties. diff --git a/apiv4_4/model_tenant_group.go b/apiv4_4/model_tenant_group.go index 42813607..8446d9e0 100644 --- a/apiv4_4/model_tenant_group.go +++ b/apiv4_4/model_tenant_group.go @@ -35,7 +35,7 @@ type TenantGroup struct { LastUpdated NullableTime `json:"last_updated"` TenantCount *int32 `json:"tenant_count,omitempty"` Comments *string `json:"comments,omitempty"` - Depth int32 `json:"_depth"` + Depth *int32 `json:"_depth,omitempty"` AdditionalProperties map[string]interface{} } @@ -45,14 +45,13 @@ type _TenantGroup TenantGroup // 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 -func NewTenantGroup(id int32, url string, name string, slug string, lastUpdated NullableTime, depth int32) *TenantGroup { +func NewTenantGroup(id int32, url string, name string, slug string, lastUpdated NullableTime) *TenantGroup { this := TenantGroup{} this.Id = id this.Url = url this.Name = name this.Slug = slug this.LastUpdated = lastUpdated - this.Depth = depth return &this } @@ -496,28 +495,36 @@ func (o *TenantGroup) SetComments(v string) { o.Comments = &v } -// GetDepth returns the Depth field value +// GetDepth returns the Depth field value if set, zero value otherwise. func (o *TenantGroup) GetDepth() int32 { - if o == nil { + if o == nil || IsNil(o.Depth) { var ret int32 return ret } - - return o.Depth + return *o.Depth } -// GetDepthOk returns a tuple with the Depth field value +// GetDepthOk returns a tuple with the Depth field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TenantGroup) GetDepthOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.Depth) { return nil, false } - return &o.Depth, true + return o.Depth, true +} + +// HasDepth returns a boolean if a field has been set. +func (o *TenantGroup) HasDepth() bool { + if o != nil && !IsNil(o.Depth) { + return true + } + + return false } -// SetDepth sets field value +// SetDepth gets a reference to the given int32 and assigns it to the Depth field. func (o *TenantGroup) SetDepth(v int32) { - o.Depth = v + o.Depth = &v } func (o TenantGroup) MarshalJSON() ([]byte, error) { @@ -562,7 +569,9 @@ func (o TenantGroup) ToMap() (map[string]interface{}, error) { if !IsNil(o.Comments) { toSerialize["comments"] = o.Comments } - toSerialize["_depth"] = o.Depth + if !IsNil(o.Depth) { + toSerialize["_depth"] = o.Depth + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -581,7 +590,6 @@ func (o *TenantGroup) UnmarshalJSON(data []byte) (err error) { "name", "slug", "last_updated", - "_depth", } // defaultValueFuncMap captures the default values for required properties. diff --git a/apiv4_4/model_wireless_lan_group.go b/apiv4_4/model_wireless_lan_group.go index 11619228..4be39175 100644 --- a/apiv4_4/model_wireless_lan_group.go +++ b/apiv4_4/model_wireless_lan_group.go @@ -35,7 +35,7 @@ type WirelessLANGroup struct { LastUpdated NullableTime `json:"last_updated"` WirelesslanCount *int32 `json:"wirelesslan_count,omitempty"` Comments *string `json:"comments,omitempty"` - Depth int32 `json:"_depth"` + Depth *int32 `json:"_depth,omitempty"` AdditionalProperties map[string]interface{} } @@ -45,14 +45,13 @@ type _WirelessLANGroup WirelessLANGroup // 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 -func NewWirelessLANGroup(id int32, url string, name string, slug string, lastUpdated NullableTime, depth int32) *WirelessLANGroup { +func NewWirelessLANGroup(id int32, url string, name string, slug string, lastUpdated NullableTime) *WirelessLANGroup { this := WirelessLANGroup{} this.Id = id this.Url = url this.Name = name this.Slug = slug this.LastUpdated = lastUpdated - this.Depth = depth return &this } @@ -496,28 +495,36 @@ func (o *WirelessLANGroup) SetComments(v string) { o.Comments = &v } -// GetDepth returns the Depth field value +// GetDepth returns the Depth field value if set, zero value otherwise. func (o *WirelessLANGroup) GetDepth() int32 { - if o == nil { + if o == nil || IsNil(o.Depth) { var ret int32 return ret } - - return o.Depth + return *o.Depth } -// GetDepthOk returns a tuple with the Depth field value +// GetDepthOk returns a tuple with the Depth field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WirelessLANGroup) GetDepthOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.Depth) { return nil, false } - return &o.Depth, true + return o.Depth, true +} + +// HasDepth returns a boolean if a field has been set. +func (o *WirelessLANGroup) HasDepth() bool { + if o != nil && !IsNil(o.Depth) { + return true + } + + return false } -// SetDepth sets field value +// SetDepth gets a reference to the given int32 and assigns it to the Depth field. func (o *WirelessLANGroup) SetDepth(v int32) { - o.Depth = v + o.Depth = &v } func (o WirelessLANGroup) MarshalJSON() ([]byte, error) { @@ -562,7 +569,9 @@ func (o WirelessLANGroup) ToMap() (map[string]interface{}, error) { if !IsNil(o.Comments) { toSerialize["comments"] = o.Comments } - toSerialize["_depth"] = o.Depth + if !IsNil(o.Depth) { + toSerialize["_depth"] = o.Depth + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -581,7 +590,6 @@ func (o *WirelessLANGroup) UnmarshalJSON(data []byte) (err error) { "name", "slug", "last_updated", - "_depth", } // defaultValueFuncMap captures the default values for required properties. diff --git a/patcher/pre_gen.py b/patcher/pre_gen.py index fc6170b2..b967df7c 100755 --- a/patcher/pre_gen.py +++ b/patcher/pre_gen.py @@ -14,7 +14,8 @@ "created", # for sites "display", # Virtual disks "scope", - "mac_addresses" + "mac_addresses", + "_depth" ) diff --git a/schemas/patched-4.3.7.yaml b/schemas/patched-4.3.7.yaml index e3b85981..28273759 100644 --- a/schemas/patched-4.3.7.yaml +++ b/schemas/patched-4.3.7.yaml @@ -130100,7 +130100,6 @@ components: readOnly: true title: ' depth' required: - - _depth - id - name - slug @@ -130842,7 +130841,6 @@ components: readOnly: true title: ' depth' required: - - _depth - id - name - slug @@ -131700,7 +131698,6 @@ components: readOnly: true title: ' depth' required: - - _depth - id - name - slug @@ -131843,7 +131840,6 @@ components: readOnly: true title: ' depth' required: - - _depth - id - name - slug @@ -131985,7 +131981,6 @@ components: readOnly: true title: ' depth' required: - - _depth - id - name - slug @@ -132572,7 +132567,6 @@ components: readOnly: true title: ' depth' required: - - _depth - id - name - slug @@ -135927,7 +135921,6 @@ components: readOnly: true title: ' depth' required: - - _depth - id - last_updated - name @@ -137645,7 +137638,6 @@ components: readOnly: true title: ' depth' required: - - _depth - id - last_updated - name @@ -146309,7 +146301,6 @@ components: readOnly: true title: ' depth' required: - - _depth - component - device - id @@ -146571,7 +146562,6 @@ components: readOnly: true title: ' depth' required: - - _depth - component - device_type - id @@ -147318,7 +147308,6 @@ components: readOnly: true title: ' depth' required: - - _depth - id - last_updated - name @@ -148265,7 +148254,6 @@ components: readOnly: true title: ' depth' required: - - _depth - id - name - slug @@ -148610,7 +148598,6 @@ components: readOnly: true title: ' depth' required: - - _depth - id - name - slug @@ -148755,7 +148742,6 @@ components: readOnly: true title: ' depth' required: - - _depth - id - name - slug @@ -148818,7 +148804,6 @@ components: readOnly: true title: ' depth' required: - - _depth - id - name - slug @@ -148948,7 +148933,6 @@ components: readOnly: true title: ' depth' required: - - _depth - id - name - slug @@ -149207,7 +149191,6 @@ components: readOnly: true title: ' depth' required: - - _depth - id - name - slug @@ -167304,7 +167287,6 @@ components: readOnly: true title: ' depth' required: - - _depth - children - family - id @@ -170054,7 +170036,6 @@ components: readOnly: true title: ' depth' required: - - _depth - id - last_updated - name @@ -170927,7 +170908,6 @@ components: readOnly: true title: ' depth' required: - - _depth - id - last_updated - name @@ -171542,7 +171522,6 @@ components: readOnly: true title: ' depth' required: - - _depth - id - last_updated - name @@ -174516,7 +174495,6 @@ components: readOnly: true title: ' depth' required: - - _depth - id - last_updated - name diff --git a/schemas/patched-4.4.4.yaml b/schemas/patched-4.4.4.yaml index 1ee76d78..aa65200b 100644 --- a/schemas/patched-4.4.4.yaml +++ b/schemas/patched-4.4.4.yaml @@ -132078,7 +132078,6 @@ components: readOnly: true title: ' depth' required: - - _depth - id - name - slug @@ -132820,7 +132819,6 @@ components: readOnly: true title: ' depth' required: - - _depth - id - name - slug @@ -133097,7 +133095,6 @@ components: readOnly: true title: ' depth' required: - - _depth - id - name - slug @@ -133684,7 +133681,6 @@ components: readOnly: true title: ' depth' required: - - _depth - id - name - slug @@ -133827,7 +133823,6 @@ components: readOnly: true title: ' depth' required: - - _depth - id - name - slug @@ -133969,7 +133964,6 @@ components: readOnly: true title: ' depth' required: - - _depth - id - name - slug @@ -134556,7 +134550,6 @@ components: readOnly: true title: ' depth' required: - - _depth - id - name - slug @@ -138024,7 +138017,6 @@ components: readOnly: true title: ' depth' required: - - _depth - id - last_updated - name @@ -139750,7 +139742,6 @@ components: readOnly: true title: ' depth' required: - - _depth - id - last_updated - name @@ -149458,7 +149449,6 @@ components: readOnly: true title: ' depth' required: - - _depth - component - device - id @@ -149720,7 +149710,6 @@ components: readOnly: true title: ' depth' required: - - _depth - component - device_type - id @@ -150470,7 +150459,6 @@ components: readOnly: true title: ' depth' required: - - _depth - id - last_updated - name @@ -151418,7 +151406,6 @@ components: readOnly: true title: ' depth' required: - - _depth - id - name - slug @@ -151763,7 +151750,6 @@ components: readOnly: true title: ' depth' required: - - _depth - id - name - slug @@ -151955,7 +151941,6 @@ components: readOnly: true title: ' depth' required: - - _depth - id - name - slug @@ -152018,7 +152003,6 @@ components: readOnly: true title: ' depth' required: - - _depth - id - name - slug @@ -152148,7 +152132,6 @@ components: readOnly: true title: ' depth' required: - - _depth - id - name - slug @@ -152407,7 +152390,6 @@ components: readOnly: true title: ' depth' required: - - _depth - id - name - slug @@ -166954,7 +166936,6 @@ components: readOnly: true title: ' depth' required: - - _depth - id - last_updated - name @@ -171088,7 +171069,6 @@ components: readOnly: true title: ' depth' required: - - _depth - children - family - id @@ -173871,7 +173851,6 @@ components: readOnly: true title: ' depth' required: - - _depth - id - last_updated - name @@ -174744,7 +174723,6 @@ components: readOnly: true title: ' depth' required: - - _depth - id - last_updated - name @@ -175359,7 +175337,6 @@ components: readOnly: true title: ' depth' required: - - _depth - id - last_updated - name @@ -178333,7 +178310,6 @@ components: readOnly: true title: ' depth' required: - - _depth - id - last_updated - name